Skip to content

Incorrect MissingInherits if conditional use #352

@thesamesam

Description

@thesamesam

I suspect this is because we're not just forcing OPERA_FORCE_RPM=no, but allowing it to be overridden in the environment, which would violate metadata invariance.

$ pkgcheck scan -k MissingInherits
www-client/opera-developer
  MissingInherits: version 80.0.4162.0: rpm: missing inherit usage: 'rpm_src_unpack "${A[0]}"', line 106
  MissingInherits: version 80.0.4170.0: unpacker: missing inherit usage: 'unpacker', line 108
  MissingInherits: version 81.0.4175.0: unpacker: missing inherit usage: 'unpacker', line 108

opera-developer-80.0.4162.0.ebuild:


# These are intended for ebuild maintainer use to force RPM if DEB is not available.
: ${OPERA_FORCE_RPM=no}

if [[ ${OPERA_FORCE_RPM} == yes ]]; then
        OPERA_UNPACKER="rpm"
        OPERA_ARCHIVE_EXT="rpm"
else
        OPERA_UNPACKER="unpacker"
        OPERA_ARCHIVE_EXT="deb"
fi

inherit chromium-2 multilib pax-utils ${OPERA_UNPACKER} xdg

...
src_install() {
        dodir /
       	cd "${ED}" || die
       	if [[ ${OPERA_FORCE_RPM} == yes ]]; then
               	rpm_src_unpack "${A[0]}"
       	else
            	unpacker
       	fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions