* [PR PATCH] lcov: update to 2.3.
@ 2025-02-08 19:44 Emru1
0 siblings, 0 replies; only message in thread
From: Emru1 @ 2025-02-08 19:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 546 bytes --]
There is a new pull request by Emru1 against master on the void-packages repository
https://github.com/Emru1/void-packages lcov
https://github.com/void-linux/void-packages/pull/54256
lcov: update to 2.3.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
A patch file from https://github.com/void-linux/void-packages/pull/54256.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lcov-54256.patch --]
[-- Type: text/x-diff, Size: 4035 bytes --]
From 6ecfd7b0097162e72348af4eb5928c7b3bb3b802 Mon Sep 17 00:00:00 2001
From: Emil Tomczyk <emru@emru.xyz>
Date: Sat, 8 Feb 2025 20:39:11 +0100
Subject: [PATCH] lcov: update to 2.3.
---
.../lcov/patches/fix-undef-behaviour.patch | 37 -------------------
.../lcov/patches/handle-equals-signs.patch | 23 ------------
srcpkgs/lcov/template | 11 +++---
3 files changed, 5 insertions(+), 66 deletions(-)
delete mode 100644 srcpkgs/lcov/patches/fix-undef-behaviour.patch
delete mode 100644 srcpkgs/lcov/patches/handle-equals-signs.patch
diff --git a/srcpkgs/lcov/patches/fix-undef-behaviour.patch b/srcpkgs/lcov/patches/fix-undef-behaviour.patch
deleted file mode 100644
index 5af7d2689ff899..00000000000000
--- a/srcpkgs/lcov/patches/fix-undef-behaviour.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-Author: Alastair McKinstry <mckinstry@debian.org>
-Description: Fix for undefined behavior in perl5.20
-Origin: http://bugs.debian.org/761308
-Forwarded: no
-Last-Updated: 2014-09-13
-
-Index: lcov-1.12/bin/lcov
-===================================================================
---- a/bin/lcov
-+++ b/bin/lcov
-@@ -224,7 +224,9 @@ Getopt::Long::Configure("default");
- # Remove spaces around rc options
- my %new_opt_rc;
-
-- while (my ($key, $value) = each(%opt_rc)) {
-+ my @keys = keys %opt_rc;
-+ for my $key (@keys) {
-+ my $value = $opt_rc{$key};
- $key =~ s/^\s+|\s+$//g;
- $value =~ s/^\s+|\s+$//g;
-
-Index: lcov-1.12/bin/geninfo
-===================================================================
---- a/bin/geninfo
-+++ b/bin/geninfo
-@@ -284,8 +284,9 @@ Getopt::Long::Configure("default");
- {
- # Remove spaces around rc options
- my %new_opt_rc;
--
-- while (my ($key, $value) = each(%opt_rc)) {
-+ my @keys = keys %opt_rc;
-+ for my $key (@keys) {
-+ my $value = $opt_rc{$key};
- $key =~ s/^\s+|\s+$//g;
- $value =~ s/^\s+|\s+$//g;
-
diff --git a/srcpkgs/lcov/patches/handle-equals-signs.patch b/srcpkgs/lcov/patches/handle-equals-signs.patch
deleted file mode 100644
index b3d75e9f7d7119..00000000000000
--- a/srcpkgs/lcov/patches/handle-equals-signs.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-Description: Handle "=====" as another form of zero.
- gcov prints "=====" instead of "######" when an unexecuted line is
- "reachable only by exceptional paths such as C++ exception handlers."
- This should be handled the same as "######" for our purposes.
-Author: Zack Weinberg <zackw@panix.com>
-Last-Update: 2013-02-01
-
-Index: lcov-1.12/bin/geninfo
-===================================================================
---- a/bin/geninfo
-+++ b/bin/geninfo
-@@ -1771,8 +1771,9 @@ sub read_gcov_file($)
- $number = (split(" ",substr($_, 0, 16)))[0];
-
- # Check for zero count which is indicated
-- # by ######
-- if ($number eq "######") { $number = 0; }
-+ # by ###### or =====
-+ if ($number eq "######" or
-+ $number eq "=====") { $number = 0; }
-
- if ($exclude_line) {
- # Register uninstrumented line instead
diff --git a/srcpkgs/lcov/template b/srcpkgs/lcov/template
index 06b532ffa2b2a0..97488b51a5ce3f 100644
--- a/srcpkgs/lcov/template
+++ b/srcpkgs/lcov/template
@@ -1,17 +1,16 @@
# Template file for 'lcov'
pkgname=lcov
-version=1.15
-revision=2
+version=2.3
+revision=1
build_style=gnu-makefile
make_check_target=test
-make_build_args="CFG_DIR=/etc"
make_install_args="CFG_DIR=/etc"
hostmakedepends="perl"
-depends="perl"
+depends="perl perl-Capture-Tiny perl-DateTime"
short_desc="Front-end for GCC's coverage testing tool gcov"
maintainer="Andre Klitzing <aklitzing@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://ltp.sourceforge.net/coverage/lcov.php"
-distfiles="https://github.com/linux-test-project/${pkgname}/archive/v${version}.tar.gz"
-checksum=d88b0718f59815862785ac379aed56974b9edd8037567347ae70081cd4a3542a
+distfiles="https://github.com/linux-test-project/lcov/archive/v${version}.tar.gz"
+checksum=66b02641d5e2821b79dd344b297db16d1ffb342e54703a443158b727520916e1
conf_files="/etc/lcovrc"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-08 19:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-08 19:44 [PR PATCH] lcov: update to 2.3 Emru1
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 NNTP newsgroup(s).