Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] crypto++: readd musl soname linking patch
Date: Sun, 20 Oct 2019 13:44:00 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-15639@inbox.vuxu.org> (raw)

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

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

https://github.com/Johnnynator/void-packages crypto++-fix-musl
https://github.com/void-linux/void-packages/pull/15639

crypto++: readd musl soname linking patch
None

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-crypto++-fix-musl-15639.patch --]
[-- Type: text/x-diff, Size: 2781 bytes --]

From 63e636d5b0878ce9651763f250a3e76a7b01cf3c Mon Sep 17 00:00:00 2001
From: John <johnz@posteo.net>
Date: Sun, 20 Oct 2019 13:43:34 +0200
Subject: [PATCH] crypto++: readd musl soname linking patch

---
 .../crypto++/patches/musl-soname-links.patch  | 22 +++++++++++++++++++
 srcpkgs/crypto++/template                     |  8 +++----
 2 files changed, 26 insertions(+), 4 deletions(-)
 create mode 100644 srcpkgs/crypto++/patches/musl-soname-links.patch

diff --git a/srcpkgs/crypto++/patches/musl-soname-links.patch b/srcpkgs/crypto++/patches/musl-soname-links.patch
new file mode 100644
index 00000000000..4d9b37e4c63
--- /dev/null
+++ b/srcpkgs/crypto++/patches/musl-soname-links.patch
@@ -0,0 +1,22 @@
+--- GNUmakefile	2019-10-20 13:33:45.272028979 +0200
++++ -	2019-10-20 13:37:32.987528589 +0200
+@@ -1256,7 +1256,7 @@
+ 	$(CHMOD) 0755 $(DESTDIR)$(LIBDIR)/libcryptopp.so$(SOLIB_VERSION_SUFFIX)
+ ifeq ($(HAS_SOLIB_VERSION),1)
+ 	-$(LN) libcryptopp.so$(SOLIB_VERSION_SUFFIX) $(DESTDIR)$(LIBDIR)/libcryptopp.so
+-	$(LDCONF) $(DESTDIR)$(LIBDIR)
++	-$(LN) libcryptopp.so$(SOLIB_VERSION_SUFFIX) $(DESTDIR)$(LIBDIR)/libcryptopp.so$(SOLIB_COMPAT_SUFFIX)
+ endif
+ endif
+ ifneq ($(wildcard libcryptopp.pc),)
+--- GNUmakefile-cross	2019-04-29 01:36:50.000000000 +0200
++++ -	2019-10-20 13:38:49.796656638 +0200
+@@ -732,7 +732,7 @@
+ 	$(CHMOD) 0755 $(DESTDIR)$(LIBDIR)/libcryptopp.so$(SOLIB_VERSION_SUFFIX)
+ ifeq ($(HAS_SOLIB_VERSION),1)
+ 	-$(LN) libcryptopp.so$(SOLIB_VERSION_SUFFIX) $(DESTDIR)$(LIBDIR)/libcryptopp.so
+-	$(LDCONF) $(DESTDIR)$(LIBDIR)
++	-$(LN) -sf libcryptopp.so$(SOLIB_VERSION_SUFFIX) $(DESTDIR)$(LIBDIR)/libcryptopp.so$(SOLIB_COMPAT_SUFFIX)
+ endif
+ endif
+ ifneq ($(wildcard libcryptopp.pc),)
diff --git a/srcpkgs/crypto++/template b/srcpkgs/crypto++/template
index 9fc17a0d4fd..0455de14572 100644
--- a/srcpkgs/crypto++/template
+++ b/srcpkgs/crypto++/template
@@ -4,7 +4,9 @@ version=820
 revision=1
 create_wrksrc=yes
 build_style=gnu-makefile
-make_build_target="libcryptopp.so libcryptopp.a"
+make_build_args="PREFIX=/usr"
+make_build_target="dynamic static libcryptopp.pc"
+make_install_target="install-lib"
 hostmakedepends="unzip"
 short_desc="Free C++ class library of cryptographic schemes"
 maintainer="Orphaned <orphan@voidlinux.org>"
@@ -16,15 +18,13 @@ checksum=03f0e2242e11b9d19b28d0ec5a3fa8ed5cc7b27640e6bed365744f593e858058
 CXXFLAGS="-DNDEBUG -fPIC"
 
 if [ "$XBPS_CROSS" ]; then
-	make_build_args="-f GNUmakefile-cross"
+	make_build_args+=" -f GNUmakefile-cross"
 fi
 
 post_extract() {
 	sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
 }
 post_install() {
-	vinstall ${FILESDIR}/libcrypto++.pc 644 usr/lib/pkgconfig
-	sed -e "s,@@VERSION@@,${version},g" -i ${DESTDIR}/usr/lib/pkgconfig/libcrypto++.pc
 	vlicense License.txt LICENSE
 }
 

             reply	other threads:[~2019-10-20 11:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-20 11:44 voidlinux-github [this message]
2019-10-20 12:20 ` [PR PATCH] [Updated] " voidlinux-github
2019-10-20 12:20 ` voidlinux-github
2019-10-20 12:22 ` voidlinux-github
2019-10-20 12:22 ` voidlinux-github
2019-10-20 12:38 ` [PR PATCH] [Merged]: " voidlinux-github

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-15639@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --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).