Skip to content

Commit

Permalink
[Bash] Fix bash build break when re-build bash issue. (#9027)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
liuh-80 authored Oct 22, 2021
1 parent 12b8cac commit 5b5f3f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bash/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ SHELL = /bin/bash
MAIN_TARGET = bash_$(BASH_VERSION_FULL)_$(CONFIGURED_ARCH).deb

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

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

0 comments on commit 5b5f3f0

Please sign in to comment.