pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_chk/files pkg_chk: fix PR pkg/54675



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac08d0ce9d3a
branches:  trunk
changeset: 343734:ac08d0ce9d3a
user:      triaxx <triaxx%pkgsrc.org@localhost>
date:      Sun Nov 10 10:25:43 2019 +0000

description:
pkg_chk: fix PR pkg/54675

Some OS (e.g. Arch Linux) do not have hostname in their base set of
packages.

pkgsrc changes:
---------------
  * Replace $(hostname) by $(uname -n).

Thanks jperkin@!

diffstat:

 pkgtools/pkg_chk/files/pkg_chk.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 26b27e183395 -r ac08d0ce9d3a pkgtools/pkg_chk/files/pkg_chk.sh
--- a/pkgtools/pkg_chk/files/pkg_chk.sh Sat Nov 09 23:12:32 2019 +0000
+++ b/pkgtools/pkg_chk/files/pkg_chk.sh Sun Nov 10 10:25:43 2019 +0000
@@ -1,6 +1,6 @@
 #!@SH@ -e
 #
-# $Id: pkg_chk.sh,v 1.75 2018/11/25 20:17:26 martin Exp $
+# $Id: pkg_chk.sh,v 1.76 2019/11/10 10:25:43 triaxx Exp $
 #
 # TODO: Make -g check dependencies and tsort
 # TODO: Make -g list user-installed packages first, followed by commented
@@ -271,7 +271,7 @@
        fi
     fi
     if [ -z "$PKGCHK_UPDATE_CONF" ];then
-       PKGCHK_UPDATE_CONF=$PKGSRCDIR/pkgchk_update-$(hostname).conf
+       PKGCHK_UPDATE_CONF=$PKGSRCDIR/pkgchk_update-$(uname -n).conf
     fi
     }
 
@@ -471,7 +471,7 @@
        extract_make_vars Makefile OPSYS OS_VERSION MACHINE_ARCH
     fi
 
-    TAGS="$(hostname | ${SED} -e 's,\..*,,'),$(hostname),$OPSYS-$OS_VERSION-$MACHINE_ARCH,$OPSYS-$OS_VERSION,$OPSYS-$MACHINE_ARCH,$OPSYS,$OS_VERSION,$MACHINE_ARCH"
+    TAGS="$(uname -n | ${SED} -e 's,\..*,,'),$(uname -n),$OPSYS-$OS_VERSION-$MACHINE_ARCH,$OPSYS-$OS_VERSION,$OPSYS-$MACHINE_ARCH,$OPSYS,$OS_VERSION,$MACHINE_ARCH"
     if [ -f /usr/X11R7/lib/libX11.a -o -f /usr/X11R6/lib/libX11.a ];then
        TAGS="$TAGS,x11"
     fi



Home | Main Index | Thread Index | Old Index