diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-02-28 16:37:29 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-02 14:34:07 +0000 |
commit | f8bb44bde9595a130fbed44da4f261c10635fa00 (patch) | |
tree | ae91e86dad0dc05376d369ba937a2237f1361dd3 | |
parent | 580d308c46e9ec490fa48752797b78ebc5e83d58 (diff) | |
download | meta-mingw-f8bb44bde9595a130fbed44da4f261c10635fa00.tar.gz |
libgcrypt: drop 1.8.x append and patch
1.9.x no longer requires this, as the code has been
refactored into an external script that has defaults
and a guard for .git directory.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | recipes-support/libgcrypt/files/configure.ac-Set-mym4_revision-to-0-if-not-a-git-rep.patch | 46 | ||||
-rw-r--r-- | recipes-support/libgcrypt/libgcrypt_1.8.%.bbappend | 6 |
2 files changed, 0 insertions, 52 deletions
diff --git a/recipes-support/libgcrypt/files/configure.ac-Set-mym4_revision-to-0-if-not-a-git-rep.patch b/recipes-support/libgcrypt/files/configure.ac-Set-mym4_revision-to-0-if-not-a-git-rep.patch deleted file mode 100644 index b7b407a..0000000 --- a/recipes-support/libgcrypt/files/configure.ac-Set-mym4_revision-to-0-if-not-a-git-rep.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From bb6f9e18b5ccef26978f3f3ed2fe7bf3d4d498e7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Nathan Rossi <nathan@nathanrossi.com> | ||
3 | Date: Fri, 30 Dec 2016 18:02:26 +1000 | ||
4 | Subject: [PATCH] configure.ac: Set 'mym4_revision' to 0 if not a git repo | ||
5 | |||
6 | --- | ||
7 | It is possible for the source to not be located in a git repository | ||
8 | (e.g. source is from a tarball). In which case the git repository | ||
9 | information is not available. This results in the mym4_revision being an | ||
10 | empty string however this value is used in BUILD_FILEVERSION where it is | ||
11 | assumed to be 4 decimal values. Additionally BUILD_REVISION uses this | ||
12 | value and is also assumed to be non-empty. | ||
13 | |||
14 | In the case of BUILD_FILEVERSION it is used in versioninfo.rc.in, where | ||
15 | it must be populated as 4 decimal values due to the expected syntax. In | ||
16 | cases where it is not (e.g. when BUILD_FILEVERSION = '1,7,5,' a syntax | ||
17 | error is raised. | ||
18 | |||
19 | windres: versioninfo.rc.in:21: syntax error | ||
20 | |||
21 | This patch changes mym4_revision so that if the 'git rev-parse' returns | ||
22 | non-zero (e.g. not in a git repository) the value falls back to '0'. | ||
23 | This propagates as '0' to both BUILD_FILEVERSION and BUILD_REVISION. | ||
24 | |||
25 | Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> | ||
26 | Upstream-Status: Submitted | ||
27 | --- | ||
28 | configure.ac | 2 +- | ||
29 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
30 | |||
31 | diff --git a/configure.ac b/configure.ac | ||
32 | index 31c0d553fa..a3deffa6e9 100644 | ||
33 | --- a/configure.ac | ||
34 | +++ b/configure.ac | ||
35 | @@ -39,7 +39,7 @@ m4_define(mym4_version_micro, [0]) | ||
36 | m4_define(mym4_version, | ||
37 | [mym4_version_major.mym4_version_minor.mym4_version_micro]) | ||
38 | m4_define([mym4_revision], | ||
39 | - m4_esyscmd([git rev-parse --short HEAD | tr -d '\n\r'])) | ||
40 | + m4_esyscmd([(git rev-parse --short HEAD || printf '0') | tr -d '\n\r'])) | ||
41 | m4_define([mym4_revision_dec], | ||
42 | m4_esyscmd_s([echo $((0x$(echo ]mym4_revision[|head -c 4)))])) | ||
43 | m4_define([mym4_betastring], | ||
44 | -- | ||
45 | 2.11.0 | ||
46 | |||
diff --git a/recipes-support/libgcrypt/libgcrypt_1.8.%.bbappend b/recipes-support/libgcrypt/libgcrypt_1.8.%.bbappend deleted file mode 100644 index 3da0f53..0000000 --- a/recipes-support/libgcrypt/libgcrypt_1.8.%.bbappend +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | |||
2 | FILESEXTRAPATHS_prepend_mingw32 := "${THISDIR}/files:" | ||
3 | SRC_URI_append_mingw32 = " \ | ||
4 | file://configure.ac-Set-mym4_revision-to-0-if-not-a-git-rep.patch \ | ||
5 | " | ||
6 | |||