Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2016 23:55:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 214381] ports make install doesn't handle symbolic links correctly
Message-ID:  <bug-214381-13-mc4b4STYtV@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-214381-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-214381-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214381

tech-lists@zyxst.net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tech-lists@zyxst.net

--- Comment #11 from tech-lists@zyxst.net ---
(In reply to Tijl Coosemans from comment #10)

This does not appear to be the same bug. I applied your patch and now I get:

john@pumpkin:~ % rm -rf dir2
john@pumpkin:~ % mkdir dir2
john@pumpkin:~ % ln -s dir2 dir
john@pumpkin:~ % touch dir/file
john@pumpkin:~ % ln dir/file dir/file2
john@pumpkin:~ % tar cf dir.tar dir/file dir/file2
john@pumpkin:~ % rm dir/*
john@pumpkin:~ % tar xf dir.tar -P
john@pumpkin:~ % ls -l dir/
total 1
-rw-r--r--  2 john  john  0 25 Nov 23:42 file
-rw-r--r--  2 john  john  0 25 Nov 23:42 file2
john@pumpkin:~ %=20

[works as expected]

This is on 11.0-STABLE #0 r308922 & ports r427130

however I still have problems with installing (some, not all) ports such as
portupgrade:

root@pumpkin:/root# which portupgrade
/usr/local/sbin/portupgrade
root@pumpkin:/root# pkg delete portupgrade
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packag=
es
in the universe):

Installed packages to be REMOVED:
        portupgrade-2.4.14,2

Number of packages to be removed: 1

Proceed with deinstalling packages? [y/N]: y
[1/1] Deinstalling portupgrade-2.4.14,2...
[1/1] Deleting files for portupgrade-2.4.14,2: 100%
root@pumpkin:/root# which portupgrade
portupgrade: Command not found.
root@pumpkin:/root# cd /usr/ports/ports-mgmt/portupgrade
root@pumpkin:/usr/ports/ports-mgmt/portupgrade# make
=3D=3D=3D>  License BSD3CLAUSE accepted by the user

[...]

bin/mkdir -p
/storage/usr/ports/ports-mgmt/portupgrade/work/stage/usr/local/share/zsh/si=
te-functions
install  -o root -g wheel  -m 444 _pkgtools
/storage/usr/ports/ports-mgmt/portupgrade/work/stage/usr/local/share/zsh/si=
te-functions/
/bin/mkdir -p
/storage/usr/ports/ports-mgmt/portupgrade/work/stage/usr/local/share/doc/pk=
gtools
install -c -o root -g wheel -m 444  NEWS.md README.md
/storage/usr/ports/ports-mgmt/portupgrade/work/stage/usr/local/share/doc/pk=
gtools
/bin/mkdir -p
/storage/usr/ports/ports-mgmt/portupgrade/work/stage/usr/local/lib/compat/p=
kg
=3D=3D=3D=3D> Compressing man pages (compress-man)
=3D=3D=3D>   Installing ldconfig configuration file

root@pumpkin:/usr/ports/ports-mgmt/portupgrade# make install
=3D=3D=3D>  Installing for portupgrade-2.4.14,2
=3D=3D=3D>   portupgrade-2.4.14,2 depends on file: /usr/local/bin/ruby22 - =
found
=3D=3D=3D>   portupgrade-2.4.14,2 depends on file:
/usr/local/lib/ruby/site_ruby/2.2/amd64-freebsd11/bdb.so - found
=3D=3D=3D>  Checking if portupgrade already installed
=3D=3D=3D>   Registering installation for portupgrade-2.4.14,2
Installing portupgrade-2.4.14,2...
root@pumpkin:/usr/ports/ports-mgmt/portupgrade#=20

root@pumpkin:/usr/ports/ports-mgmt/portupgrade# which portupgrade
portupgrade: Command not found.

Instead, I have to install it like this:

make clean package deinstall && pkg add work/pkg/* && make clean

Installing portupgrade-2.4.14,2...
Extracting portupgrade-2.4.14,2: 100%
=3D=3D=3D>  Cleaning for portupgrade-2.4.14,2
root@pumpkin:/usr/ports/ports-mgmt/portupgrade# which portupgrade=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20
/usr/local/sbin/portupgrade
root@pumpkin:/usr/ports/ports-mgmt/portupgrade#

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214381-13-mc4b4STYtV>