public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Konrad Kleine <kkleine@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/llvm] rawhide: Don't apply MOCK_OPTS twice in Makefile
Date: Wed, 09 Sep 2026 20:04:52 GMT	[thread overview]
Message-ID: <178898429238.1.15291276452276591077.rpms-llvm-d6633d57c8fb@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/llvm
            Branch : rawhide
            Commit : d6633d57c8fbbb7302fdc97ced07b6c431add18b
            Author : Konrad Kleine <kkleine@redhat.com>
            Date   : 2026-09-09T21:38:04+02:00
            Stats  : +4/-4 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/llvm/c/d6633d57c8fbbb7302fdc97ced07b6c431add18b?branch=rawhide

            Log:
            Don't apply MOCK_OPTS twice in Makefile

This keeps `MOCK_OPTS` but applies it individually to release
and snapshot builds.

Before in `MOCK_OPTS="--config-opts foo=bar" make` the `foo` would be
interpreted as a list instead of a string.

---
diff --git a/Makefile b/Makefile
index 1f9bdd3..58a8231 100644
--- a/Makefile
+++ b/Makefile
@@ -5,8 +5,8 @@
 MOCK_CHROOT?=fedora-rawhide-$(shell uname -m)
 MOCK_OPTS?=
 MOCK_OPTS_COMMON=--root $(MOCK_CHROOT) --no-clean $(shell [[ -e /usr/bin/copr-builder ]] && echo "--enable-plugin tmpfs --plugin-option tmpfs:keep_mounted=True")
-MOCK_OPTS_RELEASE?=--no-clean --no-cleanup-after --without lto_build --without pgo --define "debug_package %{nil}" $(MOCK_OPTS)
-MOCK_OPTS_SNAPSHOT?=$(MOCK_OPTS_RELEASE) --with snapshot_build $(MOCK_OPTS)
+MOCK_OPTS_RELEASE?=--no-clean --no-cleanup-after --without lto_build --without pgo --define "debug_package %{nil}"
+MOCK_OPTS_SNAPSHOT?=$(MOCK_OPTS_RELEASE) --with snapshot_build
 YYYYMMDD?=$(shell date +%Y%m%d)
 SOURCEDIR=$(shell pwd)
 SPEC=llvm.spec
@@ -83,12 +83,12 @@ scrub-chroot:
 .PHONY: mockbuild-release
 ## Start a mock build of the release SRPM.
 mockbuild-release: srpm-release get-srpm-release
-	mock $(MOCK_OPTS_COMMON) $(MOCK_OPTS_RELEASE) $(srpm_path)
+	mock $(MOCK_OPTS_COMMON) $(MOCK_OPTS_RELEASE) $(MOCK_OPTS) $(srpm_path)
 
 .PHONY: mockbuild-snapshot
 ## Start a mock build of the snapshot SRPM.
 mockbuild-snapshot: srpm-snapshot get-srpm-snapshot
-	mock $(MOCK_OPTS_COMMON) $(MOCK_OPTS_SNAPSHOT) $(srpm_path)
+	mock $(MOCK_OPTS_COMMON) $(MOCK_OPTS_SNAPSHOT) $(MOCK_OPTS) $(srpm_path)
 
 ######### Edit-last-failing-script
 

                 reply	other threads:[~2026-09-09 20:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=178898429238.1.15291276452276591077.rpms-llvm-d6633d57c8fb@fedoraproject.org \
    --to=kkleine@redhat.com \
    --cc=git-commits@fedoraproject.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