Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479792 - net-irc/weechat-9999 - sandbox violation in /usr/bin/cmake -E remove -f /usr/bin/weechat-curses
Summary: net-irc/weechat-9999 - sandbox violation in /usr/bin/cmake -E remove -f /usr/...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-05 07:04 UTC by Eugene Ho
Modified: 2013-08-06 11:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (120053.txt,164.86 KB, text/plain)
2013-08-05 07:05 UTC, Eugene Ho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Ho 2013-08-05 07:04:55 UTC
net-irc/weechat-9999 triggers an access violation when attempting to remove /usr/bin/weechat-curses and symlink /usr/bin/weechat-curses to /usr/bin/weechat:

>>> Completed installing weechat-9999 into /var/tmp/portage/net-irc/weechat-9999/image/

  --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
  LOG FILE: "/var/log/sandbox/sandbox-5442.log"
  
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: unlink
S: deny
P: /usr/bin/weechat-curses
A: /usr/bin/weechat-curses
R: /usr/bin/weechat
C: /usr/bin/cmake -E remove -f /usr/bin/weechat-curses 

F: unlink
S: deny
P: /usr/bin/weechat-curses
A: /usr/bin/weechat-curses
R: /usr/bin/weechat
C: /usr/bin/cmake -E create_symlink weechat /usr/bin/weechat-curses 
  --------------------------------------------------------------------------------

Reproducible: Always




Previously net-irc/weechat installed its executable as /usr/bin/weechat-curses. This changed recently (http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=commit;h=996da2f662d04abd18ecf4e8a65fbf9aac1b50d9) so that the executable is now installed as /usr/bin/weechat.

A symlink is made at /usr/bin/weechat-curses to point to weechat. This symlink is desirable so that running "/upgrade" from within the application will continue to work in order to in-place upgrade the application while running.
Comment 1 Eugene Ho 2013-08-05 07:05:51 UTC
Created attachment 355150 [details]
build.log
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2013-08-06 11:48:52 UTC
Thats upstream bug.

They should respect destdir value when creating the symlink. Nothing to fix on the ebuild itsef.

As this is live version provide this issue to upstream to fix or fix it yourself.
I will tackle it only if it gets broken in the release itself.