gcc: add support for SOURCE_DATE_EPOCH environment
+ Create symlinks from gcc/patches/libcpp-source_date_epoch.patch to cross-*/files/ + Make all the _apply_patch() functions the same
This commit is contained in:
parent
f0affd9a3b
commit
c459dade15
48 changed files with 257 additions and 99 deletions
|
@ -1,6 +1,10 @@
|
|||
# If XBPS_USE_BUILD_MTIME is enabled in conf file don't continue.
|
||||
# only run this, if SOURCE_DATE_EPOCH isn't set.
|
||||
if [ -z "$XBPS_USE_BUILD_MTIME" -a -z "${SOURCE_DATE_EPOCH}" -a -n "$IN_CHROOT" ]; then
|
||||
if [ -n "$XBPS_USE_BUILD_MTIME" ]; then
|
||||
unset SOURCE_DATE_EPOCH
|
||||
return 0
|
||||
fi
|
||||
if [ -z "${SOURCE_DATE_EPOCH}" -a -n "$IN_CHROOT" ]; then
|
||||
if command -v chroot-git &>/dev/null; then
|
||||
GIT_CMD=$(command -v chroot-git)
|
||||
elif command -v git &>/dev/null; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue