Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539456 - dev-libs/nss install fails on BSD, BSD's cp doesn't support -t option.
Summary: dev-libs/nss install fails on BSD, BSD's cp doesn't support -t option.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-09 11:23 UTC by Yuta SATOH
Modified: 2015-10-02 18:22 UTC (History)
1 user (show)

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


Attachments
sample patch for nss-3.17.4.ebuild (539456.patch,610 bytes, patch)
2015-02-09 11:25 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2015-02-09 11:23:57 UTC
The following message is displayed and fails to install.

>>> Source compiled.
 * Skipping make test/check due to ebuild restriction.
>>> Test phase [disabled because of RESTRICT=test]: dev-libs/nss-3.17.4

>>> Install nss-3.17.4 into /var/tmp/portage/dev-libs/nss-3.17.4/image/ category dev-libs
 * abi_x86_64.amd64_fbsd: running multilib-minimal_abi_src_install
cp: illegal option -- t
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file target_file
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file ... target_directory
 * ERROR: dev-libs/nss-3.17.4::gentoo failed (install phase):
 *   copying libs failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 3022:  Called multilib-minimal_src_install
 *   environment, line 2067:  Called multilib_foreach_abi 'multilib-minimal_abi_src_install'
 *   environment, line 2254:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 1955:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_install'
 *   environment, line 1953:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_install'
 *   environment, line  384:  Called multilib-minimal_abi_src_install
 *   environment, line 2057:  Called multilib_src_install
 *   environment, line 2517:  Called die
 * The specific snippet of code:
 *       cp -L -t "${ED}"/usr/$(get_libdir) */lib/{libcrmf,libfreebl}.a || die "copying libs failed";
 *
 * If you need support, post the output of `emerge --info '=dev-libs/nss-3.17.4::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/nss-3.17.4::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/nss-3.17.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/nss-3.17.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/nss-3.17.4/work/nss-3.17.4/nss-abi_x86_64.amd64_fbsd/dist'
 * S: '/var/tmp/portage/dev-libs/nss-3.17.4/work/nss-3.17.4/nss'

>>> Failed to emerge dev-libs/nss-3.17.4, Log file:

>>>  '/var/tmp/portage/dev-libs/nss-3.17.4/temp/build.log'
Comment 1 Yuta SATOH 2015-02-09 11:25:23 UTC
Created attachment 395966 [details, diff]
sample patch for nss-3.17.4.ebuild
Comment 2 Yuta SATOH 2015-02-09 11:25:34 UTC
Other solutions

Add coreutils to profiles/default/bsd/fbsd/packages, and alias cp=gcp in profile.bashrc
If you choose this method, it is possible to use GNU cp option of in any ebuild.
NOTE,
sys-freebsd category might require unalias cp .
Comment 3 Naohiro Aota gentoo-dev 2015-02-13 05:16:04 UTC
I don't think this is heavy BSD related and I think it can be easily fixed by mozilla team...
Is "-t" necessary here?
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2015-10-02 16:17:16 UTC
mozilla: I am going to apply this in a week if you don't object.
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2015-10-02 16:20:58 UTC
We don't object, it's a simple file copy.


Sorry for letting this bug fall through the cracks..
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2015-10-02 18:22:17 UTC
commit 3a00966b4204b6008e06bdc274170e015269e7ee
Author: Ian Stakenvicius <axs@gentoo.org>
Date:   Fri Oct 2 14:06:33 2015 -0400

    dev-libs/nss: drop 'cp -t' as it is unsupported in fbsd
    
    Bug: 539456
    
    Package-Manager: portage-2.2.20.1

--- a/dev-libs/nss/nss-3.19.2.ebuild
--- a/dev-libs/nss/nss-3.20.ebuild