Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482032 - sys-apps/entropy missing PYTHON_USEDEP and PYTHON_REQUIRED_USE
Summary: sys-apps/entropy missing PYTHON_USEDEP and PYTHON_REQUIRED_USE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Fabio Erculiani (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-21 22:44 UTC by Julian Ospald
Modified: 2013-08-23 05:55 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 Julian Ospald 2013-08-21 22:44:13 UTC
python.eclass is deprecated
Comment 1 Fabio Erculiani (RETIRED) gentoo-dev 2013-08-22 15:09:31 UTC
+*entropy-216 (22 Aug 2013)
+
+  22 Aug 2013; Fabio Erculiani <lxnay@gentoo.org> +entropy-216.ebuild:
+  version bump

Fixed.
Comment 2 Julian Ospald 2013-08-22 15:15:30 UTC
does entropy use modules from portage?

If so, then $PYTHON_USEDEP is missing
Comment 3 Fabio Erculiani (RETIRED) gentoo-dev 2013-08-22 15:21:06 UTC
Will be fixed on the next bump.
Comment 4 Julian Ospald 2013-08-22 15:21:48 UTC
why on the next bump?
Comment 5 Julian Ospald 2013-08-22 15:35:48 UTC
more:
* PYTHON_REQUIRED_USE is missing
* eutils.eclass is unused
* dodir in line 55 is redundant
* "|| die" in line 50 and 60 are redundant
* "cd" in line 49 and 58 are redundant, use "emake -C lib foo"
* I'd rather use real bash syntax in pkg_postinst
Comment 6 Fabio Erculiani (RETIRED) gentoo-dev 2013-08-22 15:40:12 UTC
Entropy is special. It's a package manager like sys-apps/portage and deserves special treatment to avoid breaking upgrade paths. So, any changes in the ebuild will have to be tested in our tinderbox first.

I will have a look at the suggested changes and merge the ones I find legitimate.
Thanks.
Comment 7 Julian Ospald 2013-08-22 15:42:08 UTC
maybe ask the python herd for review before you do a conversion
Comment 8 Fabio Erculiani (RETIRED) gentoo-dev 2013-08-22 15:48:48 UTC
(In reply to Julian Ospald (hasufell) from comment #5)
> more:
> * PYTHON_REQUIRED_USE is missing

Nope.
PYTHON_REQ_USE="sqlite"

> * eutils.eclass is unused
> * dodir in line 55 is redundant
> * "|| die" in line 50 and 60 are redundant
> * "cd" in line 49 and 58 are redundant, use "emake -C lib foo"

Next time, please attach a diff.

> * I'd rather use real bash syntax in pkg_postinst

If you really care about this, just send me a patch!
Comment 9 Julian Ospald 2013-08-22 15:54:51 UTC
(In reply to Fabio Erculiani from comment #8)
> (In reply to Julian Ospald (hasufell) from comment #5)
> > more:
> > * PYTHON_REQUIRED_USE is missing
> 
> Nope.
> PYTHON_REQ_USE="sqlite"
> 

That is incorrect, PYTHON_REQ_USE != PYTHON_REQUIRED_USE
See the eclass for details. The manpages seem outdated.
Comment 10 Fabio Erculiani (RETIRED) gentoo-dev 2013-08-22 16:00:52 UTC
What an unfortunate name :( (REQ_USE vs REQUIRED_USE).
Okay, got it. I will bump entropy soon anyway.
Comment 11 Julian Ospald 2013-08-22 16:03:38 UTC
yes, the naming is non-intuitive and the docs are outdated
Comment 12 Mike Gilbert gentoo-dev 2013-08-22 16:29:26 UTC
(In reply to Julian Ospald (hasufell) from comment #11)
> yes, the naming is non-intuitive and the docs are outdated

Which docs would those be? The manpages are generated from the eclass docs when you emerge eclass-manpages.
Comment 13 Julian Ospald 2013-08-22 16:31:50 UTC
(In reply to Mike Gilbert from comment #12)
> (In reply to Julian Ospald (hasufell) from comment #11)
> > yes, the naming is non-intuitive and the docs are outdated
> 
> Which docs would those be? The manpages are generated from the eclass docs
> when you emerge eclass-manpages.

http://www.gentoo.org/proj/en/Python/python-r1/dev-guide.xml
https://wiki.gentoo.org/wiki/Python-r1
https://wiki.gentoo.org/wiki/Python-r1/examples
Comment 14 Fabio Erculiani (RETIRED) gentoo-dev 2013-08-23 05:55:31 UTC
I delayed the entropy v217 release so I am going to fix the problems in v216 in tree.

+  23 Aug 2013; Fabio Erculiani <lxnay@gentoo.org> entropy-216.ebuild:
+  Fix python-single-r1 usage as reported by hasufell in bug #482032
+

Should you have more complaints, please reopen this bug.