Bug 195788 - [either pkg or port bug] linux-f10-flashplugin has problem with /compat being a symlink
Summary: [either pkg or port bug] linux-f10-flashplugin has problem with /compat being...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-emulation (Nobody)
URL:
Keywords: regression
Depends on:
Blocks: 195416
  Show dependency treegraph
 
Reported: 2014-12-07 21:38 UTC by Andriy Gapon
Modified: 2014-12-15 12:26 UTC (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andriy Gapon freebsd_committer freebsd_triage 2014-12-07 21:38:00 UTC
hier(7) has the following information:
...
     /compat/   normally a link to /usr/compat.  If not, then the /usr/compat
                comments apply
...
     /usr/      contains the majority of user utilities and applications

...
                compat/   files needed to support binary compatibility with
                          other operating systems, such as Linux

In my environment /compat is indeed a symlink to /usr/compat.

With 1.4.0.rc2 when doing pkg upgrade I get the following:
[322/394] Upgrading linux-f10-flashplugin from 11.2r202.418_2 to 11.2r202.418_4...
[322/394] Extracting linux-f10-flashplugin-11.2r202.418_4: 100%
pkg: cannot rename //compat.8U70sa3Hubr4 to //compat: Not a directory
[322/394] Deleting files for linux-f10-flashplugin-11.2r202.418_4: 100%
pkg: unlinkat(compat): Not a directory
zsh: exit 3

I must note that the (earlier version of the) package was installed when pkg was at 1.3.8.

I see that the corresponding port has the following line in pkg-plist:
%NO_ALSA%@dir %COMPATDIR%

So, not sure if the problem is caused by the port or by pkg...
Comment 1 Jan Beich freebsd_committer freebsd_triage 2014-12-07 21:51:05 UTC
tijl@ proposed a fix in
https://lists.freebsd.org/pipermail/svn-ports-head/2014-November/078099.html

And I sorta did, too, in bug 195416 comment 7.
Comment 2 Jan Beich freebsd_committer freebsd_triage 2014-12-07 21:58:28 UTC
ports r374142 has similar regression of @dir /compat.
Comment 3 Jan Beich freebsd_committer freebsd_triage 2014-12-07 22:07:14 UTC
The root cause is probably @dir being not quite similar to how @dirrmtry was previously implemented. Before ports r358636 any errors (on stderr) were guaranteed to be silenced and ignored.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2014-12-07 22:53:47 UTC
Assign to maintainer.  I don't know which of www/linux-c6-flashplugin11 or 
www/linux-f10-flashplugin11 is meant, however.
Comment 5 John Marino freebsd_committer freebsd_triage 2014-12-08 07:43:04 UTC
Well, this PR needs its own patch attached.  Otherwise it's just a statement there's a problem.

If emulation@ didn't get the previous changes in 15 months, they probably aren't going to look at this either.  Thus a committer outside of emulation is going to need everything prepared for him/her, especially when there are competing solutions to the problem.
Comment 6 Baptiste Daroussin freebsd_committer freebsd_triage 2014-12-08 08:22:35 UTC
I'll fix in pkg 1.4.0.rc3 thanks for reporting
Comment 7 Baptiste Daroussin freebsd_committer freebsd_triage 2014-12-08 14:50:57 UTC
Should be fixed in 1.4.0rc3