public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/shim-unsigned-aarch64] rawhide: Sync with shim-unsigned-x64
@ 2026-09-17 19:59 Andrea Bolognani
  0 siblings, 0 replies; only message in thread
From: Andrea Bolognani @ 2026-09-17 19:59 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/shim-unsigned-aarch64
            Branch : rawhide
            Commit : 07516f9a7be246e4b070a7f0bbacefd15a237384
            Author : Andrea Bolognani <abologna@redhat.com>
            Date   : 2026-08-04T15:23:04+02:00
            Stats  : +27/-23 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/shim-unsigned-aarch64/c/07516f9a7be246e4b070a7f0bbacefd15a237384?branch=rawhide

            Log:
            Sync with shim-unsigned-x64

Drop rhtest.cer (no longer used since c091e7cac740) and
the 'build' script (the Fedora ARM Koji is no longer a thing);
update the rest to match x86_64. No gratuitous differences
between the two packages remain.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>

---
diff --git a/.gitignore b/.gitignore
index 2f727bd..dd04a43 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,8 @@
+*~
+*.sh
 *.tar.*
-clog
 *.rpm
+.build*.log
+.*.sw?
+clog
 shim-*/

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..aa993f2
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# shim-unsigned-aarch64
+
+The shim-unsigned-aarch64 package

diff --git a/build b/build
deleted file mode 100755
index 210f549..0000000
--- a/build
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-set -e
-if [ $# -ne 1 ]; then
-	echo "usage: ./build <release>" 1>&2
-	exit 1
-fi
-arm-koji build $1 `fedpkg giturl`
-

diff --git a/rhtest.cer b/rhtest.cer
deleted file mode 100644
index 7c21c7a..0000000
Binary files a/rhtest.cer and /dev/null differ

diff --git a/shim-find-debuginfo.sh b/shim-find-debuginfo.sh
index 7e882ff..d656fc9 100755
--- a/shim-find-debuginfo.sh
+++ b/shim-find-debuginfo.sh
@@ -20,9 +20,9 @@ fi
 findsource()
 {
     (
-        cd ${RPM_BUILD_ROOT}
-        find usr/src/debug/ -type d | sed "s,^,%dir /,"
-        find usr/src/debug/ -type f | sed "s,^,/,"
+        cd "${RPM_BUILD_ROOT}"
+        find usr/src/debug/ -type d | sed -e "s,^,%dir /," | sort -u | tac
+        find usr/src/debug/ -type f | sed -e "s,^,/," | sort -u | tac
     )
 }
 
@@ -32,9 +32,12 @@ finddebug()
     declare -a dirs=()
     declare -a files=()
     declare -a excludes=()
+    declare -a tmp=()
 
-    pushd ${RPM_BUILD_ROOT} >/dev/null 2>&1
-    for x in $(find usr/lib/debug/ -type f -iname *.efi.debug); do
+    pushd "${RPM_BUILD_ROOT}" >/dev/null 2>&1
+
+    mapfile -t tmp < <(find usr/lib/debug/ -type f -iname "*.efi.debug")
+    for x in "${tmp[@]}" ; do
         if ! [ -e "${x}" ]; then
             break
         fi
@@ -57,8 +60,10 @@ finddebug()
             excludes[${#excludes[@]}]=${x%%.debug}
         fi
     done
-    for x in ${files[@]} ; do
-        declare name=$(dirname /${x})
+    for x in "${files[@]}" ; do
+        declare name
+
+        name=$(dirname "/${x}")
         while [ "${name}" != "/" ]; do
             case "${name}" in
             "/usr/lib/debug"|"/usr/lib"|"/usr")
@@ -67,24 +72,24 @@ finddebug()
                 dirs[${#dirs[@]}]=${name}
                 ;;
             esac
-            name=$(dirname ${name})
+            name=$(dirname "${name}")
         done
     done
 
     popd >/dev/null 2>&1
-    for x in ${dirs[@]} ; do
+    for x in "${dirs[@]}" ; do
         echo "%dir ${x}"
     done | sort | uniq
-    for x in ${files[@]} ; do
+    for x in "${files[@]}" ; do
         echo "/${x}"
     done | sort | uniq
-    for x in ${excludes[@]} ; do
+    for x in "${excludes[@]}" ; do
         echo "%exclude /${x}"
     done
 }
 
-findsource > build-${mainarch}/debugsource.list
-finddebug ${mainarch} > build-${mainarch}/debugfiles.list
+findsource > "build-${mainarch}/debugsource.list"
+finddebug "${mainarch}" > "build-${mainarch}/debugfiles.list"
 if [ -v altarch ]; then
-    finddebug ${altarch} > build-${altarch}/debugfiles.list
+    finddebug "${altarch}" > "build-${altarch}/debugfiles.list"
 fi

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-17 19:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-17 19:59 [rpms/shim-unsigned-aarch64] rawhide: Sync with shim-unsigned-x64 Andrea Bolognani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox