{"action":"opened","issue":{"url":"https://api.github.com/repos/mh-cbon/go-bin-rpm/issues/7","repository_url":"https://api.github.com/repos/mh-cbon/go-bin-rpm","labels_url":"https://api.github.com/repos/mh-cbon/go-bin-rpm/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/mh-cbon/go-bin-rpm/issues/7/comments","events_url":"https://api.github.com/repos/mh-cbon/go-bin-rpm/issues/7/events","html_url":"https://github.com/mh-cbon/go-bin-rpm/issues/7","id":243135172,"number":7,"title":"Error generating \"noarch\" RPM's. No error generating \"all\" DEB with go-bin-deb","user":{"login":"solvingJ","id":8557737,"avatar_url":"https://avatars4.githubusercontent.com/u/8557737?v=4","gravatar_id":"","url":"https://api.github.com/users/solvingJ","html_url":"https://github.com/solvingJ","followers_url":"https://api.github.com/users/solvingJ/followers","following_url":"https://api.github.com/users/solvingJ/following{/other_user}","gists_url":"https://api.github.com/users/solvingJ/gists{/gist_id}","starred_url":"https://api.github.com/users/solvingJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solvingJ/subscriptions","organizations_url":"https://api.github.com/users/solvingJ/orgs","repos_url":"https://api.github.com/users/solvingJ/repos","events_url":"https://api.github.com/users/solvingJ/events{/privacy}","received_events_url":"https://api.github.com/users/solvingJ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-14T23:28:18Z","updated_at":"2017-07-14T23:28:18Z","closed_at":null,"body":"The log below shows the output of the go-bin-rpm command, and the error is fairly clear.  It's trying to \"require\" the current platforms specific standard library for C++.  \r\n\r\nObviously, somewhere there's an option in the pipeline were one can clarify that the package \"requires\" the STL for C++ in an \"architecture-agnostic\" way, but I don't know where that is.  Is it in the C++ build system, or is it in the rpm.json file, is it in the C++ build files somewhere? \r\n\r\nAnother reason it's perplexing is that I was able to use go-bin-deb to generate the equivalent cross-architecture .deb package with go-bin-deb. I also did test and install that on both a 32 and 64 bin Debian machines. \r\n\r\nOverall, I am not sure it's something that can be fixed in go-bin-rpm, but this will definitely come up again for future users so I thought we should figure it out and document it if possible.  \r\n\r\n\r\n```\r\n[root@localhost go-github-release-test]# go-bin-rpm generate --file rpm-creation-data.json --version  0.0.1 --arch noarch -o  go-github-release-test-noarch-0.0.1.rpm\r\nBuilding target platforms: noarch\r\nBuilding for target noarch\r\nExecuting(%prep): /bin/sh -e /var/tmp/rpm-tmp.rXqM4j\r\n+ umask 022\r\n+ cd /root/go-github-release-test/pkg-build/BUILD\r\n+ exit 0\r\nExecuting(%build): /bin/sh -e /var/tmp/rpm-tmp.VVmuU4\r\n+ umask 022\r\n+ cd /root/go-github-release-test/pkg-build/BUILD\r\n+ exit 0\r\nExecuting(%install): /bin/sh -e /var/tmp/rpm-tmp.EFGBKP\r\n+ umask 022\r\n+ cd /root/go-github-release-test/pkg-build/BUILD\r\n+ '[' /root/go-github-release-test/pkg-build/BUILDROOT/go-github-release-test-0.0.1-1.noarch '!=' / ']'\r\n+ rm -rf /root/go-github-release-test/pkg-build/BUILDROOT/go-github-release-test-0.0.1-1.noarch\r\n++ dirname /root/go-github-release-test/pkg-build/BUILDROOT/go-github-release-test-0.0.1-1.noarch\r\n+ mkdir -p /root/go-github-release-test/pkg-build/BUILDROOT\r\n+ mkdir /root/go-github-release-test/pkg-build/BUILDROOT/go-github-release-test-0.0.1-1.noarch\r\n+ mkdir -p /root/go-github-release-test/pkg-build/BUILDROOT/go-github-release-test-0.0.1-1.noarch//usr/bin\r\n+ cp /root/go-github-release-test/build/go-github-release-test /root/go-github-release-test/pkg-build/BUILDROOT/go-github-release-test-0.0.1-1.noarch//usr/bin\r\n+ /usr/lib/rpm/check-buildroot\r\n+ /usr/lib/rpm/redhat/brp-compress\r\n+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip\r\n+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump\r\n+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip\r\n+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1\r\n+ /usr/lib/rpm/redhat/brp-python-hardlink\r\n+ /usr/lib/rpm/redhat/brp-java-repack-jars\r\nProcessing files: go-github-release-test-0.0.1-1.noarch\r\nProvides: go-github-release-test = 0.0.1-1\r\nRequires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1\r\nRequires: libc.so.6()(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libgcc_s.so.1()(64bit) libm.so.6()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) rtld(GNU_HASH)\r\nerror: Arch dependent binaries in noarch package\r\n\r\n\r\nRPM build errors:\r\n    Arch dependent binaries in noarch package\r\nexit status 1\r\n[root@localhost go-github-release-test]#\r\n\r\n```\r\n\r\n\r\nRPM Build definition file:\r\n\r\n```\r\n{\r\n  \"name\": \"go-github-release-test\",\r\n  \"summary\": \"Test of go-github-release process\",\r\n  \"description\": \"Test of go-github-release process\",\r\n  \"changelog-cmd\": \"changelog rpm\",\r\n  \"license\": \"LICENSE\",\r\n  \"url\": \"http://github.com/solvingj/go-github-release-test\",\r\n  \"files\": [\r\n    {\r\n      \"from\": \"build/!name!\",\r\n      \"to\": \"%{_bindir}/\",\r\n      \"base\": \"build\",\r\n      \"type\": \"\"\r\n    }\r\n  ],\r\n  \"copyrights\": [\r\n    {\r\n      \"files\": \"*\",\r\n      \"copyright\": \"2017 Jerry Wiltse\",\r\n      \"license\": \"MIT\",\r\n      \"file\": \"LICENSE\"\r\n    }\r\n  ],\r\n  \"requires\": [\r\n\t\"rpm-build\", \r\n\t\"changelog\"\t\r\n  ]\r\n}\r\n```"}}
{"actor":{"display_login":"solvingJ"}}