* [PR PATCH] man-db: update to 2.10.2.
@ 2022-06-26 18:22 bitofhope
2022-06-26 21:31 ` [PR PATCH] [Merged]: " classabbyamp
0 siblings, 1 reply; 2+ messages in thread
From: bitofhope @ 2022-06-26 18:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1489 bytes --]
There is a new pull request by bitofhope against master on the void-packages repository
https://github.com/bitofhope/void-packages master
https://github.com/void-linux/void-packages/pull/37698
man-db: update to 2.10.2.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### 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
- aarch64-musl (cross)
I replaced `guard-glibc-iconv-ext.patch` with a patch that applies equivalent changes against the 2.10.2 release, but as I'm running glibc, I don't know if the changes are necessary and sufficient on musl. At least it compiles on x86_64-musl and aarch64-musl.
A patch file from https://github.com/void-linux/void-packages/pull/37698.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-37698.patch --]
[-- Type: text/x-diff, Size: 5814 bytes --]
From e2dd8b5093b09848aaaf0bc202472f30c360b08c Mon Sep 17 00:00:00 2001
From: bitofhope <bitofhope@kapsi.fi>
Date: Sun, 26 Jun 2022 20:58:03 +0300
Subject: [PATCH] man-db: update to 2.10.2.
---
.../add-missing-stdlib_h-include.patch | 10 ---
.../patches/guard-glibc-iconv-ext.patch | 63 ++++++++++---------
srcpkgs/man-db/template | 8 +--
3 files changed, 36 insertions(+), 45 deletions(-)
delete mode 100644 srcpkgs/man-db/patches/add-missing-stdlib_h-include.patch
diff --git a/srcpkgs/man-db/patches/add-missing-stdlib_h-include.patch b/srcpkgs/man-db/patches/add-missing-stdlib_h-include.patch
deleted file mode 100644
index 8687d550b0bb..000000000000
--- a/srcpkgs/man-db/patches/add-missing-stdlib_h-include.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/libdb/db_btree.c
-+++ b/libdb/db_btree.c
-@@ -29,6 +29,7 @@
- #ifdef BTREE
-
- #include <stdio.h>
-+#include <stdlib.h>
- #include <errno.h>
- #include <string.h>
-
diff --git a/srcpkgs/man-db/patches/guard-glibc-iconv-ext.patch b/srcpkgs/man-db/patches/guard-glibc-iconv-ext.patch
index 8e47da8a2192..d8857cfd6b85 100644
--- a/srcpkgs/man-db/patches/guard-glibc-iconv-ext.patch
+++ b/srcpkgs/man-db/patches/guard-glibc-iconv-ext.patch
@@ -1,19 +1,38 @@
+ src/convert.c | 4 ++++
src/manconv.c | 7 ++++++-
src/manconv_client.c | 4 ++++
- src/whatis.c | 4 ++++
3 files changed, 14 insertions(+), 1 deletion(-)
-diff --git src/manconv.c src/manconv.c
-index b9ac8d3a..8f5bdaee 100644
+diff --git a/src/convert.c b/src/convert.c
+index 447240c6..231f5c14 100644
+--- a/src/convert.c
++++ b/src/convert.c
+@@ -55,10 +55,14 @@ static void close_conv_to_locale (void *ignored MAYBE_UNUSED)
+ char * ATTRIBUTE_MALLOC convert_to_locale (char *string)
+ {
+ if (!conv_to_locale_initialized) {
++#ifdef __GLIBC__
+ char *locale_charset = xasprintf
+ ("%s//IGNORE", get_locale_charset ());
+ conv_to_locale = iconv_open (locale_charset, "UTF-8");
+ free (locale_charset);
++#else /* __GLIBC__ */
++ conv_to_locale = iconv_open (get_locale_charset (), "UTF-8");
++#endif /* ! __GLIBC__ */
+ if (conv_to_locale != (iconv_t) -1)
+ push_cleanup (close_conv_to_locale, NULL, 0);
+ conv_to_locale_initialized = true;
+diff --git a/src/manconv.c b/src/manconv.c
+index 18ae307a..e2e6aa33 100644
--- a/src/manconv.c
+++ b/src/manconv.c
-@@ -111,9 +111,14 @@ static int try_iconv (pipeline *p, const char *try_from_code, const char *to,
+@@ -301,9 +301,14 @@ static tried_iconv try_iconv (decompress *decomp, const char *try_from_code,
iconv_t cd_utf8, cd = NULL;
bool to_utf8 = STREQ (try_to_code, "UTF-8") ||
STRNEQ (try_to_code, "UTF-8//", 7);
- const char *utf8_target = last ? "UTF-8//IGNORE" : "UTF-8";
bool ignore_errors = (strstr (try_to_code, "//IGNORE") != NULL);
- int ret = 0;
+ tried_iconv ret = TRIED_ICONV_OK;
+#ifdef __GLIBC__
+ const char *utf8_target = last ? "UTF-8//IGNORE" : "UTF-8";
+#else /* __GLIBC__ */
@@ -23,37 +42,19 @@ index b9ac8d3a..8f5bdaee 100644
debug ("trying encoding %s -> %s\n", try_from_code, try_to_code);
-diff --git src/manconv_client.c src/manconv_client.c
-index 0c41bec6..2a7f1398 100644
+diff --git a/src/manconv_client.c b/src/manconv_client.c
+index 55289ff4..6e7861f5 100644
--- a/src/manconv_client.c
+++ b/src/manconv_client.c
-@@ -102,7 +102,11 @@ void add_manconv (pipeline *p, const char *source, const char *target)
- gl_list_add_last (codes->from, xstrdup (source));
- name = appendstr (name, "UTF-8:", source, (void *) 0);
+@@ -111,7 +111,11 @@ void add_manconv (pipeline *p,
+ gl_list_add_last (codes->from, xstrdup (source_encoding));
+ name = appendstr (name, "UTF-8:", source_encoding, (void *) 0);
}
-+#ifdef __GLIBC__
- codes->to = xasprintf ("%s//IGNORE", target);
++#ifdef __GBLIBC__
+ codes->to = xasprintf ("%s//IGNORE", target_encoding);
+#else /* __GLIBC__ */
-+ codes->to = xasprintf ("%s", target);
++ codes->to = xasprintf ("%s", target_encoding);
+#endif /* ! __GLIBC__ */
/* informational only; no shell quoting concerns */
name = appendstr (name, " -t ", codes->to, (void *) 0);
if (quiet >= 2)
-diff --git src/whatis.c src/whatis.c
-index d2559169..ec80c117 100644
---- a/src/whatis.c
-+++ b/src/whatis.c
-@@ -945,9 +945,13 @@ int main (int argc, char *argv[])
- display_seen = new_string_set (GL_HASH_SET);
-
- #ifdef HAVE_ICONV
-+#ifdef __GLIBC__
- locale_charset = xasprintf ("%s//IGNORE", get_locale_charset ());
- conv_to_locale = iconv_open (locale_charset, "UTF-8");
- free (locale_charset);
-+#else /* __GLIBC__ */
-+ conv_to_locale = iconv_open(get_locale_charset (), "UTF-8");
-+#endif /* ! __GLIBC__ */
- #endif /* HAVE_ICONV */
-
- if (regex_opt) {
diff --git a/srcpkgs/man-db/template b/srcpkgs/man-db/template
index c8b873771d27..3d60f4e91878 100644
--- a/srcpkgs/man-db/template
+++ b/srcpkgs/man-db/template
@@ -1,6 +1,6 @@
# Template file for 'man-db'
pkgname=man-db
-version=2.9.4
+version=2.10.2
revision=1
build_style=gnu-configure
configure_args="--with-db=db --with-pager=less --with-gzip=/usr/bin/gzip
@@ -16,11 +16,11 @@ depends="bzip2 coreutils grep groff gzip less"
conf_files="/etc/man_db.conf"
short_desc="On-line manual database"
maintainer="Orphaned <orphan@voidlinux.org>"
-license="GPL-2.0-or-later, LGPL-2.1-or-later"
+license="GPL-3.0-or-later"
homepage="https://www.nongnu.org/man-db/"
-changelog="https://git.savannah.gnu.org/cgit/man-db.git/plain/NEWS"
+changelog="https://gitlab.com/cjwatson/man-db/-/raw/main/NEWS.md"
distfiles="${NONGNU_SITE}/man-db/man-db-${version}.tar.xz"
-checksum=b66c99edfad16ad928c889f87cf76380263c1609323c280b3a9e6963fdb16756
+checksum=ee97954d492a13731903c9d0727b9b01e5089edbd695f0cdb58d405a5af5514d
provides="man-0_1"
lib32disabled=yes
system_accounts="_man"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: man-db: update to 2.10.2.
2022-06-26 18:22 [PR PATCH] man-db: update to 2.10.2 bitofhope
@ 2022-06-26 21:31 ` classabbyamp
0 siblings, 0 replies; 2+ messages in thread
From: classabbyamp @ 2022-06-26 21:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1335 bytes --]
There's a merged pull request on the void-packages repository
man-db: update to 2.10.2.
https://github.com/void-linux/void-packages/pull/37698
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### 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
- aarch64-musl (cross)
I replaced `guard-glibc-iconv-ext.patch` with a patch that applies equivalent changes against the 2.10.2 release, but as I'm running glibc, I don't know if the changes are necessary and sufficient on musl. At least it compiles on x86_64-musl and aarch64-musl.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-26 21:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26 18:22 [PR PATCH] man-db: update to 2.10.2 bitofhope
2022-06-26 21:31 ` [PR PATCH] [Merged]: " classabbyamp
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).