summaryrefslogtreecommitdiff
path: root/dev-libs/libax25
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-31 15:23:38 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-31 15:23:38 +0100
commita407e25d814596ca802d83102671d95e00079767 (patch)
treeb0d4824cf74ddca3ee380c618ffae855cd0d1bcd /dev-libs/libax25
parent441510fa20665b7920b149994e72b3a1cd62a813 (diff)
gentoo auto-resync : 31:05:2023 - 15:23:38
Diffstat (limited to 'dev-libs/libax25')
-rw-r--r--dev-libs/libax25/Manifest3
-rw-r--r--dev-libs/libax25/files/libax25-0.0.12_rc5-musl.patch23
-rw-r--r--dev-libs/libax25/libax25-0.0.12_rc5.ebuild10
3 files changed, 34 insertions, 2 deletions
diff --git a/dev-libs/libax25/Manifest b/dev-libs/libax25/Manifest
index 7abfc47d39e5..2d15d28c25a2 100644
--- a/dev-libs/libax25/Manifest
+++ b/dev-libs/libax25/Manifest
@@ -1,3 +1,4 @@
+AUX libax25-0.0.12_rc5-musl.patch 656 BLAKE2B 8b71801ee939f0d53c464d665023f021c720cbba92024a85f5e56a206738ceb3f50efaea09cc8721b54f14e9ad48812d6eb0e7a2c380ee92e73465c809310b44 SHA512 098e0cbaf612c2bba5020a3947b50568f65d5907ba67265e2feb6708b3f9dfc0244312a8ae9960ca1d1a1f4287e25bff0d6935668c78650e97bd3ab4b3db0ccd
DIST libax25-0.0.12-rc5.tar.xz 247072 BLAKE2B 9d39e1fc5489e9bdd78b8f5a3eb033e7561922a44de8da4c08b14a890c1d2bf24e5ee63dbc3cce4ec8195ac857948a262e40bf379341e24bfb8f1d8a4c391ab4 SHA512 2e5b46b065763a47ee1d92866ee108390661adbd0ac9ececa5abf3e34ebf3bc9c8a1d082b16fc89e0bbc868b551dd894991c687f4c753b67e533e81b80dd1da0
-EBUILD libax25-0.0.12_rc5.ebuild 561 BLAKE2B 1e127ba15af2d862e3530e358273c6243945a5ee9fd2d36f7781239cb663b29e5ffc02af479f90b5165057a42e8a0bbfa1d1400c289ab667a29dd6ee761814f6 SHA512 6659e92c9956c5115c6e6f09ab0750683612d5611b08da1181af2a57912215f5065c20ad5143edd91ff06286767f8a878568aed4b27e353a7d7ceafff6568759
+EBUILD libax25-0.0.12_rc5.ebuild 681 BLAKE2B 8e56a203dab516be855bc35df09625a39b04f899e2799565c2cfa696bcc672f8550a28338d6cdda24e8e2b792a35b2a81a48f7c014c551a99819e07d7e966f41 SHA512 2bb3ee60ae9c2b5df6c9c841124358deba99ab970805a4615f3aa7a9b8a1bc537ed4061a06cce9b563e9707fd0c4e2e78c03958cbbbf80874b93e0c33892ae79
MISC metadata.xml 256 BLAKE2B f5d5a93344d150a5211f11075344a863ec1b6b11b1ac9acb15364a05f23b7439d9688ab2a153af32e610e4ed5120cd8a044558edc48e5ee0d91f96ed9ba9ed71 SHA512 1971736573e03d6f2bbc45273991f004e8766d076ccf6369c6bf96583afe3a98665a1a0cf51cda40d678e9ef38739453837395c3f1d50c637c35d395a392ca15
diff --git a/dev-libs/libax25/files/libax25-0.0.12_rc5-musl.patch b/dev-libs/libax25/files/libax25-0.0.12_rc5-musl.patch
new file mode 100644
index 000000000000..2507d25ea83b
--- /dev/null
+++ b/dev-libs/libax25/files/libax25-0.0.12_rc5-musl.patch
@@ -0,0 +1,23 @@
+As MUSL libc does not provide netax25/ax25.h, netrom/netrom.h and
+netrose/rose.h instatll substitute files uncondiditionally. See bug #907465
+
+diff --git a/Makefile.am b/Makefile.am
+index 0ff5f37..517e084 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -7,15 +7,9 @@ libax25ioincludedir = $(includedir)
+ AM_CPPFLAGS = -DAX25_SYSCONFDIR=\""$(sysconfdir)/ax25/"\" \
+ -DAX25_LOCALSTATEDIR=\""$(localstatedir)/ax25/"\"
+
+-if !AX25_H
+ USE_LIBAX25_AX25_H = netax25/ax25.h
+-endif
+-if !NETROM_H
+ USE_LIBAX25_NETROM_H = netrom/netrom.h
+-endif
+-if !ROSE_H
+ USE_LIBAX25_ROSE_H = netrose/rose.h
+-endif
+
+ nobase_libax25include_HEADERS = \
+ netax25/axlib.h \
diff --git a/dev-libs/libax25/libax25-0.0.12_rc5.ebuild b/dev-libs/libax25/libax25-0.0.12_rc5.ebuild
index 7b1d1c34fbd9..3eea73794bff 100644
--- a/dev-libs/libax25/libax25-0.0.12_rc5.ebuild
+++ b/dev-libs/libax25/libax25-0.0.12_rc5.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_P=${PN}-$(ver_rs 3 '-')
+inherit autotools
+
DESCRIPTION="AX.25 library for hamradio applications"
HOMEPAGE="http://www.linux-ax25.org/"
SRC_URI="http://www.linux-ax25.org/pub/${PN}/${MY_P}.tar.xz"
@@ -16,6 +18,12 @@ IUSE="static-libs"
S=${WORKDIR}/${MY_P}
+src_prepare() {
+ use elibc_musl && eapply "${FILESDIR}/${P}-musl.patch"
+ eapply_user
+ eautoreconf
+}
+
src_configure() {
econf $(use_enable static-libs static)
}