Ludovic Courtès writes: > Hi Simon, > > Simon Josefsson skribis: > >> While the package builds and works for me, I would appreciate a review >> so I can learn -- I wrote this without understanding anything of what I >> was doing, but merely pattern-matched things against other existing >> packages that looked relevant. > > Let’s see. Hi. Thank you for reviewing this. >> +(define-public eweouz >> + (package >> + (name "eweouz") > > Rather “emacs-eweouz” (info "(guix) Package Naming"). Okay. The package provides non-emacs tools too, but I agree emacs-eweouz is more appropriate since few are likely to use the tools outside of the Emacs context. >> + (build-system gnu-build-system) >> + (arguments >> + `(#:tests? #f > > Please add a short comment saying why tests are disabled. I re-enabled the tests now. Upstream doesn't ship any tests, but at least we shouldn't disable them in case there is ever a new version that adds self-test. >> + (modify-phases %standard-phases >> + (replace 'bootstrap >> + (lambda _ (invoke "autoreconf" "-vif") #t)) > > Is this needed? The default ‘bootstrap’ phase does that, roughly. It appears to be needed. The eweouz tarball contains autogen.sh: aclocal autoheader automake --copy --add-missing --foreign autoconf ./configure --enable-maintainer-mode "$@" And guix build seems to prefer invoking autogen.sh over autoreconf, which causes this failure: starting phase `bootstrap' running './autogen.sh' patch-shebang: ./autogen.sh: changing `/bin/sh' to `/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/sh' configure.ac:10: installing './compile' configure.ac:4: installing './install-sh' configure.ac:4: installing './missing' src/Makefile.am: installing './depcomp' ./autogen.sh: ./configure: /bin/sh: bad interpreter: No such file or directory error: in phase 'bootstrap': uncaught exception: %exception #<&invoke-error program: "./autogen.sh" arguments: () exit-status: 126 term-signal: #f stop-signal: #f> phase `bootstrap' failed after 0.6 seconds command "./autogen.sh" failed with status 126 > You can omit the trailing #t too. Nice catch, fixed. >> + (synopsis "Emacs interface to Evolution Data Server") >> + (description >> + "eweouz is an tool for looking up contacts from Evolution Data Server >> +from Emacs. It is similar to BBDB, except much, much simpler.") >> + (license license:gpl2))) > > Might be ‘gpl2+’, unless it explicitly states “version 2 only”. The majority is GPLv2-only. The essential files in eweouz are the following: src/eweouz-dump-addressbook.c GPLv2-only src/eweouz-write-addressbook.c GPLv2-only lisp/eweouz.el GPLv2-only lisp/vcard.el GPLv2+ Is there a way to express that? I can't seem to find any documentation for the (license...) clause (or am I missing it?), but I added both licenses now and a comment. > That’s all I have to say! Overall it’s looking good. :-) > > Could you send an updated patch? See attached. /Simon