| Summary: | rpmbuild package requirements for bash is different on armv7hl than on other targets | ||
|---|---|---|---|
| Product: | Infrastructure | Reporter: | Richard <hobbes1069> |
| Component: | Build System | Assignee: | Nicolas Chauvet <kwizart> |
| Status: | RESOLVED INVALID | ||
| Severity: | enhancement | CC: | leigh123linux, lxtnow |
| Priority: | P1 | ||
| Version: | NA | ||
| Hardware: | x86_64 | ||
| OS: | GNU/Linux | ||
| namespace: | |||
|
Description
Richard
2019-03-10 14:03:36 CET
Well, I don't see where it could be an (rpmfusion) infra issue. In others words, I don't see what to change... (or even in Fedora). Maybe it would be possible to enforce using /usr/bin/bash in scripts provided in the noarch sub-package ... or to move the script into the arched package ? (In reply to Richard from comment #0) > Package unifi is failing to build on rawhide due to this issue: > > BuildError: The following noarch package built differently on different > architectures: unifi-data-5.10.19-2.fc30.noarch.rpm > rpmdiff output was: > removed REQUIRES /bin/bash > added REQUIRES /usr/bin/bash > > All targets except armv7hl pick up /usr/bin/bash... > > http://koji.rpmfusion.org/koji/taskinfo?taskID=305359 I fixed the bash shebangs https://pkgs.rpmfusion.org/cgit/nonfree/unifi.git/commit/?id=18967c71952c6081150cd44976eb21da032be72b + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/share/unifi/bin/mongod from /bin/bash to #!/usr/bin/bash mangling shebang in /usr/sbin/unifi from /bin/bash to #!/usr/bin/bash Processing files: unifi-5.10.19-2.fc30.x86_64 brp-mangle-shebangs on arm build has a Segmentation fault so doesn't mangle the bash shebang, please file the issue against redhat-rpm-config @fedoraproject.org + /usr/lib/rpm/redhat/brp-mangle-shebangs BUILDSTDERR: /usr/lib/rpm/redhat/brp-mangle-shebangs: line 140: 2804 Done file -N --mime-type "$f" BUILDSTDERR: 2805 Segmentation fault (core dumped) | grep -q -P ".+(?=: text/)" BUILDSTDERR: /usr/lib/rpm/redhat/brp-mangle-shebangs: line 140: 2806 Done file -N --mime-type "$f" BUILDSTDERR: 2807 Illegal instruction (core dumped) | grep -q -P ".+(?=: text/)" BUILDSTDERR: /usr/lib/rpm/redhat/brp-mangle-shebangs: line 140: 2808 Done file -N --mime-type "$f" BUILDSTDERR: 2809 Segmentation fault (core dumped) | grep -q -P ".+(?=: text/)" BUILDSTDERR: /usr/lib/rpm/redhat/brp-mangle-shebangs: line 140: 2810 Done file -N --mime-type "$f" BUILDSTDERR: 2811 Segmentation fault (core dumped) | grep -q -P ".+(?=: text/)" Processing files: unifi-5.10.19-2.fc30.armv7hl Ok, the error about the noarch packaging being the problem is what confused me. The script is in the arch'ed package... Weird. |