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:28:38 GMT	[thread overview]
Message-ID: <179542611830.1.15532748293531262945.rpms-rpm-f22eb5b4bace@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : f22eb5b4baced75b7d068676a44c1010a5906ce5
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2014-03-13T23:34:24+00:00
Stats  : +27/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/f22eb5b4baced75b7d068676a44c1010a5906ce5?branch=pmatilai-v6

Log:
- reduce the double separator spec parse error into a warning (#1065563)

---
diff --git a/rpm-4.11.2-double-separator-warning.patch b/rpm-4.11.2-double-separator-warning.patch
new file mode 100644
index 0000000..23cdfa3
--- /dev/null
+++ b/rpm-4.11.2-double-separator-warning.patch
@@ -0,0 +1,17 @@
+diff -up rpm-4.11.2/build/parseReqs.c.double-sep-warning rpm-4.11.2/build/parseReqs.c
+--- rpm-4.11.2/build/parseReqs.c.double-sep-warning	2014-02-18 08:59:32.692891895 +0200
++++ rpm-4.11.2/build/parseReqs.c	2014-02-18 09:00:17.572769945 +0200
+@@ -166,8 +166,11 @@ rpmRC parseRCPOT(rpmSpec spec, Package p
+ 	    if (rpmCharCheck(spec, EVR, ve-v, ".-_+:%{}~")) goto exit;
+ 
+             /* While ':' and '-' are valid, only one of each is valid. */
+-	    if (checkSep(EVR, '-', &emsg) || checkSep(EVR, ':', &emsg))
+-		goto exit;
++	    if (checkSep(EVR, '-', &emsg) || checkSep(EVR, ':', &emsg)) {
++		rpmlog(RPMLOG_WARNING, _("line %d: %s: %s\n"),
++		       spec->lineNum, emsg, spec->line);
++		emsg = _free(emsg);
++	    }
+ 
+ 	    re = ve;	/* ==> next token after EVR string starts here */
+ 	} else

diff --git a/rpm.spec b/rpm.spec
index 5744951..4fc98bb 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -22,7 +22,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.11.x/%{name}-%{srcver}.tar.bz2
@@ -48,6 +48,10 @@ Patch6: rpm-4.9.0-armhfp-logic.patch
 # Generate kmod(basename.ko) provides for kernel
 Patch7: rpm-4.11.1-kmod-find-provides.patch
 
+# Fedora has big package stacks based on broken dependency EVRs, reduce the
+# double separator error into an error on released versions (#1065563)
+Patch10: rpm-4.11.2-double-separator-warning.patch
+
 # Patches already in upstream
 # Filter soname dependencies by name
 Patch100: rpm-4.11.x-filter-soname-deps.patch
@@ -253,6 +257,8 @@ packages on a system.
 %patch4 -p1 -b .use-gpg2
 %patch7 -p1 -b .kmod-provides
 
+%patch10 -p1 -b .double-sep-warning
+
 %patch100 -p1 -b .filter-soname-deps
 %patch101 -p1 -b .dont-filter-ld64
 
@@ -513,6 +519,9 @@ exit 0
 %doc COPYING doc/librpm/html/*
 
 %changelog
+* Tue Feb 18 2014 Panu Matilainen <pmatilai@redhat.com> - 4.11.2-2
+- reduce the double separator spec parse error into a warning (#1065563)
+
 * Thu Feb 13 2014 Panu Matilainen <pmatilai@redhat.com> - 4.11.2-1
 - update to 4.11.2 final (http://rpm.org/wiki/Releases/4.11.2)
 

             reply	other threads:[~2026-11-23  9:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  9:28 Panu Matilainen [this message]
2026-11-23  9:29 [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=179542611830.1.15532748293531262945.rpms-rpm-f22eb5b4bace@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