partial merge #20318: build: Ensure source tarball has leading directory name

faa2f06f5eaf8578873495f44603ee74d7a1abf4 scripted-diff: [build] Ensure source tarball has leading directory name (MarcoFalke)

Pull request description:

  This has been fixed in 0.20, so it needs to be fixed on master as well to avoid a regression

  #18945

ACKs for top commit:
  laanwj:
    ACK faa2f06f5eaf8578873495f44603ee74d7a1abf4
  hebasto:
    ACK faa2f06f5eaf8578873495f44603ee74d7a1abf4, tested gitian builds only.
  promag:
    ACK faa2f06f5eaf8578873495f44603ee74d7a1abf4.

Tree-SHA512: e3b025c29c45b025002abc35262bb5d771f6cbd807f1c256c477c243685e93cd43ad9f642b38e3cf218590912abe6ea0ddfec3bfbef36f99080aad74ed6cc0af
This commit is contained in:
Wladimir J. van der Laan 2020-11-09 15:02:45 +01:00 committed by UdjinM6
parent 2899ea1d89
commit 09199e8415
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9
3 changed files with 6 additions and 6 deletions

View File

@ -138,7 +138,7 @@ script: |
# Create the source tarball # Create the source tarball
mkdir -p "$(dirname "$GIT_ARCHIVE")" mkdir -p "$(dirname "$GIT_ARCHIVE")"
git archive --output="$GIT_ARCHIVE" HEAD git archive --prefix="${DISTNAME}/" --output="$GIT_ARCHIVE" HEAD
ORIGPATH="$PATH" ORIGPATH="$PATH"
# Extract the git archive into a dir for each host and build # Extract the git archive into a dir for each host and build
@ -155,7 +155,7 @@ script: |
cd distsrc-${i} cd distsrc-${i}
INSTALLPATH="${PWD}/installed/${DISTNAME}" INSTALLPATH="${PWD}/installed/${DISTNAME}"
mkdir -p ${INSTALLPATH} mkdir -p ${INSTALLPATH}
tar -xf $GIT_ARCHIVE tar --strip-components=1 -xf "${GIT_ARCHIVE}"
./autogen.sh ./autogen.sh
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS} CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}" LDFLAGS="${HOST_LDFLAGS}" CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS} CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}" LDFLAGS="${HOST_LDFLAGS}"

View File

@ -130,7 +130,7 @@ script: |
# Create the source tarball # Create the source tarball
mkdir -p "$(dirname "$GIT_ARCHIVE")" mkdir -p "$(dirname "$GIT_ARCHIVE")"
git archive --output="$GIT_ARCHIVE" HEAD git archive --prefix="${DISTNAME}/" --output="$GIT_ARCHIVE" HEAD
ORIGPATH="$PATH" ORIGPATH="$PATH"
# Extract the git archive into a dir for each host and build # Extract the git archive into a dir for each host and build
@ -140,7 +140,7 @@ script: |
cd distsrc-${i} cd distsrc-${i}
INSTALLPATH="${PWD}/installed/${DISTNAME}" INSTALLPATH="${PWD}/installed/${DISTNAME}"
mkdir -p ${INSTALLPATH} mkdir -p ${INSTALLPATH}
tar -xf $GIT_ARCHIVE tar --strip-components=1 -xf "${GIT_ARCHIVE}"
./autogen.sh ./autogen.sh
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS} CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS}

View File

@ -145,7 +145,7 @@ script: |
# Create the source tarball # Create the source tarball
mkdir -p "$(dirname "$GIT_ARCHIVE")" mkdir -p "$(dirname "$GIT_ARCHIVE")"
git archive --output="$GIT_ARCHIVE" HEAD git archive --prefix="${DISTNAME}/" --output="$GIT_ARCHIVE" HEAD
ORIGPATH="$PATH" ORIGPATH="$PATH"
# Extract the git archive into a dir for each host and build # Extract the git archive into a dir for each host and build
@ -155,7 +155,7 @@ script: |
cd distsrc-${i} cd distsrc-${i}
INSTALLPATH="${PWD}/installed/${DISTNAME}" INSTALLPATH="${PWD}/installed/${DISTNAME}"
mkdir -p ${INSTALLPATH} mkdir -p ${INSTALLPATH}
tar -xf $GIT_ARCHIVE tar --strip-components=1 -xf "${GIT_ARCHIVE}"
./autogen.sh ./autogen.sh
CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS} CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}" CONFIG_SITE=${BASEPREFIX}/${i}/share/config.site ./configure --prefix=/ --disable-maintainer-mode --disable-dependency-tracking ${CONFIGFLAGS} CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}"