pkgsrc-Bugs archive

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

pkg/57764: devel/cvsd's /usr/pkg/sbin/cvsd-buildroot script



>Number:         57764
>Category:       pkg
>Synopsis:       devel/cvsd's /usr/pkg/sbin/cvsd-buildroot script
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 10 12:30:00 +0000 2023
>Originator:     Kouichi Hashikawa
>Release:        
>Organization:
>Environment:
>Description:
I got a error when I run devel/cvsd 's /usr/pkg/sbin/cvsd-buildroot script.

# /usr/pkg/sbin/cvsd-buildroot  /tmp/
find: /etc/ld.so.conf*: No such file or directory

NetBSD don't have /etc/ld.so.conf (or /etc/ld.so.conf*) sometimes
and there is set -e in this script, then error occurs.


>How-To-Repeat:

>Fix:
I rewrite cvsd-buildroot as following to avoid the error.

--- ./usr/pkg/sbin/cvsd-buildroot-dist   2022-10-06 20:09:58.000000000 +0900
+++ ./usr/pkg/sbin/cvsd-buildroot        2023-12-01 21:34:40.607447324 +0900
@@ -48,7 +48,9 @@
 LIBPATH="/lib /usr/lib /usr/local/lib /usr/X11R6/lib /usr/lib/libc5-compat /lib/libc5-compat /usr/libexec"
 
 # add paths from /etc/ld.so.conf to LIBPATH
-LIBPATH="$LIBPATH `find /etc/ld.so.conf* -type f | xargs cat | grep '^/'`"
+for i in /etc/ld.so.conf*; do
+       test -f $i && LIBPATH="$LIBPATH `cat $i | grep '^/'`" || true
+done
 
 # which libraries to install (aside from the libraries needed by
 # the specified libraries)


Home | Main Index | Thread Index | Old Index