Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gnuconfig/, sys-devel/gnuconfig/files/99999999/
Date: Thu, 25 Jun 2020 22:12:08
Message-Id: 1593123015.1429748859d561e085746c8535b25b7a787bccf0.whissi@gentoo
1 commit: 1429748859d561e085746c8535b25b7a787bccf0
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 25 22:10:15 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 25 22:10:15 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14297488
7
8 sys-devel/gnuconfig: bump to new snapshot from 2020-06-21
9
10 Package-Manager: Portage-2.3.101, Repoman-2.3.22
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-devel/gnuconfig/Manifest | 1 +
14 .../0002-Add-x32-support-to-config.guess.patch | 44 ---------------
15 sys-devel/gnuconfig/gnuconfig-20200621.ebuild | 63 ++++++++++++++++++++++
16 3 files changed, 64 insertions(+), 44 deletions(-)
17
18 diff --git a/sys-devel/gnuconfig/Manifest b/sys-devel/gnuconfig/Manifest
19 index c699587ec98..e1c6b35f996 100644
20 --- a/sys-devel/gnuconfig/Manifest
21 +++ b/sys-devel/gnuconfig/Manifest
22 @@ -1 +1,2 @@
23 DIST gnuconfig-20190912.tar.bz2 58742 BLAKE2B 2d5eba2d966d8b6bb18ba9340031c3f3b96fddad7cb156103620bc8fff3d4824b3acf63e0f9046f389cbd9ce2b88348bdddd123134ca910ce18641001943e9e7 SHA512 346ab0e8938052b66b733b0251c5e1cb8d7a61e89630cebcf0039295c5a3652db0798e62b3ec44743c0ccee72d75270dc82fec43e97912c140ac0267a81f6115
24 +DIST gnuconfig-20200621.tar.bz2 58729 BLAKE2B 8be2ff224620d0d93f676951ec8dcc7a4f1bfdfcb83e2e07371aa6fdf2f08a8d0e8503aecdd55954a0246f0d4119f31b24d60d461500db07757b061c89914df4 SHA512 25778100cb6b47a4ffa8a1875d3109a8b304bf3984549b53e2cbc1e31222aa9614ce01d34451cf6545af62b843378ab217d3396535ed4389ff3e8a7ddaa948ff
25
26 diff --git a/sys-devel/gnuconfig/files/99999999/0002-Add-x32-support-to-config.guess.patch b/sys-devel/gnuconfig/files/99999999/0002-Add-x32-support-to-config.guess.patch
27 deleted file mode 100644
28 index 5a696d1c4b4..00000000000
29 --- a/sys-devel/gnuconfig/files/99999999/0002-Add-x32-support-to-config.guess.patch
30 +++ /dev/null
31 @@ -1,44 +0,0 @@
32 -From 42ebd93d96cd060141e37d9d6601ca1e7d21040d Mon Sep 17 00:00:00 2001
33 -From: "H.J. Lu" <hongjiu.lu@×××××.com>
34 -Date: Fri, 20 Dec 2013 14:36:01 -0500
35 -Subject: [PATCH] Add x32 support to config.guess
36 -
37 -GCC on Linux/x86-64 may be configured for x32:
38 -
39 -https://sites.google.com/site/x32abi/
40 -
41 -by default and the Linux/x32 target should be x86_64-VENDOR-linux-gnux32.
42 -This patch adds x32 support to config.guess. OK to install?
43 -
44 -URL: http://gcc.gnu.org/ml/gcc-patches/2012-08/msg01083.html
45 ----
46 - config.guess | 13 ++++++++++++-
47 - 1 file changed, 12 insertions(+), 1 deletion(-)
48 -
49 -diff --git a/config.guess b/config.guess
50 -index 97ad0733304d..92f16126465f 100755
51 ---- a/config.guess
52 -+++ b/config.guess
53 -@@ -1090,7 +1090,18 @@ EOF
54 - echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
55 - exit ;;
56 - x86_64:Linux:*:*)
57 -- echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
58 -+ set_cc_for_build
59 -+ X86_64_ABI=
60 -+ # If there is a compiler, see if it is configured for 32-bit objects.
61 -+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
62 -+ if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
63 -+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
64 -+ grep IS_X32 >/dev/null
65 -+ then
66 -+ X86_64_ABI=x32
67 -+ fi
68 -+ fi
69 -+ echo "$UNAME_MACHINE"-pc-linux-"$LIBC$X86_64_ABI"
70 - exit ;;
71 - xtensa*:Linux:*:*)
72 - echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
73 ---
74 -2.19.1
75 -
76
77 diff --git a/sys-devel/gnuconfig/gnuconfig-20200621.ebuild b/sys-devel/gnuconfig/gnuconfig-20200621.ebuild
78 new file mode 100644
79 index 00000000000..7eb2a8392c5
80 --- /dev/null
81 +++ b/sys-devel/gnuconfig/gnuconfig-20200621.ebuild
82 @@ -0,0 +1,63 @@
83 +# Copyright 1999-2020 Gentoo Authors
84 +# Distributed under the terms of the GNU General Public License v2
85 +
86 +EAPI="7"
87 +
88 +if [[ ${PV} == "99999999" ]] ; then
89 + EGIT_REPO_URI="https://git.savannah.gnu.org/r/config.git"
90 +
91 + inherit git-r3
92 +else
93 + SRC_URI="https://dev.gentoo.org/~whissi/dist/${PN}/${P}.tar.bz2"
94 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
95 + S="${WORKDIR}"
96 +fi
97 +
98 +DESCRIPTION="Updated config.sub and config.guess file from GNU"
99 +HOMEPAGE="https://savannah.gnu.org/projects/config"
100 +
101 +LICENSE="GPL-2"
102 +SLOT="0"
103 +IUSE=""
104 +
105 +maint_pkg_create() {
106 + cd "${S}"
107 +
108 + local ver=$(gawk '{ gsub(/-/, "", $1); print $1; exit }' ChangeLog)
109 + [[ ${#ver} != 8 ]] && die "invalid version '${ver}'"
110 +
111 + cp "${FILESDIR}"/${PV}/*.patch . || die
112 +
113 + local tar="${T}/gnuconfig-${ver}.tar.bz2"
114 + tar -jcf "${tar}" ./* || die "creating tar failed"
115 + einfo "Packaged tar now available:"
116 + einfo "$(du -b "${tar}")"
117 +}
118 +
119 +src_unpack() {
120 + if [[ ${PV} == "99999999" ]] ; then
121 + git-r3_src_unpack
122 + maint_pkg_create
123 + else
124 + unpack ${A}
125 + fi
126 +}
127 +
128 +src_prepare() {
129 + default
130 + eapply "${S}"/*.patch
131 + use elibc_uclibc && sed -i 's:linux-gnu:linux-uclibc:' testsuite/config-guess.data #180637
132 +}
133 +
134 +src_compile() { :;}
135 +
136 +src_test() {
137 + emake check
138 +}
139 +
140 +src_install() {
141 + insinto /usr/share/${PN}
142 + doins config.{sub,guess}
143 + fperms +x /usr/share/${PN}/config.{sub,guess}
144 + dodoc ChangeLog
145 +}