Package Details: pdd 1.7-1

Git Clone URL: https://aur.archlinux.org/pdd.git (read-only, click to copy)
Package Base: pdd
Description: Tiny date, time diff calculator.
Upstream URL: https://github.com/jarun/pdd
Licenses: GPL
Submitter: ImNtReal
Maintainer: ImNtReal
Last Packager: ImNtReal
Votes: 3
Popularity: 0.000075
First Submitted: 2017-07-19 17:26 (UTC)
Last Updated: 2022-12-21 19:42 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

Freed commented on 2023-11-25 06:18 (UTC)

Try this to fix the bug.

diff --git a/PKGBUILD b/PKGBUILD
index 6783160..8a46c8e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,6 +18,7 @@ build() {

 package() {
   cd "${srcdir}/${pkgname}-${pkgver}"
+  sed -i 's/compilations/completions/g;s/install -m644/install -Dm644/g;s/ \$(PREFIX)/ $(DESTDIR)$(PREFIX)/g' Makefile
   make PREFIX=/usr DESTDIR="${pkgdir}" install
 }

dreieck commented on 2023-11-12 18:16 (UTC) (edited on 2023-11-12 18:22 (UTC) by dreieck)

package() fails -- you install stuff directly into the system and not to $pkgdir, but you must use $pkgdir:

==> Starting package()...
install -m755 -d /tmp/makepkg/build/pdd/pkg/pdd/usr/bin
install -m755 -d /tmp/makepkg/build/pdd/pkg/pdd/usr/share/man/man1
install -m755 -d /tmp/makepkg/build/pdd/pkg/pdd/usr/share/doc/pdd
gzip -c pdd.1 > pdd.1.gz
install -m755 pdd /tmp/makepkg/build/pdd/pkg/pdd/usr/bin/pdd
install -m644 pdd.1.gz /tmp/makepkg/build/pdd/pkg/pdd/usr/share/man/man1
install -m644 README.md /tmp/makepkg/build/pdd/pkg/pdd/usr/share/doc/pdd
rm -f pdd.1.gz
install -m644 auto-completion/bash/pdd.bash /usr/share/bash-completion/compilations/pdd
install: cannot create regular file '/usr/share/bash-completion/compilations/pdd': No such file or directory
make: *** [Makefile:25: install-bash-completion] Error 1
==> ERROR: A failure occurred in package().

You cannot resort to excuse upstream makefile. If it does not honour $DESTDIR, then you must install manually.

See package pdd-git, which does it correctly.

Regards and thanks for maintaining!

simona commented on 2023-02-16 17:19 (UTC)

install -m644 auto-completion/bash/pdd.bash /usr/share/bash-completion/compilations/pdd
install: impossibile creare il file regolare '/usr/share/bash-completion
/compilations/pdd': File o directory non esistente
make: *** [Makefile:25: install-bash-completion] Error 1

RoestVrijStaal commented on 2023-02-14 19:51 (UTC) (edited on 2023-02-14 19:51 (UTC) by RoestVrijStaal)

@dreieck The cause is the makefile of upstream, which installs the auto completions by default via make install.

Without the auto completions, this package will be less helpful :thinking:

dreieck commented on 2023-01-25 14:43 (UTC) (edited on 2023-01-25 14:46 (UTC) by dreieck)

This PKGBUILD wants to install stuff outside $pkgdir. This is not allowed.

This is a critical issue. Please fix immediately.

It has already been reported at 2022-12-22 11:22 (UTC).

Here the error output again:

install -m644 _pdd -t /usr/share/zsh/site-functions
install: cannot create regular file '/usr/share/zsh/site-functions/_pdd': Permission denied

Regards!, and
thanks for maintaining.

RoestVrijStaal commented on 2023-01-07 23:52 (UTC) (edited on 2023-01-08 00:04 (UTC) by RoestVrijStaal)

@simona The developer of pdd made a typo compilations should be completions.

He figured out his mistake. But he didn't tag a new release (yet).

However somehow make install-bash-completion was still failing at my side.

install: can not remove '/usr/share/bash-completion/completions/pdd': Access denied

Which is a stupid error, because that file doesn't even exist, nor I want that it gets removed because it is for getting autocompletion.

The git package also does not install.

So I modified the PKGBUILD of this package to call the building of the package and installing the autocompletions (I don't use fish) and this (w)hacky workaround works:

# Maintainer: Jameson Pugh <<<REMOVED DUE SPAM>>>

pkgname=pdd
pkgver=master
pkgrel=1
pkgdesc="Tiny date, time diff calculator."
arch=('any')
url="https://github.com/jarun/pdd"
license=('GPL')
depends=('python-dateutil')
source=("https://github.com/jarun/pdd/archive/${pkgver}.tar.gz")
sha256sums=('SKIP')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make PREFIX=/usr DESTDIR="${pkgdir}" install-bin
  sudo make PREFIX=/usr DESTDIR="${pkgdir}" install-bash-completion
  sudo make PREFIX=/usr DESTDIR="${pkgdir}" install-zsh-completion
}

# vim:set ts=2 sw=2 et:

simona commented on 2022-12-22 11:22 (UTC)

install -m644 auto-completion/bash/pdd.bash /usr/share/bash-completion/compilations/pdd
install: impossibile creare il file regolare '/usr/share/bash-completion/compilations/pdd': File o directory non esistente
make: *** [Makefile:25: install-bash-completion] Errore 1

Freed commented on 2022-08-26 18:46 (UTC)

pdd now support zsh completion.

https://github.com/jarun/pdd/commit/6294a3fe0e0fbc0c6be5374ec5d01a0b45e16d3b

<deleted-account> commented on 2017-09-28 00:53 (UTC)

Hey, no problem!

ImNtReal commented on 2017-09-27 18:52 (UTC)

Sorry for the delay. I'm on the verge of a major go-live at work, and have been struggling to keep up with my personal e-mail.