public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Nasrat <pnasrat@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: Patch from mitr@redhat.com Remove $RPM_BUILD_ROOT and $RPM_BUILD_DIR from
Date: Mon, 23 Nov 2026 09:22:55 GMT	[thread overview]
Message-ID: <179542577592.1.12033549358921492539.rpms-rpm-a78ea300ddb1@fedoraproject.org> (raw)

        A new commit has been pushed.

        Repo   : rpms/rpm
        Branch : pmatilai-v6
        Commit : a78ea300ddb146e1b842dba01e97ba3721d569e2
        Author : Paul Nasrat <pnasrat@fedoraproject.org>
        Date   : 2005-05-03T14:05:57+00:00
        Stats  : +17/-2 in 1 file(s)
        URL    : https://src.fedoraproject.org/rpms/rpm/c/a78ea300ddb146e1b842dba01e97ba3721d569e2?branch=pmatilai-v6

        Log:
        Patch from mitr@redhat.com Remove $RPM_BUILD_ROOT and $RPM_BUILD_DIR from
distribued .la files (#116891)+- Don't ship static version of _rpmdb.so
BuildRequires: readline-devel

---
diff --git a/rpm.spec b/rpm.spec
index de3fb16..17534da 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -20,7 +20,7 @@ Name: rpm
 %define version 4.4.1
 Version: %{version}
 %{expand: %%define rpm_version %{version}}
-Release: 11
+Release: 12
 Group: System Environment/Base
 Source: ftp://jbj.org/pub/rpm-devel/rpm-%{rpm_version}.tar.gz
 Patch0: rpm-4.4.1-posttrans.patch
@@ -44,7 +44,7 @@ Obsoletes: rpm-perl < %{version}
 BuildRequires: elfutils-libelf
 BuildRequires: elfutils-devel
 
-BuildRequires: zlib-devel
+BuildRequires: sed readline-devel zlib-devel
 
 BuildRequires: beecrypt-devel >= 4.1.2
 Requires: beecrypt >= 4.1.2
@@ -185,6 +185,15 @@ rm -rf $RPM_BUILD_ROOT
 
 make DESTDIR="$RPM_BUILD_ROOT" install
 
+# Working around breakage from the -L$(RPM_BUILD_ROOT)... -L$(DESTDIR)...
+# workaround to #132435,
+# and from linking to included zlib
+for i in librpm.la librpmbuild.la librpmdb.la librpmio.la ; do
+	sed -i -e 's~-L'"$RPM_BUILD_ROOT"'[^ ]* ~~g' \
+		-e 's~-L'"$RPM_BUILD_DIR"'[^ ]* ~~g' \
+		"$RPM_BUILD_ROOT%{__libdir}/$i"
+done
+
 %ifos linux
 
 # Save list of packages through cron
@@ -221,6 +230,7 @@ gzip -9n apidocs/man/man*/* || :
 %if %{with_python_subpackage}
   rm -f .%{__libdir}/python%{with_python_version}/site-packages/*.{a,la}
   rm -f .%{__libdir}/python%{with_python_version}/site-packages/rpm/*.{a,la}
+  rm -f .%{__libdir}/python%{with_python_version}/site-packages/rpmdb/*.{a,la}
 %endif
 }
 
@@ -519,6 +529,11 @@ exit 0
 %{__includedir}/popt.h
 
 %changelog
+* Sat Apr 30 2005 Miloslav Trmac <mitr@redhat.com> - 4.4.1-12
+- Remove $RPM_BUILD_ROOT and $RPM_BUILD_DIR from distribued .la files (#116891)
+- Don't ship static version of _rpmdb.so
+- BuildRequires: readline-devel
+
 * Wed Apr 27 2005 Paul Nasrat <pnasrat@redhat.com> - 4.4.1-11
 - Fix for (pre,postun) (#155700)
 - Erase ordering

                 reply	other threads:[~2026-11-23  9:22 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=179542577592.1.12033549358921492539.rpms-rpm-a78ea300ddb1@fedoraproject.org \
    --to=pnasrat@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