unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: Vagrant Cascadian <vagrant@reproducible-builds.org>
Cc: guix-devel@gnu.org
Subject: Re: How to find binaries in libexec dir?
Date: Sun, 17 Apr 2022 20:52:42 +0200	[thread overview]
Message-ID: <20220417205242.5f3cb12c@scratchpost.org> (raw)
In-Reply-To: <87mtgky5pt.fsf@contorta>

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

Hi,

On Sat, 16 Apr 2022 16:21:50 -0700
Vagrant Cascadian <vagrant@reproducible-builds.org> wrote:

> But libxmlb ships the xb-tool binary in libexec, which diffoscope cannot
> find on guix.

> For Debian, diffoscope just basically adds the
> corresponding directory to PATH, and it's basically a single directory,
> but I'm not sure how I'd do that with guix ...
> 
> A workaround would be to adjust the libxmlb package so that xb-tool is
> also in PATH somehow, but maybe this is bad form?

Isn't the whole point of libexec so that executable is not in PATH?

FHS section 4.7 says:

>/usr/libexec includes internal binaries that are not intended to be executed directly by users or shell scripts.

libexec is usually used to store tool executables that are invoked internally
by libraries (glibc, ssh, gpg etc).

I'd like to caution against just adding libexec to PATH, because that would
make the entire separation of libexec out of bin (and thus the reason of
existence of libexec) useless to begin with.

I've looked upstream https://github.com/hughsie/libxmlb and it says, very close
to the beginning (so it's a main feature apparently):

>$ xb-tool compile fedora.xmlb fedora.xml.gz

Well, for that to work, xb-tool should be in bin.

I'd file a bug report with libxmlb to move xb-tool to bin.

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2022-04-17 19:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-16 23:21 How to find binaries in libexec dir? Vagrant Cascadian
2022-04-17 18:52 ` Danny Milosavljevic [this message]
2022-04-17 19:27   ` Vagrant Cascadian
2022-04-17 19:54     ` Liliana Marie Prikler
2022-04-17 20:42       ` Vagrant Cascadian
2022-04-19  7:17         ` Allan Adair

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=20220417205242.5f3cb12c@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    --cc=vagrant@reproducible-builds.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).