public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Sam James <sam@gentoo.org>
To: Raul Rangel <rrangel@chromium.org>
Cc: dilfridge@gentoo.org, gentoo-dev@lists.gentoo.org, toolchain@gentoo.org
Subject: [gentoo-dev] Re: sys-libs/glibc: RDEPENDs
Date: Fri, 31 Mar 2023 20:39:24 +0100	[thread overview]
Message-ID: <875yagyagt.fsf@gentoo.org> (raw)
In-Reply-To: <CAHQZ30DeGMoLHkWWehehw7DcRht2F=953SxLU_eGrPo752fi9w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2047 bytes --]


Raul Rangel <rrangel@chromium.org> writes:

> On Fri, Mar 31, 2023 at 11:03 AM Sam James <sam@gentoo.org> wrote:
>>
>>
>>
>> > On 31 Mar 2023, at 17:07, Raul Rangel <rrangel@chromium.org> wrote:
>> >
>> > Hello,
>> > I was looking at the glibc
>> > [ebuild](https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-libs/glibc/glibc-2.37-r1.ebuild#n136)
>> > and noticed that it contains a lot of RDEPEND:
>> >    RDEPEND="${COMMON_DEPEND}
>> >        app-arch/gzip
>> >        sys-apps/grep
>> >        app-alternatives/awk
>> >        sys-apps/gentoo-functions
>> >        !<app-misc/pax-utils-${MIN_PAX_UTILS_VER}
>> >        !<net-misc/openssh-8.1_p1-r2
>> >    "
>> > Are gzip, grep, awk just legacy from before the EAPI7 era, or does
>> > glibc actually invoke grep, awk, etc? I'm working in a cross-compiled
>> > environment (not cross- packages) and wanted to avoid pulling in the
>> > additional dependencies if they aren't necessary.
>> >
>>
>> I suspect some of these may be IDEPEND candidates for locale-gen.
>
> https://bugs.gentoo.org/740750#c12 sheds a bit of light. It looks like
> /usr/sbin/locale-gen is a bash script that invokes grep, awk etc.
> Hence the reason for the RDEPEND. What are your thoughts on splitting
> off locale-gen into its own package, or adding a USE flag to
> conditionally install locale-gen?

I'd personally be open to it (without having investigated it) but
I'd need to see what dilfridge@ and others think first.

(The main thing I'm wondering is why it isn't already, as it feels
natural).

Could you maybe file a new bug with that suggestion (and reference
the other one)?

>
> As for the IDEPEND I put together
> https://github.com/gentoo/gentoo/commit/78edfcea3d38d869dff85ff2b2109f53b3137fa2?diff=split.
> I haven't tested it since I don't have an EAPI8 capable system
> available right now :/

I think this looks right, actually. Fancy doing a PR (mark it as a
draft) and I can take it from there?

>>
>> > Thanks,
>> > Raul

best,
sam


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 377 bytes --]

      parent reply	other threads:[~2023-03-31 19:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHQZ30DR7M7+t8v9v9Cs34FqP+gCTG4Ek6dj_O4v-z7_pW2Owg@mail.gmail.com>
2023-03-31 17:03 ` [gentoo-dev] Re: sys-libs/glibc: RDEPENDs Sam James
     [not found]   ` <CAHQZ30DeGMoLHkWWehehw7DcRht2F=953SxLU_eGrPo752fi9w@mail.gmail.com>
2023-03-31 19:39     ` Sam James [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875yagyagt.fsf@gentoo.org \
    --to=sam@gentoo.org \
    --cc=dilfridge@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=rrangel@chromium.org \
    --cc=toolchain@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox