Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 608572 | Differences between
and this patch

Collapse All | Expand All

(-)a/app-crypt/pesign/Manifest (+1 lines)
Line 1 Link Here
1
DIST pesign-0.108.tar.gz 96838 SHA256 2019882be0286df1c58efa8c588332106b89418a6bd0fce3de8da4ca16636986 SHA512 f72fb9c3e843341300b68e06bb153690734f6e506cdd9f0d9362c760ff48194ed1ed29e0b58a5050e7331069ad47a9902cc9e34bf616667baf84208f2b69a918 WHIRLPOOL 0af005d0b6dbdff23787c009153cae07c6907d111f57831611e85c49656e29e150ffd71683f349880cfb8975547ea3a3e655cdce31b047b355ecf097e7c7ba77
1
DIST pesign-0.108.tar.gz 96838 SHA256 2019882be0286df1c58efa8c588332106b89418a6bd0fce3de8da4ca16636986 SHA512 f72fb9c3e843341300b68e06bb153690734f6e506cdd9f0d9362c760ff48194ed1ed29e0b58a5050e7331069ad47a9902cc9e34bf616667baf84208f2b69a918 WHIRLPOOL 0af005d0b6dbdff23787c009153cae07c6907d111f57831611e85c49656e29e150ffd71683f349880cfb8975547ea3a3e655cdce31b047b355ecf097e7c7ba77
2
DIST pesign-0.112.tar.gz 107632 SHA256 df4f5459137126e2fdb06484d755a81b6ec9a7b50099dcc3088ea2d41047cd06 SHA512 9a0cd266f973fbd7bbbd23939d0be3c34dbccd9ab20941bf967ca1b18aa5bf5d2c41cdef0799399e09e7b0fc59a0b34bc660afb6da292eb1c127db2893362018 WHIRLPOOL e5f3d3801ff7df7d643e87bc851f2645931e18df140b25a7add4136db1bd89c2a8da75d8f018533d5b16ab80695740d00ac379e166993a1912ba9ad2abee6791
(-)a/app-crypt/pesign/files/pesign-0.112-fix-cli-opts.patch (+73 lines)
Line 0 Link Here
1
From 5be0515dee24308fd7e270bf2e0fb5e5a7a78f32 Mon Sep 17 00:00:00 2001
2
From: Julien Cristau <jcristau@debian.org>
3
Date: Thu, 9 Jun 2016 14:30:37 +0200
4
Subject: [PATCH 2/2] Fix command line parsing
5
6
The gettext translation domain should be passed as .arg, not .descrip,
7
otherwise popt won't process any of the command line options (it stops
8
looping over the struct poptOption array when an entry has unset
9
longName, shortName and arg).
10
11
Signed-off-by: Julien Cristau <jcristau@debian.org>
12
---
13
 src/client.c     | 2 +-
14
 src/efikeygen.c  | 2 +-
15
 src/efisiglist.c | 2 +-
16
 src/pesigcheck.c | 2 +-
17
 4 files changed, 4 insertions(+), 4 deletions(-)
18
19
diff --git a/src/client.c b/src/client.c
20
index 028419f..575c873 100644
21
--- a/src/client.c
22
+++ b/src/client.c
23
@@ -555,7 +555,7 @@ main(int argc, char *argv[])
24
 
