public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/perl-Clownfish-CFC] rawhide: Adapt to lemon-3.54.1
@ 2026-11-02  9:51 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-02  9:51 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/perl-Clownfish-CFC
Branch : rawhide
Commit : ec31dcc6d945dcc55b6bebc31b2a3c523ba8b0bf
Author : Petr Písař <ppisar@redhat.com>
Date   : 2026-11-02T10:48:04+01:00
Stats  : +70/-54 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/perl-Clownfish-CFC/c/ec31dcc6d945dcc55b6bebc31b2a3c523ba8b0bf?branch=rawhide

Log:
Adapt to lemon-3.54.1

---
diff --git a/Clownfish-CFC-0.6.0-Use-system-lemon-if-possible.patch b/Clownfish-CFC-0.6.0-Use-system-lemon-if-possible.patch
deleted file mode 100644
index 12e93fb..0000000
--- a/Clownfish-CFC-0.6.0-Use-system-lemon-if-possible.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From 38ae145430e95b939ea6f07c3f5656c9721fda98 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
-Date: Thu, 17 Sep 2015 17:14:52 +0200
-Subject: [PATCH] Use system lemon if possible
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-If lemon tool is already available on the system, use that instead of
-building it from bundled code.
-
-Signed-off-by: Petr Písař <ppisar@redhat.com>
----
- buildlib/Clownfish/CFC/Build.pm | 13 ++++++++++++-
- 1 file changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/buildlib/Clownfish/CFC/Build.pm b/buildlib/Clownfish/CFC/Build.pm
-index 87f906f..0f38d63 100644
---- a/buildlib/Clownfish/CFC/Build.pm
-+++ b/buildlib/Clownfish/CFC/Build.pm
-@@ -59,9 +59,16 @@ else {
-     $MODULES_DIR    = catdir( updir(), 'modules' );
- }
- my $CMARK_SOURCE_DIR = catdir( $MODULES_DIR, 'CommonMark', 'src' );
--my $LEMON_EXE_PATH   = catfile( $LEMON_DIR, "lemon$Config{_exe}" );
- my $PPPORT_H_PATH    = catfile( $INCLUDE,   'ppport.h' );
- 
-+# Prefer lemon from system
-+my $LEMON_EXE_PATH = "lemon$Config{_exe}";
-+if (system( $LEMON_EXE_PATH, '-x')) {
-+    $LEMON_EXE_PATH = catfile( $LEMON_DIR, "lemon$Config{_exe}" );
-+} else {
-+    $LEMON_DIR = undef;
-+}
-+
- __PACKAGE__->add_property('with_system_cmark');
- 
- sub new {
-@@ -140,6 +147,10 @@ sub ACTION_ppport {
- # Build the Lemon parser generator.
- sub ACTION_lemon {
-     my $self = shift;
-+    if (!defined $LEMON_DIR) {
-+        print "Using system Lemon parser generator...\n\n";
-+        return;
-+    }
-     print "Building the Lemon parser generator...\n\n";
-     $self->_run_make(
-         dir  => $LEMON_DIR,
--- 
-2.7.4
-

diff --git a/Clownfish-CFC-0.8.0-Use-system-lemon-if-possible.patch b/Clownfish-CFC-0.8.0-Use-system-lemon-if-possible.patch
new file mode 100644
index 0000000..eff2b99
--- /dev/null
+++ b/Clownfish-CFC-0.8.0-Use-system-lemon-if-possible.patch
@@ -0,0 +1,65 @@
+From d733472751b4f2de64a6469323c1eb429ba4499a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Thu, 17 Sep 2015 17:14:52 +0200
+Subject: [PATCH] Use system lemon if possible
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+If lemon tool is already available on the system, use that instead of
+building it from bundled code.
+
+lemon-3.54.1 removed "-c" (don't compress the parser to detect syntax
+errors sooner) option. Remove the option from the invocation either.
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+<https://issues.apache.org/jira/browse/CLOWNFISH-60>
+---
+ buildlib/Clownfish/CFC/Build.pm | 15 +++++++++++++--
+ 1 file changed, 13 insertions(+), 2 deletions(-)
+
+diff --git a/buildlib/Clownfish/CFC/Build.pm b/buildlib/Clownfish/CFC/Build.pm
+index 3c13de9..4c516a3 100644
+--- a/buildlib/Clownfish/CFC/Build.pm
++++ b/buildlib/Clownfish/CFC/Build.pm
+@@ -59,9 +59,16 @@ else {
+     $MODULES_DIR    = catdir( updir(), 'modules' );
+ }
+ my $CMARK_SOURCE_DIR = catdir( $MODULES_DIR, 'CommonMark', 'src' );
+-my $LEMON_EXE_PATH   = catfile( $LEMON_DIR, "lemon$Config{_exe}" );
+ my $PPPORT_H_PATH    = catfile( $INCLUDE,   'ppport.h' );
+ 
++# Prefer lemon from system
++my $LEMON_EXE_PATH = "lemon$Config{_exe}";
++if (system( $LEMON_EXE_PATH, '-x')) {
++    $LEMON_EXE_PATH = catfile( $LEMON_DIR, "lemon$Config{_exe}" );
++} else {
++    $LEMON_DIR = undef;
++}
++
+ __PACKAGE__->add_property('with_system_cmark');
+ 
+ sub new {
+@@ -140,6 +147,10 @@ sub ACTION_ppport {
+ # Build the Lemon parser generator.
+ sub ACTION_lemon {
+     my $self = shift;
++    if (!defined $LEMON_DIR) {
++        print "Using system Lemon parser generator...\n\n";
++        return;
++    }
+     print "Building the Lemon parser generator...\n\n";
+     $self->_run_make(
+         dir  => $LEMON_DIR,
+@@ -162,7 +173,7 @@ sub ACTION_parsers {
+         my $lemon_report_file = $y_file;
+         $lemon_report_file =~ s/\.y$/.out/ or die "no match";
+         $self->add_to_cleanup($lemon_report_file);
+-        system( $LEMON_EXE_PATH, '-c', $y_file ) and die "lemon failed";
++        system( $LEMON_EXE_PATH, $y_file ) and die "lemon failed";
+     }
+ }
+ 
+-- 
+2.56.0
+

diff --git a/perl-Clownfish-CFC.spec b/perl-Clownfish-CFC.spec
index 3bdca8c..6879771 100644
--- a/perl-Clownfish-CFC.spec
+++ b/perl-Clownfish-CFC.spec
@@ -1,6 +1,6 @@
 Name:           perl-Clownfish-CFC
 Version:        0.8.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Compiler for Clownfish
 # other files:          Apache-2.0
 ## Unbundled
@@ -11,7 +11,7 @@ SourceLicense:  Apache-2.0 AND BSD-2-Clause and MIT
 URL:            https://metacpan.org/release/Clownfish-CFC
 Source0:        https://cpan.metacpan.org/authors/id/K/KA/KARMAN/Clownfish-CFC-%{version}.tar.gz
 # Use system lemon, <https://issues.apache.org/jira/browse/CLOWNFISH-60>
-Patch0:         Clownfish-CFC-0.6.0-Use-system-lemon-if-possible.patch
+Patch0:         Clownfish-CFC-0.8.0-Use-system-lemon-if-possible.patch
 # Handle pkg-config output with multiple arguments, bug #1416443,
 # <https://issues.apache.org/jira/browse/CLOWNFISH-113>
 Patch1:         Clownfish-CFC-0.6.1-Segment-ExtUtils-PkgConfig-output-into-arguments.patch
@@ -155,6 +155,9 @@ export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print
 %{_libexecdir}/%{name}
 
 %changelog
+* Mon Nov 02 2026 Petr Pisar <ppisar@redhat.com> - 0.8.0-2
+- Adapt to lemon-3.54.1
+
 * Tue Sep 01 2026 Petr Pisar <ppisar@redhat.com> - 0.8.0-1
 - 0.8.0 bump
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-02  9:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02  9:51 [rpms/perl-Clownfish-CFC] rawhide: Adapt to lemon-3.54.1 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox