public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/glib2] cve-2026-58016-f44: - Only strip rpath at install time, not before build. Neutering libtool
@ 2026-08-11 10:34 Colin Walters
0 siblings, 0 replies; only message in thread
From: Colin Walters @ 2026-08-11 10:34 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/glib2
Branch : cve-2026-58016-f44
Commit : 8a8889de7e0d77bca1480243475c2cbc41cf8b37
Author : Colin Walters <walters@fedoraproject.org>
Date : 2010-06-23T23:51:56+00:00
Stats : +8/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/glib2/c/8a8889de7e0d77bca1480243475c2cbc41cf8b37?branch=cve-2026-58016-f44
Log:
- Only strip rpath at install time, not before build. Neutering libtool
sabotages gtk-doc, since it needs those rpaths to run an in-tree
binary.
---
diff --git a/glib2.spec b/glib2.spec
index 82ec04c..78bbc63 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -3,7 +3,7 @@
Summary: A library of handy utility functions
Name: glib2
Version: 2.25.9
-Release: 2%{?dist}
+Release: 3%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
URL: http://www.gtk.org
@@ -22,6 +22,7 @@ BuildRequires: glibc-devel
BuildRequires: zlib-devel
BuildRequires: automake autoconf libtool
BuildRequires: gtk-doc
+BuildRequires: chrpath
# required for GIO content-type support
Requires: shared-mime-info
@@ -62,10 +63,6 @@ The glib2-static package includes static libraries of the GLib library.
--enable-static \
--with-runtime-libdir=../../%{_lib}
-# remove rpaths
-sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
-sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
-
make %{?_smp_mflags}
# truncate NEWS
@@ -76,6 +73,7 @@ awk '/^Overview of Changes/ { seen+=1 }
%install
make install DESTDIR=$RPM_BUILD_ROOT
+(cd $RPM_BUILD_ROOT; find | while read f; do if file $f | grep -q ': ELF .*executable,'; then chrpath --delete $f; fi; done)
## glib2.sh and glib2.csh
./mkinstalldirs $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
@@ -165,6 +163,11 @@ gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
%{_libdir}/lib*.a
%changelog
+* Wed Jun 23 2010 Colin Walters <walters@verbum.org> - 2.25.9-3
+- Only strip rpath at install time, not before build. Neutering
+ libtool sabotages gtk-doc, since it needs those rpaths to run
+ an in-tree binary.
+
* Tue Jun 22 2010 Richard Hughes <rhughes@redhat.com> - 2.25.9-2
- Backport a patch from git master to avoid a segfault when doing the
schema file check for several GNOME projects.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-11 10:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-11 10:34 [rpms/glib2] cve-2026-58016-f44: - Only strip rpath at install time, not before build. Neutering libtool Colin Walters
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox