Permalink
Browse files

Drop dependency on coreutils, reset LC_ALL=C instead

  • Loading branch information...
1 parent 75b6756 commit 9fe64cf9265e0966fa0bc9bd932c8794e7e623e4 @mamash committed Apr 27, 2012
Showing with 5 additions and 4 deletions.
  1. +0 −2 pkgtools/pkg_alternatives/Makefile
  2. +5 −2 pkgtools/pkg_alternatives/files/wrapper.sh
@@ -12,8 +12,6 @@ COMMENT= Generic wrappers for programs with similar interfaces
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
-DEPENDS+= coreutils-[0-9]*:../../sysutils/coreutils
-
NO_BUILD= YES
WRKSRC= ${WRKDIR}
@@ -33,8 +33,9 @@
wrapper="__WRAPPER__"
progname="${wrapper##*/} (wrapper)"
-alias tr=@PREFIX@/bin/tr
-alias cut=@PREFIX@/bin/cut
+
+LC_ALL_BAK=${LC_ALL}
+LC_ALL=C
if [ ! -f __DB_FILE__ ]; then
echo "${progname}: cannot open __DB_FILE__" 1>&2
@@ -63,4 +64,6 @@ if [ -z "${found}" ]; then
exit 1
fi
+LC_ALL=${LC_ALL_BAK:-C}
+
exec ${found} "${@}"

0 comments on commit 9fe64cf

Please sign in to comment.