From c73eb33d412dddb500d81401100009846352b945 Mon Sep 17 00:00:00 2001 From: "M. Vefa Bicakci" Date: Wed, 27 Oct 2021 12:45:37 -0400 Subject: [PATCH] srpm-utils: Recognize /usr/bin/mkdir as well This commit allows the code in the srpm-utils script to recognize /usr/bin/mkdir (as an alias for mkdir). In summary, some SRPMs in CentOS 8 such as iptables make use of the %{__mkdir} macro, which expands to /usr/bin/mkdir, which in turn was not recognized by srpm-utils. Verification: build-pkgs --edit now works with a version of iptables imported from CentOS 8. Signed-off-by: M. Vefa Bicakci Closes-Bug: #1948968 Change-Id: I12d20797db91fecdac409b0535632ac97bd6ad47 --- build-tools/srpm-utils | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build-tools/srpm-utils b/build-tools/srpm-utils index e9299af8..fce9ea5d 100644 --- a/build-tools/srpm-utils +++ b/build-tools/srpm-utils @@ -808,6 +808,7 @@ raw_create_tarballs_extract_script () { echo "$LINE" >> $EXTRACT_SCRIPT fi ;; + "/usr/bin/mkdir "*|\ "mkdir "*) echo "$LINE -p" >> $EXTRACT_SCRIPT ;; @@ -922,6 +923,7 @@ raw_create_tarballs_extract_script () { echo "$LINE" >> $EXTRACT_SCRIPT fi ;; + "/usr/bin/mkdir "*|\ "mkdir "*) echo "$LINE -p" >> $EXTRACT_SCRIPT ;; @@ -1061,6 +1063,7 @@ raw_create_tarballs_extract_script_post_metapatch () { "pushd "*) echo "$LINE" >> $EXTRACT_SCRIPT ;; + "/usr/bin/mkdir "*|\ "mkdir "*) echo "$LINE -p" >> $EXTRACT_SCRIPT ;; @@ -1126,6 +1129,7 @@ raw_create_tarballs_extract_script_post_metapatch () { "pushd "*) echo $LINE >> $EXTRACT_SCRIPT ;; + "/usr/bin/mkdir "*|\ "mkdir "*) echo "$LINE -p" >> $EXTRACT_SCRIPT ;;