Skip to content

Commit 5b5f3f0

Browse files
authored
[Bash] Fix bash build break when re-build bash issue. (#9027)
This pull request will fix bash build break issue when re-build bash. #### Why I did it src/bash project using quilt to manage patches, and quilt can't apply patch correctly when cache folder '.pc' is not clean. #### How I did it Add command in make file to remove quilt cache folder before apply patches. #### How to verify it Re-build bash target target/debs/buster/bash_5.1-2_amd64.deb to validate this fix work. Pass all UT. #### Which release branch to backport (provide reason below if selected) N/A #### Description for the changelog Fix bash build break issue when re-build bash. #### A picture of a cute animal (not mandatory but encouraged)
1 parent 12b8cac commit 5b5f3f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bash/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ SHELL = /bin/bash
55
MAIN_TARGET = bash_$(BASH_VERSION_FULL)_$(CONFIGURED_ARCH).deb
66

77
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
8+
# Quilt store applied patches info in .pc folder, if this folder not clean, quilt can't apply patches correctly.
9+
rm -rf .pc
810
rm -rf bash-$(BASH_VERSION_MAJOR)
911

1012
dget -u https://launchpad.net/debian/+archive/primary/+sourcefiles/bash/$(BASH_VERSION_FULL)/bash_$(BASH_VERSION_FULL).dsc

0 commit comments

Comments
 (0)