Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575362 - sys-apps/paludis-2.4.0_p20160112 strips XATTRS
Summary: sys-apps/paludis-2.4.0_p20160112 strips XATTRS
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-22 08:15 UTC by Tiziano Müller (RETIRED)
Modified: 2018-09-19 11:44 UTC (History)
1 user (show)

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 Tiziano Müller (RETIRED) gentoo-dev 2016-02-22 08:15:51 UTC
The normal 'install'/'cp' do not preserve XATTRS, and therefore we get from:

~ $ paxctl-ng -v /var/tmp/paludis/dev-lang-python-2.7.10-r1/work/x86_64-pc-linux-gnu/python
/var/tmp/paludis/dev-lang-python-2.7.10-r1/work/x86_64-pc-linux-gnu/python:
        PT_PAX    : -e---
        XATTR_PAX : -E---

to

~ $ paxctl-ng -v /var/tmp/paludis/dev-lang-python-2.7.10-r1/image/usr/bin/python2.7
/var/tmp/paludis/dev-lang-python-2.7.10-r1/image/usr/bin/python2.7:
        PT_PAX    : -e---
        XATTR_PAX : not found

breaking a lot of stuff on hardened kernels.

Portage therefore uses 'install-xattr' instead. In fact, specifying PATH="/usr/lib64/portage/python2.7/ebuild-helpers/xattr/:${PATH}" in /etc/paludis/bashrc gets me:

~ $ paxctl-ng -v /var/tmp/paludis/dev-lang-python-2.7.10-r1/image/usr/bin/python2.7
/var/tmp/paludis/dev-lang-python-2.7.10-r1/image/usr/bin/python2.7:
        PT_PAX    : -e---
        XATTR_PAX : -E---

The next thing stripping away XATTRS is 'strip', where again portage backups and restores XATTRS. Using paludis I simply set 'build_options symbols=preserve' to avoid stripping.
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2016-02-22 11:29:12 UTC
Instead, the simplest solution would be to depend on 'sys-apps/install-xattr' and symlink /usr/bin/install-xattr to /usr/libexec/paludis/utils/
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-09-19 11:44:47 UTC
Paludis has been removed from the tee.