From d9ec8de250ddc362ca4726cd6c055216b529177a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 30 Mar 2024 01:13:30 +0000 Subject: gentoo auto-resync : 30:03:2024 - 01:13:30 --- sci-libs/Manifest.gz | Bin 45149 -> 45146 bytes sci-libs/libticalcs2/Manifest | 3 +- ...fix-erroneous-bashism-in-configure-script.patch | 39 ++++++++++++++ sci-libs/libticalcs2/libticalcs2-1.1.9-r1.ebuild | 56 +++++++++++++++++++++ sci-libs/libticalcs2/libticalcs2-1.1.9.ebuild | 45 ----------------- 5 files changed, 97 insertions(+), 46 deletions(-) create mode 100644 sci-libs/libticalcs2/files/0001-libticalcs-fix-erroneous-bashism-in-configure-script.patch create mode 100644 sci-libs/libticalcs2/libticalcs2-1.1.9-r1.ebuild delete mode 100644 sci-libs/libticalcs2/libticalcs2-1.1.9.ebuild (limited to 'sci-libs') diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz index b063a5c6052e..42a46aadf651 100644 Binary files a/sci-libs/Manifest.gz and b/sci-libs/Manifest.gz differ diff --git a/sci-libs/libticalcs2/Manifest b/sci-libs/libticalcs2/Manifest index 1106aa5ad691..89befdb1a256 100644 --- a/sci-libs/libticalcs2/Manifest +++ b/sci-libs/libticalcs2/Manifest @@ -1,3 +1,4 @@ +AUX 0001-libticalcs-fix-erroneous-bashism-in-configure-script.patch 1543 BLAKE2B 26f68a238a669146a1ce0e6c996db155a0342a5b5f43a13c280e8ff4c18bf5e659717e0b6b8ebb622e170931677081daa6225ed13d5ed3b2fad6ef10fbe9daf7 SHA512 047c04d50bbeb4f689b11949c282f59de89f5e794a9cad105aeb9a326709adb066d15b9ce52b2f79f24bf449036f124c6de686ecc26ca967234626ebd0110be2 DIST libticalcs2-1.1.9.tar.bz2 269963 BLAKE2B 9cebc63647afe5b7e45b44f4e6a48902b9ae551d38eeb4bb2112a84988355bb7beafb27192b90c597b9613f8cb2dfb67f2b2eeb2e270b1d3fdd620f8f8d0c2cf SHA512 a55fa92df787929397f4ed3e8f922355f71c7883459ceb98fbb8d39d18f06441147188aaabf7a67083d70549443e439744e68527742e2b7b5d3d2838cc41b4da -EBUILD libticalcs2-1.1.9.ebuild 929 BLAKE2B b837566aba7ffc56df3b76897cffd83e269402e812780abab4b5ca2c6a2a943198f52c5adecfdcdcaedac3cc956bda2d1b840055c652605b4b7126647e0e80c3 SHA512 53bcbcd5017d6ed7c586295774f1a534c3cfa5ce833a282239fbed6a2893ff273760d36a29878e2d35691ad681cfb4be4909d7a9e8cfc233422c3c55a3c6215f +EBUILD libticalcs2-1.1.9-r1.ebuild 1165 BLAKE2B 85ef6dbca2879dd86152be01955ef33db076a242e494e17beafcda6dfae1a316a31ca5e372c5995dd5cc79c3a10ea4a5c47d48fbb98edb39949163f6cf0a3c27 SHA512 e17df490f31749d1e894702c96d17baecbee2bfbcc7d472403ffb6645d6adedc01782d3801492ed84ead7c884665ba550d8c21b401a6cc5cfb3f00e263585e6d MISC metadata.xml 675 BLAKE2B 33dcb166b0a41780443cbdde81bd28dc0bb9c31fd00282331dfe0e3b60dd29870e9689f815ff56a3e5f794c87130b972b503f5172ce676c9a13baa55b523d082 SHA512 87435a47e68c50cd4fdcec34cb982ac64bed198e1a1f1bfb57dd18c74a98f1eee24a78ad38616b6ef759088b4e5e33a682249df2f40ad2163937df3525835525 diff --git a/sci-libs/libticalcs2/files/0001-libticalcs-fix-erroneous-bashism-in-configure-script.patch b/sci-libs/libticalcs2/files/0001-libticalcs-fix-erroneous-bashism-in-configure-script.patch new file mode 100644 index 000000000000..7cf0f173af34 --- /dev/null +++ b/sci-libs/libticalcs2/files/0001-libticalcs-fix-erroneous-bashism-in-configure-script.patch @@ -0,0 +1,39 @@ +From e27900a6b30f35b1a586b171603047fec3f39990 Mon Sep 17 00:00:00 2001 +From: Eli Schwartz +Date: Fri, 29 Mar 2024 01:48:47 -0400 +Subject: [PATCH] libticalcs: fix erroneous bashism in configure script + +configure scripts are POSIX /bin/sh scripts and cannot have +bash-specific syntax. The `test xxx == yyy` construct with double equals +is a bash-specific alias for single equals. It does exactly the same +thing as single equals -- it provides no additional functionality, no +behavior changes, it is *exactly* the same but with an additional +alternate spelling. In exchange for doing nothing, it breaks muscle +memory when writing POSIX sh scripts and tricks developers into writing +the wrong thing. + +It should never be used under any circumstances. Ideally it would be +removed altogether from GNU bash. + +Bug: https://bugs.gentoo.org/723452 +Signed-off-by: Eli Schwartz +--- + libticalcs/trunk/configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libticalcs/trunk/configure.ac b/libticalcs/trunk/configure.ac +index 3ec257ed..42588f9f 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -180,7 +180,7 @@ esac + AC_ARG_VAR([CXX_FOR_BUILD], [C++ compiler for programs to be run on the build system]) + AC_ARG_VAR([CXXFLAGS_FOR_BUILD], [C++ compiler flags for CXX_FOR_BUILD]) + AC_MSG_CHECKING([for the host compiler]) +-if test "x$build" == "x$host" ; then ++if test "x$build" = "x$host" ; then + # Not cross-compiling. + CXX_FOR_BUILD=$CXX + CXXFLAGS_FOR_BUILD=$CXXFLAGS +-- +2.43.2 + diff --git a/sci-libs/libticalcs2/libticalcs2-1.1.9-r1.ebuild b/sci-libs/libticalcs2/libticalcs2-1.1.9-r1.ebuild new file mode 100644 index 000000000000..88acc8b83976 --- /dev/null +++ b/sci-libs/libticalcs2/libticalcs2-1.1.9-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic + +DESCRIPTION="Library for communication with TI calculators" +HOMEPAGE="http://lpg.ticalc.org/prj_tilp/" +SRC_URI="mirror://sourceforge/tilp/tilp2-linux/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" +IUSE="doc nls static-libs" + +RDEPEND=" + dev-libs/glib:2 + >=sci-libs/libticables2-1.3.3 + >=sci-libs/libticonv-1.1.3 + >=sci-libs/libtifiles2-1.1.5 + nls? ( virtual/libintl )" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" + +DOCS=( AUTHORS LOGO NEWS README ChangeLog docs/api.txt ) + +PATCHES=( + # https://github.com/debrouxl/tilibs/pull/87 + "${FILESDIR}"/0001-libticalcs-fix-erroneous-bashism-in-configure-script.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/927586 + filter-lto + + econf \ + --disable-rpath \ + $(use_enable static-libs static) \ + $(use_enable nls) +} + +src_install() { + use doc && HTML_DOCS+=( docs/html/. ) + default + find "${D}" -name '*.la' -delete || die +} diff --git a/sci-libs/libticalcs2/libticalcs2-1.1.9.ebuild b/sci-libs/libticalcs2/libticalcs2-1.1.9.ebuild deleted file mode 100644 index fe2478ec3c3a..000000000000 --- a/sci-libs/libticalcs2/libticalcs2-1.1.9.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools - -DESCRIPTION="Library for communication with TI calculators" -HOMEPAGE="http://lpg.ticalc.org/prj_tilp/" -SRC_URI="mirror://sourceforge/tilp/tilp2-linux/${P}.tar.bz2" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" -IUSE="doc nls static-libs" - -RDEPEND=" - dev-libs/glib:2 - >=sci-libs/libticables2-1.3.3 - >=sci-libs/libticonv-1.1.3 - >=sci-libs/libtifiles2-1.1.5 - nls? ( virtual/libintl )" -DEPEND="${RDEPEND} - virtual/pkgconfig - nls? ( sys-devel/gettext )" - -DOCS=( AUTHORS LOGO NEWS README ChangeLog docs/api.txt ) - -src_prepare() { - default - eautoreconf -} - -src_configure() { - econf \ - --disable-rpath \ - $(use_enable static-libs static) \ - $(use_enable nls) -} - -src_install() { - use doc && HTML_DOCS+=( docs/html/. ) - default - find "${D}" -name '*.la' -delete || die -} -- cgit v1.2.3