Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: patches/libgpg-error/1.38/, patches/libgpg-error/1.39/, gkbuilds/
Date: Wed, 26 Aug 2020 22:54:19
Message-Id: 1598480009.0204d05b2d88f0b288d487478411b39f97546210.whissi@gentoo
1 commit: 0204d05b2d88f0b288d487478411b39f97546210
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 26 22:13:29 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 26 22:13:29 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=0204d05b
7
8 Bump libgpg-error to v1.39
9
10 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
11
12 gkbuilds/libgpg-error.gkbuild | 5 -
13 ...cross-compiling-into-a-separate-build-dir.patch | 41 -------
14 ...8-002-On-cross-build-detect-hosts-objdump.patch | 54 ----------
15 ...1.38-003-Fix-command-line-to-make-src-dir.patch | 26 -----
16 .../libgpg-error-1.38-004-add-missing-file.patch | 118 ---------------------
17 .../libgpg-error-1.36-gpg-error-config.patch | 0
18 .../libgpg-error-1.37-remove_broken_check.patch | 0
19 7 files changed, 244 deletions(-)
20
21 diff --git a/gkbuilds/libgpg-error.gkbuild b/gkbuilds/libgpg-error.gkbuild
22 index 05f81a3..9c6193b 100644
23 --- a/gkbuilds/libgpg-error.gkbuild
24 +++ b/gkbuilds/libgpg-error.gkbuild
25 @@ -2,11 +2,6 @@
26 # Distributed under the terms of the GNU General Public License v2
27
28 src_prepare() {
29 - # gen-lock-obj.sh is missing in 1.38 release tarball
30 - # and patch can't add non-existing files
31 - echo "dummy" > "${S}"/src/gen-lock-obj.sh || die
32 - chmod 0755 "${S}"/src/gen-lock-obj.sh || die
33 -
34 default
35
36 if [[ ! -f "${S}/src/syscfg/lock-obj-pub.${CHOST}.h" ]]
37
38 diff --git a/patches/libgpg-error/1.38/libgpg-error-1.38-001-fix-cross-compiling-into-a-separate-build-dir.patch b/patches/libgpg-error/1.38/libgpg-error-1.38-001-fix-cross-compiling-into-a-separate-build-dir.patch
39 deleted file mode 100644
40 index 8f40bbc..0000000
41 --- a/patches/libgpg-error/1.38/libgpg-error-1.38-001-fix-cross-compiling-into-a-separate-build-dir.patch
42 +++ /dev/null
43 @@ -1,41 +0,0 @@
44 -From 013720333c6ec1d38791689bc49ba039d98e16b3 Mon Sep 17 00:00:00 2001
45 -From: David Michael <fedora.dm0@×××××.com>
46 -Date: Mon, 1 Jun 2020 10:24:53 -0400
47 -Subject: [PATCH] build: Fix cross-compiling into a separate build dir.
48 -
49 -* configure.ac: Create the src directory before writing into it.
50 -* src/Makefile.am (EXTRA_DIST): Add gen-lock-obj.sh.
51 -
52 ---
53 -
54 -Signed-off-by: David Michael <fedora.dm0@×××××.com>
55 ----
56 - configure.ac | 1 +
57 - src/Makefile.am | 2 +-
58 - 2 files changed, 2 insertions(+), 1 deletion(-)
59 -
60 -diff --git a/configure.ac b/configure.ac
61 -index 6bd634b..1dd6489 100644
62 ---- a/configure.ac
63 -+++ b/configure.ac
64 -@@ -598,6 +598,7 @@ if test x$cross_compiling = xyes; then
65 - case $host in
66 - *-*-linux*)
67 - lock_obj_h_generated=yes
68 -+ mkdir src
69 - LOCK_ABI_VERSION=1 host=$host host_alias=$host_alias \
70 - CC=$CC OBJDUMP=$host_alias-objdump \
71 - ac_ext=$ac_ext ac_objext=$ac_objext \
72 -diff --git a/src/Makefile.am b/src/Makefile.am
73 -index 7e36d69..b2bffd2 100644
74 ---- a/src/Makefile.am
75 -+++ b/src/Makefile.am
76 -@@ -102,7 +102,7 @@ EXTRA_DIST = mkstrtable.awk err-sources.h.in err-codes.h.in \
77 - gpg-error.vers gpg-error.def.in \
78 - versioninfo.rc.in gpg-error.w32-manifest.in \
79 - gpg-error-config-test.sh gpg-error.pc.in \
80 -- $(lock_obj_pub)
81 -+ gen-lock-obj.sh $(lock_obj_pub)
82 -
83 - BUILT_SOURCES = $(srcdir)/err-sources.h $(srcdir)/err-codes.h \
84 - code-to-errno.h code-from-errno.h \
85
86 diff --git a/patches/libgpg-error/1.38/libgpg-error-1.38-002-On-cross-build-detect-hosts-objdump.patch b/patches/libgpg-error/1.38/libgpg-error-1.38-002-On-cross-build-detect-hosts-objdump.patch
87 deleted file mode 100644
88 index 2f5bd67..0000000
89 --- a/patches/libgpg-error/1.38/libgpg-error-1.38-002-On-cross-build-detect-hosts-objdump.patch
90 +++ /dev/null
91 @@ -1,54 +0,0 @@
92 -From ce97528fa3dcc58d86e18d4d8820f210a624f63d Mon Sep 17 00:00:00 2001
93 -From: NIIBE Yutaka <gniibe@××××.org>
94 -Date: Thu, 11 Jun 2020 10:19:15 +0900
95 -Subject: [PATCH] build: On cross build, detect host's objdump.
96 -
97 -* configure.ac [*-*-linux*] (CROSS_HOST_OBJDUMP): New.
98 -
99 ---
100 -
101 -To support widely, we could also use objdump configured for multiple
102 -archs which supports host's format (instead of $host_alias-objdump),
103 -like objdump in binutils-multiarch of Debian, but it's not that easy
104 -to maintain the code to determine format name from $host_alias.
105 -
106 -Or we could use eu-size in elfutils.
107 -
108 -GnuPG-bug-id: 4973
109 -Signed-off-by: NIIBE Yutaka <gniibe@××××.org>
110 ----
111 - configure.ac | 21 +++++++++++++--------
112 - 1 file changed, 13 insertions(+), 8 deletions(-)
113 -
114 -diff --git a/configure.ac b/configure.ac
115 -index 1dd6489..d5fa4b0 100644
116 ---- a/configure.ac
117 -+++ b/configure.ac
118 -@@ -597,14 +597,19 @@ fi
119 - if test x$cross_compiling = xyes; then
120 - case $host in
121 - *-*-linux*)
122 -- lock_obj_h_generated=yes
123 -- mkdir src
124 -- LOCK_ABI_VERSION=1 host=$host host_alias=$host_alias \
125 -- CC=$CC OBJDUMP=$host_alias-objdump \
126 -- ac_ext=$ac_ext ac_objext=$ac_objext \
127 -- AWK=$AWK $srcdir/src/gen-lock-obj.sh \
128 -- >src/lock-obj-pub.native.h
129 -- AC_MSG_NOTICE([generated src/lock-obj-pub.native.h])
130 -+ AC_CHECK_PROG(CROSS_HOST_OBJDUMP, [$host_alias-objdump], [yes])
131 -+ if test "$CROSS_HOST_OBJDUMP" = "yes" ; then
132 -+ lock_obj_h_generated=yes
133 -+ if test ! -d src; mkdir src; fi
134 -+ LOCK_ABI_VERSION=1 host=$host host_alias=$host_alias \
135 -+ CC=$CC OBJDUMP=$host_alias-objdump \
136 -+ ac_ext=$ac_ext ac_objext=$ac_objext \
137 -+ AWK=$AWK $srcdir/src/gen-lock-obj.sh \
138 -+ >src/lock-obj-pub.native.h
139 -+ AC_MSG_NOTICE([generated src/lock-obj-pub.native.h using $host_alias-objdump and $AWK])
140 -+ else
141 -+ force_use_syscfg=yes
142 -+ fi
143 - ;;
144 - *)
145 - force_use_syscfg=yes
146
147 diff --git a/patches/libgpg-error/1.38/libgpg-error-1.38-003-Fix-command-line-to-make-src-dir.patch b/patches/libgpg-error/1.38/libgpg-error-1.38-003-Fix-command-line-to-make-src-dir.patch
148 deleted file mode 100644
149 index 5fc7f15..0000000
150 --- a/patches/libgpg-error/1.38/libgpg-error-1.38-003-Fix-command-line-to-make-src-dir.patch
151 +++ /dev/null
152 @@ -1,26 +0,0 @@
153 -From 159e394920f6be822d771fe003498de4d93b07c3 Mon Sep 17 00:00:00 2001
154 -From: NIIBE Yutaka <gniibe@××××.org>
155 -Date: Fri, 12 Jun 2020 08:59:01 +0900
156 -Subject: [PATCH] build: Fix command-line to make 'src 'dir.
157 -
158 -* configure.ac: Mistake, then, fix it.
159 -
160 -Fixes-commit: ce97528fa3dcc58d86e18d4d8820f210a624f63d
161 -Signed-off-by: NIIBE Yutaka <gniibe@××××.org>
162 ----
163 - configure.ac | 2 +-
164 - 1 file changed, 1 insertion(+), 1 deletion(-)
165 -
166 -diff --git a/configure.ac b/configure.ac
167 -index d5fa4b0..80d24db 100644
168 ---- a/configure.ac
169 -+++ b/configure.ac
170 -@@ -600,7 +600,7 @@ if test x$cross_compiling = xyes; then
171 - AC_CHECK_PROG(CROSS_HOST_OBJDUMP, [$host_alias-objdump], [yes])
172 - if test "$CROSS_HOST_OBJDUMP" = "yes" ; then
173 - lock_obj_h_generated=yes
174 -- if test ! -d src; mkdir src; fi
175 -+ if test ! -d src; then mkdir src; fi
176 - LOCK_ABI_VERSION=1 host=$host host_alias=$host_alias \
177 - CC=$CC OBJDUMP=$host_alias-objdump \
178 - ac_ext=$ac_ext ac_objext=$ac_objext \
179
180 diff --git a/patches/libgpg-error/1.38/libgpg-error-1.38-004-add-missing-file.patch b/patches/libgpg-error/1.38/libgpg-error-1.38-004-add-missing-file.patch
181 deleted file mode 100644
182 index 36e9af1..0000000
183 --- a/patches/libgpg-error/1.38/libgpg-error-1.38-004-add-missing-file.patch
184 +++ /dev/null
185 @@ -1,118 +0,0 @@
186 -diff --git a/src/gen-lock-obj.sh b/src/gen-lock-obj.sh
187 -index 421376d..13858cf 100755
188 ---- a/src/gen-lock-obj.sh
189 -+++ b/src/gen-lock-obj.sh
190 -@@ -1 +1,112 @@
191 --dummy
192 -+#! /bin/sh
193 -+#
194 -+# gen-lock-obj.sh - Build tool to construct the lock object.
195 -+#
196 -+# Copyright (C) 2020 g10 Code GmbH
197 -+#
198 -+# This file is part of libgpg-error.
199 -+#
200 -+# libgpg-error is free software; you can redistribute it and/or
201 -+# modify it under the terms of the GNU Lesser General Public License
202 -+# as published by the Free Software Foundation; either version 2.1 of
203 -+# the License, or (at your option) any later version.
204 -+#
205 -+# libgpg-error is distributed in the hope that it will be useful, but
206 -+# WITHOUT ANY WARRANTY; without even the implied warranty of
207 -+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
208 -+# Lesser General Public License for more details.
209 -+#
210 -+# You should have received a copy of the GNU Lesser General Public
211 -+# License along with this program; if not, see <https://www.gnu.org/licenses/>.
212 -+#
213 -+
214 -+#
215 -+# Following variables should be defined to invoke this script
216 -+#
217 -+# CC
218 -+# OBJDUMP
219 -+# AWK
220 -+# ac_ext
221 -+# ac_object
222 -+# host
223 -+# LOCK_ABI_VERSION
224 -+#
225 -+# An example:
226 -+#
227 -+# LOCK_ABI_VERSION=1 host=x86_64-pc-linux-gnu host_alias=x86_64-linux-gnu \
228 -+# CC=$host_alias-gcc OBJDUMP=$host_alias-objdump ac_ext=c ac_objext=o \
229 -+# AWK=gawk ./gen-lock-obj.sh
230 -+#
231 -+
232 -+AWK_VERSION_OUTPUT=$($AWK 'BEGIN { print PROCINFO["version"] }')
233 -+if test -n "$AWK_VERSION_OUTPUT"; then
234 -+ # It's GNU awk, which supports PROCINFO.
235 -+ AWK_OPTION=--non-decimal-data
236 -+fi
237 -+
238 -+cat <<'EOF' >conftest.$ac_ext
239 -+#include <pthread.h>
240 -+pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER;
241 -+EOF
242 -+
243 -+if $CC -c conftest.$ac_ext; then :
244 -+ ac_mtx_size=$($OBJDUMP -j .bss -t conftest.$ac_objext \
245 -+ | $AWK $AWK_OPTION '
246 -+/mtx$/ { mtx_size = int("0x" $5) }
247 -+END { print mtx_size }')
248 -+else
249 -+ echo "Can't determine mutex size"
250 -+ exit 1
251 -+fi
252 -+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
253 -+
254 -+cat <<EOF
255 -+## lock-obj-pub.$host.h
256 -+## File created by gen-lock-obj.sh - DO NOT EDIT
257 -+## To be included by mkheader into gpg-error.h
258 -+
259 -+typedef struct
260 -+{
261 -+ long _vers;
262 -+ union {
263 -+ volatile char _priv[$ac_mtx_size];
264 -+ long _x_align;
265 -+ long *_xp_align;
266 -+ } u;
267 -+} gpgrt_lock_t;
268 -+
269 -+EOF
270 -+
271 -+# FIXME: Support different alignment conditions of:
272 -+#
273 -+# USE_16BYTE_ALIGNMENT
274 -+# USE_DOUBLE_FOR_ALIGNMENT
275 -+# USE_LONG_DOUBLE_FOR_ALIGNMENT
276 -+#
277 -+
278 -+echo -n "#define GPGRT_LOCK_INITIALIZER {$LOCK_ABI_VERSION,{{"
279 -+
280 -+i=0
281 -+while test "$i" -lt $ac_mtx_size; do
282 -+ if test "$i" -ne 0 -a "$(( $i % 8 ))" -eq 0; then
283 -+ echo ' \'
284 -+ echo -n " "
285 -+ fi
286 -+ echo -n '0'
287 -+ if test "$i" -lt $(($ac_mtx_size - 1)); then
288 -+ echo -n ','
289 -+ fi
290 -+ i=$(( i + 1 ))
291 -+done
292 -+
293 -+cat <<'EOF'
294 -+}}}
295 -+##
296 -+## Local Variables:
297 -+## mode: c
298 -+## buffer-read-only: t
299 -+## End:
300 -+##
301 -+EOF
302 -+
303 -+exit 0
304
305 diff --git a/patches/libgpg-error/1.38/libgpg-error-1.36-gpg-error-config.patch b/patches/libgpg-error/1.39/libgpg-error-1.36-gpg-error-config.patch
306 similarity index 100%
307 rename from patches/libgpg-error/1.38/libgpg-error-1.36-gpg-error-config.patch
308 rename to patches/libgpg-error/1.39/libgpg-error-1.36-gpg-error-config.patch
309
310 diff --git a/patches/libgpg-error/1.38/libgpg-error-1.37-remove_broken_check.patch b/patches/libgpg-error/1.39/libgpg-error-1.37-remove_broken_check.patch
311 similarity index 100%
312 rename from patches/libgpg-error/1.38/libgpg-error-1.37-remove_broken_check.patch
313 rename to patches/libgpg-error/1.39/libgpg-error-1.37-remove_broken_check.patch