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'
Created attachment 395966 [details, diff] sample patch for nss-3.17.4.ebuild
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 .
I don't think this is heavy BSD related and I think it can be easily fixed by mozilla team... Is "-t" necessary here?
mozilla: I am going to apply this in a week if you don't object.
We don't object, it's a simple file copy. Sorry for letting this bug fall through the cracks..
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