Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 700976 - app-text/sgml-common-0.6.3-r7 has a runtime dependency on itself
Summary: app-text/sgml-common-0.6.3-r7 has a runtime dependency on itself
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-23 10:19 UTC by Pieter Van den Abeele
Modified: 2019-11-24 12:26 UTC (History)
1 user (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 Pieter Van den Abeele 2019-11-23 10:19:33 UTC
Hi, 

The 'app-text/sgml-common-0.6.3-r7' ebuild has a runtime dependency on itself. Even though the ebuild itself has DEPEND and RDEPEND set to "", this runtime dependency gets added by inheriting the sgml-catalog-r1.eclass.

This currently doesn't break an emerge of sgml-common, but if portage implements a more strict interpretation of RDEPEND this will break an emerge unless sgml-common is added to the system profile.

This can easily be fixed by declaring an variable in the sgml-common ebuild, and putting the RDEPEND statement in the eclass in a conditional statement that checks for that variable, like so:

if [[ "${SOME_VAR}" = "yes" ]]; then
	RDEPEND="..."
fi
 

Thanks for looking into this

Pieter
Comment 1 Larry the Git Cow gentoo-dev 2019-11-24 12:26:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8729279eb1e48f171f86e484610a1fbbd904d67d

commit 8729279eb1e48f171f86e484610a1fbbd904d67d
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2019-11-24 11:25:05 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2019-11-24 12:26:08 +0000

    sgml-catalog-r1.eclass: Do not generate self-dep in sgml-common
    
    Closes: https://bugs.gentoo.org/700976
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 eclass/sgml-catalog-r1.eclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)