I am not a developer of associated with rpm....
Just a user.
On 3/16/23 18:08, Michael Peters wrote:
Hi. I suspect these issues are with MY system and not RPM itself.
First observed with 4.18.0 but also present with 4.18.1
No earlier version was tried.
Linux From Scratch (LFS) 11.3 system I built at beginning of march and
am RPM bootstrapping.
Yikes....
It's currently a very minimal system with just the LFS stuff plus cURL
and it's dependencies (using GnuTLS) and RPM and it's dependencies.
x86_64 system but it's not multiarch (so I am setting %_lib to lib and
%_libdir to /usr/lib)
I don't do that
rpm -E %_lib
lib
rpm -E %_libdir
/usr/lib
Big issue: RPM removes the execution bit on shared object files. First
package I built was glibc and of course installing the resulting RPM
broke the system because the shared libraries were not executable.
I noticed when I add /bin/false at the end of the %install section -
the installed library and object files have the execution bit - it's
one of the post scriptlets leaving them non-exucatable.
Workaround is to explicitly set %attr(0755,root,root) on shared object
files in the %files section but obviously I want to fix why this happens.
Interestingly it does NOT remove the execution bit from executable
binaries, only shared objects (shared libraries and plugins)
I build a scratch built os's for raspberry pi
armv7l-unknown-linux-gnueabihf and aarch64-unknown-linux-gnu
I have not seen this error on any of my builds
rpm --version
RPM version 4.18.0
%files -f %{_builddir}/filelist.rpm
%defattr(-,root,root)
From working system.....
ls -hal usr/lib/crt*
-rw-r--r-- 1 root root 6.9K Feb 14 02:14 usr/lib/crt1.o
-rw-r--r-- 1 root root 2.3K Feb 14 02:14 usr/lib/crti.o
-rw-r--r-- 1 root root 1.9K Feb 14 02:14 usr/lib/crtn.o
ls -hal usr/lib/
-rw-r--r-- 1 root root 21M Feb 14 02:21 libc.a
-rw-r--r-- 1 root root 257 Feb 14 02:14 libc.so
-rwxr-xr-x 1 root root 1.5M Feb 14 02:22 libc.so.6
-rw-r--r-- 1 root root 275K Feb 14 02:21 libresolv.a
lrwxrwxrwx 1 root root 14 Feb 14 02:21 libresolv.so -> libresolv.so.2
-rwxr-xr-x 1 root root 66K Feb 14 02:22 libresolv.so.2
-rwxr-xr-x 1 root root 196K Feb 14 02:22 ld-linux-armhf.so.3
---
Second issue - everything I build gives a warning of missing build-id.
So I suspect either there is an undocumented dependency I am missing,
or a tool-chain compile-time option that wasn't used when compiling
the toolchain.
Any ideas as to what is causing that?
add this to .rpmmacro in the user home directory where you are building
It turns off build ides
%_unique_build_ids 0
%_build_id_links none
elfutils is installed (0.188) with eu- prefix on the elfutils binaries.
from my spec file:
%prep
%setup -q -n elfutils-%{version}
# remove failing test due to missing glibc debug package
sed -e 's/run-backtrace-native.sh//g' -i tests/Makefile.am
autoreconf -fiv
%build
_options=(--prefix=/usr
--sysconfdir=/etc
--program-prefix=eu-
--enable-deterministic-archives
--disable-debuginfod
--disable-libdebuginfod)
./configure "${_options[@]}"
%{make_build}
%install
%{make_install}
Thank you for any suggestions.
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list