Bug 209823 - ports-mgmt/pkg: The "add" command does not create same paths like "install" command
Summary: ports-mgmt/pkg: The "add" command does not create same paths like "install" c...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2016-05-29 03:56 UTC by Johannes Lundberg
Modified: 2021-08-18 08:22 UTC (History)
3 users (show)

See Also:
vlad-fbsd: maintainer-feedback? (pkg)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Lundberg 2016-05-29 03:56:54 UTC
As the title says, "pkg add" does not create the links from $PREFIX/lib/.mesa/lib* to $PREFIX/lib/lib* as "pkg install" does.
Comment 1 Johannes Lundberg 2016-05-29 04:38:23 UTC
After some more testing it seems that even if I use 
pkg -r . install ./libGL-11.1.2.txz
it does not link.

Maybe it's not related to "pkg add" but more to the "-r" option to install to different root..
Comment 2 VK freebsd_triage 2016-05-29 15:50:29 UTC
Thanks for your report. Please supply the output of `pkg info pkg`.
Comment 3 Johannes Lundberg 2016-05-30 18:09:12 UTC
libGL-11.1.2                   OpenGL library that renders using GLX or DRI
libglesv2-11.1.2               OpenGL ES v2 library
libEGL-11.1.2                  OpenEGL library

There's a discussion going on about this on the mailing list..
I could solve it by mounting devfs and use -c (chroot instead. 

Although, this requires me to move all packages into the chroot and then move them back. Would be nice if -r could be used.
Comment 4 Johannes Lundberg 2016-05-30 18:10:20 UTC
This probably affects many more packages as well. For example xfce4 didn't render properly (images and icons not rendered) at all when installing with -r.
Comment 5 Baptiste Daroussin freebsd_committer freebsd_triage 2016-05-30 18:38:33 UTC
the ports tree is not ready at all for pkg -r

pkg -r implies that all scripts knows about PKG_ROOTDIR variable and most of the ports tree is clearly not PKG_ROOTDIR aware yet.
Comment 6 Baptiste Daroussin freebsd_committer freebsd_triage 2016-05-30 18:39:06 UTC
btw this is not a pkg bug, this is the ports tree that is not yet fully aware of the feature
Comment 7 Walter Schwarzenfeld freebsd_triage 2018-01-13 06:34:40 UTC
Forgotten to  close?