[gentoo-dev] Last rites: net-misc/ttytter

2024-04-26 Thread Arthur Zamarin
# Arthur Zamarin  (2024-04-26)
# Broken and reported as such upstream. EAPI=6.
# Removal: 2024-05-26.  Bug #912842.
net-misc/ttytter


OpenPGP_signature.asc
Description: OpenPGP digital signature


[gentoo-dev] Re: [PATCH 2/3] To build ada we need a c++ compiler too

2024-04-26 Thread Alfredo Tupone
On Fri, 26 Apr 2024 10:29:43 +0200
Arsen Arsenović  wrote:

> >  is_ada() {
> > gcc-lang-supported ada || return 1
> > -   _tc_use_if_iuse ada
> > +   _tc_use_if_iuse cxx && _tc_use_if_iuse ada  
> 
> Is this redundant?  Would gcc-lang-supported c++ (called through the
> ada support check) not suffice?

From what I understand this test is checking that both USE=cxx and
USE=ada are enabled, and both cxx and ada are supported by gcc.

If not, gcc is built without the ada compiler



Re: [gentoo-dev] [PATCH 1/3] To make "tc_has_feature ada" actually work

2024-04-26 Thread Alfredo Tupone
On Fri, 26 Apr 2024 10:34:44 +0200
Arsen Arsenović  wrote:

> looks OK at a glance, but could you summarize the issues the patch set
> fixes in the commit messages (and reword them to follow convention
> generally)?  it is important to have context while looking at a git
> log.

> > -   IUSE+=" ada"
> > +   IUSE+=" ada" TC_FEATURES+=( ada )  

The change is about adding TC_FEATURES+=( ada )

Some lines towards the end there is 


# TODO: Add a pkg_setup & pkg_pretend check for whether the active
compiler # supports Ada.
if tc_has_feature ada ; then
BDEPEND+=" ada? ( || ( sys-devel/gcc[ada] dev-lang/gnat-gpl[ada] )
)"
fi


it looks to me that if TC_FEATURES+=( ada ) is missing, that dependency
is not added

> 
> does this apply for all versions of GCC?

I really don't know. Ada source are provided with gcc-8 too (the oldest
version in the tree). I personally built gcc-10..13




Re: [gentoo-dev] [PATCH 1/3] To make "tc_has_feature ada" actually work

2024-04-26 Thread Arsen Arsenović
looks OK at a glance, but could you summarize the issues the patch set
fixes in the commit messages (and reword them to follow convention
generally)?  it is important to have context while looking at a git log.

Alfredo Tupone  writes:

> Signed-off-by: Alfredo Tupone 
> ---
>  eclass/toolchain.eclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
> index a5d4345e7fbf..fd820f60f45d 100644
> --- a/eclass/toolchain.eclass
> +++ b/eclass/toolchain.eclass
> @@ -288,31 +288,31 @@ if [[ ${PN} != kgcc64 && ${PN} != gcc-* ]] ; then
>   IUSE+=" objc-gc" TC_FEATURES+=( objc-gc )
>   IUSE+=" libssp objc++"
>  
>   # Stop forcing openmp on by default in the eclass. Gradually phase it 
> out.
>   # See bug #890999.
>   if tc_version_is_at_least 13.0.0_pre20221218 ; then
>   IUSE+=" openmp"
>   else
>   IUSE+=" +openmp"
>   fi
>  
>   IUSE+=" fixed-point"
>   IUSE+=" go"
>   IUSE+=" +sanitize"  TC_FEATURES+=( sanitize )
>   IUSE+=" graphite" TC_FEATURES+=( graphite )
> - IUSE+=" ada"
> + IUSE+=" ada" TC_FEATURES+=( ada )

does this apply for all versions of GCC?

>   IUSE+=" vtv"
>   IUSE+=" jit"
>   IUSE+=" +pie +ssp pch"
>  
>   IUSE+=" systemtap" TC_FEATURES+=( systemtap )
>  
>   tc_version_is_at_least 9.0 && IUSE+=" d" TC_FEATURES+=( d )
>   tc_version_is_at_least 9.1 && IUSE+=" lto"
>   tc_version_is_at_least 10 && IUSE+=" cet"
>   tc_version_is_at_least 10 && IUSE+=" zstd" TC_FEATURES+=( zstd )
>   tc_version_is_at_least 11 && IUSE+=" valgrind" TC_FEATURES+=( valgrind )
>   tc_version_is_at_least 11 && IUSE+=" custom-cflags"
>   tc_version_is_at_least 12 && IUSE+=" ieee-long-double"
>   tc_version_is_at_least 12.2.1_p20221203 ${PV} && IUSE+=" default-znow"
>   tc_version_is_at_least 12.2.1_p20221203 ${PV} && IUSE+=" 
> default-stack-clash-protection"

-- 
Arsen Arsenović


signature.asc
Description: PGP signature


[gentoo-dev] Re: [PATCH 2/3] To build ada we need a c++ compiler too

2024-04-26 Thread Arsen Arsenović
Hi,

Alfredo Tupone  writes:

> Signed-off-by: Alfredo Tupone 
> ---
>  eclass/toolchain.eclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
> index fd820f60f45d..f8e06fa39884 100644
> --- a/eclass/toolchain.eclass
> +++ b/eclass/toolchain.eclass
> @@ -2495,31 +2495,31 @@ should_we_gcc_config() {
>  #
>  # Also add a hook so special ebuilds (kgcc64) can control which languages
>  # exactly get enabled
>  gcc-lang-supported() {
>   grep ^language=\"${1}\" "${S}"/gcc/*/config-lang.in > /dev/null || 
> return 1
>   [[ -z ${TOOLCHAIN_ALLOWED_LANGS} ]] && return 0
>   has $1 ${TOOLCHAIN_ALLOWED_LANGS}
>  }
>  
>  _tc_use_if_iuse() {
>   in_iuse $1 && use $1
>  }
>  
>  is_ada() {
>   gcc-lang-supported ada || return 1
> - _tc_use_if_iuse ada
> + _tc_use_if_iuse cxx && _tc_use_if_iuse ada

Is this redundant?  Would gcc-lang-supported c++ (called through the ada
support check) not suffice?

>  }
>  
>  is_cxx() {
>   gcc-lang-supported 'c++' || return 1
>   _tc_use_if_iuse cxx
>  }
>  
>  is_d() {
>   gcc-lang-supported d || return 1
>   _tc_use_if_iuse d
>  }
>  
>  is_f77() {
>   gcc-lang-supported f77 || return 1
>   _tc_use_if_iuse fortran

-- 
Arsen Arsenović


signature.asc
Description: PGP signature