From 34dea8e38f88007799629d0a56b12dec480b1d21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Jun 2021 14:45:01 +0100 Subject: gentoo resync : 20.06.2021 --- sys-apps/fwupd-efi/Manifest | 4 ++- .../fwupd-efi-1.0-add-genpeimg-parameter.patch | 42 ++++++++++++++++++++++ .../files/fwupd-efi-1.0-pass-genpeimg.patch | 21 +++++++++++ sys-apps/fwupd-efi/fwupd-efi-1.0.ebuild | 5 +++ 4 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 sys-apps/fwupd-efi/files/fwupd-efi-1.0-add-genpeimg-parameter.patch create mode 100644 sys-apps/fwupd-efi/files/fwupd-efi-1.0-pass-genpeimg.patch (limited to 'sys-apps/fwupd-efi') diff --git a/sys-apps/fwupd-efi/Manifest b/sys-apps/fwupd-efi/Manifest index 51dc2740f166..254a6444495b 100644 --- a/sys-apps/fwupd-efi/Manifest +++ b/sys-apps/fwupd-efi/Manifest @@ -1,3 +1,5 @@ +AUX fwupd-efi-1.0-add-genpeimg-parameter.patch 1443 BLAKE2B 75b4230924fa6338ce089344dfd1a389452c195939cf04eacb5e0e92eaa5995ead1510f3b4f341385c1cab47f2b469d32ac017bc3c888c94b9f5c4956799f8e8 SHA512 3e08031a23afd58c3f20daa54b0506b82146e0dcc4c8568b7914f2db732bdf36f22a6d951adf76ea16a54c2130a0d9d5770381d21035c047eca0672ebfb7c892 +AUX fwupd-efi-1.0-pass-genpeimg.patch 774 BLAKE2B 86b3e04192c62a87d384dfd550f13937ab6ec72ddb89d2b8b341a3934aecbd06f4d0e500d2496006c60361d96e63cf5adba115b492865c31ebe1924e9ba6b85b SHA512 2f51f988cb488a0d1e0a4812c2bb06e1c15ebe5b57e4378c2d0869ca1a975e28819feb415c917779ef8b27aba6c9f3701beb94b38eb8e34f8ed7318823c5a02c DIST fwupd-efi-1.0.tar.gz 37465 BLAKE2B 89824d2f32d618802f56ebdb67838eed2759a86556a54a9da4f303220d99fbd2465673181d3d2806f4665061746cf7faebf633d4de8249e2c3f269fe0c22b679 SHA512 fd2fde665e90f40fb8c2235f09fc17618d8cb3f87a23ef37f7940a36c4f4b0f9ccef90745bdca1dd8827f60060e5fd95c139883ce08aedb00a249f6e809703a4 -EBUILD fwupd-efi-1.0.ebuild 1069 BLAKE2B d243fc64a0a1110e777842b6343b1cb3dc893883a0220a3e4b39b37b6ae41e7286b3d900ae1d797f75bf369d90cb97a823e92b6b188a9f598e07b774451d4416 SHA512 c8b2270bd1abb5f9240f15c4524ad8c1c80ee98ba2bdf6a225755c375baf2ed0014a231698292127f0cfcb186f63190a7d9334946882df9d42d78b134c92030c +EBUILD fwupd-efi-1.0.ebuild 1171 BLAKE2B aebf9f17f7b556cc11ada1cf0e065ce373dbc54199fdd8bf996f9f105aebdd9e62fa44249767e1344e19eaff01d99554b1ca9a5be7f41bfba6503f82fa32d585 SHA512 c8202bd14c8655dc925e1b9698c049f4b682642c3279c1a7b906be2622ba1f13ae4afa76b6f5648bdcebd3af812c4d5bb6972c81fe9c790fa7258c980823c764 MISC metadata.xml 506 BLAKE2B 13136a7a9c7c6dd0da4a85eaee0fa9b2545eae59b2dc8576ac679af1ec3818a973eceb08e7c3c5fb4c4ac965bd1519ea443080a5f7bd84ec04ae3d914a75d0a8 SHA512 dbc1db78b748d1ef5b6679c696da79e4834b00844a4c39102504cdede6cb72e7de3eb7975cee65e9f86f232dd20ec0ce998586c6ace9423481056071dc08c1f3 diff --git a/sys-apps/fwupd-efi/files/fwupd-efi-1.0-add-genpeimg-parameter.patch b/sys-apps/fwupd-efi/files/fwupd-efi-1.0-add-genpeimg-parameter.patch new file mode 100644 index 000000000000..a9791b4e1144 --- /dev/null +++ b/sys-apps/fwupd-efi/files/fwupd-efi-1.0-add-genpeimg-parameter.patch @@ -0,0 +1,42 @@ +From 207e8bf4bdb8dbdf8800d4b5cbac5af746047f37 Mon Sep 17 00:00:00 2001 +From: Ross Burton +Date: Fri, 14 May 2021 14:06:31 +0100 +Subject: [PATCH] generate_binary: add genpeimg option + +Add a --genpeimg option as the meson.build uses find_program(), so the +binary could be anywhere. +--- + efi/generate_binary.py | 9 ++++++--- + 1 file changed, 6 insertions(+), 3 deletions(-) + +diff --git a/efi/generate_binary.py b/efi/generate_binary.py +index 0193e50..907af9f 100755 +--- a/efi/generate_binary.py ++++ b/efi/generate_binary.py +@@ -48,13 +48,15 @@ def _run_objcopy(args): + + + def _run_genpeimg(args): ++ if not args.genpeimg: ++ return + +- # this is okay if it does not exist +- argv = ["genpeimg", "-d", "+d", "+n", "-d", "+s", args.outfile] ++ argv = [args.genpeimg, "-d", "+d", "+n", "-d", "+s", args.outfile] + try: + subprocess.run(argv, check=True) + except FileNotFoundError as _: +- pass ++ print(str(e)) ++ sys.exit(1) + + + if __name__ == "__main__": +@@ -63,6 +65,7 @@ def _run_genpeimg(args): + parser.add_argument( + "--objcopy", default="objcopy", help="Binary file to use for objcopy" + ) ++ parser.add_argument("--genpeimg", help="Binary file to use for genpeimg") + parser.add_argument("--arch", default="x86_64", help="EFI architecture") + parser.add_argument("infile", help="Input file") + parser.add_argument("outfile", help="Output file") diff --git a/sys-apps/fwupd-efi/files/fwupd-efi-1.0-pass-genpeimg.patch b/sys-apps/fwupd-efi/files/fwupd-efi-1.0-pass-genpeimg.patch new file mode 100644 index 000000000000..7e4dd1af3294 --- /dev/null +++ b/sys-apps/fwupd-efi/files/fwupd-efi-1.0-pass-genpeimg.patch @@ -0,0 +1,21 @@ +From 321f0750ee69cc62ab609f760769d880676f712b Mon Sep 17 00:00:00 2001 +From: Ross Burton +Date: Fri, 14 May 2021 14:07:11 +0100 +Subject: [PATCH] meson: pass the found genpeimg to generate_binary + +--- + efi/meson.build | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/efi/meson.build b/efi/meson.build +index a496210..7cc1da1 100644 +--- a/efi/meson.build ++++ b/efi/meson.build +@@ -215,6 +215,7 @@ app = custom_target(efi_name, + '@INPUT@', '@OUTPUT@', + '--arch', gnu_efi_arch, + '--objcopy', efi_objcopy, ++ '--genpeimg', genpeimg.found() ? genpeimg : '' + ], + install : true, + install_dir : efi_app_location) diff --git a/sys-apps/fwupd-efi/fwupd-efi-1.0.ebuild b/sys-apps/fwupd-efi/fwupd-efi-1.0.ebuild index fc3aa3397b23..1f99eec953ed 100644 --- a/sys-apps/fwupd-efi/fwupd-efi-1.0.ebuild +++ b/sys-apps/fwupd-efi/fwupd-efi-1.0.ebuild @@ -29,6 +29,11 @@ DEPEND="sys-boot/gnu-efi" RDEPEND="!