Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541274 - dev-libs/go-fuse-9999: updates for go 1.4
Summary: dev-libs/go-fuse-9999: updates for go 1.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2015-02-24 20:06 UTC by William Hubbs
Modified: 2021-12-13 16:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
go-fuse-9999.patch (go-fuse-9999.patch,1.48 KB, patch)
2015-02-24 20:06 UTC, William Hubbs
Details | Diff
go-fuse-9999.ebuild.patch (go-fuse-9999.ebuild.patch,1.48 KB, patch)
2015-02-25 14:40 UTC, William Hubbs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William Hubbs gentoo-dev 2015-02-24 20:06:01 UTC
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
Comment 1 William Hubbs gentoo-dev 2015-02-24 20:06:52 UTC
Created attachment 397438 [details, diff]
go-fuse-9999.patch

This is the patch with the ebuild updates I mentioned above.
Comment 2 William Hubbs gentoo-dev 2015-02-25 14:33:34 UTC
I have a small update to this that drops "return 0" from the last line
of src_unpack.
Comment 3 William Hubbs gentoo-dev 2015-02-25 14:40:06 UTC
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.
Comment 4 Marc Arens 2015-04-20 19:44:53 UTC
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
Comment 5 Fernando (likewhoa) 2015-04-20 20:06:12 UTC
(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.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-05-11 16:23:58 UTC
I've updated the install path in go-fuse-9999 as part of https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/105.
Comment 7 Larry the Git Cow gentoo-dev 2021-12-13 16:36:21 UTC
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(-)