Hi, I'm trying to package rapicorn. And it's mostly gnu-build-system based, but I need to call autogen.sh (see below for package definitions). Sadly I suck and it fails. Got any ideas? Seems i need to rerun the patch-shebangs phase? Flo phase `patch-source-shebangs' succeeded after 0.1 seconds starting phase `pre-configure' + rm -rf autom4te.cache/ config.cache + autoreconf -vfsi autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: running: libtoolize --force libtoolize: putting auxiliary files in '.'. libtoolize: linking file './ltmain.sh' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: running: /gnu/store/51s6w6jw83rmdfyqhwmxrvv5qbzypz9b-autoconf-2.69/bin/autoconf --force autoreconf: running: /gnu/store/51s6w6jw83rmdfyqhwmxrvv5qbzypz9b-autoconf-2.69/bin/autoheader --force autoreconf: running: automake --add-missing --force-missing configure.ac:99: installing './compile' configure.ac:18: installing './config.guess' configure.ac:18: installing './config.sub' configure.ac:19: installing './install-sh' configure.ac:19: installing './missing' aidacc/Makefile.am:54: installing './py-compile' aidacc/tests/Makefile.am: installing './depcomp' autoreconf: Leaving directory `.' + intltoolize --force --automake + rm -f po/Makefile.in.in + cp -v po/Makefile.intltool po/Makefile.in.in ?po/Makefile.intltool? -> ?po/Makefile.in.in? + ./configure --enable-devel-mode=yes ./autogen.sh: ./configure: /bin/sh: bad interpreter: No such file or directory phase `pre-configure' failed after 10.7 seconds builder for `/gnu/store/1djwvip7m0qsqlyqq65cgf3xwsh53lbr-rapicorn-16.0.0.drv' failed with exit code 1 @ build-failed /gnu/store/1djwvip7m0qsqlyqq65cgf3xwsh53lbr-rapicorn-16.0.0.drv - 1 builder for `/gnu/store/1djwvip7m0qsqlyqq65cgf3xwsh53lbr-rapicorn-16.0.0.drv' failed with exit code 1 guix build: error: build failed: build of `/gnu/store/1djwvip7m0qsqlyqq65cgf3xwsh53lbr-rapicorn-16.0.0.drv' failed 1 fps@mango 08:24:33 ~/src/bld/guix (beastbse)* $ (define libpng12 (package (name "libpng12") (version "1.2.56") (source (origin (method url-fetch) ;; Note: upstream removes older tarballs. (uri (list (string-append "mirror://sourceforge/libpng/libpng12/" version "/libpng-" version ".tar.xz") (string-append "ftp://ftp.simplesystems.org/pub/libpng/png/src" "/libpng12/libpng-" version ".tar.xz"))) (sha256 (base32 "1ghd03p353x0vi4dk83n1nlldg11w7vqdk3f99rkgfb82ic59ki4")))) (build-system gnu-build-system) ;; libpng.la says "-lz", so propagate it. (propagated-inputs `(("zlib" ,zlib))) (synopsis "Library for handling PNG files") (description "Libpng is the official PNG (Portable Network Graphics) reference library. It supports almost all PNG features and is extensible.") (license license:zlib) (home-page "http://www.libpng.org/pub/png/libpng.html"))) (define autoconf-archive (package (name "autoconf-archive") (version "2016.03.20") (source (origin (method url-fetch) (uri (string-append "http://mirror.bibleonline.ru/gnu/" "autoconf-archive/autoconf-archive-" version ".tar.xz")) (sha256 (base32 "0dz4fnc723jqn3by22ds5fys7g31apzm1r9allldvva0yvzjxyw8")))) (build-system gnu-build-system) (home-page "http://www.gnu.org/software/autoconf-archive/") (synopsis "The GNU Autoconf Archive") (description "The GNU Autoconf Archive is a collection of more than 500 macros for [GNU Autoconf](http://www.gnu.org/software/autoconf) that have been contributed as free software by friendly supporters of the cause from all over the Internet.") (license license:gpl3+))) (define-public rapicorn (package (name "rapicorn") (version "16.0.0") (source (origin (method url-fetch) (uri (string-append "https://github.com/tim-janik/" name "/archive/" version ".tar.gz")) (sha256 (base32 "0lgc9mcmd6ljj6dkg0fg4zipclsypy680wgsy4c468mf989kijrr")))) (build-system gnu-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-before 'configure 'pre-configure (lambda _ ; TODO: add explanation (zero? (system* "sh" "./autogen.sh"))))))) (native-inputs `(("pkg-config" ,pkg-config) ("autoconf" ,autoconf) ("autoconf-archive" ,autoconf-archive) ("automake" ,automake) ("libtool" ,libtool) ("glib" ,glib "bin") ("python2-cython" ,python2-cython) ("intltootl" ,intltool))) (inputs `(("cairo" ,cairo) ("croco" ,libcroco) ("glib" ,glib) ("pango" ,pango) ("python2" ,python-2) ("libxml2" ,libxml2) ("libpng12" ,libpng12) ("gtk+" ,gtk+) ("gdk-pixbuf" ,gdk-pixbuf) ("readline" ,readline) ("xorg" ,libx11))) (home-page "https://testbit.eu/wiki/Rapicorn_About") (synopsis "Rapicorn is a library written in C++ providing a widget toolkit for the creation of graphical user interfaces") (description "Rapicorn is a GUI toolkit offering concise declarative UI design notation, separated from imperative programming logic. The source code is released as Free Software and the project welcomes everyone to contribute ideas, code or otherwise. ") (license license:mpl2.0))) -- https://fps.io