public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - Reduce the double separator spec parse error into a warning (#1065563)
Date: Mon, 23 Nov 2026 09:29:10 GMT [thread overview]
Message-ID: <179542615089.1.13085200465770490222.rpms-rpm-2e5e0624337e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : 2e5e0624337eb589880b3f7a1add5684f65f19b9
Author : Panu Matilainen <pmatilai@redhat.com>
Date : 2014-09-17T09:59:57+03:00
Stats : +47/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/2e5e0624337eb589880b3f7a1add5684f65f19b9?branch=pmatilai-v6
Log:
- Reduce the double separator spec parse error into a warning (#1065563)
---
diff --git a/rpm-4.12.0-double-separator-warning.patch b/rpm-4.12.0-double-separator-warning.patch
new file mode 100644
index 0000000..cd7e3c1
--- /dev/null
+++ b/rpm-4.12.0-double-separator-warning.patch
@@ -0,0 +1,42 @@
+commit 5e0f3e6298bde0c6e44bd4db956a7287f9ff3f88
+Author: Panu Matilainen <pmatilai@redhat.com>
+Date: Wed Sep 17 09:47:54 2014 +0300
+
+ Turn invalid double separator error into a warning
+
+ - As hysterical as it seems, people keep banging their heads into this:
+ older distros have these invalid dependencies deployed etc and people
+ do expect to create srpms and do test-builds on newer distros they're
+ running themselves. Which, put that way, seems rather reasonable...
+ - For history reference, the sanity check was originally introduced in
+ commit b2cf1471bbe2c35e3c36510a9e3f59919d8ed2c8 and
+ 67ccf8d99630f4edad0ea16dddaca0a3355fba00,
+ - Backported from commit 1b3f7547c532b1f5ad68228571f1716d5be5b455
+
+diff --git a/build/parseReqs.c b/build/parseReqs.c
+index 1427111..3cf1ce0 100644
+--- a/build/parseReqs.c
++++ b/build/parseReqs.c
+@@ -40,7 +40,6 @@ static int checkSep(const char *s, char c, char **emsg)
+ const char *sep = strchr(s, c);
+ if (sep && strchr(sep + 1, c)) {
+ rasprintf(emsg, "Invalid version (double separator '%c'): %s", c, s);
+- return 1;
+ }
+ return 0;
+ }
+@@ -198,11 +197,12 @@ rpmRC parseRCPOT(rpmSpec spec, Package pkg, const char *field, rpmTagVal tagN,
+
+ exit:
+ if (emsg) {
++ int lvl = (rc == RPMRC_OK) ? RPMLOG_WARNING : RPMLOG_ERR;
+ /* Automatic dependencies don't relate to spec lines */
+ if (tagflags & (RPMSENSE_FIND_REQUIRES|RPMSENSE_FIND_PROVIDES)) {
+- rpmlog(RPMLOG_ERR, "%s: %s\n", emsg, r);
++ rpmlog(lvl, "%s: %s\n", emsg, r);
+ } else {
+- rpmlog(RPMLOG_ERR, _("line %d: %s: %s\n"),
++ rpmlog(lvl, _("line %d: %s: %s\n"),
+ spec->lineNum, emsg, spec->line);
+ }
+ free(emsg);
diff --git a/rpm.spec b/rpm.spec
index fad5ada..b287f6e 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -27,7 +27,7 @@
Summary: The RPM package management system
Name: rpm
Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}1%{?dist}
+Release: %{?snapver:0.%{snapver}.}2%{?dist}
Group: System Environment/Base
Url: http://www.rpm.org/
Source0: http://rpm.org/releases/rpm-4.12.x/%{name}-%{srcver}.tar.bz2
@@ -48,6 +48,7 @@ Patch3: rpm-4.9.90-no-man-dirs.patch
Patch4: rpm-4.8.1-use-gpg2.patch
# Patches already upstream:
+Patch100: rpm-4.12.0-double-separator-warning.patch
# These are not yet upstream
Patch302: rpm-4.7.1-geode-i686.patch
@@ -526,6 +527,9 @@ exit 0
%doc doc/librpm/html/*
%changelog
+* Wed Sep 17 2014 Panu Matilainen <pmatilai@redhat.com> - 4.12.0-2
+- Reduce the double separator spec parse error into a warning (#1065563)
+
* Tue Sep 16 2014 Panu Matilainen <pmatilai@redhat.com> - 4.12.0-1
- Update to rpm-4.12.0 final (http://rpm.org/wiki/Releases/4.12.0)
next reply other threads:[~2026-11-23 9:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 9:29 Panu Matilainen [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-23 9:28 [rpms/rpm] pmatilai-v6: - reduce the double separator spec parse error into a warning (#1065563) Panu Matilainen
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=179542615089.1.13085200465770490222.rpms-rpm-2e5e0624337e@fedoraproject.org \
--to=pmatilai@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