Summary: | media-video/qgifer-0.2.1-r4 : * Declaring mycmakeargs as a variable is banned in EAPI=6. Please use an array instead. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | ChaosEngine <andrzej.pauli> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andrzej.pauli, gokturk, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-history.txt
environment media-video:qgifer-0.2.1-r4:20161108-205259.log qgifer-0.2.1-r5.ebuild |
Description
Toralf Förster
![]() Created attachment 452748 [details]
emerge-history.txt
Created attachment 452750 [details]
environment
Created attachment 452752 [details]
media-video:qgifer-0.2.1-r4:20161108-205259.log
Created attachment 452898 [details]
qgifer-0.2.1-r5.ebuild
changed variable mycmakeargs to array
I cannot reproduce this bug. Could this be a regression or a tinderbox problem? The ebuild has the following code snippet (https://gitweb.gentoo.org/repo/gentoo.git/tree/media-video/qgifer/qgifer-0.2.1-r4.ebuild#n43): src_configure() { local mycmakeargs use debug && mycmakeargs=( -DRELEASE_MODE=OFF ) cmake-utils_src_configure } The eclass has the following (taken from environment): local mycmakeargstype=$(declare -p mycmakeargs 2>&-); if [[ "${mycmakeargstype}" != "declare -a mycmakeargs="* ]]; then if [[ -n "${mycmakeargstype}" ]]; then if [[ ${EAPI} == [2345] ]]; then eqawarn "Declaring mycmakeargs as a variable is deprecated. Please use an array instead."; else die "Declaring mycmakeargs as a variable is banned in EAPI=${EAPI}. Please use an array instead."; fi; fi; local mycmakeargs_local=(${mycmakeargs}); else local mycmakeargs_local=("${mycmakeargs[@]}"); fi; With USE=debug, mycmakeargstype resolves to the following: declare -a mycmakeargs='([0]="-DRELEASE_MODE=OFF")' Without the flag, it's empty. I don't see how it managed to drop into that if. (In reply to Toralf Förster from comment #0) > app-shells/bash: 4.4-r1::gentoo I also cannot reproduce, but I'm using stable bash...I wonder if 4.4 triggers this somehow? IMHO after latest media-video/qgifer-0.2.1-r5 bump this should be closed (if no one is having problem with it) |