[packages/FHS] - move build-id hierarchy from rpm to FHS-debug, rel 6

baggins baggins at pld-linux.org
Sat Dec 18 10:23:14 CET 2021


commit 483f43b75cb98caba1f3be7b210707a281cab681
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Dec 18 10:22:23 2021 +0100

    - move build-id hierarchy from rpm to FHS-debug, rel 6

 FHS.spec | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/FHS.spec b/FHS.spec
index b529195..18a4ec9 100644
--- a/FHS.spec
+++ b/FHS.spec
@@ -12,7 +12,7 @@ Summary(pl.UTF-8):	Podstawowy układ katalogów systemu Linux zgodny z FHS 3.0
 Summary(tr.UTF-8):	Temel dosya sistemi yapısı
 Name:		FHS
 Version:	3.0
-Release:	5
+Release:	6
 License:	GPL
 Group:		Base
 URL:		http://refspecs.linuxfoundation.org/fhs.shtml
@@ -43,9 +43,9 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define		__spec_clean_body	%{nil}
 
 # doesn't contain any files, but we're not noarch package
-%define 	no_install_post_strip	1
-%define 	no_install_post_chrpath	1
-%define 	no_install_post_compress_modules	1
+%define		no_install_post_strip	1
+%define		no_install_post_chrpath	1
+%define		no_install_post_compress_modules	1
 
 # we have to use numeric uids/groups. see comment above
 %define		gid_uucp	14
@@ -71,6 +71,14 @@ Pakiet ten zawiera informacje o podstawowej strukturze katalogów
 systemu i praw dostępu do nich. Struktura katalogów jest zgodna z FHS
 %{version}.
 
+%package debug
+Summary:	Debug information directory hierarchy
+Group:		Development/Debug
+
+%description debug
+This package provides directory hierarchy for debug information
+contained in debuginfo rpm packages.
+
 %prep
 %setup -qcT
 cp -p %{SOURCE0} .
@@ -99,6 +107,10 @@ install -d $RPM_BUILD_ROOT{/libx32,/usr/libx32/games,/usr/local/libx32}
 install -d $RPM_BUILD_ROOT/usr/share/man/man{1,2,3,4,5,6,7,8}
 install -d $RPM_BUILD_ROOT/usr/local/share/man/man{1,2,3,4,5,6,7,8}
 
+for i in $(seq 0 255); do
+	install -d "$RPM_BUILD_ROOT$(printf '/usr/lib/.build-id/%02x' $i)"
+done
+
 > %{name}.lang
 for mloc in $(cat locale-dirs); do
 	echo "%%lang($mloc) %dir /usr/share/man/${mloc}" >> %{name}.lang
@@ -228,3 +240,8 @@ posix.chown("/var/lock", 0, %{gid_uucp})
 %dir /usr/libx32/games
 %dir /usr/local/libx32
 %endif
+
+%files debug
+%defattr(644,root,root,755)
+%dir /usr/lib/.build-id
+%dir /usr/lib/.build-id/[0-9af][0-9af]
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/FHS.git/commitdiff/483f43b75cb98caba1f3be7b210707a281cab681



More information about the pld-cvs-commit mailing list