Package Details: uefi-shell-git 30713.edk2.stable202211.40.g1fd8d08970-1

Git Clone URL: https://aur.archlinux.org/uefi-shell-git.git (read-only, click to copy)
Package Base: uefi-shell-git
Description: UEFI Shell v2 - from Tianocore EDK2 - GIT Version
Upstream URL: https://github.com/tianocore/edk2
Licenses: BSD
Conflicts: uefi-shell, uefi-shell-svn
Provides: uefi-shell
Submitter: ka2107
Maintainer: Flubbadub
Last Packager: Flubbadub
Votes: 51
Popularity: 0.000000
First Submitted: 2015-07-22 00:17 (UTC)
Last Updated: 2022-12-13 21:11 (UTC)

Dependencies (3)

Required by (0)

Sources (6)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

Flubbadub commented on 2020-11-10 08:32 (UTC)

gesh: Thanks for the patch but I couldn't get it to apply. I could obviously apply the same changes but that would then lose your attribution. Any chance you can update the patch for the current state?

For now I applied mcmodder's suggestion which at least fixes the immediate issue.

gesh commented on 2020-11-02 22:03 (UTC) (edited on 2020-11-02 22:04 (UTC) by gesh)

Below is a patch to implement mcmodder's suggestion. I go a little further, having all module fetching managed by makepkg instead of git directly

From 9117c0006bfc42e8c55db40710640cc7beec189c Mon Sep 17 00:00:00 2001
From: Gesh <gesh@gesh.uni.cx>
Date: Mon, 2 Nov 2020 21:35:24
Subject: [PATCH] Fix build after submodulification

---
 PKGBUILD | 35 ++++++++++++++++++++++++++++++-----
 1 file changed, 30 insertions(+), 5 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index d3ba187..2362500 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -29,8 +29,8 @@ _GUID="EA4BB293-2D7F-4456-A681-1F22F42CD0BC"
 _pkgname="uefi-shell"
 pkgname="${_pkgname}-git"

-pkgver=26946.edk2.stable201903.1209.gf8dd7c7018
-pkgrel=1
+pkgver=28247.edk2.stable201903.2510.gffddac3e0f
+pkgrel=2
 pkgdesc="UEFI Shell v2 - from Tianocore EDK2 - GIT Version"
 url="https://github.com/tianocore/edk2"
 arch=('x86_64' 'i686')
@@ -45,9 +45,28 @@ provides=('uefi-shell')

 install="${_pkgname}.install"

-source=("${_TIANO_DIR_}::git+https://github.com/tianocore/edk2.git#branch=master")
-
-sha1sums=('SKIP')
+declare -A _submod_path
+_submod_path["CryptoPkg/Library/OpensslLib/openssl"]="openssl"
+_submod_path["SoftFloat"]="softfloat"
+_submod_path["UnitTestFrameworkPkg/Library/CmockaLib/cmocka"]="cmocka"
+_submod_path["MdeModulePkg/Universal/RegularExpressionDxe/oniguruma"]="oniguruma"
+_submod_path["MdeModulePkg/Library/BrotliCustomDecompressLib/brotli"]="brotli"
+_submod_path["BaseTools/Source/C/BrotliCompress/brotli"]="brotli"
+
+source=("${_TIANO_DIR_}::git+https://github.com/tianocore/edk2.git#branch=master"
+        brotli::git+https://github.com/google/brotli
+        softfloat::git+https://github.com/ucb-bar/berkeley-softfloat-3.git
+        cmocka::git+https://git.cryptomilk.org/projects/cmocka.git
+        oniguruma::git+https://github.com/kkos/oniguruma
+        openssl::git+https://github.com/openssl/openssl
+        )
+
+sha1sums=('SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP')

 pkgver() {
    cd "${srcdir}/${_TIANO_DIR_}/"
@@ -63,6 +82,12 @@ _setup_env_vars() {
 _prepare_tianocore_sources() {
    cd "${_UDK_DIR}/"

+    git submodule init
+    for _module in "${!_submod_path[@]}"; do
+        git config submodule."$_module".url "$srcdir/${_submod_path[$_module]}"
+    done
+    git submodule update
+
    msg "Cleanup UDK config files"
    rm -rf "${_UDK_DIR}/Build/" || true
    rm -rf "${_UDK_DIR}/Conf/" || true
-- 
2.29.2

mcmodder commented on 2020-05-14 17:11 (UTC)

Build fails due to non-initialized git submodules: https://github.com/tianocore/tianocore.github.io/wiki/Common-instructions#initialize-submodules https://bugzilla.tianocore.org/show_bug.cgi?id=2677

Fixes with adding git submodule update --init to _prepare_tianocore_sources()

Flubbadub commented on 2019-11-11 22:03 (UTC)

Yes, I've done that now, thanks for the suggestion. Seems sensible and it even simplifies the PKGBUILD a bit as a nice little bonus.

hardfalcon commented on 2019-11-11 09:58 (UTC)

Can you remove the python2 references, and add the normal "python" package (for python3) to the "makedepends" array? Upstream has supported python3 since February 2019: https://bugzilla.tianocore.org/show_bug.cgi?id=55

GeneArch commented on 2019-11-06 16:08 (UTC)

Thank you for adopting :)

Flubbadub commented on 2019-11-06 09:05 (UTC)

I adopted this just so that I could apply the fix suggested by GeneArch (after testing it) but I'm happy to pass it over to someone else who's interested & more knowledgeable than myself. If no one contacts me I will do my best to keep things working as expected.

GeneArch commented on 2019-10-01 18:05 (UTC) (edited on 2019-10-01 18:09 (UTC) by GeneArch)

By looking at the file src/edk2/ShellPkg/ShellPkg.dsc

It is clear 2 versions of the shell are built. The 2nd one is :

# # Build a second version of the shell with all commands integrated # ShellPkg/Application/Shell/Shell.inf { <Defines> FILE_GUID = EA4BB293-2D7F-4456-A681-1F22F42CD0BC

So this is the one we will use

i.e. the shell to rename is Shell_EA4BB293-2D7F-4456-A681-1F22F42CD0BC.efi

Which means the change to PKGBUILD is simple:

In package()

Add a variable:

GUID="EA4BB293-2D7F-4456-A681-1F22F42CD0BC"

change install to use above guid
install -D ..../Shell_${GUID}.efi" ...

d_fajardo commented on 2019-09-14 15:27 (UTC)

I am getting the same error as GeneArch. I assume we can just rename one of the efi files as Shell.efi but which one?

GeneArch commented on 2019-09-01 19:34 (UTC) (edited on 2019-09-01 19:35 (UTC) by GeneArch)

Getting Error now: src/edk2/Build/Shell/RELEASE_GCC5/X64/Shell.efi': No such file or director

Directory contains these now not Shell.efi 900 src/edk2/Build/Shell/RELEASE_GCC5/X64/Shell_7C04A583-9E3E-4f1c-AD65-E05268D0B4D1.efi 968 src/edk2/Build/Shell/RELEASE_GCC5/X64/Shell_EA4BB293-2D7F-4456-A681-1F22F42CD0BC.efi

Not sure what the difference is or if one of them is what we should now be using?

Build went fine, this error is in install phase