Re: [gentoo-dev] Re: PSA: python-r1.eclass, python-single-r1.eclass, and REQUIRED_USE

2013-05-31 Thread Sergey Popov
29.05.2013 18:51, Michael Palimaka пишет:
 Would it be possible to add repoman checks for this, and other common
 failures like missing PYTHON_USEDEP?

+1 for repoman check on PYTHON_REQUIRED_USE and PYTHON_DEPS

-- 
Best regards, Sergey Popov
Gentoo developer
Gentoo Desktop Effects project lead
Gentoo Qt project lead



signature.asc
Description: OpenPGP digital signature


[gentoo-dev] Re: PSA: python-r1.eclass, python-single-r1.eclass, and REQUIRED_USE

2013-05-29 Thread Michael Palimaka

On 28/05/2013 01:35, Jonathan Callen wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

A quick reminder for anyone using python-r1.eclass or
python-single-r1.eclass:

These eclasses provide a ${PYTHON_REQUIRED_USE} variable that should
be included in REQUIRED_USE under the same USE conditionals (if any)
that ${PYTHON_DEPS} is included in DEPEND/RDEPEND.

For example, if your ebuild has:

RDEPEND=
 python? ( ${PYTHON_DEPS}


then you should also have:

REQUIRED_USE=
 python? ( ${PYTHON_REQUIRED_USE} )


And if your ebuild just has:

RDEPEND=${PYTHON_DEPS}

then you should also have:

REQUIRED_USE=${PYTHON_REQUIRED_USE}

Failure to include these in REQUIRED_USE may cause the eclass to die
very late in the build process.

Thank you,

Jonathan Callen
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCgAGBQJRo309AAoJELHSF2kinlg4dVcP/2t3v1t8CId8jK/c4VG8HLWL
zTEvTI3d8wQILuHydI9VkOZllo3dPWhhUhg/1qJjwEXXnKQXiYNUiVzbtwdkGro/
OlkCrrpDstHgawHiovIZjgyEG9Y+Nz2Z5nKorZIAMFSFepaFsIkihVR3VkeHiG9Q
7XOOVaH8mqGuj7JWZNqikCmB11a6t08jVM68tzwtTZUuil1IRE2qjO5akMPczsvk
3ndoMsv5hQwUE4wmmTH4ffiz+wp/JUylK2Ypy6p/UWlMw+oq8IusyvQdKztF2rU4
SyjnEOHcPtbLXMA24NHSAUov5L3xVcSu4he5A+QnY0Ghn0dZ7Wbk72aRZQP+MOk+
e18tdPRaXE35ux8s0ogLeuD04lju6z5/esJbP8LF8H6loiKCURxVOfYEhUugIMIc
ihb6h4o4cflz2tYV6USOHxUQ6pA78X7ftXGJhOOR1sf1/2GZcg7ZQvD0WqjNLbAo
U52yQl3/bKMVpezYLhkLxgzmRAdwbBdBFdiav8dX+QNYabLPG/0y6mkqK0pc59sS
Lsse/dXCPrxfI6MVbsSQAaFt4s/YNrf9NLabdPHShRlWX8pRc16feQFb7FoTCmWe
BzwBwG63Mvw2OOS0GrXIfXdFs9klbezoZ8Ql8Zb3CIZPWaBPAOYfCqZDHkDDAyQL
UYQyPJdIntHmxKbtMQr9
=frSU
-END PGP SIGNATURE-


Would it be possible to add repoman checks for this, and other common 
failures like missing PYTHON_USEDEP?





Re: [gentoo-dev] Re: PSA: python-r1.eclass, python-single-r1.eclass, and REQUIRED_USE

2013-05-29 Thread hasufell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/29/2013 04:51 PM, Michael Palimaka wrote:
 Would it be possible to add repoman checks for this, and other
 common failures like missing PYTHON_USEDEP?
 
 

The latter is impossible. Repoman has no way to figure out if
PYTHON_USEDEP is necessary.

You have to keep in mind that PYTHON_USEDEP does _not_ apply to every
python dependency. If your application just runs a python script of
another application, then it might not care under which implementation
that is executed.
If it's about importing modules, then we always need PYTHON_USEDEP.
But how should repoman know?
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRphl3AAoJEFpvPKfnPDWzKvkIAK9KTyK6bAjLMz7xD2xaC5lD
QJptr5mEWH3MR+rTyyTSF0YJdPpDR0R3lJDDmUUqqE+xlCSO1kKaEYdJ1bNzQ/Kv
fMxJEi99UA90Znn+G0gIzBOuqECOk9KZkuhkgCqZAatGgIJ6dc7sboVS7c8pZo8x
vwbSvhKw8iJEY26HENspZQSmWupsYy++JG6iERU0GBnpSRDxvTbquanZ6zdo/og7
GbbDYbGA8OVICNBwhpIgDeStxRtpBaLw9c6BDtN+6FXf33s/hR2nAPpwX/3kLHrD
thb+/Xf17G8Ao8JJdNns0gAA5ivzDZvETgQTvh8QH4wFzrlDH4MVcoeuLdhhlUU=
=EwlO
-END PGP SIGNATURE-



[gentoo-dev] Re: PSA: python-r1.eclass, python-single-r1.eclass, and REQUIRED_USE

2013-05-29 Thread Michael Palimaka

On 30/05/2013 01:06, hasufell wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 05/29/2013 04:51 PM, Michael Palimaka wrote:

Would it be possible to add repoman checks for this, and other
common failures like missing PYTHON_USEDEP?




The latter is impossible. Repoman has no way to figure out if
PYTHON_USEDEP is necessary.

You have to keep in mind that PYTHON_USEDEP does _not_ apply to every
python dependency. If your application just runs a python script of
another application, then it might not care under which implementation
that is executed.
If it's about importing modules, then we always need PYTHON_USEDEP.
But how should repoman know?
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRphl3AAoJEFpvPKfnPDWzKvkIAK9KTyK6bAjLMz7xD2xaC5lD
QJptr5mEWH3MR+rTyyTSF0YJdPpDR0R3lJDDmUUqqE+xlCSO1kKaEYdJ1bNzQ/Kv
fMxJEi99UA90Znn+G0gIzBOuqECOk9KZkuhkgCqZAatGgIJ6dc7sboVS7c8pZo8x
vwbSvhKw8iJEY26HENspZQSmWupsYy++JG6iERU0GBnpSRDxvTbquanZ6zdo/og7
GbbDYbGA8OVICNBwhpIgDeStxRtpBaLw9c6BDtN+6FXf33s/hR2nAPpwX/3kLHrD
thb+/Xf17G8Ao8JJdNns0gAA5ivzDZvETgQTvh8QH4wFzrlDH4MVcoeuLdhhlUU=
=EwlO
-END PGP SIGNATURE-



Sorry, I meant to write PYTHON_DEPS.




[gentoo-dev] Re: PSA: python-r1.eclass, python-single-r1.eclass, and REQUIRED_USE

2013-05-27 Thread Jonathan Callen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On 05/27/2013 01:24 PM, Tomáš Chvátal wrote:
 Is there actually list of current offenders?
 
 It would be pretty nice to have bugs opened if someone forgot to
 set it.
 
 Tom
 

While there may be some false positives in this list, below is a list
of the ebuilds that inherit python-r1 or python-single-r1 that do not
include anything referencing python_targets_* in REQUIRED_USE:

app-accessibility/accerciser-3.6.2-r1
app-accessibility/accerciser-3.8.0
app-accessibility/accerciser-3.8.2
app-accessibility/caribou-0.4.10
app-accessibility/caribou-0.4.7
app-accessibility/caribou-0.4.8
app-accessibility/orca-3.6.3-r1
app-accessibility/orca-3.8.1
app-accessibility/pocketsphinx-0.8
app-accessibility/speech-dispatcher-0.7.1-r2
app-accessibility/speech-dispatcher-0.8-r1
app-accessibility/speech-dispatcher-0.8-r2
app-accessibility/sphinxbase-0.8
app-accessibility/SphinxTrain-1.0.8
app-arch/rpm-4.11.0.1
app-benchmarks/bootchart2-0.14.5-r1
app-cdr/cdemu-2.0.0
app-cdr/gcdemu-2.0.0
app-editors/gedit-3.6.2-r1
app-editors/gedit-3.8.1
app-editors/gedit-3.8.2
app-editors/gedit-plugins-3.6.1-r1
app-editors/gedit-plugins-3.8.1
app-editors/gedit-plugins-3.8.2
app-editors/gvim-7.3.905
app-editors/gvim-7.3.931
app-editors/gvim-
app-editors/vim-7.3.905
app-editors/vim-7.3.931
app-editors/vim-
app-emulation/crossover-bin-12.1.2
app-emulation/crossover-bin-12.2.0
app-emulation/libvirt-glib-0.1.5
app-emulation/libvirt-glib-0.1.6
app-emulation/xen-4.2.0-r1
app-emulation/xen-4.2.0-r2
app-emulation/xen-4.2.1-r1
app-emulation/xen-4.2.1-r2
app-emulation/xen-4.2.1-r3
app-emulation/xen-4.2.2
app-emulation/xen-tools-4.2.0-r3
app-emulation/xen-tools-4.2.1
app-emulation/xen-tools-4.2.1-r1
app-emulation/xen-tools-4.2.1-r2
app-emulation/xen-tools-4.2.1-r3
app-emulation/xen-tools-4.2.2-r1
app-i18n/ibus-1.5.2
app-i18n/ibus-anthy-1.5.0
app-i18n/mozc-1.10.1390.102
app-misc/byobu-5.39
app-misc/byobu-5.41
app-misc/byobu-5.41-r1
app-misc/evemu-1.1.0
app-misc/golly-2.4-r1
app-misc/grc-1.4-r1
app-misc/metromap-0.1.4-r1
app-misc/terminal-colors-1.5
app-misc/workrave-1.10
app-office/gnucash-2.4.12
app-office/gnumeric-1.12.0-r1
app-office/gnumeric-1.12.1
app-office/gnumeric-1.12.2
app-office/libreoffice-3.6.6.2
app-office/libreoffice-3.6.
app-office/libreoffice-4.0.3.3
app-office/libreoffice-4.0.
app-office/libreoffice-4.1.
app-office/libreoffice--r2
app-office/planner-0.14.6_p20130520
app-office/scribus-1.4.2-r2
app-office/scribus-1.4.
app-pda/libimobiledevice-1.1.5
app-pda/libplist-1.10
app-shells/autojump-21.3.0-r1
app-shells/autojump-21.5.8
app-text/asciidoc-8.6.8-r1
app-text/asciidoc-
app-text/gnome-doc-utils-0.20.10-r1
app-text/gtranslator-2.91.6
app-text/pastebinit-1.3.1-r1
app-vim/splice-1.0.1
app-vim/vim-latex-1.8.23.20130116
dev-db/postgresql-server-8.4.17
dev-db/postgresql-server-9.0.13
dev-db/postgresql-server-9.1.9
dev-db/postgresql-server-9.2.4
dev-db/postgresql-server-
dev-java/antlr-2.7.7-r1
dev-java/antlr-2.7.7-r3
dev-java/antlr-2.7.7-r4
dev-java/antlr-2.7.7-r5
dev-lang/yasm-1.2.0-r1
dev-lang/yasm-
dev-libs/boost-1.52.0-r6
dev-libs/boost-1.53.0
dev-libs/botan-1.10.3-r1
dev-libs/btparser-0.24
dev-libs/cryptlib-3.4.0-r1
dev-libs/dee-1.0.14-r2
dev-libs/glib-2.36.1
dev-libs/glib-2.36.2
dev-libs/gobject-introspection-1.34.2-r1
dev-libs/gobject-introspection-1.36.0
dev-libs/libpeas-1.6.2-r1
dev-libs/libpeas-1.8.0
dev-libs/libpwquality-1.2.0-r2
dev-libs/libRocket-1.2.1
dev-libs/libRocket-1.2.1_p20130110
dev-libs/libRocket-1.2.1_p20130110-r1
dev-libs/libRocket-
dev-libs/libxml2-2.8.0-r4
dev-libs/libxml2-2.9.0-r1
dev-libs/libxml2-2.9.0-r2
dev-libs/libxslt-1.1.28-r1
dev-libs/newt-0.52.15
dev-python/compizconfig-python-0.8.4-r5
dev-python/docutils-glep-0.4-r1
dev-python/graph-tool-2.2.21
dev-python/graph-tool-2.2.22
dev-python/graph-tool-2.2.23
dev-python/graph-tool-
dev-python/gst-python-0.10.22-r1
dev-python/notify-python-0.1.1-r3
dev-python/psycopg-1.1.21-r1
dev-python/pyatspi-2.6.0-r1
dev-python/pyatspi-2.8.0
dev-python/pycairo-1.10.0-r4
dev-python/pygobject-2.28.6-r53
dev-python/pygobject-3.2.2-r1
dev-python/pygobject-3.4.2-r1
dev-python/pygobject-3.8.1
dev-python/pygobject-3.8.2
dev-python/pygoocanvas-0.14.1-r1
dev-python/pygtk-2.24.0-r3
dev-python/pygtksourceview-2.10.1-r1
dev-python/PyQt4-4.10
dev-python/PyQt4-4.10.1
dev-python/PyQt4-4.9.6-r2
dev-python/pyqwt-5.2.0-r1
dev-python/pyside-1.1.2-r1
dev-python/python-exec-0.2
dev-python/python-exec-0.3
dev-python/python-exec-0.3.1
dev-python/python-exec-
dev-python/python-poppler-0.12.1-r4
dev-python/qscintilla-python-2.7.1
dev-python/shiboken-1.1.2-r1
dev-python/sip-4.14.3
dev-python/sip-4.14.6
dev-python/subunit-0.0.10-r1
dev-python/telepathy-python-0.15.19-r1
dev-util/anjuta-3.6.2-r1
dev-util/anjuta-3.8.1
dev-util/anjuta-3.8.3
dev-util/catfish-0.6.3
dev-util/coccinelle-1.0.0_rc17
dev-util/devhelp-3.6.1-r1
dev-util/devhelp-3.8.1
dev-util/devhelp-3.8.2
dev-util/dwarves-1.10-r1
dev-util/fatrace-0.5