From: "Arsen Arsenović" <arsen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/automake/
Date: Mon, 27 Mar 2023 20:40:16 +0000 (UTC) [thread overview]
Message-ID: <1679949414.d685a4e4ed92516f535b64cf7fe9f599e6ddf8aa.arsen@gentoo> (raw)
commit: d685a4e4ed92516f535b64cf7fe9f599e6ddf8aa
Author: Arsen Arsenović <arsen <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 26 12:29:11 2023 +0000
Commit: Arsen Arsenović <arsen <AT> gentoo <DOT> org>
CommitDate: Mon Mar 27 20:36:54 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d685a4e4
sys-devel/automake: Fix installing broken Info pages
This commit replaces the Info page slotting mechanism with simple
INFOPATH setting.
Closes: https://bugs.gentoo.org/902461
Closes: https://github.com/gentoo/gentoo/pull/30355
Signed-off-by: Arsen Arsenović <arsen <AT> gentoo.org>
sys-devel/automake/automake-1.11.6-r4.ebuild | 84 ++++++++++++++++++++++
...omake-9999.ebuild => automake-1.16.5-r1.ebuild} | 56 +++++++--------
sys-devel/automake/automake-9999.ebuild | 48 +++++--------
3 files changed, 125 insertions(+), 63 deletions(-)
diff --git a/sys-devel/automake/automake-1.11.6-r4.ebuild b/sys-devel/automake/automake-1.11.6-r4.ebuild
new file mode 100644
index 000000000000..9f1e6e6abe15
--- /dev/null
+++ b/sys-devel/automake/automake-1.11.6-r4.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Used to generate Makefile.in from Makefile.am"
+HOMEPAGE="https://www.gnu.org/software/automake/"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+# Use Gentoo versioning for slotting.
+SLOT="${PV:0:4}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE=""
+RESTRICT="test"
+
+RDEPEND=">=dev-lang/perl-5.6
+ >=sys-devel/automake-wrapper-10
+ >=sys-devel/autoconf-2.69:*
+ sys-devel/gnuconfig"
+DEPEND="${RDEPEND}
+ sys-apps/help2man"
+BDEPEND="app-arch/gzip"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.10-perl-5.16.patch #424453
+ "${FILESDIR}"/${PN}-1.11-install-sh-avoid-low-risk-race-in-tmp.patch
+ "${FILESDIR}"/${PN}-1.13-perl-escape-curly-bracket-r1.patch
+)
+
+src_prepare() {
+ default
+ export WANT_AUTOCONF=2.5
+ export HELP2MAN=true
+ sed -i -e "/APIVERSION=/s:=.*:=${SLOT}:" configure || die
+ export TZ="UTC" #589138
+}
+
+src_compile() {
+ # Also used in install.
+ MY_INFODIR="${EPREFIX}/usr/share/automake-${PV}/info"
+ econf --infodir="${MY_INFODIR}"
+
+ local x
+ for x in aclocal automake; do
+ help2man "perl -Ilib ${x}" > doc/${x}-${SLOT}.1
+ done
+}
+
+src_install() {
+ default
+
+ rm \
+ "${ED}"/usr/bin/{aclocal,automake} \
+ "${ED}"/usr/share/man/man1/{aclocal,automake}.1 || die
+
+ # remove all config.guess and config.sub files replacing them
+ # w/a symlink to a specific gnuconfig version
+ local x
+ for x in guess sub ; do
+ dosym ../gnuconfig/config.${x} \
+ /usr/share/${PN}-${SLOT}/config.${x}
+ done
+
+ # Avoid QA message about pre-compressed file in docs
+ local tarfile="${ED}/usr/share/doc/${PF}/amhello-1.0.tar.gz"
+ if [[ -f "${tarfile}" ]] ; then
+ gunzip "${tarfile}" || die
+ fi
+
+ pushd "${D}/${MY_INFODIR}" >/dev/null || die
+ for f in *.info*; do
+ # Install convenience aliases for versioned Automake pages.
+ ln -s "$f" "${f/./-${PV}.}" || die
+ done
+ popd >/dev/null || die
+
+ local major="$(ver_cut 1)"
+ local minor="$(ver_cut 2)"
+ local idx="$((99999-(major*1000+minor)))"
+ newenvd - "06automake${idx}" <<-EOF
+ INFOPATH="${MY_INFODIR}"
+ EOF
+}
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-1.16.5-r1.ebuild
similarity index 66%
copy from sys-devel/automake/automake-9999.ebuild
copy to sys-devel/automake/automake-1.16.5-r1.ebuild
index df5d9b7ecfc6..912c9637c563 100644
--- a/sys-devel/automake/automake-9999.ebuild
+++ b/sys-devel/automake/automake-1.16.5-r1.ebuild
@@ -15,7 +15,7 @@ else
MY_P="${P}"
SRC_URI="mirror://gnu/${PN}/${P}.tar.xz
https://alpha.gnu.org/pub/gnu/${PN}/${MY_P}.tar.xz"
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
else
MY_PV="$(ver_cut 1).$(($(ver_cut 2)-1))b"
MY_P="${PN}-${MY_PV}"
@@ -47,6 +47,12 @@ BDEPEND="
test? ( ${PYTHON_DEPS} )
"
+PATCHES=(
+ "${FILESDIR}"/automake-1.16.2-py3-compile.patch
+ "${FILESDIR}"/automake-1.16.2-fix-instmany-python.sh-test.patch
+ "${FILESDIR}"/automake-1.16.2-fix-py-compile-basedir.sh-test.patch
+)
+
pkg_setup() {
# Avoid python-any-r1_pkg_setup
:
@@ -69,42 +75,14 @@ src_prepare() {
src_configure() {
use test && python_setup
- default
-}
-
-# Slot the info pages. Do this w/out munging the source so we don't have
-# to depend on texinfo to regen things. bug #464146 (among others)
-slot_info_pages() {
- pushd "${ED}"/usr/share/info >/dev/null || die
- rm -f dir
-
- # Rewrite all the references to other pages.
- # before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4.
- # after: * aclocal-invocation v1.13: (automake-1.13)aclocal Invocation. Generating aclocal.m4.
- local p pages=( *.info ) args=()
- for p in "${pages[@]/%.info}" ; do
- args+=(
- -e "/START-INFO-DIR-ENTRY/,/END-INFO-DIR-ENTRY/s|: (${p})| v${SLOT}&|"
- -e "s:(${p}):(${p}-${SLOT}):g"
- )
- done
- sed -i "${args[@]}" * || die
-
- # Rewrite all the file references, and rename them in the process.
- local f d
- for f in * ; do
- d=${f/.info/-${SLOT}.info}
- mv "${f}" "${d}" || die
- sed -i -e "s:${f}:${d}:g" * || die
- done
-
- popd >/dev/null || die
+ # Also used in install.
+ MY_INFODIR="${EPREFIX}/usr/share/automake-${PV}/info"
+ econf --infodir="${MY_INFODIR}"
}
src_install() {
default
- slot_info_pages
rm "${ED}"/usr/share/aclocal/README || die
rmdir "${ED}"/usr/share/aclocal || die
rm \
@@ -124,4 +102,18 @@ src_install() {
if [[ -f "${tarfile}" ]] ; then
gunzip "${tarfile}" || die
fi
+
+ pushd "${D}/${MY_INFODIR}" >/dev/null || die
+ for f in *.info*; do
+ # Install convenience aliases for versioned Automake pages.
+ ln -s "$f" "${f/./-${PV}.}" || die
+ done
+ popd >/dev/null || die
+
+ local major="$(ver_cut 1)"
+ local minor="$(ver_cut 2)"
+ local idx="$((99999-(major*1000+minor)))"
+ newenvd - "06automake${idx}" <<-EOF
+ INFOPATH="${MY_INFODIR}"
+ EOF
}
diff --git a/sys-devel/automake/automake-9999.ebuild b/sys-devel/automake/automake-9999.ebuild
index df5d9b7ecfc6..382a5bfb5943 100644
--- a/sys-devel/automake/automake-9999.ebuild
+++ b/sys-devel/automake/automake-9999.ebuild
@@ -69,42 +69,14 @@ src_prepare() {
src_configure() {
use test && python_setup
- default
-}
-
-# Slot the info pages. Do this w/out munging the source so we don't have
-# to depend on texinfo to regen things. bug #464146 (among others)
-slot_info_pages() {
- pushd "${ED}"/usr/share/info >/dev/null || die
- rm -f dir
-
- # Rewrite all the references to other pages.
- # before: * aclocal-invocation: (automake)aclocal Invocation. Generating aclocal.m4.
- # after: * aclocal-invocation v1.13: (automake-1.13)aclocal Invocation. Generating aclocal.m4.
- local p pages=( *.info ) args=()
- for p in "${pages[@]/%.info}" ; do
- args+=(
- -e "/START-INFO-DIR-ENTRY/,/END-INFO-DIR-ENTRY/s|: (${p})| v${SLOT}&|"
- -e "s:(${p}):(${p}-${SLOT}):g"
- )
- done
- sed -i "${args[@]}" * || die
-
- # Rewrite all the file references, and rename them in the process.
- local f d
- for f in * ; do
- d=${f/.info/-${SLOT}.info}
- mv "${f}" "${d}" || die
- sed -i -e "s:${f}:${d}:g" * || die
- done
-
- popd >/dev/null || die
+ # Also used in install.
+ infopath="${EPREFIX}/usr/share/automake-${PV}/info"
+ econf --infodir="${infopath}"
}
src_install() {
default
- slot_info_pages
rm "${ED}"/usr/share/aclocal/README || die
rmdir "${ED}"/usr/share/aclocal || die
rm \
@@ -124,4 +96,18 @@ src_install() {
if [[ -f "${tarfile}" ]] ; then
gunzip "${tarfile}" || die
fi
+
+ pushd "${D}/${infopath}" >/dev/null || die
+ for f in *.info*; do
+ # Install convenience aliases for versioned Automake pages.
+ ln -s "$f" "${f/./-${PV}.}" || die
+ done
+ popd >/dev/null || die
+
+ local major="$(ver_cut 1)"
+ local minor="$(ver_cut 2)"
+ local idx="$((99999-(major*1000+minor)))"
+ newenvd - "06automake${idx}" <<-EOF
+ INFOPATH="${infopath}"
+ EOF
}
next reply other threads:[~2023-03-27 20:40 UTC|newest]
Thread overview: 199+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-27 20:40 Arsen Arsenović [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-27 20:57 [gentoo-commits] repo/gentoo:master commit in: sys-devel/automake/ Sam James
2023-12-24 1:07 Sam James
2023-10-17 13:01 David Seifert
2023-10-17 12:32 Sam James
2023-10-17 12:32 Sam James
2023-10-17 12:32 Sam James
2023-10-17 12:32 Sam James
2023-10-13 11:01 David Seifert
2023-08-30 23:52 Sam James
2023-07-18 19:12 Sam James
2023-07-11 14:02 Jakov Smolić
2023-07-09 2:13 Sam James
2023-07-09 2:13 Sam James
2022-08-18 0:15 Sam James
2022-07-30 3:14 Sam James
2022-07-27 2:40 Sam James
2022-06-10 13:31 David Seifert
2022-04-16 4:47 Arthur Zamarin
2022-04-10 18:09 Arthur Zamarin
2022-04-10 18:05 Arthur Zamarin
2022-04-09 19:47 Arthur Zamarin
2022-04-09 19:31 Arthur Zamarin
2022-04-09 19:23 Arthur Zamarin
2022-04-07 20:58 Jakov Smolić
2022-04-07 20:58 Jakov Smolić
2021-10-04 3:46 Sam James
2021-10-02 15:43 Sam James
2021-09-27 4:14 Sam James
2021-09-21 16:35 Sam James
2021-09-20 0:27 Sam James
2021-09-19 6:39 Agostino Sarubbo
2021-09-18 19:51 Sam James
2021-09-18 19:51 Sam James
2021-09-18 19:48 Sam James
2021-07-27 22:36 Sam James
2021-07-27 7:07 Lars Wendler
2021-05-26 8:33 David Seifert
2021-05-25 16:55 Sam James
2021-05-22 19:23 Sergei Trofimovich
2021-05-22 15:10 Sam James
2021-05-22 1:35 Sam James
2021-05-22 1:35 Sam James
2021-05-22 1:32 Sam James
2021-05-21 19:49 Sam James
2021-04-17 14:18 Mike Gilbert
2021-04-17 14:18 Mike Gilbert
2021-02-28 21:32 Sam James
2021-02-28 21:32 Sam James
2021-01-06 17:35 Sergei Trofimovich
2021-01-06 15:32 Fabian Groffen
2020-12-27 18:18 Fabian Groffen
2020-11-24 7:43 Agostino Sarubbo
2020-11-23 7:58 Sergei Trofimovich
2020-11-23 7:52 Sergei Trofimovich
2020-11-23 4:37 Sam James
2020-11-20 13:42 Sam James
2020-11-20 13:42 Sam James
2020-11-20 13:42 Sam James
2020-11-20 1:34 Thomas Deutschmann
2020-11-19 9:36 Lars Wendler
2020-09-24 10:56 Lars Wendler
2020-05-04 17:36 Thomas Deutschmann
2020-03-22 13:03 Lars Wendler
2020-02-10 13:26 Michał Górny
2020-01-20 5:54 Andreas K. Hüttel
2020-01-20 5:04 Andreas K. Hüttel
2019-12-10 14:28 Lars Wendler
2019-11-12 9:02 Lars Wendler
2019-11-08 9:47 Lars Wendler
2019-05-05 22:44 Mike Gilbert
2019-05-05 19:06 Andreas K. Hüttel
2019-05-04 17:34 Mikle Kolyada
2019-01-17 20:47 Mikle Kolyada
2019-01-17 20:47 Mikle Kolyada
2019-01-17 20:47 Mikle Kolyada
2019-01-17 20:47 Mikle Kolyada
2019-01-16 6:05 Mart Raudsepp
2018-12-27 8:16 Sergei Trofimovich
2018-12-27 2:59 Matt Turner
2018-12-26 13:55 Sergei Trofimovich
2018-12-26 13:52 Sergei Trofimovich
2018-12-25 19:36 Sergei Trofimovich
2018-12-23 21:23 Thomas Deutschmann
2018-12-23 10:26 Mikle Kolyada
2018-03-29 3:34 Mike Frysinger
2018-03-14 15:31 Mikle Kolyada
2018-03-14 15:25 Mikle Kolyada
2018-03-13 23:53 Thomas Deutschmann
2018-03-13 17:39 Markus Meier
2018-03-13 17:39 Markus Meier
2018-03-13 17:39 Markus Meier
2018-03-13 17:39 Markus Meier
2018-03-13 17:39 Markus Meier
2018-03-13 17:39 Markus Meier
2018-03-13 17:39 Markus Meier
2018-03-12 12:16 Thomas Deutschmann
2018-03-12 9:32 Lars Wendler
2018-03-07 23:29 Sergei Trofimovich
2018-03-07 23:29 Sergei Trofimovich
2018-03-07 23:29 Sergei Trofimovich
2018-03-07 23:29 Sergei Trofimovich
2018-03-07 23:29 Sergei Trofimovich
2018-03-07 23:29 Sergei Trofimovich
2018-03-07 23:29 Sergei Trofimovich
2018-03-05 19:01 Tobias Klausmann
2018-03-05 19:00 Tobias Klausmann
2018-03-05 18:59 Tobias Klausmann
2018-03-05 18:58 Tobias Klausmann
2018-03-05 18:57 Tobias Klausmann
2018-03-05 18:57 Tobias Klausmann
2018-03-05 18:56 Tobias Klausmann
2018-03-05 0:36 Mart Raudsepp
2018-03-04 19:11 Sergei Trofimovich
2018-03-04 19:11 Sergei Trofimovich
2018-03-04 19:11 Sergei Trofimovich
2018-03-04 19:11 Sergei Trofimovich
2018-03-04 19:11 Sergei Trofimovich
2018-03-04 19:11 Sergei Trofimovich
2018-03-04 19:11 Sergei Trofimovich
2018-03-04 11:13 Sergei Trofimovich
2018-03-04 11:13 Sergei Trofimovich
2018-03-04 11:13 Sergei Trofimovich
2018-03-04 11:13 Sergei Trofimovich
2018-03-04 11:13 Sergei Trofimovich
2018-03-04 11:13 Sergei Trofimovich
2018-03-04 11:13 Sergei Trofimovich
2018-03-04 10:19 Jason Zaman
2018-03-04 10:12 Sergei Trofimovich
2018-03-04 10:12 Sergei Trofimovich
2018-03-04 10:12 Sergei Trofimovich
2018-03-04 10:12 Sergei Trofimovich
2018-03-04 10:12 Sergei Trofimovich
2018-03-04 10:12 Sergei Trofimovich
2018-03-04 10:12 Sergei Trofimovich
2018-03-01 1:32 Thomas Deutschmann
2018-03-01 1:20 Thomas Deutschmann
2018-03-01 1:02 Thomas Deutschmann
2018-02-25 22:48 Thomas Deutschmann
2018-01-11 22:50 Mike Frysinger
2018-01-05 9:39 Lars Wendler
2017-11-29 5:56 Markus Meier
2017-11-29 5:56 Markus Meier
2017-11-29 5:56 Markus Meier
2017-11-29 5:56 Markus Meier
2017-11-29 5:56 Markus Meier
2017-11-29 5:56 Markus Meier
2017-11-20 15:08 Manuel Rüger
2017-11-20 15:04 Manuel Rüger
2017-11-20 15:04 Manuel Rüger
2017-11-20 14:59 Manuel Rüger
2017-11-20 14:57 Manuel Rüger
2017-11-20 14:57 Manuel Rüger
2017-11-13 7:27 Sergei Trofimovich
2017-11-13 7:27 Sergei Trofimovich
2017-11-13 7:27 Sergei Trofimovich
2017-11-13 7:27 Sergei Trofimovich
2017-11-13 7:27 Sergei Trofimovich
2017-11-13 7:27 Sergei Trofimovich
2017-11-11 14:09 Sergei Trofimovich
2017-11-11 14:09 Sergei Trofimovich
2017-11-11 14:09 Sergei Trofimovich
2017-11-11 14:09 Sergei Trofimovich
2017-11-11 14:09 Sergei Trofimovich
2017-11-11 14:09 Sergei Trofimovich
2017-11-06 14:21 Tobias Klausmann
2017-11-06 14:21 Tobias Klausmann
2017-11-06 14:20 Tobias Klausmann
2017-11-06 14:19 Tobias Klausmann
2017-11-06 14:19 Tobias Klausmann
2017-10-24 21:09 Sergei Trofimovich
2017-10-24 21:09 Sergei Trofimovich
2017-10-24 21:09 Sergei Trofimovich
2017-10-24 21:09 Sergei Trofimovich
2017-10-24 21:09 Sergei Trofimovich
2017-10-24 21:09 Sergei Trofimovich
2017-10-23 20:38 Sergei Trofimovich
2017-10-23 20:38 Sergei Trofimovich
2017-10-23 20:38 Sergei Trofimovich
2017-10-23 20:38 Sergei Trofimovich
2017-10-23 20:38 Sergei Trofimovich
2017-10-23 20:38 Sergei Trofimovich
2017-10-22 20:33 Thomas Deutschmann
2017-08-18 15:37 Craig Andrews
2017-06-20 10:54 Lars Wendler
2017-06-04 22:13 Sergei Trofimovich
2017-05-09 16:31 Markus Meier
2017-04-30 8:53 Jeroen Roovers
2017-04-28 12:52 Agostino Sarubbo
2017-04-28 12:31 Agostino Sarubbo
2017-03-25 9:08 Fabian Groffen
2017-03-23 14:37 Fabian Groffen
2016-10-21 11:14 Lars Wendler
2016-05-19 2:57 Benda XU
2016-05-13 17:40 Mike Frysinger
2016-05-13 17:40 Mike Frysinger
2016-05-13 17:40 Mike Frysinger
2015-12-16 22:52 Mike Frysinger
2015-09-03 4:57 Matt Turner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1679949414.d685a4e4ed92516f535b64cf7fe9f599e6ddf8aa.arsen@gentoo \
--to=arsen@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox