aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/post-install
diff options
context:
space:
mode:
authorJürgen Buchmüller <pullmoll@t-online.de>2016-03-08 04:22:12 +0000
committerJürgen Buchmüller <pullmoll@t-online.de>2016-03-08 12:49:52 +0000
commitc459dade15f4438c37da85f66dd8e14ff0a9d884 (patch)
treeb550af310f40fb308c0d5d35abbf65ac126c531d /common/hooks/post-install
parentf0affd9a3b40059778abc476f1137b3b01cdecd7 (diff)
downloadvoid-packages-c459dade15f4438c37da85f66dd8e14ff0a9d884.tar
void-packages-c459dade15f4438c37da85f66dd8e14ff0a9d884.tar.gz
void-packages-c459dade15f4438c37da85f66dd8e14ff0a9d884.tar.bz2
void-packages-c459dade15f4438c37da85f66dd8e14ff0a9d884.tar.lz
void-packages-c459dade15f4438c37da85f66dd8e14ff0a9d884.tar.xz
void-packages-c459dade15f4438c37da85f66dd8e14ff0a9d884.tar.zst
void-packages-c459dade15f4438c37da85f66dd8e14ff0a9d884.zip
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
Diffstat (limited to 'common/hooks/post-install')
-rw-r--r--common/hooks/post-install/07-cleanup-timestamp-macros.sh27
1 files changed, 0 insertions, 27 deletions
diff --git a/common/hooks/post-install/07-cleanup-timestamp-macros.sh b/common/hooks/post-install/07-cleanup-timestamp-macros.sh
deleted file mode 100644
index 9e69dc61b0b..00000000000
--- a/common/hooks/post-install/07-cleanup-timestamp-macros.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-# Remove leaked CFLAGS and CXXFLAGS parts which were defined
-# by common/hooks/pre-configure/03-timestamp-macros.sh
-# from shell scripts, perl scripts, package config files etc.
-
-hook() {
- local f mimetype
- local strip=" -Wno-builtin-macro-redefined -include${XBPS_BUILDDIR}/\.xbps-.*/timestamp-macros\.h"
-
- [ -n "$XBPS_USE_BUILD_MTIME" ] && return 0
- [ -z "$SOURCE_DATE_EPOCH" ] && return 0
-
- # Clean up shell scripts, perl files, pkgconfig files etc.
- for f in $(grep -r -l -e "$strip" "$PKGDESTDIR" ); do
- mimetype=$(file --mime-type "$f" | awk '{ print $2 }')
- if [ "$mimetype" == "text/plain" -o \
- "$mimetype" == "text/x-makefile" -o \
- "$mimetype" == "text/x-shellscript" -o \
- "$mimetype" == "application/xml" ]; then
- sed -i "$f" -e "s;$strip;;"
- msg_warn "Cleaned up ${f#${PKGDESTDIR}} ...\n"
- else
- # Unhandled mime-type file contains the $strip string
- # E.g. binaries containing the build environment as a string
- msg_warn "Can't clean ${f#${PKGDESTDIR}} (mime-type: $mimetype) ...\n"
- fi
- done
-}