public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Matthias Clasen <mclasen@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/glib2] cve-2026-58016-f44: Keep glibconfig.h in /usr/lib
Date: Tue, 11 Aug 2026 10:33:08 GMT	[thread overview]
Message-ID: <178644438895.1.9296183417372434340.rpms-glib2-758bebdce5fd@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/glib2
Branch : cve-2026-58016-f44
Commit : 758bebdce5fd4816f2d8f2220b864d99f08ee1df
Author : Matthias Clasen <mclasen@fedoraproject.org>
Date   : 2006-05-25T14:21:04+00:00
Stats  : +36/-7 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/glib2/c/758bebdce5fd4816f2d8f2220b864d99f08ee1df?branch=cve-2026-58016-f44

Log:
Keep glibconfig.h in /usr/lib

---
diff --git a/glib-2.11.1-libdir.patch b/glib-2.11.1-libdir.patch
new file mode 100644
index 0000000..c0e0edf
--- /dev/null
+++ b/glib-2.11.1-libdir.patch
@@ -0,0 +1,29 @@
+--- glib-2.11.1/glib-2.0.pc.in.multilib	2006-05-25 10:17:11.000000000 -0400
++++ glib-2.11.1/glib-2.0.pc.in	2006-05-25 10:17:27.000000000 -0400
+@@ -11,5 +11,5 @@
+ Description: C Utility Library
+ Version: @VERSION@
+ Libs: -L${libdir} -lglib-2.0 @INTLLIBS@ @ICONV_LIBS@
+-Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include 
++Cflags: -I${includedir}/glib-2.0 -I${prefix}/lib/glib-2.0/include 
+ 
+--- glib-2.11.1/Makefile.am.multilib	2006-05-25 10:16:15.000000000 -0400
++++ glib-2.11.1/Makefile.am	2006-05-25 10:17:00.000000000 -0400
+@@ -49,7 +49,7 @@
+ 	config.h.win32		\
+ 	gtk-doc.make
+ 
+-configexecincludedir = $(libdir)/glib-2.0/include
++configexecincludedir = $(prefix)/lib/glib-2.0/include
+ #configexecinclude_DATA = glibconfig.h
+ 
+ install-exec-local: glibconfig.h
+@@ -71,7 +71,7 @@
+ 	cd $(top_builddir) && $(SHELL) ./config.status glibconfig.h
+ 	echo timestamp > stamp-gc-h
+ 
+-pkgconfigdir = $(libdir)/pkgconfig
++pkgconfigdir = $(prefix)/lib/pkgconfig
+ pkgconfig_DATA = glib-2.0.pc gobject-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc
+ 
+ $(pkgconfig_DATA): config.status

diff --git a/glib2.spec b/glib2.spec
index 365731f..a1b406c 100644
--- a/glib2.spec
+++ b/glib2.spec
@@ -3,12 +3,13 @@
 Summary: A library of handy utility functions
 Name: glib2
 Version: 2.11.1
-Release: 2
+Release: 3
 License: LGPL
 Group: System Environment/Libraries
 Source: glib-%{version}.tar.bz2
 Source2: glib2.sh
 Source3: glib2.csh
+Patch0: glib-2.11.1-libdir.patch
 Conflicts: libgnomeui <= 2.2.0
 BuildRoot: %{_tmppath}/glib-%{PACKAGE_VERSION}-root
 BuildRequires: pkgconfig >= 0.8
@@ -39,6 +40,7 @@ version 2 of the GLib library.
 
 %prep
 %setup -q -n glib-%{version}
+%patch0 -p1 -b .libdir
 
 %build
 
@@ -63,11 +65,6 @@ install -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
 
 rm -f $RPM_BUILD_ROOT%{libdir}/*.{a,la}
 
-# we install in /lib now, but the pkgconfig files still go in /usr/lib
-mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig
-mv $RPM_BUILD_ROOT%{libdir}/pkgconfig/*.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
-
-
 %find_lang glib20
 
 %clean
@@ -91,7 +88,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(-, root, root)
 
 %{libdir}/lib*.so
-%{libdir}/glib-2.0
+%{_libdir}/glib-2.0
 %{_includedir}/*
 %{_datadir}/aclocal/*
 %{_datadir}/gtk-doc/
@@ -101,6 +98,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/*
 
 %changelog
+* Thu May 25 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.1-3
+- Keep glibconfig.h in /usr/lib
+
 * Mon May 22 2006 Matthias Clasen <mclasen@redhat.com> - 2.11.1-2
 - Move glib to /lib
 

                 reply	other threads:[~2026-08-11 10:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178644438895.1.9296183417372434340.rpms-glib2-758bebdce5fd@fedoraproject.org \
    --to=mclasen@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox