public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 3/6] zlib-ng: Install the compat library into /lib again
Date: Wed, 15 Jan 2025 14:57:47 +0000	[thread overview]
Message-ID: <20250115145750.1540971-3-michael.tremer@ipfire.org> (raw)
In-Reply-To: <20250115145750.1540971-1-michael.tremer@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]

This is just to remain compatible with the older version which was also
installed in /lib.

Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
 config/rootfiles/common/zlib-ng | 6 +++---
 lfs/zlib-ng                     | 8 ++++++++
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/config/rootfiles/common/zlib-ng b/config/rootfiles/common/zlib-ng
index 0e6cf18c5..be111d244 100644
--- a/config/rootfiles/common/zlib-ng
+++ b/config/rootfiles/common/zlib-ng
@@ -1,3 +1,6 @@
+#lib/libz.so
+lib/libz.so.1
+lib/libz.so.1.3.1.zlib-ng
 #usr/include/zconf-ng.h
 #usr/include/zconf.h
 #usr/include/zlib-ng.h
@@ -9,9 +12,6 @@
 usr/lib/libz-ng.so.2
 usr/lib/libz-ng.so.2.2.3
 #usr/lib/libz.a
-#usr/lib/libz.so
-usr/lib/libz.so.1
-usr/lib/libz.so.1.3.1.zlib-ng
 #usr/lib/pkgconfig
 #usr/lib/pkgconfig/zlib-ng.pc
 #usr/lib/pkgconfig/zlib.pc
diff --git a/lfs/zlib-ng b/lfs/zlib-ng
index 5310c6051..7708d3c76 100644
--- a/lfs/zlib-ng
+++ b/lfs/zlib-ng
@@ -94,5 +94,13 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	cd $(DIR_APP)/build  && make install
 	cd $(DIR_APP)/compat && make install
 
+ifneq "$(TOOLCHAIN)" "1"
+	mv -v /usr/lib/libz.so.1.3.1.zlib-ng /lib/libz.so.1.3.1.zlib-ng
+	ln -svf libz.so.1.3.1.zlib-ng /lib/libz.so.1
+	ln -svf libz.so.1.3.1.zlib-ng /lib/libz.so
+	rm -vf /usr/lib/libz.so.1
+	rm -vf /usr/lib/libz.so
+endif
+
 	@rm -rf $(DIR_APP)
 	@$(POSTBUILD)
-- 
2.39.5


  parent reply	other threads:[~2025-01-15 14:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-15 14:57 [PATCH 1/6] openssl: Dynamically link zlib Michael Tremer
2025-01-15 14:57 ` [PATCH 2/6] Revert "zlib-ng: ship /usr/lib/libz.so" Michael Tremer
2025-01-15 14:57 ` Michael Tremer [this message]
2025-01-15 14:57 ` [PATCH 4/6] zlib-ng: Don't install the static version of the library Michael Tremer
2025-01-15 14:57 ` [PATCH 5/6] core192: Remove the old version of zlib Michael Tremer
2025-01-15 14:57 ` [PATCH 6/6] slang: This package does not build the zlib module any more Michael Tremer

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=20250115145750.1540971-3-michael.tremer@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.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