[X2Go-Commits] [buildscripts] 01/01: bin/{{s, }build-deb-package, build-{nsis, rpm}-package}: do not *ever* make local copies of git repositories with hardlinks in them.
git-admin at x2go.org
git-admin at x2go.org
Thu Mar 9 10:04:42 CET 2017
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository buildscripts.
commit 725783cba511b432c308593f33d5abe21bb5ec52
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Mar 9 10:02:49 2017 +0100
bin/{{s,}build-deb-package,build-{nsis,rpm}-package}: do not *ever* make local copies of git repositories with hardlinks in them.
To start with, that defeats the purpose of such a copy in the first
place and secondly has been failing badly for Debian packages since the
dawn of time.
We want a nice, full, deep copy that can be changed without harming
other builds.
---
bin/build-deb-package | 2 +-
bin/build-nsis-package.sh | 2 +-
bin/build-rpm-package | 2 +-
bin/sbuild-deb-package | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/build-deb-package b/bin/build-deb-package
index 6517d4d..6ffecdb 100755
--- a/bin/build-deb-package
+++ b/bin/build-deb-package
@@ -247,7 +247,7 @@ build_packages() {
chmod 2770 -Rf -- "${TEMP_DIR}"
cd "${PROJECT_DIR}"
- git clone "${PROJECT_DIR}" "${TEMP_DIR}/${PROJECT}/"
+ git clone --no-hardlinks --no-local "${PROJECT_DIR}" "${TEMP_DIR}/${PROJECT}/"
cd "${TEMP_DIR}/${PROJECT}"
git checkout "${CHECKOUT}" || git checkout master
find "${PROJECT_DIR}/../" -maxdepth 0 -mindepth 0 -type f | grep -qs "${PROJECT}_"*.orig.tar.gz && cp -- "${PROJECT_DIR}/../${PROJECT}_"*.orig.tar.gz ..
diff --git a/bin/build-nsis-package.sh b/bin/build-nsis-package.sh
index 69cb1bb..a386fe3 100755
--- a/bin/build-nsis-package.sh
+++ b/bin/build-nsis-package.sh
@@ -206,7 +206,7 @@ build_packages() {
chmod 2770 "${TEMP_DIR}" -Rf
cd "${PROJECT_DIR}"
- git clone --local "${PROJECT_DIR}" "${TEMP_DIR}/${PROJECT}/"
+ git clone --no-hardlinks --no-local "${PROJECT_DIR}" "${TEMP_DIR}/${PROJECT}/"
cd "${TEMP_DIR}/${PROJECT}"
git checkout "${CHECKOUT}" || git checkout master
find "${PROJECT_DIR}/../" -type f -maxdepth 0 -mindepth 0 | grep -qs "${PROJECT}_"*.orig.tar.gz && cp "${PROJECT_DIR}/../${PROJECT}_"*.orig.tar.gz ..
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 8a51dcf..a3dc549 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -719,7 +719,7 @@ build_packages() {
chmod -Rf -- 2770 "${TEMP_DIR}"
cd "$PROJECT_DIR"
- git clone "${PROJECT_DIR}" "${TEMP_DIR}/${PROJECT}/"
+ git clone --no-hardlinks --no-local "${PROJECT_DIR}" "${TEMP_DIR}/${PROJECT}/"
cd "${TEMP_DIR}"
GITREV="$(cd "${PROJECT}" && gitrevno && cd - 1>/dev/null)"
diff --git a/bin/sbuild-deb-package b/bin/sbuild-deb-package
index e856f93..ccb4b86 100755
--- a/bin/sbuild-deb-package
+++ b/bin/sbuild-deb-package
@@ -248,7 +248,7 @@ build_packages() {
chmod 2770 -Rf -- "${TEMP_DIR}"
cd "${PROJECT_DIR}"
- git clone "${PROJECT_DIR}" "${TEMP_DIR}/${PROJECT}/"
+ git clone --no-hardlinks --no-local "${PROJECT_DIR}" "${TEMP_DIR}/${PROJECT}/"
cd "${TEMP_DIR}/${PROJECT}"
git checkout "${CHECKOUT}" || git checkout master
find "${PROJECT_DIR}/../" -maxdepth 0 -mindepth 0 -type f | grep -qs "${PROJECT}_"*.orig.tar.gz && cp -- "${PROJECT_DIR}/../${PROJECT}_"*.orig.tar.gz ..
--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
More information about the x2go-commits
mailing list