Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676440 - dev-libs/glib-2.56.4 fails to pax-mark and aborts test phase
Summary: dev-libs/glib-2.56.4 fails to pax-mark and aborts test phase
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 616358 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-01-27 10:24 UTC by Hermila Hoover
Modified: 2019-07-26 05:20 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 Hermila Hoover 2019-01-27 10:24:48 UTC
glib fails the test phase because it cannot PaX mark the executable assert-msg-test:

---
>>> Source compiled.
>>> Test phase: dev-libs/glib-2.56.4
 * abi_x86_64.amd64: running multilib-minimal_abi_src_test
 * XATTR_PAX marking -mr /var/tmp/portage/dev-libs/glib-2.56.4/work/glib-2.56.4-abi_x86_64.amd64/tests/.libs/assert-msg-test with paxctl-ng                                                                                                   
 * XATTR_PAX marking -mre /var/tmp/portage/dev-libs/glib-2.56.4/work/glib-2.56.4-abi_x86_64.amd64/tests/.libs/assert-msg-test with setfattr                                                                                                   
 * Failed to set XATTR_PAX markings -mre /var/tmp/portage/dev-libs/glib-2.56.4/work/glib-2.56.4-abi_x86_64.amd64/tests/.libs/assert-msg-test.                                                                                                 
 * ERROR: dev-libs/glib-2.56.4::gentoo failed (test phase):
 *   Hardened adjustment failed
 *
 * Call stack:
 *     ebuild.sh, line  124:  Called src_test
 *   environment, line 5797:  Called multilib-minimal_src_test
 *   environment, line 3985:  Called multilib_foreach_abi 'multilib-minimal_abi_src_test'
 *   environment, line 4158:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_test'                                                                                                                
 *   environment, line 3850:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_test'
 *   environment, line 3848:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_test'
 *   environment, line  645:  Called multilib-minimal_abi_src_test
 *   environment, line 3979:  Called multilib_src_test
 *   environment, line 4439:  Called die
 * The specific snippet of code:
 *           pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test || die "Hardened adjustment failed";
---


The ebuild code is (shortend):

---
multilib_src_test() {
   # ...
   if host-is-pax ; then
       pax-mark -mr "${BUILD_DIR}"/tests/.libs/assert-msg-test || die "Hardened adjustment failed"
   fi
   virtx emake check
}
---


The reason for the failure is that the executable assert-msg-test is build by 'make check' and thus is not present at the pax-mark call.
A simple solution is to build the executable before the pax-mark call by adding

   emake -C tests assert-msg-test

before the pax-mark call.
Comment 1 Mart Raudsepp gentoo-dev 2019-07-26 05:07:31 UTC
I've removed all pax handling in glib-2.60.6 bump.
Comment 2 Mart Raudsepp gentoo-dev 2019-07-26 05:20:35 UTC
*** Bug 616358 has been marked as a duplicate of this bug. ***