[packages/musl] keep /%{_lib}/ld-musl-%{musl_arch}.so.1 as file

glen glen at pld-linux.org
Thu Sep 1 22:44:54 CEST 2016


commit 71c3252918d99d5b88958eb0319756d227108157
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Sep 1 23:42:38 2016 +0300

    keep /%{_lib}/ld-musl-%{musl_arch}.so.1 as file
    
    note, due the way rpmbuild processes deps, the Provides: also changed
    - libc.so()(64bit)
    + ld-musl-x86_64.so.1()(64bit)
    
    which is actually good, but apps need to be re-linked
    
    examples are dumb-init-static-1.0.1-2.x86_64

 musl.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/musl.spec b/musl.spec
index 072cfcd..249198c 100644
--- a/musl.spec
+++ b/musl.spec
@@ -68,6 +68,10 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# move actual library to /lib to handle /usr mounts
+mv $RPM_BUILD_ROOT{%{_libdir}/libc.so,/%{_lib}/ld-musl-%{musl_arch}.so.1}
+ln -s /%{_lib}/ld-musl-%{musl_arch}.so.1 $RPM_BUILD_ROOT%{_libdir}/libc.so
+
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
 echo '%{_libdir}' > $RPM_BUILD_ROOT%{_sysconfdir}/ld-musl-%{musl_arch}.path
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/musl.git/commitdiff/71c3252918d99d5b88958eb0319756d227108157



More information about the pld-cvs-commit mailing list