[gentoo-dev] Re: [PATCH] gcc-config: Add option to not install cc/f77 wrappers.

2020-03-10 Thread Manoj Gupta
On Tue, Mar 3, 2020 at 1:17 AM Sergei Trofimovich  wrote:

> On Mon, 2 Mar 2020 19:03:48 -0800
> Manoj Gupta  wrote:
>
> > On Thu, Feb 27, 2020 at 11:20 PM Sergei Trofimovich 
> > wrote:
> >
> > > On Thu, 27 Feb 2020 at 22:41, Manoj Gupta 
> wrote:
> > > >
> > > >
> > > >
> > > > On Thu, Feb 27, 2020 at 11:22 AM Manoj Gupta 
>
> > > wrote:
> > > >>
> > > >> gcc-config installs cc/f77 by default. This may be undesired on
> > > >> systems that want to set their own versions of cc/f77.
> > > >>
> > > >> Add option "-n"/"--no-default-vars" to not install the cc/f77
> > > >> wrappers.
> > > >>
> > > >> Signed-off-by: Manoj Gupta 
> > > >> ---
> > > >>  gcc-config | 6 +-
> > > >>  1 file changed, 5 insertions(+), 1 deletion(-)
> > > >>
> > > >> diff --git a/gcc-config b/gcc-config
> > > >> index f03a46a..6f306db 100755
> > > >> --- a/gcc-config
> > > >> +++ b/gcc-config
> > > >> @@ -262,7 +262,7 @@ update_wrappers() {
> > > >> # For all toolchains, we want to create the fully qualified
> > > >> # `tuple-foo`.  Only native ones do we want the simple
> `foo`.
> > > >> local all_wrappers=( ${new_wrappers[@]/#/${CTARGET}-} )
> > > >> -   if ! is_cross_compiler ; then
> > > >> +   if ! is_cross_compiler && [[ "${DEFAULT_PROGS}" == "yes"
> ]];
> > > then
> > > >> all_wrappers+=( "${new_wrappers[@]}" )
> > > >> # There are a few fun extra progs which we have to
> > > handle #412319
> > > >> all_wrappers+=( cc:gcc f77:g77 )
> > > >> @@ -951,6 +951,7 @@ FORCE="no"
> > > >>  CC_COMP=
> > > >>  ENV_D="${EROOT}etc/env.d"
> > > >>  GCC_ENV_D="${ENV_D}/gcc"
> > > >> +DEFAULT_PROGS="yes"
> > > >>
> > > >>  for x in "$@" ; do
> > > >> case "${x}" in
> > > >> @@ -972,6 +973,9 @@ for x in "$@" ; do
> > > >> -l|--list-profiles)
> > > >> set_doit list_profiles
> > > >> ;;
> > > >> +   -n|--no-default-vars)
> > > >> +   DEFAULT_PROGS="no"
> > > >> +   ;;
> > > >> -S|--split-profile)
> > > >> if [[ ( $1 != "-S" && $1 !=
> "--split-profile" )
> > > || $# -eq 1 ]] ; then
> > > >> usage 1
> > > >> --
> > > >>
> > > >
> > > > Not sure of the correct mailing list for patches to gcc-config so
> also
> > > adding toolchain@gentoo .
> > > >
> > >
> > > toolch...@gentoo.org should generally be fine.
> > >
> > > Today cc->gcc and gcc->${CHOST}-gcc symlinks are effectively owned by
> > > a single sys-devel/gcc-config package.
> > > gcc-config is calld to update symlinks every time sys-devel/gcc is
> > > installed/updated. That way we never get cc/gcc
> > > out of sync.
> > >
> > > Your change makes /usr/bin/cc an orphan symlink. I think we need to
> > > still keep a 'cc'/'f77' ownership somewhere
> > > (say, a separate package).
> > >
> > > I suggest making a decision to handle or not handle 'cc'/'f77' and
> > > gcc-config build-time, not gcc-config call-time.
> > > That way sys-devel/gcc updates will behave the same as manual
> > > 'gcc-config-' calls.
> > >
> > > Mechanically that could be a Makefile variable that switches the
> > > behaviour on/off at
> > > https://gitweb.gentoo.org/proj/gcc-config.git/tree/Makefile
> > > and exposed as an USE flag on sys-devel/gcc-config ebuild.
> > >
> > > Later we can create a separate ebuild to manage /usr/bin/cc. For gcc
> > > it's not hard, as gcc-config always provides /usr/bin/gcc and
> > > /usr/bin/${CHOST}-gcc.
> > > These can be static symlinks that don't require maintenance updates.
> > >
> > > Thanks for the suggestion. I will look into adding a Makefile
> variable
> > exposed via an USE flag.
>
> You might also need to look in the detail at 'c++', 'cpp' and ${CHOST}-*
> equivalents
> as those also get linked by gcc-config:
>
> $ LANG=C ls -l /usr/bin/ | fgrep 10.0.1 | fgrep -v -- '-10.0.1 ->'
> lrwxrwxrwx   1 root root   43 Feb  4 10:45 c++ ->
> /usr/x86_64-pc-linux-gnu/gcc-bin/10.0.1/c++
> lrwxrwxrwx   1 root root   43 Feb  4 10:45 cc ->
> /usr/x86_64-pc-linux-gnu/gcc-bin/10.0.1/gcc
> lrwxrwxrwx   1 root root   43 Feb  4 10:45 cpp ->
> /usr/x86_64-pc-linux-gnu/gcc-bin/10.0.1/cpp
> lrwxrwxrwx   1 root root   43 Feb  4 10:45 g++ ->
> /usr/x86_64-pc-linux-gnu/gcc-bin/10.0.1/g++
> lrwxrwxrwx   1 root root   43 Feb  4 10:45 gcc ->
> /usr/x86_64-pc-linux-gnu/gcc-bin/10.0.1/gcc
> lrwxrwxrwx   1 root root   46 Feb  4 10:45 gcc-ar ->
> /usr/x86_64-pc-linux-gnu/gcc-bin/10.0.1/gcc-ar
> lrwxrwxrwx   1 root root   46 Feb  4 10:45 gcc-nm ->
> /usr/x86_64-pc-linux-gnu/gcc-bin/10.0.1/gcc-nm
> lrwxrwxrwx   1 root root   50 Feb  4 10:45 gcc-ranlib ->
> /usr/x86_64-pc-linux-gnu/gcc-bin/10.0.1/gcc-ranlib
> lrwxrwxrwx   1 root root   45 Feb  4 10:45 gccgo ->
> /usr/x86_64-pc-linux-gnu/gcc-bin/10.0.1/gccgo
> lrwxrwxrwx   1 root root   44 Feb  4 10:45 gcov ->
> 

Re: [gentoo-portage-dev] [PATCH v2 gentoolkit 2/2] eclean: Add option to delete binpkgs with changed deps

2020-03-10 Thread Zac Medico
On 3/6/20 10:11 PM, Matt Turner wrote:
> +def _deps_equal(deps_a, deps_b, eapi, uselist=None):
> + """Compare two dependency lists given a set of USE flags"""
> + if deps_a == deps_b: return True
> +
> + deps_a = use_reduce(deps_a, uselist=uselist, eapi=eapi, 
> token_class=Atom)
> + deps_b = use_reduce(deps_b, uselist=uselist, eapi=eapi, 
> token_class=Atom)

It's pure luck that passing a list of depstrings to use_reduce works
here, so it will be more future-proof to use ' '.join(depstr) instead.
The relevant code in use_reduce looks like this:

if isinstance(depstr, list):
if portage._internal_caller:
warnings.warn(_("Passing paren_reduced dep arrays to %s is 
deprecated. " + \
"Pass the original dep string instead.") % \
('portage.dep.use_reduce',), DeprecationWarning, 
stacklevel=2)
depstr = paren_enclose(depstr)
-- 
Thanks,
Zac





signature.asc
Description: OpenPGP digital signature


Re: [gentoo-dev] [PATCH] dev-python/metadata.xml: Clarify description

2020-03-10 Thread WooHyung Jeon

On 2020-03-11 오전 12:57, Michał Górny wrote:

On Tue, 2020-03-10 at 23:18 +0900, WooHyung Jeon wrote:

On 2020-03-08 오후 5:51, Michał Górny wrote:

Rewrite the description for dev-python category in order to clarify
its purpose.  It has been pointed out that the previous description may
have suggested that it is the category for *all* things written
in Python.


Can I add Korean translation too?


  dev-python 카테고리는 Python 모듈, 확장 그리고 바인딩을
  제공할 뿐만 아니라 Python 프로그래밍 언어 개발을 위해
  유용한 도구와 유틸리티를 제공하는 것이 목적인 패키지들을
  담고 있습니다.



Pushed.  Please verify that I didn't break it ;-).



Checked! Correct, Thanks!
--
WooHyung Jeon
d...@whjeon.com



Re: [gentoo-dev] [PATCH] dev-python/metadata.xml: Clarify description

2020-03-10 Thread Michał Górny
On Tue, 2020-03-10 at 23:18 +0900, WooHyung Jeon wrote:
> On 2020-03-08 오후 5:51, Michał Górny wrote:
> > Rewrite the description for dev-python category in order to clarify
> > its purpose.  It has been pointed out that the previous description may
> > have suggested that it is the category for *all* things written
> > in Python.
> 
> Can I add Korean translation too?
> 
> 
>  dev-python 카테고리는 Python 모듈, 확장 그리고 바인딩을
>  제공할 뿐만 아니라 Python 프로그래밍 언어 개발을 위해
>  유용한 도구와 유틸리티를 제공하는 것이 목적인 패키지들을
>  담고 있습니다.
> 

Pushed.  Please verify that I didn't break it ;-).

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [PATCH] dev-python/metadata.xml: Clarify description

2020-03-10 Thread Michał Górny
On Tue, 2020-03-10 at 12:01 +0100, Haelwenn (lanodan) Monnier wrote:
> Not sure if I can submit translations, but I'll try:
> 
> [2020-03-08 09:51:27+0100] Michał Górny:
> > Rewrite the description for dev-python category in order to clarify
> > its purpose.  It has been pointed out that the previous description may
> > have suggested that it is the category for *all* things written
> > in Python.
> > 
> > Signed-off-by: Michał Górny 
> > ---
> >  dev-python/metadata.xml | 44 +++--
> >  1 file changed, 12 insertions(+), 32 deletions(-)
> > 
> > // If you can supply translations for the remaining languages, please
> > // send them my way and I'll update the patch.
> > 
> > diff --git a/dev-python/metadata.xml b/dev-python/metadata.xml
> > index ed6a813dd009..b90b8f66f45a 100644
> > --- a/dev-python/metadata.xml
> > +++ b/dev-python/metadata.xml
> > @@ -2,41 +2,21 @@
> >  http://www.gentoo.org/dtd/metadata.dtd;>
> >  
> > 
> > -   The dev-python category contains libraries, utilities or
> > -   bindings written in or for the Python programming language. 
> > +   The dev-python category contains packages whose primary purpose
> > +   is to provide Python modules, extensions and bindings, as well
> > +   as tools and utilities useful for development in the Python
> > +   programming language.
> > 
> 
> 
>   La catégorie dev-python contient principalement des paquets pour les 
>   modules Python, des extensions et des bindings, ainsi que des outils et 
>   utilitaires utiles dans le language de programmation Python.
> 
> 

Will add, thanks.

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] Re: [gentoo-commits] repo/gentoo:master commit in: app-office/calcurse/

2020-03-10 Thread Andreas K. Huettel
Reverted [QA]. For reasons see below.

Am Dienstag, 10. März 2020, 12:28:25 CET schrieb Patrice Clement:
> commit: 34217564ddc5cd46762ffdaeb217aabd905dec6a
> Author: Patrice Clement  gentoo  org>
> AuthorDate: Tue Mar 10 10:32:00 2020 +
> Commit: Patrice Clement  gentoo  org>
> CommitDate: Tue Mar 10 11:28:15 2020 +
> URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34217564
> 
> app-office/calcurse: version bump.
> 
> Package-Manager: Portage-2.3.89, Repoman-2.3.20
> Signed-off-by: Patrice Clement  gentoo.org>
> 
>  app-office/calcurse/Manifest  |  1 +
>  app-office/calcurse/calcurse-4.5.0.ebuild | 47
> +++ 2 files changed, 48 insertions(+)
> 
> diff --git a/app-office/calcurse/Manifest b/app-office/calcurse/Manifest
> index a709a800e0c..d61266faf9b 100644
> --- a/app-office/calcurse/Manifest
> +++ b/app-office/calcurse/Manifest
> @@ -1 +1,2 @@
>  DIST calcurse-4.4.0.tar.gz 620263 BLAKE2B
> 8fbe875f5e757ec3c11b9c23a994260403ee990bfcb3d4c41eefbf06a6db9e76cd5157e32b1
> 1c3fdc049896d5db3a9856862724902dab1cb48e0b00ef5df6f73 SHA512
> 43d30ad68bb39aaa9460644a691e66cbb15b9930737581583da65d00214c70fb1148a0edeca
> 4430abb7a5cef2821b0f4c6fdbed8188d9ea5da5fedc4f95fa07c +DIST
> calcurse-4.5.0.tar.gz 657976 BLAKE2B
> 5cad43340cb973d402c92b7963f9c13e46acbb2f802df2ab447221913daa6b28872a323b743
> bc31be0c7358ea8e7d51d08054c81f3376d3dc07f5837d41be45f SHA512
> 795eae7c62b89c733049f0c137da398ce3dd5fba78f9a2c323aacdf8b176cf37bd9d0768dbd
> ac0bb1cb64cd248b1d851efd059836fbbbdd9665fa47beff3b872
> 
> diff --git a/app-office/calcurse/calcurse-4.5.0.ebuild
> b/app-office/calcurse/calcurse-4.5.0.ebuild new file mode 100644
> index 000..46600edc61f
> --- /dev/null
> +++ b/app-office/calcurse/calcurse-4.5.0.ebuild
> @@ -0,0 +1,47 @@
> +# Copyright 1999-2020 Gentoo Authors
> +# Distributed under the terms of the GNU General Public License v2
> +
> +EAPI=7
> +
> +inherit autotools eutils multilib-minimal

eutils is not used anywhere.

> +
> +DESCRIPTION="a text-based calendar and scheduling application"
> +HOMEPAGE="https://calcurse.org/;
> +SRC_URI="https://calcurse.org/files/${P}.tar.gz;
> +
> +LICENSE="BSD-2"
> +SLOT="0"
> +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
> +IUSE="doc"

Is that "doc" doing anything ...

> +
> +RDEPEND="
> + dev-python/httplib2

As far as I can see, httplib2 installs only python packages specific for python 
versions, no utilities to be called from shell. How do you make sure that it's 
installed for currently active python?

> + sys-libs/ncurses:0="
> +
> +DEPEND="
> + ${RDEPEND}
> + doc? ( app-text/asciidoc )"

... except adding a DEPEND?
Also, with EAPI=7 asciidoc should probably be a BDEPEND.

> +
> +PATCHES=(
> + "${FILESDIR}"/${PN}-4.2.1-tinfo.patch
> +)
> +
> +# Most tests fail.
> +RESTRICT="test"

is there an open bug about it?

> +
> +src_prepare() {
> + default
> + eautoreconf
> +}
> +

> +multilib_src_configure() {
> + ECONF_SOURCE="${S}" econf
> +}
> +

Likely redundant.

> +src_compile() {
> + multilib-minimal_src_compile
> +}
> +
> +src_install() {
> + multilib-minimal_src_install
> +}

Completely pointless redefinition of src_compile and src_install (both are 
exported by multilib-minimal.eclass)...

-- 
Andreas K. Hüttel
dilfri...@gentoo.org
Gentoo Linux developer 
(council, qa, toolchain, base-system, perl, libreoffice)


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-dev] [PATCH] dev-python/metadata.xml: Clarify description

2020-03-10 Thread WooHyung Jeon

On 2020-03-08 오후 5:51, Michał Górny wrote:

Rewrite the description for dev-python category in order to clarify
its purpose.  It has been pointed out that the previous description may
have suggested that it is the category for *all* things written
in Python.


Can I add Korean translation too?


dev-python 카테고리는 Python 모듈, 확장 그리고 바인딩을
제공할 뿐만 아니라 Python 프로그래밍 언어 개발을 위해
유용한 도구와 유틸리티를 제공하는 것이 목적인 패키지들을
담고 있습니다.




--
WooHyung Jeon
d...@whjeon.com



Re: [gentoo-dev] [PATCH] dev-python/metadata.xml: Clarify description

2020-03-10 Thread Haelwenn (lanodan) Monnier
Not sure if I can submit translations, but I'll try:

[2020-03-08 09:51:27+0100] Michał Górny:
> Rewrite the description for dev-python category in order to clarify
> its purpose.  It has been pointed out that the previous description may
> have suggested that it is the category for *all* things written
> in Python.
> 
> Signed-off-by: Michał Górny 
> ---
>  dev-python/metadata.xml | 44 +++--
>  1 file changed, 12 insertions(+), 32 deletions(-)
> 
> // If you can supply translations for the remaining languages, please
> // send them my way and I'll update the patch.
> 
> diff --git a/dev-python/metadata.xml b/dev-python/metadata.xml
> index ed6a813dd009..b90b8f66f45a 100644
> --- a/dev-python/metadata.xml
> +++ b/dev-python/metadata.xml
> @@ -2,41 +2,21 @@
>  http://www.gentoo.org/dtd/metadata.dtd;>
>  
>   
> - The dev-python category contains libraries, utilities or
> - bindings written in or for the Python programming language. 
> + The dev-python category contains packages whose primary purpose
> + is to provide Python modules, extensions and bindings, as well
> + as tools and utilities useful for development in the Python
> + programming language.
>   


La catégorie dev-python contient principalement des paquets pour les 
modules Python, des extensions et des bindings, ainsi que des outils et 
utilitaires utiles dans le language de programmation Python.



Best regards,