25
 	struct poptOption options[] = {
26
 		{.argInfo = POPT_ARG_INTL_DOMAIN,
27
-		 .descrip = "pesign" },
28
+		 .arg = "pesign" },
29
 		{.longName = "token",
30
 		 .shortName = 't',
31
 		 .argInfo = POPT_ARG_STRING|POPT_ARGFLAG_SHOW_DEFAULT,
32
diff --git a/src/efikeygen.c b/src/efikeygen.c
33
index 6278849..8a515a5 100644
34
--- a/src/efikeygen.c
35
+++ b/src/efikeygen.c
36
@@ -486,7 +486,7 @@ int main(int argc, char *argv[])
37
 	poptContext optCon;
38
 	struct poptOption options[] = {
39
 		{.argInfo = POPT_ARG_INTL_DOMAIN,
40
-		 .descrip = "pesign" },
41
+		 .arg = "pesign" },
42
 		/* global nss-ish things */
43
 		{.longName = "dbdir",
44
 		 .shortName = 'd',
45
diff --git a/src/efisiglist.c b/src/efisiglist.c
46
index cd3f1ae..40d6a93 100644
47
--- a/src/efisiglist.c
48
+++ b/src/efisiglist.c
49
@@ -126,7 +126,7 @@ main(int argc, char *argv[])
50
 
51
 	struct poptOption options[] = {
52
 		{.argInfo = POPT_ARG_INTL_DOMAIN,
53
-		 .descrip = "pesign" },
54
+		 .arg = "pesign" },
55
 		{.longName = "infile",
56
 		 .shortName = 'i',
57
 		 .argInfo = POPT_ARG_STRING,
58
diff --git a/src/pesigcheck.c b/src/pesigcheck.c
59
index 1328fe9..0d49c1a 100644
60
--- a/src/pesigcheck.c
61
+++ b/src/pesigcheck.c
62
@@ -214,7 +214,7 @@ main(int argc, char *argv[])
63
 	poptContext optCon;
64
 	struct poptOption options[] = {
65
 		{.argInfo = POPT_ARG_INTL_DOMAIN,
66
-		 .descrip = "pesign" },
67
+		 .arg = "pesign" },
68
 		{.longName = "dbfile",
69
 		 .shortName = 'D',
70
 		 .argInfo = POPT_ARG_CALLBACK|POPT_CBFLAG_POST,
71
-- 
72
2.9.2
73
(-)a/app-crypt/pesign/files/pesign-0.112-fix-initializer.patch (+13 lines)
Line 0 Link Here
1
This addresses a -Werror=missing-braces build failure from GCC bug #53119.
2
3
--- a/libdpe/pe_allocspace.c
4
+++ b/libdpe/pe_allocspace.c
5
@@ -61,7 +61,7 @@
6
 	struct pe32plus_opt_hdr *opthdr = pe->state.pe32plus_exe.opthdr;
7
 
8
 	Pe_Scn *scn = NULL;
9
-	struct section_header shdr = { 0, }, tmp_shdr;
10
+	struct section_header shdr = { { 0, } }, tmp_shdr;
11
 	if (pehdr->sections < 1)
12
 		return -1;
13
 
(-)a/app-crypt/pesign/pesign-0.112.ebuild (-1 / +47 lines)
Line 0 Link Here
0
- 
1
# Copyright 1999-2017 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
4
5
EAPI=6
6
7
inherit eutils toolchain-funcs
8
9
DESCRIPTION="Tools for manipulating signed PE-COFF binaries"
10
HOMEPAGE="https://github.com/vathpela/pesign"
11
SRC_URI="https://github.com/vathpela/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
12
13
LICENSE="GPL-2"
14
SLOT="0"
15
KEYWORDS="~amd64 ~x86"
16
IUSE="libressl"
17
18
RDEPEND="
19
	dev-libs/nspr
20
	!libressl? ( dev-libs/openssl:0= )
21
	libressl? ( dev-libs/libressl:0= )
22
	sys-apps/util-linux
23
"
24
DEPEND="${RDEPEND}
25
	sys-apps/help2man
26
	sys-boot/gnu-efi
27
	sys-libs/efivar
28
	virtual/pkgconfig
29
"
30
31
PATCHES=(
32
	"${FILESDIR}"/${PN}-0.112-fix-cli-opts.patch
33
	"${FILESDIR}"/${PN}-0.112-fix-initializer.patch
34
)
35
36
src_compile() {
37
	emake CC="$(tc-getCC)"
38
}
39
40
src_install() {
41
	emake DESTDIR="${ED}" VERSION="${PVR}" install
42
	einstalldocs
43
44
	# remove some files that don't make sense for Gentoo installs
45
	rm -rf "${ED%/}/etc/" "${ED%/}/var/" \
46
	   "${ED%/}/usr/share/doc/${PF}/COPYING" || die
47
}

Return to bug 608572