This patch will update the go-fuse-9999 ebuild as follows: 1. the /usr/lib/go/src/pkg directory no longer exists (sources now go in the /usr/lib/go/src path) [1]. 2. update the dependency to the proper version of go. 3. clean up some extra unnecessary quoting 4. drop the use of the git eclass since go communicates directly with vcs's. [1] http://golang.org/doc/go1.4
Created attachment 397438 [details, diff] go-fuse-9999.patch This is the patch with the ebuild updates I mentioned above.
I have a small update to this that drops "return 0" from the last line of src_unpack.
Created attachment 397484 [details, diff] go-fuse-9999.ebuild.patch This is the latest patch. It also adds a "|| die" after the go get in src_unpack.
I tested this patch but it go-fuse failed to install after cleanly applying it. * Package: dev-libs/go-fuse-9999 * Repository: marens * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox >>> Unpacking source... github.com/hanwen/go-fuse (download) cd . git clone https://github.com/hanwen/go-fuse /tmp/portage/dev-libs/go-fuse-9999/work/go-fuse-9999/src/github.com/hanwen/go-fuse cd /tmp/portage/dev-libs/go-fuse-9999/work/go-fuse-9999/src/github.com/hanwen/go-fuse git show-ref cd /tmp/portage/dev-libs/go-fuse-9999/work/go-fuse-9999/src/github.com/hanwen/go-fuse git checkout master package github.com/hanwen/go-fuse imports github.com/hanwen/go-fuse imports github.com/hanwen/go-fuse: no buildable Go source files in /tmp/portage/dev-libs/go-fuse-9999/work/go-fuse-9999/src/github.com/hanwen/go-fuse * ERROR: dev-libs/go-fuse-9999::marens failed (unpack phase): * (no error message) * * Call stack: * ebuild.sh, line 93: Called src_unpack * environment, line 212: Called die * The specific snippet of code: * go get -d -u -v -x ${GO_PN} || die * * If you need support, post the output of `emerge --info '=dev-libs/go-fuse-9999::marens'`, * the complete build log and the output of `emerge -pqv '=dev-libs/go-fuse-9999::marens'`. * The complete build log is located at '/tmp/portage/dev-libs/go-fuse-9999/temp/build.log'. * The ebuild environment file is located at '/tmp/portage/dev-libs/go-fuse-9999/temp/environment'. * Working directory: '/tmp/portage/dev-libs/go-fuse-9999/work' * S: '/tmp/portage/dev-libs/go-fuse-9999/work/go-fuse-9999' what simply worked for me was the following patch: --- /usr/portage/dev-libs/go-fuse/go-fuse-9999.ebuild 2014-07-01 12:31:06.000000000 +0200 +++ go-fuse-9999.ebuild 2015-04-20 21:43:33.455265574 +0200 @@ -17,7 +17,7 @@ KEYWORDS="" IUSE="" -DEPEND=">=dev-lang/go-1.3" +DEPEND=">=dev-lang/go-1.4" RDEPEND="" GO_PN="github.com/hanwen/${PN}" @@ -46,7 +46,7 @@ insinto /usr/lib/go/ doins -r "${S}/pkg" -insinto "/usr/lib/go/src/pkg/${GO_PN}/" +insinto "/usr/lib/go/src/${GO_PN}/" #for this ebuild, to fix bug #503324 I have limited what is installed #another possible solution would have been using adddeny to the #hide installed filed during build
(In reply to William Hubbs from comment #3) > Created attachment 397484 [details, diff] [details, diff] > go-fuse-9999.ebuild.patch > > This is the latest patch. It also adds a "|| die" after the go get in > src_unpack. These seems to be an issue with the "go get" command because it will always return "1" which in the case above it would fail, but if it's run a second time it returns 0 but that's only if you manually run the "go get" command. I would remove the die from src_unpack and or go back to using git-r3 to avoid this bug.
I've updated the install path in go-fuse-9999 as part of https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/105.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18c7a646c32cc3775b2507a17063f8608f8cff0d commit 18c7a646c32cc3775b2507a17063f8608f8cff0d Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2021-12-13 16:33:56 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2021-12-13 16:33:56 +0000 dev-libs/go-fuse: treeclean Closes: https://bugs.gentoo.org/541274 Closes: https://bugs.gentoo.org/771606 Closes: https://bugs.gentoo.org/798279 Closes: https://bugs.gentoo.org/695798 Closes: https://bugs.gentoo.org/679970 Closes: https://bugs.gentoo.org/638912 Closes: https://bugs.gentoo.org/622048 Closes: https://bugs.gentoo.org/819612 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> dev-libs/go-fuse/Manifest | 2 - dev-libs/go-fuse/go-fuse-0_p20140812-r1.ebuild | 55 -------------------------- dev-libs/go-fuse/go-fuse-0_p20150422.ebuild | 53 ------------------------- dev-libs/go-fuse/go-fuse-9999.ebuild | 53 ------------------------- dev-libs/go-fuse/metadata.xml | 8 ---- profiles/package.mask | 6 --- 6 files changed, 177 deletions(-)