diff options
author | John Helmert III <ajak@gentoo.org> | 2021-04-09 21:14:51 -0500 |
---|---|---|
committer | John Helmert III <ajak@gentoo.org> | 2021-04-09 21:14:51 -0500 |
commit | 1b6e4f1b6d0d8032e1aee5d54d4a8e15380b9ea4 (patch) | |
tree | 114f1b212c312c1136e18e615d4d896115191f0c /dev-libs/libcdada | |
parent | net-analyzer/pmacct: sync live (missed a hunk last time) (diff) | |
download | gentoo-1b6e4f1b6d0d8032e1aee5d54d4a8e15380b9ea4.tar.gz gentoo-1b6e4f1b6d0d8032e1aee5d54d4a8e15380b9ea4.tar.bz2 gentoo-1b6e4f1b6d0d8032e1aee5d54d4a8e15380b9ea4.zip |
dev-libs/libcdada: fix -Werror, drop static binaries
Closes: https://bugs.gentoo.org/781887
Closes: https://bugs.gentoo.org/781890
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'dev-libs/libcdada')
-rw-r--r-- | dev-libs/libcdada/files/libcdada-0.3.4-Werror.patch | 24 | ||||
-rw-r--r-- | dev-libs/libcdada/libcdada-0.3.4-r1.ebuild (renamed from dev-libs/libcdada/libcdada-0.3.4.ebuild) | 6 |
2 files changed, 27 insertions, 3 deletions
diff --git a/dev-libs/libcdada/files/libcdada-0.3.4-Werror.patch b/dev-libs/libcdada/files/libcdada-0.3.4-Werror.patch new file mode 100644 index 000000000000..94ceb4502318 --- /dev/null +++ b/dev-libs/libcdada/files/libcdada-0.3.4-Werror.patch @@ -0,0 +1,24 @@ +diff --git a/configure.ac b/configure.ac +index f2c4dde..fbde89c 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -4,7 +4,7 @@ AC_INIT(LIBCDADA, m4_esyscmd_s(cat VERSION), marcdevel@gmail.com, libcdada, http + AC_CONFIG_AUX_DIR([build-aux]) + AC_CONFIG_MACRO_DIR([m4]) + +-AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) ++AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) + + AC_GNU_SOURCE + +@@ -24,8 +24,8 @@ LT_INIT + AC_ENABLE_STATIC + + # Some useful default flags +-CFLAGS="-std=gnu89 -Werror -Wall $CFLAGS" +-CXXFLAGS="-Werror -Wall $CXXFLAGS" ++CFLAGS="-std=gnu89 -Wall $CFLAGS" ++CXXFLAGS="-Wall $CXXFLAGS" + AC_DEFINE([__STDC_FORMAT_MACROS], [], [Description]) + + # Check for Python3 diff --git a/dev-libs/libcdada/libcdada-0.3.4.ebuild b/dev-libs/libcdada/libcdada-0.3.4-r1.ebuild index 13fb7ae40bad..2946275db948 100644 --- a/dev-libs/libcdada/libcdada-0.3.4.ebuild +++ b/dev-libs/libcdada/libcdada-0.3.4-r1.ebuild @@ -12,8 +12,8 @@ SRC_URI="https://github.com/msune/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}. LICENSE="BSD-2" SLOT="0" KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" + +PATCHES=( "${FILESDIR}/${PN}-${PV}-Werror.patch" ) src_prepare() { default @@ -30,5 +30,5 @@ src_configure() { src_install() { default - find "${ED}" -name '*.la' -delete || die + find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die } |