Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460702 - sys-apps/attr: missing syscalls for various arches (hppa/aarch64/...)
Summary: sys-apps/attr: missing syscalls for various arches (hppa/aarch64/...)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://lists.nongnu.org/archive/html/...
Whiteboard:
Keywords:
Depends on:
Blocks: 212517
  Show dependency tree
 
Reported: 2013-03-07 16:34 UTC by Jeroen Roovers (RETIRED)
Modified: 2013-03-20 17:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2013-03-07 16:34:51 UTC
>>> Original instance of package unmerged safely.
 * Setting caps 'cap_dac_read_search,cap_net_raw,cap_net_admin=ep' on file '//usr/bin/dumpcap' failed:
 * Failed to set capabilities on file `//usr/bin/dumpcap' (Function not implemented)
 * usage: setcap [-q] [-v] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
 * 
 *  Note <filename> must be a regular (non-symlink) file.
 * ERROR: net-analyzer/wireshark-1.6.14 failed (postinst phase):
 *   could not set caps
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called pkg_postinst
 *   environment, line 3640:  Called fcaps '-o' '0' '-g' 'wireshark' '-m' '4550' '-M' '550' 'cap_dac_read_search,cap_net_raw,cap_net
_admin' '//usr/bin/dumpcap'                                                                                                          *   environment, line 2637:  Called die
 * The specific snippet of code:
 *                       die "could not set caps";
 * 
 * If you need support, post the output of `emerge --info '=net-analyzer/wireshark-1.6.14'`,
 * the complete build log and the output of `emerge -pqv '=net-analyzer/wireshark-1.6.14'`.
 * The complete build log is located at '/keeps/gentoo/emergelogs/karsten/net-analyzer:wireshark-1.6.14:20130307-155334.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/wireshark-1.6.14/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/wireshark-1.6.14/temp/environment'.
 * Working directory: '/var/tmp/portage/net-analyzer/wireshark-1.6.14'
 * S: '/var/tmp/portage/net-analyzer/wireshark-1.6.14/work/wireshark-1.6.14'
!!! FAILED postinst: 1

At this point, it fails to run the fallback chown/chmod
Comment 1 SpanKY gentoo-dev 2013-03-12 20:45:33 UTC
post the strace output of running setcap on that fs

what fs are you using exactly ?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-13 18:50:04 UTC
ext4 (rw,relatime,data=ordered)

CONFIG_EXT4_FS_POSIX_ACL and CONFIG_EXT4_FS_SECURITY are enabled but not implemented on HPPA, as far as I can tell.

karsten ~ # getcap -v /usr/bin/dumpcap 
Failed to get capabilities of file `/usr/bin/dumpcap' (Function not implemented)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-13 18:52:44 UTC
(In reply to comment #2)
> ext4 (rw,relatime,data=ordered)

The same failure occurs with acl,user_xattr added.
Comment 4 SpanKY gentoo-dev 2013-03-20 06:04:15 UTC
(In reply to comment #2)

you're running into the stupidity i whined about upstream.  the attr project hardcodes all the syscall #'s and if you're unlucky enough to be listed there, you get ENOSYS.  hppa isn't listed there.

i've grabbed a patch that was posted to upstream acl-devel after i complained.  it was meant for a diff arch, but seems to fix hppa as well.  i've committed attr-2.4.46-r2 with that patch, so once you update, that should fix the failures.

as such, i'd like to continue letting fcaps.eclass dying on ENOSYS until we have a compelling scenario.