On 2018-07-08, Jan Nieuwenhuizen wrote:
> Vagrant Cascadian writes:
>> Packaging branch for nyacc:
>>
>> https://salsa.debian.org/vagrant/nyacc
>>
>> Fails to build as it installs info pages to /share/info. Doesn't appear
>> to respect DESTDIR= ... but setting --infodir doesn't work as I would
>> expect either, suddently appending --prefix to it.
>
> I have looked into this; please see `debian' branch at
>
> http://gitlab.com/janneke/nyacc
Built!
>> And also a packaging branch for mes itself, but of course can't test it
>> until nyacc is working:
>>
>> https://salsa.debian.org/vagrant/mes
>
> I will have a look at this later. You will probably want to rebase on
> my `wip-gnu' branch: it has (experimental) DESTDIR and other Debian
> build support (e.g.: do not assume /bin/sh is bash, resurrect guile-2.0).
Tried building with this, and had a couple issues.
The clean target assumes a git checkout:
clean:
git clean -dfx
But Debian builds against tarballs of the source, and running 'git clean
-dfx' from a directory with the source unpackaged but no .git directory
fails.
The configure target doesn't take some common options, and fails when
unknown options are passed, such as --includedir. The default build
passed these:
./configure --build=x86_64-linux-gnu --prefix=/usr
--includedir=\${prefix}/include --mandir=\${prefix}/share/man
--infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
--disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu
--libexecdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run
--disable-maintainer-mode --disable-dependency-tracking
From the ./configure help output, it suggests that only --prefix and
--sysconfdir are supported, but maybe not all the supported options are
documented.
Working around that by only passing:
./configure --prefix=/usr --sysconfdir=/etc
And a no-op clean target...
Still fails to build:
build-aux/build-cc.sh
...
;;; WARNING: compilation of /<<BUILDDIR>>/mes-0.16+0.3da4d01/build-aux/mes-snarf.scm failed:
;;; ERROR: failed to create path for auto-compiled file "/<<BUILDDIR>>/mes-0.16+0.3da4d01/build-aux/mes-snarf.scm"
mes-snarf[guile]...
lib/libmes.c:21:10: fatal error: libmes.h: No such file or directory
#include <libmes.h>
^~~~~~~~~~
compilation terminated.
make[2]: *** [GNUmakefile:39: cc] Error 1
make[2]: Leaving directory '/<<BUILDDIR>>/mes-0.16+0.3da4d01'
make[1]: *** [GNUmakefile:123: src/mes.gcc-out] Error 2
make[1]: *** Waiting for unfinished jobs....
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /<<BUILDDIR>>/mes-0.16+0.3da4d01/build-aux/mes-snarf.scm
;;; WARNING: compilation of /<<BUILDDIR>>/mes-0.16+0.3da4d01/build-aux/mes-snarf.scm failed:
;;; ERROR: failed to create path for auto-compiled file "/<<BUILDDIR>>/mes-0.16+0.3da4d01/build-aux/mes-snarf.scm"
mes-snarf[guile]...
lib/libmes.c:21:10: fatal error: libmes.h: No such file or directory
#include <libmes.h>
^~~~~~~~~~
compilation terminated.
make[1]: *** [GNUmakefile:36: build] Error 1
make[1]: Leaving directory '/<<BUILDDIR>>/mes-0.16+0.3da4d01'
dh_auto_build: make -j4 returned exit code 2
So, some progress, but still some work left to do! :)
live well,
vagrant
Attachment:
signature.asc
Description: PGP signature