From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 17E3113835A for ; Thu, 28 May 2020 17:09:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 201D5E0805; Thu, 28 May 2020 17:09:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F0B4EE0805 for ; Thu, 28 May 2020 17:09:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 83A2C34F080 for ; Thu, 28 May 2020 17:09:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD78E270 for ; Thu, 28 May 2020 17:09:42 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1590685742.d131fa2acad53017e0374759dd5f2f0766ecabeb.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/liborcus/, dev-libs/liborcus/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/liborcus/files/liborcus-0.15.4-bashism.patch dev-libs/liborcus/liborcus-0.15.4.ebuild dev-libs/liborcus/liborcus-9999.ebuild X-VCS-Directories: dev-libs/liborcus/files/ dev-libs/liborcus/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: d131fa2acad53017e0374759dd5f2f0766ecabeb X-VCS-Branch: master Date: Thu, 28 May 2020 17:09:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: af52c5c8-e5c4-42ba-9160-a88bed21ff7c X-Archives-Hash: 12d0bd546d35aa020d92d1a447e994c4 commit: d131fa2acad53017e0374759dd5f2f0766ecabeb Author: Andreas Sturmlechner gentoo org> AuthorDate: Thu May 28 16:52:15 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Thu May 28 17:09:02 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d131fa2a dev-libs/liborcus: Fix bashisms in configure.ac, --disable-static Reported-by: Matt Whitlock mattwhitlock.name> Closes: https://bugs.gentoo.org/723130 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Andreas Sturmlechner gentoo.org> .../liborcus/files/liborcus-0.15.4-bashism.patch | 26 ++++++++++++++++++++++ dev-libs/liborcus/liborcus-0.15.4.ebuild | 14 +++++++----- dev-libs/liborcus/liborcus-9999.ebuild | 8 +++---- 3 files changed, 38 insertions(+), 10 deletions(-) diff --git a/dev-libs/liborcus/files/liborcus-0.15.4-bashism.patch b/dev-libs/liborcus/files/liborcus-0.15.4-bashism.patch new file mode 100644 index 00000000000..cc201a5024e --- /dev/null +++ b/dev-libs/liborcus/files/liborcus-0.15.4-bashism.patch @@ -0,0 +1,26 @@ +From 7d2ae0b6e47aa0c1fc43a91300d82c5394420162 Mon Sep 17 00:00:00 2001 +From: Ryo ONODERA +Date: Sat, 11 Jan 2020 23:01:29 +0900 +Subject: [PATCH] Improve POSIX shell portability + +DO not use bash syntax. +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index bc5dc195..a854c0c9 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -322,7 +322,7 @@ AC_ARG_ENABLE([werror], + [enable_werror="$enableval"], + [enable_werror=no] + ) +-AS_IF([test x"$enable_werror" == "xyes"], [ ++AS_IF([test x"$enable_werror" = "xyes"], [ + CXXFLAGS="$CXXFLAGS -Werror" + ]) + +-- +2.26.2 + diff --git a/dev-libs/liborcus/liborcus-0.15.4.ebuild b/dev-libs/liborcus/liborcus-0.15.4.ebuild index 231fb4345b5..999baa80ea0 100644 --- a/dev-libs/liborcus/liborcus-0.15.4.ebuild +++ b/dev-libs/liborcus/liborcus-0.15.4.ebuild @@ -4,14 +4,14 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7,8} ) -inherit python-single-r1 +inherit autotools python-single-r1 DESCRIPTION="Standalone file import filter library for spreadsheet documents" HOMEPAGE="https://gitlab.com/orcus/orcus/blob/master/README.md" if [[ ${PV} == *9999* ]]; then EGIT_REPO_URI="https://gitlab.com/orcus/orcus.git" - inherit git-r3 autotools + inherit git-r3 else SRC_URI="https://kohei.us/files/orcus/src/${P}.tar.xz" KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~x86" @@ -19,7 +19,9 @@ fi LICENSE="MIT" SLOT="0/0.15" # based on SONAME of liborcus.so -IUSE="python +spreadsheet-model static-libs tools" +IUSE="python +spreadsheet-model tools" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND=" dev-libs/boost:=[zlib(+)] @@ -31,7 +33,7 @@ DEPEND="${RDEPEND} dev-util/mdds:1/1.5 " -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" +PATCHES=( "${FILESDIR}/${P}-bashism.patch" ) # bug 723130 pkg_setup() { use python && python-single-r1_pkg_setup @@ -39,15 +41,15 @@ pkg_setup() { src_prepare() { default - [[ ${PV} == *9999 ]] && eautoreconf + eautoreconf } src_configure() { local myeconfargs=( + --disable-static --disable-werror $(use_enable python) $(use_enable spreadsheet-model) - $(use_enable static-libs static) $(use_with tools) ) econf "${myeconfargs[@]}" diff --git a/dev-libs/liborcus/liborcus-9999.ebuild b/dev-libs/liborcus/liborcus-9999.ebuild index 0ae4b1aa76b..3aa2c7dcba2 100644 --- a/dev-libs/liborcus/liborcus-9999.ebuild +++ b/dev-libs/liborcus/liborcus-9999.ebuild @@ -21,7 +21,9 @@ fi LICENSE="MIT" SLOT="0/0.16" # based on SONAME of liborcus.so -IUSE="python +spreadsheet-model static-libs tools" +IUSE="python +spreadsheet-model tools" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND=" dev-libs/boost:=[zlib(+)] @@ -33,8 +35,6 @@ DEPEND="${RDEPEND} dev-util/mdds:${MDDS_SLOT} " -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - pkg_setup() { use python && python-single-r1_pkg_setup } @@ -46,10 +46,10 @@ src_prepare() { src_configure() { local myeconfargs=( + --disable-static --disable-werror $(use_enable python) $(use_enable spreadsheet-model) - $(use_enable static-libs static) $(use_with tools) ) econf "${myeconfargs[@]}"