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 86A1E1382C5 for ; Sat, 6 Mar 2021 06:28:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9110E0823; Sat, 6 Mar 2021 06:28:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 9BEE7E0823 for ; Sat, 6 Mar 2021 06:28:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 11815340EB2 for ; Sat, 6 Mar 2021 06:28:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7368C2A9 for ; Sat, 6 Mar 2021 06:28:44 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1615012116.e2969e5bc45ec484cd75e6aaf0d403a7a14044d1.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libofx/, dev-libs/libofx/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libofx/files/libofx-0.10.1-docdir.patch dev-libs/libofx/files/libofx-0.10.1-opensp-libdir.patch dev-libs/libofx/libofx-0.10.1-r1.ebuild X-VCS-Directories: dev-libs/libofx/ dev-libs/libofx/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e2969e5bc45ec484cd75e6aaf0d403a7a14044d1 X-VCS-Branch: master Date: Sat, 6 Mar 2021 06:28:44 +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: f430ed3f-84f0-47f0-aea5-b21cd54da220 X-Archives-Hash: 57c7d527b10d9df64224340df6b0ad37 commit: e2969e5bc45ec484cd75e6aaf0d403a7a14044d1 Author: Sam James gentoo org> AuthorDate: Sat Mar 6 06:26:48 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sat Mar 6 06:28:36 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2969e5b dev-libs/libofx: fix libdir for OpenSP, doc fixes * Fix libdir for OpenSP (respect --libdir) * Enable building HTML docs (we looked for Doxygen but didn't use it) * Use patches being upstreamed for respecting libdir + docdir See: https://github.com/libofx/libofx/pull/40 Closes: https://bugs.gentoo.org/693458 Signed-off-by: Sam James gentoo.org> dev-libs/libofx/files/libofx-0.10.1-docdir.patch | 41 ++++++++++++++++++++++ .../libofx/files/libofx-0.10.1-opensp-libdir.patch | 38 ++++++++++++++++++++ dev-libs/libofx/libofx-0.10.1-r1.ebuild | 18 +++++++--- 3 files changed, 93 insertions(+), 4 deletions(-) diff --git a/dev-libs/libofx/files/libofx-0.10.1-docdir.patch b/dev-libs/libofx/files/libofx-0.10.1-docdir.patch new file mode 100644 index 00000000000..f99730daa02 --- /dev/null +++ b/dev-libs/libofx/files/libofx-0.10.1-docdir.patch @@ -0,0 +1,41 @@ +https://github.com/libofx/libofx/pull/40 + +From 379745ff481f2cc99f96836de0307b8074bf0788 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sat, 6 Mar 2021 06:09:11 +0000 +Subject: [PATCH] Makefile.am, doc/Makefile.am: don't override docdir + +'docdir' is already provided by autotools. By not overriding it, +we allow the directory to be easily overriden at build time. + +By default, docdir is /usr/share/doc/libofx, so no change! + +e.g. In Gentoo, we prefer to use --docdir=/usr/share/doc/${PF} +where ${PF} represents the upstream version combined with any +internal distribution changes made. + +Signed-off-by: Sam James + +--- a/Makefile.am ++++ b/Makefile.am +@@ -6,8 +6,6 @@ endif + DIST_SUBDIRS = m4 inc dtd lib doc . ofx2qif ofxdump ofxconnect + SUBDIRS = m4 inc dtd lib doc . ofx2qif ofxdump $(MAYBE_OFXCONNECT) + +-docdir = $(datadir)/doc/libofx +- + doc_DATA = \ + AUTHORS \ + COPYING \ +diff --git a/doc/Makefile.am b/doc/Makefile.am +index 23e9d34..bd0a04d 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -1,7 +1,5 @@ + SUBDIRS = + +-docdir = ${prefix}/share/doc/libofx +- + EXTRA_DIST = \ + doxygen.cfg \ + ofx_sample_files \ diff --git a/dev-libs/libofx/files/libofx-0.10.1-opensp-libdir.patch b/dev-libs/libofx/files/libofx-0.10.1-opensp-libdir.patch new file mode 100644 index 00000000000..548d0ec9cff --- /dev/null +++ b/dev-libs/libofx/files/libofx-0.10.1-opensp-libdir.patch @@ -0,0 +1,38 @@ +https://github.com/libofx/libofx/pull/40 + +From a8f262bf557f4d49e8dbdf4e1082879020b7c7b9 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sat, 6 Mar 2021 05:57:49 +0000 +Subject: [PATCH] configure.ac: Respect --libdir for OpenSP + +When searching for OpenSP, we want to use +the libdir passed in to autotools (--libdir) +to ensure that we find the library +for the correct ABI. + +It is possible that we pick up the wrong +copy from e.g. /usr/lib/ where a 32-bit +copy of OpenSP exists +when we're in the middle of a 64-bit build. + +Use ${libdir} to ensure we respect +any preferences/information given and +search for OpenSP in the right place. + +Bug: https://bugs.gentoo.org/693458 +Signed-off-by: Sam James + +--- a/configure.ac ++++ b/configure.ac +@@ -110,9 +110,9 @@ AC_ARG_WITH(opensp-includes, + + AC_ARG_WITH(opensp-libs, + [ --with-opensp-libs=PATH specify where to look for libosp +- - default is /usr/lib], ++ - default is /usr/lib}], + OPENSPLIBPATH="$with_opensp_libs", +- OPENSPLIBPATH="/usr/lib") ++ OPENSPLIBPATH="${libdir}") + + echo $OPENSPLIBPATH + for d in /usr/include/OpenSP /usr/local/include/OpenSP /usr/include/sp/generic /usr/local/include/sp/generic; do diff --git a/dev-libs/libofx/libofx-0.10.1-r1.ebuild b/dev-libs/libofx/libofx-0.10.1-r1.ebuild index 0db669fdea8..11e25cba6dd 100644 --- a/dev-libs/libofx/libofx-0.10.1-r1.ebuild +++ b/dev-libs/libofx/libofx-0.10.1-r1.ebuild @@ -12,13 +12,14 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0/10" KEYWORDS="amd64 ~arm64 ppc ppc64 x86" -IUSE="test" +IUSE="doc test" RESTRICT="!test? ( test )" BDEPEND=" dev-util/gengetopt sys-apps/help2man virtual/pkgconfig + doc? ( app-doc/doxygen ) test? ( app-crypt/gnupg ) " RDEPEND=" @@ -30,13 +31,16 @@ RDEPEND=" " DEPEND="${RDEPEND}" +PATCHES=( + "${FILESDIR}"/libofx-0.10.1-opensp-libdir.patch + "${FILESDIR}"/libofx-0.10.1-docdir.patch +) + src_prepare() { default # Not included in the tarball sed -i -e '/INSTALL/d' Makefile.am || die - # Use correct location for docs - sed -i -e 's:doc/libofx:doc/${PF}:' Makefile.am doc/Makefile.am || die # bug #566456 append-cxxflags -std=c++14 @@ -45,11 +49,17 @@ src_prepare() { } src_configure() { - econf --disable-static + econf \ + $(use_enable doc html-docs) \ + --disable-static } src_compile() { emake -j1 + + if use doc ; then + emake doc + fi } src_install() {