Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2004 07:09:22 -0800 (PST)
From:      Richard Bejtlich <richard_bejtlich@yahoo.com>
To:        ports@freebsd.org
Cc:        portmgr@freebsd.org
Subject:   TclTLS package problem
Message-ID:  <20040121150922.91397.qmail@web60803.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hello,

I don't pretend to fully understand how packages are
built, but I found an error in the tcltls-1.4.1
package shipped with FreeBSD 5.2 REL.  The package
creates a symlink in the wrong place:

uname -a
FreeBSD orr.taosecurity.com 5.2-RELEASE FreeBSD
5.2-RELEASE #0: Sun Jan 11 04:21:45 GMT 2004    
root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC
 i386

orr# cd /usr/local/lib
orr# ls -al | grep -i tls
orr# pkg_add -vr tcltls
looking up ftp.freebsd.org
connecting to ftp.freebsd.org:21
setting passive mode
opening data connection
initiating transfer
Fetching
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.2-release/Lates
t/tcltls.tbz...+CONTENTS
+COMMENT
+DESC
+MTREE_DIRS
lib/tls/pkgIndex.tcl
lib/tls/tls.tcl
lib/libtls.so.1
lib/libtls.so.1
share/doc/tls/tls.htm
tar command returns 0 status
tar command returns 0 status
 Done.
Package 'tcltls-1.4.1' depends on 'tcl-8.4.4_1,1' with
'lang/tcl84' origin.
 - already installed.
extract: Package name is tcltls-1.4.1
extract: CWD to /usr/local
extract: /usr/local/lib/tls/pkgIndex.tcl
extract: /usr/local/lib/tls/tls.tcl
extract: /usr/local/lib/libtls.so.1
extract: /usr/local/lib/libtls.so.1
extract: /usr/local/share/doc/tls/tls.htm
extract: CWD to .
Running mtree for tcltls-1.4.1..
mtree -U -f +MTREE_DIRS -d -e -p /usr/local >/dev/null
Attempting to record package into
/var/db/pkg/tcltls-1.4.1..
Trying to record dependency on package 'tcl-8.4.4_1,1'
with 'lang/tcl84' origin.
Package tcltls-1.4.1 registered in
/var/db/pkg/tcltls-1.4.1
orr# pwd
/usr/local/lib
orr# ls -al | grep -i tls
lrwxrwxrwx   1 root  wheel       13 Jan 13 22:34
libtls.so.1 -> libtls.so.1.4
drwxr-xr-x   2 root  wheel      512 Jan 13 22:34 tls

--

As you can see there's a link from libtls.so.1 to
libtls.so.1.4, with neither file really existing.

Installation by port works fine:

<make omitted>
orr# make install
===>  Installing for tcltls-1.4.1
===>   tcltls-1.4.1 depends on shared library: tcl84 -
found
===>   Generating temporary packing list
===>  Checking if devel/tcltls already installed
/bin/mkdir -p /usr/local/lib/tls
install  -o root -g wheel -m 444 pkgIndex.tcl
/usr/ports/devel/tcltls/work/tls1.
4/tls.tcl /usr/local/lib/tls
install -s -o root -g wheel -m 444     libtls.so.1.4
/usr/local/lib
ln -fs libtls.so.1.4 /usr/local/lib/libtls.so.1
/bin/mkdir -p /usr/local/share/doc/tls
install  -o root -g wheel -m 444
/usr/ports/devel/tcltls/work/tls1.4/tls.htm /us
r/local/share/doc/tls/
===>   Registering installation for tcltls-1.4.1
orr# cd /usr/local/lib
orr# ls -al | grep -i tls
lrwxr-xr-x   1 root  wheel       13 Jan 13 22:36
libtls.so.1 -> libtls.so.1.4
-r--r--r--   1 root  wheel    26712 Jan 13 22:36
libtls.so.1.4
drwxr-xr-x   2 root  wheel      512 Jan 13 22:36 tls

--

There is the correct symlink.  I appreciate your help
with this package.

Thank you,

Richard Bejtlich
http://www.taosecurity.com

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040121150922.91397.qmail>