[Rpm-maint] [rpm-software-management/rpm] brp-strip fails with Guile objects on Fedora 35 (#1765)

lantw44 notifications at github.com
Sat Aug 28 04:39:24 UTC 2021


Guile 2.2 object files (*.go) are ELF files, but they can't be recognized by `strip` and shouldn't be stripped. Is there a way to tell RPM to skip these files when stripping? RPM used to skip `strip` on non-executable files, but it is no longer the case since commit 0ab151ab138fd4fb6d3176fd0270d9cc6f4623f3.

To reproduce it, build [my guile-bytestructures package](https://github.com/lantw44/copr-rpm-spec/blob/622aaa95b932e0976b7650e86873a44a65e740c5/guix/guile-bytestructures/guile-bytestructures.spec) on Fedora 35: 
```
make[1]: Leaving directory '/builddir/build/BUILD/bytestructures-1.0.10'
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/vector.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/utils.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/union.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/struct.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/string.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/pointer.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/numeric.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/numeric-metadata.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/numeric-data-model.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/numeric-all.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/ffi.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/explicit-endianness.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/cstring-pointer.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/bytevectors.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/bitfields.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile/base.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/guile.go'
/usr/bin/strip: Unable to recognise the format of the input file `/builddir/build/BUILDROOT/guile-bytestructures-1.0.10-1.fc35.x86_64/usr/lib64/guile/2.2/site-ccache/bytestructures/r6/bytevectors.go'
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1765
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210827/3ccc3501/attachment.html>


More information about the Rpm-maint mailing list