[Bug 776058] New: Go language - go get/install fails with permission denied
https://bugzilla.novell.com/show_bug.cgi?id=776058 https://bugzilla.novell.com/show_bug.cgi?id=776058#c0 Summary: Go language - go get/install fails with permission denied Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: Other OS/Version: openSUSE 12.1 Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: graham@andtech.eu QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1226.0 Safari/537.4 SUSE/22.0.1226.0 With the Go 1.0.2 update, as a non priveleged user using the 'go' toolchain command to get/install a third party package from an SCM repo may fail with the message: go install runtime: open /usr/lib64/go/pkg/linux_amd64/runtime.a: permission denied The go build command somehow thinks the runtime .a archive is older than the runtime package source and so tries to rebuild the runtime package for linking. Known workarounds: 1. Pass the openSUSE specific -s flag to 'go get', 'go build' e.g. go get -s example.com/package 2. Update the file time on the runtime .a archive, as root do: find /usr/lib64/go/pkg -type f -exec touch {} + Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776058 https://bugzilla.novell.com/show_bug.cgi?id=776058#c Graham Anderson <graham@andtech.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |graham@andtech.eu |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776058 https://bugzilla.novell.com/show_bug.cgi?id=776058#c Graham Anderson <graham@andtech.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776058 https://bugzilla.novell.com/show_bug.cgi?id=776058#c1 --- Comment #1 from Graham Anderson <graham@andtech.eu> 2012-08-15 16:58:12 UTC --- I've not seen this behaviour/bug since before Go 1.0 release. I first saw this on the build hosts when the Go bootstrap moved from autotools to the native toolchain and it was this same issue that led me to introduce that -s flag to skip attempts to reinstall the std lib packages on the builders. build:/obs/build/Linux:openSUSE_12.2 # stat /usr/lib64/go/pkg/linux_amd64/runtime.a File: `/usr/lib64/go/pkg/linux_amd64/runtime.a' Size: 890932 Blocks: 1744 IO Block: 4096 regular file Device: fd01h/64769d Inode: 259170 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2012-08-15 18:48:35.766672241 +0200 Modify: 2012-08-06 17:52:00.000000000 +0200 Change: 2012-08-15 18:48:11.586679656 +0200 Birth: - build:/obs/build/Linux:openSUSE_12.2 # stat /usr/lib64/go/src/pkg/runtime/defs_linux.go File: `/usr/lib64/go/src/pkg/runtime/defs_linux.go' Size: 2409 Blocks: 8 IO Block: 4096 regular file Device: fd01h/64769d Inode: 260815 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2012-08-15 18:48:35.206671536 +0200 Modify: 2012-08-06 17:52:44.000000000 +0200 Change: 2012-08-15 18:48:12.302679435 +0200 Birth: - So the modify time *is* older for the source, which is triggering the rebuild/reinstall of the runtime package. Judging by the date this seems to be happening on the builder during package creation and not when the RPM unbundles onto local filesystem. I'll see if I can recreate on my local OBS, if not I propose touching all the .a archives in the .spec %post while i try and track the underlying issue on openSUSE obs. Sascha, thoughts? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776058 https://bugzilla.novell.com/show_bug.cgi?id=776058#c2 Graham Anderson <graham@andtech.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from Graham Anderson <graham@andtech.eu> 2012-08-16 08:24:32 UTC --- There are a couple of places in the spec where the file change/modify time may be newer than the built package archives. I will reverse the positions where we handle the source and compiled files in the %install section, and touch the package archives in the %post section. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776058 https://bugzilla.novell.com/show_bug.cgi?id=776058#c3 --- Comment #3 from Graham Anderson <graham@andtech.eu> 2012-09-05 11:12:08 UTC --- On second thoughts and after working with the changes for a week or so, the changes in comment#2 are not really satisfactory. Touching the package binaries is unreliable because it's not done sequentially with respect to package dependencies. A more reliable solution is to not flag std lib packages as stale when installing third party packages as a non root user. root is still allowed to manually install/reinstall std lib packages from the installed pkg sources (although this is not really advisable). I've added this as a patch to the devel project and given it a test drive today, I'm satisfied with the behaviour. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776058 https://bugzilla.novell.com/show_bug.cgi?id=776058#c4 --- Comment #4 from Graham Anderson <graham@andtech.eu> 2012-09-05 11:13:46 UTC --- upstream issue: http://code.google.com/p/go/issues/detail?id=3149 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776058 https://bugzilla.novell.com/show_bug.cgi?id=776058#c5 --- Comment #5 from Graham Anderson <graham@andtech.eu> 2012-09-05 14:08:05 UTC --- submitted as MR #132623 https://build.opensuse.org/request/show/132623 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776058 https://bugzilla.novell.com/show_bug.cgi?id=776058#c6 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #6 from Benjamin Brunner <bbrunner@suse.com> 2012-09-17 13:27:05 CEST --- Update released for 12.1 and 12.2. Resolved fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=776058 https://bugzilla.novell.com/show_bug.cgi?id=776058#c7 --- Comment #7 from Swamp Workflow Management <swamp@suse.de> 2012-09-17 12:09:08 UTC --- openSUSE-RU-2012:1183-1: An update that has one recommended fix can now be installed. Category: recommended (moderate) Bug References: 776058 CVE References: Sources used: openSUSE 12.2 (src): go-1.0.2-1.4.1 openSUSE 12.1 (src): go-1.0.2-2.9.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=776058 http://bugzilla.novell.com/show_bug.cgi?id=776058#c8 --- Comment #8 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (776058) was mentioned in https://build.opensuse.org/request/show/393533 42.1 / go -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=776058 SMASH SMASH <smash_bz@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|maint:planned:update | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com