Re: [voidlinux/void-packages] New package: tup-0.7.5 (#4826)

Julien Dehos at Mon, 26 Sep 2016 12:09:04 -0700
juliendehos commented on this pull request. > @@ -0,0 +1,33 @@ +# Template file for 'tup' +pkgname="tup" +version="0.7.5" +revision=1 +hostmakedepends="fuse-devel pkg-config" Yes. Tup's building is boostrapped: a shell script builds tup on the host then the host uses this build to cross-build tup for the target. So fuse-devel is necessary for both builds.
Julien Dehos at Mon, 26 Sep 2016 12:09:29 -0700
juliendehos commented on this pull request. > @@ -0,0 +1,33 @@ +# Template file for 'tup' +pkgname="tup" +version="0.7.5" +revision=1 +hostmakedepends="fuse-devel pkg-config" +makedepends="fuse-devel sqlite-devel" +depends="sqlite" Right. Fixed.
Julien Dehos at Mon, 26 Sep 2016 12:19:48 -0700
juliendehos commented on this pull request. > +makedepends="fuse-devel sqlite-devel" +depends="sqlite" +short_desc="File-based build system" +maintainer="Julien Dehos <dehos@lisic.univ-littoral.fr>" +homepage="http://gittup.org/tup/index.html" +license="GPL-2" +distfiles="https://github.com/gittup/${pkgname}/archive/v${version}.tar.gz" +checksum="361b3e069308ce1d9505d1cb927999ac448811a3425c724123e0c48602a9d1e4" +nostrip_files="tup" + +do_build() { + # build tup for host arch using a script + CC="gcc" CFLAGS="-O0" LDFLAGS="-fPIC" ./build.sh + # build tup for target arch using the previous build (boostrapping) + sed -i 's/git describe/echo v'${version}'/' Tupfile + sed -i 's/CC = gcc/CC = '${CC}'/' Tuprules.tup Ok. Fixed.
Julien Dehos at Mon, 26 Sep 2016 12:23:07 -0700
juliendehos commented on this pull request. > @@ -0,0 +1,33 @@ +# Template file for 'tup' +pkgname="tup" +version="0.7.5" +revision=1 +hostmakedepends="fuse-devel pkg-config" +makedepends="fuse-devel sqlite-devel" +depends="sqlite" +short_desc="File-based build system" +maintainer="Julien Dehos <dehos@lisic.univ-littoral.fr>" +homepage="http://gittup.org/tup/index.html" +license="GPL-2" +distfiles="https://github.com/gittup/${pkgname}/archive/v${version}.tar.gz" +checksum="361b3e069308ce1d9505d1cb927999ac448811a3425c724123e0c48602a9d1e4" +nostrip_files="tup" Building fails without this line ("ERROR: tup-0.7.5_1: non-PIE executable found in PIE build: /usr/bin/tup"). Honestly, I don't understand that perfectly; if you have any idea...
Julien Dehos at Mon, 26 Sep 2016 13:19:37 -0700
juliendehos commented on this pull request. > @@ -0,0 +1,33 @@ +# Template file for 'tup' +pkgname="tup" +version="0.7.5" +revision=1 +hostmakedepends="fuse-devel pkg-config" +makedepends="fuse-devel sqlite-devel" +depends="sqlite" +short_desc="File-based build system" +maintainer="Julien Dehos <dehos@lisic.univ-littoral.fr>" +homepage="http://gittup.org/tup/index.html" +license="GPL-2" +distfiles="https://github.com/gittup/${pkgname}/archive/v${version}.tar.gz" +checksum="361b3e069308ce1d9505d1cb927999ac448811a3425c724123e0c48602a9d1e4" +nostrip_files="tup" I've added LDFLAGS and it indeed works without nostrip. Thanks for the explanation.
Christian Neukirchen at Tue, 27 Sep 2016 04:46:15 -0700
Applied with a few more tweaks and an aarch64 patch. Thanks :tada:
Christian Neukirchen at Tue, 27 Sep 2016 04:46:43 -0700
Closed #4826 via 76942dd85a461c8daaf0c3ea4da104a5df892346.
cr6git at Sat, 21 Jul 2018 01:54:54 -0700
cr6git commented on this pull request. > @@ -0,0 +1,33 @@ +# Template file for 'tup' +pkgname="tup" +version="0.7.5" +revision=1 +hostmakedepends="fuse-devel pkg-config" Seems like that changed in the latest release: https://github.com/gittup/tup/releases/tag/v0.7.6 ```` - Added a bootstrap-nofuse.sh script that avoids using FUSE during bootstrap for restricted environments ````