Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 547752

Summary: net-misc/iputils[clockdiff] fails at postinst
Product: Gentoo Linux Reporter: Robert Sebastian Gerus <ar>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: klaus.kusche
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Robert Sebastian Gerus 2015-04-26 04:42:30 UTC
When built with USE="clockdiff", ebuild calls fcaps cap_net_raw with $(usex clockdiff 'usr/bin/clockdiff' '') as one of the arguments.

This causes ebuild to fail at postinst phase due to clockdiff being installed at /usr/sbin/clockdiff

Reproducible: Always

Steps to Reproduce:
1. USE="clockdiff" emerge -v1 iputils
Actual Results:  
 * ERROR: net-misc/iputils-20121221-r2::gentoo failed (postinst phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called pkg_postinst
 *   environment, line 2161:  Called fcaps 'cap_net_raw' 'bin/ping' 'bin/ping6' 'bin/arping' 'usr/bin/clockdiff'
 *   environment, line 1103:  Called die
 * The specific snippet of code:
 *               chmod ${caps_mode} "${file}" || die;
 * 
 * If you need support, post the output of `emerge --info '=net-misc/iputils-20121221-r2::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-misc/iputils-20121221-r2::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-misc/iputils-20121221-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/iputils-20121221-r2/temp/environment'.
 * Working directory: '/usr/lib64/python2.7/site-packages'
 * S: '/var/tmp/portage/net-misc/iputils-20121221-r2/work/iputils-s20121221'

Expected Results:  
>>> net-misc/iputils-20121221-r2 merged.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-05-02 15:21:11 UTC
*** Bug 547782 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2015-05-04 02:36:02 UTC
should be all set now in the tree; thanks for the report!

Commit message: Fix install of clockdiff
http://sources.gentoo.org/net-misc/iputils/iputils-20121221-r2.ebuild?r1=1.2&r2=1.3
http://sources.gentoo.org/net-misc/iputils/iputils-99999999.ebuild?r1=1.19&r2=1.20