[opensuse-go] golang-packaging sets %go_arch hard to i386
Hi @ll, since I changed the order of my obs projects to prefer devel:languages:go I have the problem that none of my package are building anymore. I figured out, that the go_arch in /etc/rpm/macros.go is set to i386 but I`m building on x86_64 which should result in "amd64" as go_arch. Anybody else noticed such a problem? cu Frank -- To unsubscribe, e-mail: opensuse-go+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-go+owner@opensuse.org
On Fri, Jul 8, 2016 at 10:26 PM, Frank Schreiner
Hi @ll,
since I changed the order of my obs projects to prefer devel:languages:go I have the problem that none of my package are building anymore. I figured out, that the go_arch in /etc/rpm/macros.go is set to i386 but I`m building on x86_64 which should result in "amd64" as go_arch.
Hi, Frank, run 'ruby /usr/lib/rpm/golang-macros.rb --arch` in %prep section to see its return. and please post your project url. Marguerite -- To unsubscribe, e-mail: opensuse-go+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-go+owner@opensuse.org
Hi, Frank,
run 'ruby /usr/lib/rpm/golang-macros.rb --arch` in %prep section to see its return.
Thats really weird: In OBS everything looks fine (build ended successfully): [ 72s] + ruby /usr/lib/rpm/golang-macros.rb --arch [ 73s] amd64 [ 73s] + grep go_arch /etc/rpm/macros.go [ 73s] %go_arch amd64 doing locally with "osc build --clean openSUSE_Tumbleweed x86_64" it results in broken builds: [ 32s] + ruby /usr/lib/rpm/golang-macros.rb --arch [ 32s] amd64 [ 32s] + grep go_arch /etc/rpm/macros.go [ 32s] %go_arch 386 .... [ 33s] RPM build errors: [ 33s] File not found by glob: /home/abuild/rpmbuild/BUILDROOT/golang-github-cheggaaa-pb- 0.0.0+git20160703.04b234c-0.x86_64/usr/lib64/go/contrib/pkg/linux_386/* https://build.opensuse.org/package/show/home:M0ses:snappy/golang-github -cheggaaa-pb so I think, I`m bothering the wrong list ;-) cu Frank -- To unsubscribe, e-mail: opensuse-go+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-go+owner@opensuse.org
On Fri, Jul 8, 2016 at 11:12 PM, Frank Schreiner
Thats really weird: [ 32s] + grep go_arch /etc/rpm/macros.go [ 32s] %go_arch 386
This should not be wrong. %go_arch in /etc/rpm/macros.go is not calculated at runtime. but at build time of golang-packaging. can you post the "golang-packaging" version of your local build? Marguerite -- To unsubscribe, e-mail: opensuse-go+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-go+owner@opensuse.org
can you post the "golang-packaging" version of your local build?
Marguerite
looks like a noarch package (which might be wrong in an architecture depedent environment, right?) : cu Frank running: sudo chroot /var/tmp/build-root/openSUSE_Tumbleweed-x86_64 su - abuild abuild@fs-x250:/home/abuild> rpm -qi golang-packaging Name : golang-packaging Version : 14.9.2 Release : 37.1 Architecture: noarch Install Date: Fri Jul 8 16:21:00 2016 Group : Development/Languages/Golang Size : 59389 License : GPL-3.0 Signature : DSA/SHA1, Sun Jul 3 19:12:27 2016, Key ID af4cfe4d307d7bf9 Source RPM : golang-packaging-14.9.2-37.1.src.rpm Build Date : Sun Jul 3 19:12:21 2016 Build Host : build71 Relocations : (not relocatable) Vendor : obs://build.opensuse.org/devel:languages:go URL : https://github.com/marguerite/golang-packaging Summary : A toolchain to help packaging golang Description : A toolchain to help packaging golang, written in ruby. Distribution: devel:languages:go / openSUSE_Factory abuild@fs-x250:/home/abuild> -- To unsubscribe, e-mail: opensuse-go+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-go+owner@opensuse.org
On Sat, Jul 9, 2016 at 12:25 AM, Frank Schreiner
looks like a noarch package (which might be wrong in an architecture depedent environment, right?) :
Of course it is wrong. That is why I explicitly set it architecture-dependent. Or it'll randomly use one created under i586 or x86_64. I don't know who did that. sorry for the inconvenience. Fixing it now. Marguerite -- To unsubscribe, e-mail: opensuse-go+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-go+owner@opensuse.org
https://build.opensuse.org/request/show/407319 -- To unsubscribe, e-mail: opensuse-go+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-go+owner@opensuse.org
participants (2)
-
Frank Schreiner
-
Marguerite Su