Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 571856 - dev-libs/libbsd-0.8.1-r1: sole dodoc in multilib_src_install_all()
Summary: dev-libs/libbsd-0.8.1-r1: sole dodoc in multilib_src_install_all()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-14 10:12 UTC by Andreas Wiese
Modified: 2016-01-15 22:27 UTC (History)
4 users (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 Andreas Wiese 2016-01-14 10:12:47 UTC
Ebuild defines multilib_src_install_all() as follows:

multilib_src_install_all() {
  dodoc ${DOCS}
}

Unfortunately, $DOCS is undefined and thus empty in this version, leading dodoc to fail with a syntax error.

Reproducible: Always

Steps to Reproduce:
1. Try to merge dev-libs/libbsd-0.8.1-r1
2. Look how it fails in install phase

Actual Results:  
!!! ERROR in dev-libs/libbsd-0.8.1-r1::gentoo:
!!! In /usr/libexec/paludis/utils/dodoc at line 41

Error:
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =dev-libs/libbsd-0.8.1-r1:0::gentoo --destination installed --replacing =dev-libs/libbsd-0.8.1:0::installed --x-of-y 1 of 9:
  * When installing 'dev-libs/libbsd-0.8.1-r1:0::gentoo' replacing { 'dev-libs/libbsd-0.8.1:0::installed' }:
  * When running an ebuild command on 'dev-libs/libbsd-0.8.1-r1:0::gentoo':
  * Install failed for 'dev-libs/libbsd-0.8.1-r1:0::gentoo' (paludis::ActionFailedError)

!!! at least one argument needed

!!! Call stack:
!!!    * paludis_die_or_error_func (/usr/libexec/paludis/die_functions.bash:67)
!!!    * main (/usr/libexec/paludis/utils/dodoc:41)

diefunc: making ebuild PID 31682 exit with error
die trap: exiting with error.


Expected Results:  
"Successfully installed ..."

This issue can be resolved by either removing the definition of multilib_src_install_all() or (more elegantly) replacing the sole "dodoc ${DOCS}" with

  [[ -n "${DOCS}" ]] && dodoc ${DOCS}
Comment 1 Harris Landgarten 2016-01-15 18:59:35 UTC
Paludis fails to install with:

!!! ERROR in dev-libs/libbsd-0.8.1-r1::gentoo:
!!! In /usr/libexec/paludis/utils/dodoc at line 41
!!! at least one argument needed


Portage not seeing the error.
Comment 2 Víctor Ostorga (RETIRED) gentoo-dev 2016-01-15 21:58:12 UTC
Please attach build log and emerge --info
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2016-01-15 22:27:21 UTC
Apologies, i missed that the dev dropped DOCS= from libbsd-0.8.1 when I migrated it to multilib.


commit 46dab52c81315c2cd4c65c049a98a13fdefb5073
Author: Ian Stakenvicius <axs@gentoo.org>
Date:   Fri Jan 15 17:12:41 2016 -0500

    dev-libs/libbsd: drop errant dodoc from 0.8.1-r1, bug 571856