Bug 2121153
Summary: | uname -i/-p broken in mock chroots | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jerry James <loganjerry> |
Component: | fltk | Assignee: | Richard Shaw <hobbes1069> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | admiller, hobbes1069, itsme_410, jamartis, jarodwilson, kdudka, kzak, ooprala, ovasik, p, phracek, rdieter, sebastian.kisela, svashisht |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-08-30 03:09:12 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jerry James
2022-08-24 15:55:02 UTC
Thank you for pointing it out! This seems to be a bug in the Fedora packaging of fltk. It should use `uname -m` rather than `uname -i`, which has been documented as non-portable since 2015: http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=v8.24-7-g6d67649 This could be trivially fixed in the packaging of fltk: diff --git a/fltk-config.sh b/fltk-config.sh index c70522d..499c34b 100644 --- a/fltk-config.sh +++ b/fltk-config.sh @@ -1,3 +1,3 @@ #!/bin/bash -exec fltk-config-$(uname -i) "$@" +exec fltk-config-$(uname -m) "$@" diff --git a/fltk.spec b/fltk.spec index bd2053a..48a4e68 100644 --- a/fltk.spec +++ b/fltk.spec @@ -101,7 +101,7 @@ make docs -C %{_vpath_builddir} # we only apply this hack to multilib arch's %ifarch x86_64 %{ix86} ppc64 ppc s390x s390 sparc64 sparc -%global arch %(uname -i 2>/dev/null || echo undefined) +%global arch %(uname -m 2>/dev/null || echo undefined) mv $RPM_BUILD_ROOT%{_bindir}/fltk-config \ $RPM_BUILD_ROOT%{_bindir}/fltk-config-%{arch} install -p -m755 -D %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/fltk-config This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component. I wasn't aware of this bug but I noticed it separately and have already fixed and rebuilt the package for rawhide/f38. |