Github messages for voidlinux
 help / color / mirror / Atom feed
From: crtxcr <crtxcr@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] rrdtool: rebuild to fix unresolvable shlib, fix tests 
Date: Fri, 23 Dec 2022 08:52:36 +0100	[thread overview]
Message-ID: <20221223075236.qBWMDa_BzLRc1NAXEJP94ShG5YFxy6TmlZwfkSYqf3s@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41245@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]

There is an updated pull request by crtxcr against master on the void-packages repository

https://github.com/crtxcr/void-packages fix_rrdtool_depends
https://github.com/void-linux/void-packages/pull/41245

rrdtool: rebuild to fix unresolvable shlib, fix tests 
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**



#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - x86_64-musl

The test for https://github.com/void-linux/void-packages/pull/41228 fails with: 

> perl-rrdtool-1.7.2_13: broken, unresolvable shlib `libperl.so.5.36'

This can be reproduced by:

```
./xbps-src -m musl_temp binary-bootstrap x86_64-musl
./xbps-src -m musl_temp chroot
xbps-install perl-rrdtool

```

This is a due to missing "depends" on perl. 

This PR simply adds perl to the dependecy

CC @Gottox 

A patch file from https://github.com/void-linux/void-packages/pull/41245.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-fix_rrdtool_depends-41245.patch --]
[-- Type: text/x-diff, Size: 3213 bytes --]

From 8cc5ed81ede98fe8fa02d0c86fafa99206473e73 Mon Sep 17 00:00:00 2001
From: Albert Schwarzkopf <dev-voidlinux@quitesimple.org>
Date: Thu, 22 Dec 2022 22:34:03 +0100
Subject: [PATCH] rrdtool: rebuild to fix unresolvable shlib, fix tests

Rebuild to get rid of error:
"perl-rrdtool-1.7.2_13: broken, unresolvable shlib `libperl.so.5.36'"

A previous revbump didn't do it because #40412 wasn't merged yet.

Add "bc" to checkdepends so a test doesn't fail.

Add upstream patch so test does not fail on musl
---
 .../set_fallback_first_weekday_to_0.patch     | 39 +++++++++++++++++++
 srcpkgs/rrdtool/template                      |  3 +-
 2 files changed, 41 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/rrdtool/patches/set_fallback_first_weekday_to_0.patch

diff --git a/srcpkgs/rrdtool/patches/set_fallback_first_weekday_to_0.patch b/srcpkgs/rrdtool/patches/set_fallback_first_weekday_to_0.patch
new file mode 100644
index 000000000000..dcd4ab322635
--- /dev/null
+++ b/srcpkgs/rrdtool/patches/set_fallback_first_weekday_to_0.patch
@@ -0,0 +1,39 @@
+From 784a3913e64bd10ec544945f2c05c354677a726a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Jean-Michel=20Vourg=C3=A8re?= <nirgal@debian.org>
+Date: Sun, 16 Jun 2019 08:07:32 +0200
+Subject: [PATCH] Set fallback first_weekday to 0 (fix #1012)
+
+- Set first_weekday to 0 (Sunday), when HAVE__NL_TIME_WEEK_1STDAY
+  is not defined
+- Fixes: https://github.com/oetiker/rrdtool-1.x/issues/1012
+---
+ src/rrd_graph.c   | 2 +-
+ src/rrd_rpncalc.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/rrd_graph.c b/src/rrd_graph.c
+index f5d2cdec5..62c3e645f 100644
+--- a/src/rrd_graph.c
++++ b/src/rrd_graph.c
+@@ -1568,7 +1568,7 @@ static int find_first_weekday(
+         }
+         first_weekday = (week_1stday + first_weekday - 1) % 7;
+ #else
+-        first_weekday = 1;
++        first_weekday = 0;
+ #endif
+     }
+     return first_weekday;
+diff --git a/src/rrd_rpncalc.c b/src/rrd_rpncalc.c
+index 0f54c6be6..84f692119 100644
+--- a/src/rrd_rpncalc.c
++++ b/src/rrd_rpncalc.c
+@@ -564,7 +564,7 @@ static int find_first_weekday(void){
+         }
+         first_weekday=(week_1stday + first_weekday - 1) % 7;
+ #else
+-        first_weekday = 1;
++        first_weekday = 0;
+ #endif
+     }
+     return first_weekday;
diff --git a/srcpkgs/rrdtool/template b/srcpkgs/rrdtool/template
index c45176f72a85..f8b3b51b7d33 100644
--- a/srcpkgs/rrdtool/template
+++ b/srcpkgs/rrdtool/template
@@ -1,7 +1,7 @@
 # Template file for 'rrdtool'
 pkgname=rrdtool
 version=1.7.2
-revision=13
+revision=14
 build_style=gnu-configure
 # configure checks sys.version[:3] for Python versioning, so 3.10 becomes 3.1;
 # until this is fixed upstream, manually define am_cv_python_version to circumvent
@@ -12,6 +12,7 @@ configure_args="--enable-perl --enable-perl-site-install
  am_cv_python_version=${py3_ver}"
 hostmakedepends="pkg-config groff intltool python3-setuptools perl-XML-Parser"
 makedepends="libxml2-devel pango-devel python3-devel ruby-devel LuaJIT-devel perl"
+checkdepends="bc"
 depends="dejavu-fonts-ttf"
 short_desc="Data logging and graphing system for time series data"
 maintainer="Enno Boland <gottox@voidlinux.org>"

  parent reply	other threads:[~2022-12-23  7:52 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-22 20:24 [PR PATCH] perl-rrdtool: Add missing "perl" dependency crtxcr
2022-12-22 20:52 ` paper42
2022-12-22 20:53 ` paper42
2022-12-22 21:36 ` [PR PATCH] [Updated] " crtxcr
2022-12-22 21:37 ` crtxcr
2022-12-22 21:40 ` perl-rddtool: rebuild to fix unresolvable shlib crtxcr
2022-12-22 23:40 ` [PR PATCH] [Updated] " crtxcr
2022-12-22 23:41 ` crtxcr
2022-12-22 23:48 ` crtxcr
2022-12-22 23:48 ` crtxcr
2022-12-23  0:35 ` rrdtool: rebuild to fix unresolvable shlib, fix tests paper42
2022-12-23  7:34 ` sgn
2022-12-23  7:52 ` crtxcr [this message]
2022-12-23  7:54 ` [PR PATCH] [Updated] " crtxcr
2022-12-23  8:01 ` crtxcr
2022-12-23 10:59 ` [PR PATCH] [Updated] " crtxcr
2022-12-23 11:00 ` crtxcr
2022-12-23 11:06 ` crtxcr
2022-12-23 11:16 ` [PR PATCH] [Merged]: " paper42

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=20221223075236.qBWMDa_BzLRc1NAXEJP94ShG5YFxy6TmlZwfkSYqf3s@z \
    --to=crtxcr@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).