This commit is contained in:
committed by
Git OBS Bridge
parent
98cbe2ea23
commit
77a1925059
@@ -1,7 +1,7 @@
|
||||
Index: rpm-4.4.2.3/build/files.c
|
||||
===================================================================
|
||||
--- rpm-4.4.2.3.orig/build/files.c 2009-07-24 11:38:22.000000000 +0200
|
||||
+++ rpm-4.4.2.3/build/files.c 2009-07-24 11:38:30.000000000 +0200
|
||||
--- rpm-4.4.2.3.orig/build/files.c 2009-07-27 17:59:07.000000000 +0200
|
||||
+++ rpm-4.4.2.3/build/files.c 2009-07-27 18:02:00.000000000 +0200
|
||||
@@ -28,6 +28,10 @@
|
||||
#define _RPMTE_INTERNAL
|
||||
#include "rpmte.h"
|
||||
@@ -159,7 +159,7 @@ Index: rpm-4.4.2.3/build/files.c
|
||||
|
||||
if (pkg->fileList == NULL)
|
||||
continue;
|
||||
@@ -2508,6 +2638,106 @@ int processBinaryFiles(Spec spec, int in
|
||||
@@ -2508,6 +2638,116 @@ int processBinaryFiles(Spec spec, int in
|
||||
if ((rc = processPackageFiles(spec, pkg, installSpecialDoc, test)))
|
||||
res = rc;
|
||||
|
||||
@@ -179,6 +179,7 @@ Index: rpm-4.4.2.3/build/files.c
|
||||
+ char tmp[1024];
|
||||
+ const char *name;
|
||||
+ StringBuf files = NULL;
|
||||
+ int seen_build_id = 0;
|
||||
+
|
||||
+ /* Check if the current package has files with debug info
|
||||
+ and record them. */
|
||||
@@ -207,7 +208,6 @@ Index: rpm-4.4.2.3/build/files.c
|
||||
+ files = newStringBuf();
|
||||
+ appendStringBuf(files, "%defattr(-,root,root)\n");
|
||||
+ appendStringBuf(files, "%dir /usr/lib/debug\n");
|
||||
+ appendStringBuf(files, "%dir /usr/lib/debug/.build-id\n");
|
||||
+ }
|
||||
+ /* Add the files main debug-info file. */
|
||||
+ snprintf (tmp, 1024, "/usr/lib/debug/%s.debug\n", base);
|
||||
@@ -223,6 +223,11 @@ Index: rpm-4.4.2.3/build/files.c
|
||||
+ if (getELFBuildId (name, &build_id, &build_id_size) == -1)
|
||||
+ continue;
|
||||
+
|
||||
+ /* If we see build-id links for the first time add the
|
||||
+ directory. */
|
||||
+ if (!seen_build_id)
|
||||
+ appendStringBuf(files, "%dir /usr/lib/debug/.build-id\n");
|
||||
+
|
||||
+ /* From the build-id construct the two links pointing back
|
||||
+ to the debug information file and the binary. */
|
||||
+ snprintf (tmp, 1024, "/usr/lib/debug/.build-id/%02x/",
|
||||
@@ -249,6 +254,11 @@ Index: rpm-4.4.2.3/build/files.c
|
||||
+ snprintf (tmp, 1024, "Debug information for package %s", name);
|
||||
+ headerAddEntry (dbg->header, RPMTAG_SUMMARY, RPM_STRING_TYPE,
|
||||
+ tmp, 1);
|
||||
+ snprintf (tmp, 1024, "This package provides debug information for package %s.\n"
|
||||
+ "Debug information is useful when developing applications that use this\n"
|
||||
+ "package or when debugging this package.", name);
|
||||
+ headerAddEntry (dbg->header, RPMTAG_DESCRIPTION, RPM_STRING_TYPE,
|
||||
+ tmp, 1);
|
||||
+ headerAddEntry (dbg->header, RPMTAG_GROUP, RPM_STRING_TYPE,
|
||||
+ "Development/Debug", 1);
|
||||
+ /* Inherit other tags from parent. */
|
||||
@@ -268,9 +278,9 @@ Index: rpm-4.4.2.3/build/files.c
|
||||
}
|
||||
Index: rpm-4.4.2.3/macros.in
|
||||
===================================================================
|
||||
--- rpm-4.4.2.3.orig/macros.in 2009-07-24 11:38:22.000000000 +0200
|
||||
+++ rpm-4.4.2.3/macros.in 2009-07-24 11:38:22.000000000 +0200
|
||||
@@ -173,19 +173,6 @@
|
||||
--- rpm-4.4.2.3.orig/macros.in 2009-07-27 17:59:07.000000000 +0200
|
||||
+++ rpm-4.4.2.3/macros.in 2009-07-27 17:59:07.000000000 +0200
|
||||
@@ -173,24 +173,10 @@
|
||||
# Template for debug information sub-package.
|
||||
%debug_package \
|
||||
%global __debug_package 1\
|
||||
@@ -290,10 +300,15 @@ Index: rpm-4.4.2.3/macros.in
|
||||
%package debugsource\
|
||||
Summary: Debug sources for package %{name}\
|
||||
Group: Development/Debug\
|
||||
AutoReqProv: 0\
|
||||
-Requires: %{name}-debuginfo = %{version}-%{release}\
|
||||
%description debugsource\
|
||||
This package provides debug sources for package %{name}.\
|
||||
Debug sources are useful when developing applications that use this\
|
||||
Index: rpm-4.4.2.3/scripts/find-debuginfo.sh
|
||||
===================================================================
|
||||
--- rpm-4.4.2.3.orig/scripts/find-debuginfo.sh 2009-07-24 11:38:22.000000000 +0200
|
||||
+++ rpm-4.4.2.3/scripts/find-debuginfo.sh 2009-07-24 11:38:22.000000000 +0200
|
||||
--- rpm-4.4.2.3.orig/scripts/find-debuginfo.sh 2009-07-27 17:59:06.000000000 +0200
|
||||
+++ rpm-4.4.2.3/scripts/find-debuginfo.sh 2009-07-27 17:59:10.000000000 +0200
|
||||
@@ -274,19 +274,11 @@ while read nlinks inum f; do
|
||||
fi
|
||||
done || exit
|
||||
|
Reference in New Issue
Block a user