public inbox for
 help / color / mirror / Atom feed
From: Mark Wielaard <>
Cc: Mark Wielaard <>
Subject: [PATCH] find-debuginfo: Check RPM environment variables are there
Date: Tue, 27 Jul 2021 00:23:11 +0200	[thread overview]
Message-ID: <> (raw)

find-debuginfo relies on a couple of RPM environment variables.
Ideally we provide command line arguments to set them. But they are
somewhat tied to how rpm sets things up.  So for now just warn and
exit if they aren't set.

See also

Signed-off-by: Mark Wielaard <>
 scripts/ | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/scripts/ b/scripts/
index 828fd09..971218a 100755
--- a/scripts/
+++ b/scripts/
@@ -146,6 +146,24 @@ n_jobs=1
 # exit early on --version or --help
+# Currently this scripts depends on some RPM environment variables
+# being set.  RPM_BUILD_ROOT as the installation root directory.
+# RPM_BUILD_DIR as the top build dir (usually one above BUILDDIR).
+# RPM_ARCH to create an unique (dir) name. Warn if they aren't set.
+if test -z "${RPM_BUILD_ROOT}"; then
+    echo "RPM_BUILD_ROOT not set"
+    exit 1;
+if test -z "${RPM_BUILD_DIR}"; then
+    echo "RPM_BUILD_DIR not set"
+    exit 1;
+if test -z "${RPM_PACKAGE_NAME}"; then
+    echo "RPM_PACKAGE_NAME not set"
+    exit 1;

             reply	other threads:[~2021-07-26 22:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-26 22:23 Mark Wielaard [this message]
2021-07-26 22:32 ` Dmitry V. Levin
2021-07-26 22:51   ` Mark Wielaard

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:

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

  git send-email \ \ \ \

* 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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).