Github messages for voidlinux
 help / color / mirror / Atom feed
From: q66 <q66@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] common/hooks/{pre,post}-install: generalized libdir hook
Date: Mon, 21 Dec 2020 19:23:20 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27328@inbox.vuxu.org> (raw)

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

There is a new pull request by q66 against master on the void-packages repository

https://github.com/void-ppc/void-packages libdir
https://github.com/void-linux/void-packages/pull/27328

common/hooks/{pre,post}-install: generalized libdir hook
this makes sure we don't have to worry about packages installing stuff in lib32/lib64, it will be automagically symlinked

if something is still left over for whatever reason, or if the opposite wordsize directory exists, that will be caught by pkglint

@Duncaen @ericonr @st3r4g

A patch file from https://github.com/void-linux/void-packages/pull/27328.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libdir-27328.patch --]
[-- Type: text/x-diff, Size: 2658 bytes --]

From 0933c2df2da1c4910599a86b7364887f6758a2e0 Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Mon, 21 Dec 2020 19:16:05 +0100
Subject: [PATCH] common/hooks/{pre,post}-install: generalized libdir hook

this makes sure we don't have to worry about packages installing
stuff in lib32/lib64, it will be automagically symlinked

if something is still left over for whatever reason, or if the
opposite wordsize directory exists, that will be caught by pkglint
---
 common/hooks/post-install/00-lib32.sh  | 8 --------
 common/hooks/post-install/00-libdir.sh | 7 +++++++
 common/hooks/pre-install/00-lib32.sh   | 9 ---------
 common/hooks/pre-install/00-libdir.sh  | 8 ++++++++
 4 files changed, 15 insertions(+), 17 deletions(-)
 delete mode 100644 common/hooks/post-install/00-lib32.sh
 create mode 100644 common/hooks/post-install/00-libdir.sh
 delete mode 100644 common/hooks/pre-install/00-lib32.sh
 create mode 100644 common/hooks/pre-install/00-libdir.sh

diff --git a/common/hooks/post-install/00-lib32.sh b/common/hooks/post-install/00-lib32.sh
deleted file mode 100644
index f5c4fa259ec..00000000000
--- a/common/hooks/post-install/00-lib32.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-# This hook removes the /usr/lib32 symlink on 32-bit systems.
-
-hook() {
-	if [ "$XBPS_TARGET_WORDSIZE" = "32" ] && \
-	   [ "${pkgname}" != "base-files" ]; then
-		rm -f ${PKGDESTDIR}/usr/lib32
-	fi
-}
diff --git a/common/hooks/post-install/00-libdir.sh b/common/hooks/post-install/00-libdir.sh
new file mode 100644
index 00000000000..21c7e35ea95
--- /dev/null
+++ b/common/hooks/post-install/00-libdir.sh
@@ -0,0 +1,7 @@
+# This hook removes the wordsize specific libdir symlink.
+
+hook() {
+	if [ "${pkgname}" != "base-files" ]; then
+		rm -f ${PKGDESTDIR}/usr/lib${XBPS_TARGET_WORDSIZE}
+	fi
+}
diff --git a/common/hooks/pre-install/00-lib32.sh b/common/hooks/pre-install/00-lib32.sh
deleted file mode 100644
index 0d97a825758..00000000000
--- a/common/hooks/pre-install/00-lib32.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-# This hook creates the /usr/lib32 symlink for 32-bit systems.
-
-hook() {
-	if [ "$XBPS_TARGET_WORDSIZE" = "32" ] && \
-	   [ "${pkgname}" != "base-files" ]; then
-		vmkdir usr/lib
-		ln -sf lib ${PKGDESTDIR}/usr/lib32
-	fi
-}
diff --git a/common/hooks/pre-install/00-libdir.sh b/common/hooks/pre-install/00-libdir.sh
new file mode 100644
index 00000000000..f19f68088ff
--- /dev/null
+++ b/common/hooks/pre-install/00-libdir.sh
@@ -0,0 +1,8 @@
+# This hook creates the wordsize specific libdir symlink.
+
+hook() {
+	if [ "${pkgname}" != "base-files" ]; then
+		vmkdir usr/lib
+		ln -sf lib ${PKGDESTDIR}/usr/lib${XBPS_TARGET_WORDSIZE}
+	fi
+}

             reply	other threads:[~2020-12-21 18:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-21 18:23 q66 [this message]
2020-12-21 18:23 ` q66
2020-12-22  0:03 ` [PR PATCH] [Merged]: " ericonr

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-27328@inbox.vuxu.org \
    --to=q66@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).