r6600 - in glibc-package/branches/glibc-2.21/debian: debhelper.in rules.d
Author: aurel32
Date: 2015-09-20 13:50:58 +0000 (Sun, 20 Sep 2015)
New Revision: 6600
Modified:
glibc-package/branches/glibc-2.21/debian/debhelper.in/libc-otherbuild.postinst
glibc-package/branches/glibc-2.21/debian/debhelper.in/libc-otherbuild.postrm
glibc-package/branches/glibc-2.21/debian/debhelper.in/libc.postinst
glibc-package/branches/glibc-2.21/debian/debhelper.in/libc.preinst
glibc-package/branches/glibc-2.21/debian/rules.d/debhelper.mk
Log:
rules.d/debhelper.mk: use perl instead of sed to do pattern replacement
sed doesn't do pattern replacement on included files. Use perl instead.
Modified: glibc-package/branches/glibc-2.21/debian/debhelper.in/libc-otherbuild.postinst
===================================================================
--- glibc-package/branches/glibc-2.21/debian/debhelper.in/libc-otherbuild.postinst 2015-09-20 11:23:54 UTC (rev 6599)
+++ glibc-package/branches/glibc-2.21/debian/debhelper.in/libc-otherbuild.postinst 2015-09-20 13:50:58 UTC (rev 6600)
@@ -4,7 +4,8 @@
if [ "$1" = "configure" ]
then
- # /etc/ld.so.nohwcap code: NOHWCAP
+ # /etc/ld.so.nohwcap code:
+ __NOHWCAP__
fi
#DEBHELPER#
Modified: glibc-package/branches/glibc-2.21/debian/debhelper.in/libc-otherbuild.postrm
===================================================================
--- glibc-package/branches/glibc-2.21/debian/debhelper.in/libc-otherbuild.postrm 2015-09-20 11:23:54 UTC (rev 6599)
+++ glibc-package/branches/glibc-2.21/debian/debhelper.in/libc-otherbuild.postrm 2015-09-20 13:50:58 UTC (rev 6600)
@@ -3,7 +3,8 @@
set -e
if [ "$1" = "remove" ]; then
- # /etc/ld.so.nohwcap code: NOHWCAP
+ # /etc/ld.so.nohwcap code
+ __NOHWCAP__
fi
#DEBHELPER#
Modified: glibc-package/branches/glibc-2.21/debian/debhelper.in/libc.postinst
===================================================================
--- glibc-package/branches/glibc-2.21/debian/debhelper.in/libc.postinst 2015-09-20 11:23:54 UTC (rev 6599)
+++ glibc-package/branches/glibc-2.21/debian/debhelper.in/libc.postinst 2015-09-20 13:50:58 UTC (rev 6600)
@@ -73,7 +73,8 @@
# We don't use a registry anymore, remove the old file
rm -f /etc/ld.so.hwcappkgs
- # /etc/ld.so.nohwcap code: NOHWCAP
+ # /etc/ld.so.nohwcap code:
+ __NOHWCAP__
# Load debconf module if available
if [ -f /usr/share/debconf/confmodule ] ; then
@@ -93,7 +94,8 @@
check="$check sasl2-bin slapd smail sendmail snmpd ssh"
check="$check spamassassin vsftpd wu-ftpd wu-ftpd-academ wwwoffle"
check="$check webmin dropbear gdm"
- # NSS services check: NSS_CHECK
+ # NSS services check:
+ __NSS_CHECK__
if [ -n "$services" ]; then
if [ -f /usr/share/debconf/confmodule ] ; then
Modified: glibc-package/branches/glibc-2.21/debian/debhelper.in/libc.preinst
===================================================================
--- glibc-package/branches/glibc-2.21/debian/debhelper.in/libc.preinst 2015-09-20 11:23:54 UTC (rev 6599)
+++ glibc-package/branches/glibc-2.21/debian/debhelper.in/libc.preinst 2015-09-20 13:50:58 UTC (rev 6600)
@@ -171,7 +171,8 @@
fi
check="kdm postgresql xdm"
- # NSS services check: NSS_CHECK
+ # NSS services check:
+ __NSS_CHECK__
if [ -n "$services" ]; then
if [ -f /usr/share/debconf/confmodule ] ; then
db_version 2.0
Modified: glibc-package/branches/glibc-2.21/debian/rules.d/debhelper.mk
===================================================================
--- glibc-package/branches/glibc-2.21/debian/rules.d/debhelper.mk 2015-09-20 11:23:54 UTC (rev 6599)
+++ glibc-package/branches/glibc-2.21/debian/rules.d/debhelper.mk 2015-09-20 13:50:58 UTC (rev 6600)
@@ -129,14 +129,15 @@
$(stamp)debhelper-common:
for x in `find debian/debhelper.in -maxdepth 1 -type f`; do \
y=debian/`basename $$x`; \
- sed -e "/NSS_CHECK/r debian/script.in/nsscheck.sh" \
- -e "/NOHWCAP/r debian/script.in/nohwcap.sh" \
- -e "/__PROVIDED_LOCALES__/r debian/tmp-libc/usr/share/i18n/SUPPORTED" \
- -e "s#GLIBC_VERSION#$(GLIBC_VERSION)#" \
- -e "s#CURRENT_VER#$(DEB_VERSION)#" \
- -e "s#BUILD-TREE#$(build-tree)#" \
- -e "s#LIBC#$(libc)#" \
- -e "s#DEB_HOST_ARCH#$(DEB_HOST_ARCH)#" \
+ perl -p \
+ -e 'BEGIN {undef $$/; open(IN, "debian/script.in/nsscheck.sh"); $$j=<IN>;} s/__NSS_CHECK__/$$j/g;' \
+ -e 'BEGIN {undef $$/; open(IN, "debian/script.in/nohwcap.sh"); $$k=<IN>;} s/__NOHWCAP__/$$k/g;' \
+ -e 'BEGIN {undef $$/; open(IN, "debian/tmp-libc/usr/share/i18n/SUPPORTED"); $$l=<IN>;} s/__PROVIDED_LOCALES__/$$l/g;' \
+ -e 's#GLIBC_VERSION#$(GLIBC_VERSION)#g;' \
+ -e 's#CURRENT_VER#$(DEB_VERSION)#g;' \
+ -e 's#BUILD-TREE#$(build-tree)#g;' \
+ -e 's#LIBC#$(libc)#g;' \
+ -e 's#DEB_HOST_ARCH#$(DEB_HOST_ARCH)#g;' \
$$x > $$y ; \
case $$y in \
*.install) \
Reply to: