Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weekly portage-stable package updates 2024-12-02 #2489

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
e3a8fe5
app-admin/eselect: Sync with Gentoo
Dec 2, 2024
4556849
app-arch/cpio: Sync with Gentoo
Dec 2, 2024
c584b7d
app-arch/ncompress: Sync with Gentoo
Dec 2, 2024
782b74e
app-arch/sharutils: Sync with Gentoo
Dec 2, 2024
2848adf
app-arch/xz-utils: Sync with Gentoo
Dec 2, 2024
58e0231
app-arch/zip: Sync with Gentoo
Dec 2, 2024
ac52df3
app-cdr/cdrtools: Sync with Gentoo
Dec 2, 2024
8bbfcb2
app-containers/containers-storage: Sync with Gentoo
Dec 2, 2024
ca92895
app-containers/docker-buildx: Sync with Gentoo
Dec 2, 2024
4121ea3
app-containers/netavark: Sync with Gentoo
Dec 2, 2024
897adcd
app-containers/podman: Sync with Gentoo
Dec 2, 2024
1feda51
app-crypt/gnupg: Sync with Gentoo
Dec 2, 2024
bcf14b6
app-crypt/gpgme: Sync with Gentoo
Dec 2, 2024
ee46b3e
app-crypt/mhash: Sync with Gentoo
Dec 2, 2024
ef2876a
app-crypt/mit-krb5: Sync with Gentoo
Dec 2, 2024
30cfc43
app-crypt/p11-kit: Sync with Gentoo
Dec 2, 2024
d3c81aa
app-doc/eclass-manpages: Sync with Gentoo
Dec 2, 2024
808f2e1
app-editors/nano: Sync with Gentoo
Dec 2, 2024
4f3d192
app-editors/vim: Sync with Gentoo
Dec 2, 2024
5aa0e2c
app-editors/vim-core: Sync with Gentoo
Dec 2, 2024
b7b2fdd
app-emulation/qemu: Sync with Gentoo
Dec 2, 2024
18a0dfc
app-emulation/virt-firmware: Sync with Gentoo
Dec 2, 2024
47dedb6
app-misc/jq: Sync with Gentoo
Dec 2, 2024
1dc6300
app-misc/pax-utils: Sync with Gentoo
Dec 2, 2024
b2b01c0
app-portage/elt-patches: Sync with Gentoo
Dec 2, 2024
471140e
app-portage/getuto: Sync with Gentoo
Dec 2, 2024
8f22bd0
app-shells/bash: Sync with Gentoo
Dec 2, 2024
83f90f8
app-text/asciidoc: Sync with Gentoo
Dec 2, 2024
68a172f
dev-build/autoconf: Sync with Gentoo
Dec 2, 2024
960d8d1
dev-build/autoconf-archive: Sync with Gentoo
Dec 2, 2024
95fb20f
dev-build/cmake: Sync with Gentoo
Dec 2, 2024
600c18a
dev-build/libtool: Sync with Gentoo
Dec 2, 2024
7ef3707
dev-build/make: Sync with Gentoo
Dec 2, 2024
1f9a7ee
dev-build/meson: Sync with Gentoo
Dec 2, 2024
568a1dd
dev-cpp/glog: Sync with Gentoo
Dec 2, 2024
9268901
dev-db/sqlite: Sync with Gentoo
Dec 2, 2024
84ddc22
dev-debug/gdb: Sync with Gentoo
Dec 2, 2024
08899d4
dev-debug/strace: Sync with Gentoo
Dec 2, 2024
2e7637a
dev-lang/python: Sync with Gentoo
Dec 2, 2024
f0407ee
dev-lang/rust: Sync with Gentoo
Dec 2, 2024
f09f9db
dev-lang/rust-common: Sync with Gentoo
Dec 2, 2024
3f0fb25
dev-lang/tcl: Sync with Gentoo
Dec 2, 2024
8a79989
dev-libs/cyrus-sasl: Sync with Gentoo
Dec 2, 2024
7c2fb30
dev-libs/expat: Sync with Gentoo
Dec 2, 2024
47e9e74
dev-libs/glib: Sync with Gentoo
Dec 2, 2024
372f8d1
dev-libs/gmp: Sync with Gentoo
Dec 2, 2024
a1dc70a
dev-libs/gobject-introspection: Sync with Gentoo
Dec 2, 2024
94e1358
dev-libs/gobject-introspection-common: Sync with Gentoo
Dec 2, 2024
18f58ff
dev-libs/json-c: Sync with Gentoo
Dec 2, 2024
ce36066
dev-libs/libffi: Sync with Gentoo
Dec 2, 2024
888e1c9
dev-libs/libgpg-error: Sync with Gentoo
Dec 2, 2024
7882d0f
dev-libs/libltdl: Sync with Gentoo
Dec 2, 2024
38520ff
dev-libs/libnl: Sync with Gentoo
Dec 2, 2024
8376cf9
dev-libs/libpcre: Sync with Gentoo
Dec 2, 2024
6947ede
dev-libs/libunistring: Sync with Gentoo
Dec 2, 2024
1ce8b66
dev-libs/libuv: Sync with Gentoo
Dec 2, 2024
94a577d
dev-libs/libxml2: Sync with Gentoo
Dec 2, 2024
ba3edbb
dev-libs/libxslt: Sync with Gentoo
Dec 2, 2024
7bc1177
dev-libs/npth: Sync with Gentoo
Dec 2, 2024
bef455f
dev-libs/oniguruma: Sync with Gentoo
Dec 2, 2024
fa3d830
dev-libs/opensc: Sync with Gentoo
Dec 2, 2024
02c2e7c
dev-libs/tree-sitter: Sync with Gentoo
Dec 2, 2024
a2c77d4
dev-libs/tree-sitter-bash: Sync with Gentoo
Dec 2, 2024
e97bfea
dev-libs/userspace-rcu: Sync with Gentoo
Dec 2, 2024
6709e11
dev-libs/xmlsec: Sync with Gentoo
Dec 2, 2024
1b04823
dev-python/cachecontrol: Sync with Gentoo
Dec 2, 2024
7d30548
dev-python/cryptography: Sync with Gentoo
Dec 2, 2024
797df44
dev-python/ensurepip-pip: Sync with Gentoo
Dec 2, 2024
9fe9caf
dev-python/ensurepip-setuptools: Sync with Gentoo
Dec 2, 2024
31eb7e1
dev-python/fastjsonschema: Sync with Gentoo
Dec 2, 2024
bf3b210
dev-python/flit-core: Sync with Gentoo
Dec 2, 2024
a7e5d15
dev-python/hatchling: Sync with Gentoo
Dec 2, 2024
436ef0a
dev-python/jinja2: Sync with Gentoo
Dec 2, 2024
83f0a59
dev-python/markupsafe: Sync with Gentoo
Dec 2, 2024
2076c61
dev-python/packaging: Sync with Gentoo
Dec 2, 2024
660665d
dev-python/pip: Sync with Gentoo
Dec 2, 2024
c4f7b2d
dev-python/pydecomp: Sync with Gentoo
Dec 2, 2024
13dd7ba
dev-python/requests: Sync with Gentoo
Dec 2, 2024
5e92da2
dev-python/resolvelib: Sync with Gentoo
Dec 2, 2024
a1647f0
dev-python/setuptools: Sync with Gentoo
Dec 2, 2024
cdadeb5
dev-python/tomli: Sync with Gentoo
Dec 2, 2024
27ff220
dev-python/tree-sitter: Sync with Gentoo
Dec 2, 2024
07f7ef0
dev-python/truststore: Sync with Gentoo
Dec 2, 2024
b8b27bd
dev-python/urllib3: Sync with Gentoo
Dec 2, 2024
6c58e71
dev-python/wheel: Sync with Gentoo
Dec 2, 2024
f113eaa
dev-util/bpftool: Sync with Gentoo
Dec 2, 2024
9e53018
dev-util/catalyst: Sync with Gentoo
Dec 2, 2024
e5fc819
dev-util/gdbus-codegen: Sync with Gentoo
Dec 2, 2024
95d7249
dev-util/glib-utils: Sync with Gentoo
Dec 2, 2024
d35bb69
dev-util/gperf: Sync with Gentoo
Dec 2, 2024
4f0ba6a
dev-util/maturin: Sync with Gentoo
Dec 2, 2024
f129e0f
dev-util/patchelf: Sync with Gentoo
Dec 2, 2024
9c6e6ac
dev-util/perf: Sync with Gentoo
Dec 2, 2024
a922445
dev-util/pkgcheck: Sync with Gentoo
Dec 2, 2024
a8380f2
dev-util/pkgconf: Sync with Gentoo
Dec 2, 2024
44e2a25
dev-util/re2c: Sync with Gentoo
Dec 2, 2024
526ac8c
dev-vcs/git: Sync with Gentoo
Dec 2, 2024
b88a556
eclass/distutils-r1: Sync with Gentoo
Dec 2, 2024
bc7d9aa
eclass/fcaps: Sync with Gentoo
Dec 2, 2024
770faec
eclass/python-any-r1: Sync with Gentoo
Dec 2, 2024
6dbfbad
eclass/python-utils-r1: Sync with Gentoo
Dec 2, 2024
0e558b6
eclass/rust: Sync with Gentoo
Dec 2, 2024
f896805
eclass/toolchain: Sync with Gentoo
Dec 2, 2024
f707793
media-libs/libpng: Sync with Gentoo
Dec 2, 2024
d60ac17
net-analyzer/netperf: Sync with Gentoo
Dec 2, 2024
b07528a
net-dns/bind: Sync with Gentoo
Dec 2, 2024
0dfa03a
net-dns/c-ares: Sync with Gentoo
Dec 2, 2024
a28fad8
net-dns/dnsmasq: Sync with Gentoo
Dec 2, 2024
6184d16
net-firewall/conntrack-tools: Sync with Gentoo
Dec 2, 2024
e05a358
net-libs/gnutls: Sync with Gentoo
Dec 2, 2024
17f125a
net-libs/libnetfilter_conntrack: Sync with Gentoo
Dec 2, 2024
5af605d
net-libs/libnftnl: Sync with Gentoo
Dec 2, 2024
97fd8cf
net-misc/chrony: Sync with Gentoo
Dec 2, 2024
aa3bb5b
net-misc/iperf: Sync with Gentoo
Dec 2, 2024
5f71c88
net-misc/iputils: Sync with Gentoo
Dec 2, 2024
845639a
net-misc/openssh: Sync with Gentoo
Dec 2, 2024
48a9ced
net-misc/rsync: Sync with Gentoo
Dec 2, 2024
abf23e6
net-misc/wget: Sync with Gentoo
Dec 2, 2024
e0ad02f
net-nds/openldap: Sync with Gentoo
Dec 2, 2024
11e3efe
perl-core/File-Temp: Sync with Gentoo
Dec 2, 2024
be20384
profiles: Sync with Gentoo
Dec 2, 2024
2fa8de7
sys-apps/bubblewrap: Sync with Gentoo
Dec 2, 2024
18c79de
sys-apps/checkpolicy: Sync with Gentoo
Dec 2, 2024
0752efd
sys-apps/dtc: Sync with Gentoo
Dec 2, 2024
185048a
sys-apps/ethtool: Sync with Gentoo
Dec 2, 2024
bd52867
sys-apps/file: Sync with Gentoo
Dec 2, 2024
790efad
sys-apps/iproute2: Sync with Gentoo
Dec 2, 2024
71bd7ed
sys-apps/kexec-tools: Sync with Gentoo
Dec 2, 2024
219508a
sys-apps/kmod: Sync with Gentoo
Dec 2, 2024
6b077e5
sys-apps/less: Sync with Gentoo
Dec 2, 2024
62a4792
sys-apps/pcsc-lite: Sync with Gentoo
Dec 2, 2024
89a4c99
sys-apps/pkgcore: Sync with Gentoo
Dec 2, 2024
9db6853
sys-apps/portage: Sync with Gentoo
Dec 2, 2024
483312e
sys-apps/pv: Sync with Gentoo
Dec 2, 2024
a19a54d
sys-apps/texinfo: Sync with Gentoo
Dec 2, 2024
4d526a4
sys-apps/usbutils: Sync with Gentoo
Dec 2, 2024
5a02d4c
sys-apps/util-linux: Sync with Gentoo
Dec 2, 2024
dcf0c64
sys-block/parted: Sync with Gentoo
Dec 2, 2024
069f55c
sys-block/thin-provisioning-tools: Sync with Gentoo
Dec 2, 2024
a5b6827
sys-boot/gnu-efi: Sync with Gentoo
Dec 2, 2024
a04a26c
sys-devel/binutils: Sync with Gentoo
Dec 2, 2024
e5f722d
sys-devel/binutils-config: Sync with Gentoo
Dec 2, 2024
964e385
sys-devel/bison: Sync with Gentoo
Dec 2, 2024
8b0f25b
sys-devel/crossdev: Sync with Gentoo
Dec 2, 2024
1b30cf4
sys-devel/gcc: Sync with Gentoo
Dec 2, 2024
d273ad6
sys-devel/gettext: Sync with Gentoo
Dec 2, 2024
56937f3
sys-devel/m4: Sync with Gentoo
Dec 2, 2024
7b3070b
sys-devel/patch: Sync with Gentoo
Dec 2, 2024
414591a
sys-firmware/intel-microcode: Sync with Gentoo
Dec 2, 2024
f87f9ea
sys-firmware/seabios-bin: Sync with Gentoo
Dec 2, 2024
0ad6053
sys-fs/btrfs-progs: Sync with Gentoo
Dec 2, 2024
e468303
sys-fs/e2fsprogs: Sync with Gentoo
Dec 2, 2024
559b7f5
sys-fs/mtools: Sync with Gentoo
Dec 2, 2024
017ce60
sys-fs/udisks: Sync with Gentoo
Dec 2, 2024
1e990ca
sys-fs/xfsprogs: Sync with Gentoo
Dec 2, 2024
67c1dca
sys-libs/binutils-libs: Sync with Gentoo
Dec 2, 2024
4d32cd6
sys-libs/efivar: Sync with Gentoo
Dec 2, 2024
1145194
sys-libs/gdbm: Sync with Gentoo
Dec 2, 2024
a3693d7
sys-libs/libnvme: Sync with Gentoo
Dec 2, 2024
bcd9032
sys-libs/libseccomp: Sync with Gentoo
Dec 2, 2024
7671466
sys-libs/ncurses: Sync with Gentoo
Dec 2, 2024
3ee38c7
sys-libs/readline: Sync with Gentoo
Dec 2, 2024
44f234a
sys-process/audit: Sync with Gentoo
Dec 2, 2024
73ac8b3
sys-process/lsof: Sync with Gentoo
Dec 2, 2024
65303ad
virtual/perl-Getopt-Long: Sync with Gentoo
Dec 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DIST eselect-1.4.26.tar.xz 184332 BLAKE2B ee1e8890802fc50646c8d1d5219f1ab0ec5cfc0138c758f73ad6baccf673992bbf3e763d8e84491f33e724ba4e1cf3bed6971ba7fa4373e0f06464ff4a5fa1e6 SHA512 397ae2f15d90d722eb84225b08f1afaaf6f89758bfae5d93b0a1c3eddc997c21e74ab62e09ee5e71941d3a8587b3372b64336d12054c3bbf0e56e1ba398a26f9
DIST eselect-1.4.27.tar.xz 184464 BLAKE2B 718874f4d0651194f361ca3202e5140982812bf486c8efe82354944d55206b0113fa135992203e8baa00019c3fd773a90ddaf67157c16f4ac2d69965d9822fbd SHA512 f534785fc1f79869840f420b4ab2b2bf35593c504cce878a6d3d07f75012cf32288009ea9ac2a5607dba216a794110a64c5f2c54d5d8a3c641328489cecc024b
DIST eselect-1.4.28.tar.xz 184692 BLAKE2B 86d1bbc0cb618f6edf49753c9f2be0f67670590ae55b8d2a8824940a5efa8462e395e1ee7f42379bd4ea64ea74f775a78e0a3a23ed565c67c3485f7e4e2d7a83 SHA512 26ac77465e2d6ab5193083c350cfd027d73ecd6d2702fc5f3db90373e92bf3722aead99c9b00b540c7972761620a485941c897854fe110454a4c6897f3f92868
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7
Expand All @@ -16,7 +16,7 @@ SRC_URI="https://dev.gentoo.org/~ulm/eselect/${P}.tar.xz"

LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-4.0 )"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="doc emacs vim-syntax"

# coreutils for realpath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=8

inherit multiprocessing
inherit flag-o-matic multiprocessing

DESCRIPTION="File archival tool which can also read and write tar files"
HOMEPAGE="https://www.gnu.org/software/cpio/cpio.html"
Expand All @@ -30,6 +30,9 @@ QA_CONFIG_IMPL_DECL_SKIP=(
)

src_configure() {
# https://savannah.gnu.org/bugs/?66297
append-cflags -std=gnu17

local myeconfargs=(
$(use_enable nls)
--bindir="${EPREFIX}"/bin
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,291 @@
https://github.com/vapier/ncompress/commit/af7d29d87ddf8b2002dad41152efa94e9c825b35
https://github.com/vapier/ncompress/commit/aa359df10ec29a56c12f6e5c2bcec8d8ecfa2740
https://github.com/vapier/ncompress/pull/40

From af7d29d87ddf8b2002dad41152efa94e9c825b35 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <[email protected]>
Date: Mon, 8 Feb 2021 00:28:08 -0500
Subject: [PATCH] require standard C function prototype support

We can drop the main prototype entirely as we don't need it.
---
compress.c | 58 +++++++++++++++++++-----------------------------------
2 files changed, 21 insertions(+), 38 deletions(-)

diff --git a/compress.c b/compress.c
index 12c89b8..ff3b51b 100644
--- a/compress.c
+++ b/compress.c
@@ -49,12 +49,6 @@
};
#endif

-#ifdef __STDC__
-# define ARGS(a) a
-#else
-# define ARGS(a) ()
-#endif
-
#ifndef SIG_TYPE
# define SIG_TYPE void (*)()
#endif
@@ -365,17 +359,16 @@ unsigned short codetab[HSIZE];
} ;
#endif

-int main ARGS((int,char **));
-void Usage ARGS((int));
-void comprexx ARGS((const char *));
-void compdir ARGS((char *));
-void compress ARGS((int,int));
-void decompress ARGS((int,int));
-void read_error ARGS((void));
-void write_error ARGS((void));
-void abort_compress ARGS((void));
-void prratio ARGS((FILE *,long,long));
-void about ARGS((void));
+void Usage (int);
+void comprexx (const char *);
+void compdir (char *);
+void compress (int, int);
+void decompress (int, int);
+void read_error (void);
+void write_error (void);
+void abort_compress (void);
+void prratio (FILE *, long, long);
+void about (void);

/*****************************************************************
* TAG( main )
@@ -418,9 +411,7 @@ void about ARGS((void));
* procedure needs no input table, but tracks the way the table was built.
*/
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
char **filelist;
char **fileptr;
@@ -632,8 +623,7 @@ Usage: %s [-dfhvcVr] [-b maxbits] [--] [path ...]\n\
}

void
-comprexx(fileptr)
- const char *fileptr;
+comprexx(const char *fileptr)
{
int fdin = -1;
int fdout = -1;
@@ -982,8 +972,7 @@ comprexx(fileptr)

#ifdef RECURSIVE
void
-compdir(dir)
- char *dir;
+compdir(char *dir)
{
struct dirent *dp;
DIR *dirp;
@@ -1059,9 +1048,7 @@ compdir(dir)
* questions about this implementation to ames!jaw.
*/
void
-compress(fdin, fdout)
- int fdin;
- int fdout;
+compress(int fdin, int fdout)
{
long hp;
int rpos;
@@ -1294,9 +1281,7 @@ endlop: if (fcode.e.ent >= FIRST && rpos < rsize)
*/

void
-decompress(fdin, fdout)
- int fdin;
- int fdout;
+decompress(int fdin, int fdout)
{
char_type *stackp;
code_int code;
@@ -1519,7 +1504,7 @@ resetbuf: ;
}

void
-read_error()
+read_error(void)
{
fprintf(stderr, "\nread error on");
perror((ifname[0] != '\0') ? ifname : "stdin");
@@ -1527,7 +1512,7 @@ read_error()
}

void
-write_error()
+write_error(void)
{
fprintf(stderr, "\nwrite error on");
perror(ofname ? ofname : "stdout");
@@ -1535,7 +1520,7 @@ write_error()
}

void
-abort_compress()
+abort_compress(void)
{
if (remove_ofname)
unlink(ofname);
@@ -1544,10 +1529,7 @@ abort_compress()
}

void
-prratio(stream, num, den)
- FILE *stream;
- long int num;
- long int den;
+prratio(FILE *stream, long int num, long int den)
{
int q; /* Doesn't need to be long */

@@ -1571,7 +1553,7 @@ prratio(stream, num, den)
}

void
-about()
+about(void)
{
printf("Compress version: %s\n", version_id);
printf("Compile options:\n ");


From aa359df10ec29a56c12f6e5c2bcec8d8ecfa2740 Mon Sep 17 00:00:00 2001
From: Mike Frysinger <[email protected]>
Date: Mon, 8 Feb 2021 00:30:41 -0500
Subject: [PATCH] mark all local functions as static

This saves a small amount of space as the compiler can do better.
---
compress.c | 20 ++++++++++----------
2 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/compress.c b/compress.c
index ff3b51b..86a8cda 100644
--- a/compress.c
+++ b/compress.c
@@ -359,16 +359,16 @@ unsigned short codetab[HSIZE];
} ;
#endif

-void Usage (int);
-void comprexx (const char *);
-void compdir (char *);
-void compress (int, int);
-void decompress (int, int);
-void read_error (void);
-void write_error (void);
-void abort_compress (void);
-void prratio (FILE *, long, long);
-void about (void);
+static void Usage(int);
+static void comprexx(const char *);
+static void compdir(char *);
+static void compress(int, int);
+static void decompress(int, int);
+static void read_error(void);
+static void write_error(void);
+static void abort_compress(void);
+static void prratio(FILE *, long, long);
+static void about(void);

/*****************************************************************
* TAG( main )

From 90810a7f11bf157b479c23c0fe6cee0bebec15c6 Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <[email protected]>
Date: Sat, 16 Nov 2024 18:49:48 +0000
Subject: [PATCH] compress.c: fix -std=c23 build failure (signal handler
protos)

gcc-15 switched to -std=c23 by default:

https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=55e3bd376b2214e200fa76d12b67ff259b06c212

As a result `ncompress` fails the build as:

compress.c: In function 'main':
compress.c:382:40: error:
passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
382 | signal(SIGINT, (SIG_TYPE)abort_compress);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| |
| void (*)(void)
In file included from compress.c:30:
...-glibc-2.40-36-dev/include/signal.h:88:57: note:
expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)'
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~

The change removes type casts around function prototypes and define
signal handler as `void(*)(int)`.
---
compress.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/compress.c b/compress.c
index da91603..ea8081e 100644
--- a/compress.c
+++ b/compress.c
@@ -49,10 +49,6 @@
};
#endif

-#ifndef SIG_TYPE
-# define SIG_TYPE void (*)()
-#endif
-
#if defined(AMIGA) || defined(DOS) || defined(MINGW) || defined(WINDOWS)
# define chmod(pathname, mode) 0
# define chown(pathname, owner, group) 0
@@ -327,6 +323,7 @@ static void decompress(int, int);
static void read_error(void);
static void write_error(void);
static void abort_compress(void);
+static void abort_compress_handler(int);
static void prratio(FILE *, long, long);
static void about(void);

@@ -379,14 +376,14 @@ main(int argc, char *argv[])

#ifdef SIGINT
if ((fgnd_flag = (signal(SIGINT, SIG_IGN)) != SIG_IGN))
- signal(SIGINT, (SIG_TYPE)abort_compress);
+ signal(SIGINT, abort_compress_handler);
#endif

#ifdef SIGTERM
- signal(SIGTERM, (SIG_TYPE)abort_compress);
+ signal(SIGTERM, abort_compress_handler);
#endif
#ifdef SIGHUP
- signal(SIGHUP, (SIG_TYPE)abort_compress);
+ signal(SIGHUP, abort_compress_handler);
#endif

#ifdef COMPATIBLE
@@ -1489,6 +1486,14 @@ abort_compress(void)
exit(1);
}

+
+void
+abort_compress_handler(int signo)
+ {
+ (void)signo;
+ abort_compress();
+ }
+
void
prratio(FILE *stream, long int num, long int den)
{
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Classic compress & uncompress programs for .Z (LZW) files"
HOMEPAGE="https://vapier.github.io/ncompress/"
SRC_URI="https://github.com/vapier/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"

PATCHES=(
"${FILESDIR}"/${PN}-5.0-c23.patch
)

src_prepare() {
default
# First sed expression replaces hardlinking with
# symlinking. Second sed expression fixes the symlink target
# to use relative path to a file in the same directory as the
# symlink (so point to compress instead of
# $(DESTDIR)$(BINDIR)/compress).
sed -i \
-e 's:\bln :ln -s :' \
-e 's:\(\bln [^$]*\)\$(DESTDIR)\$(BINDIR)/:\1:' \
Makefile.def || die
}

src_configure() {
tc-export CC
}

src_install() {
emake install_core DESTDIR="${ED}" PREFIX="/usr"
dodoc Acknowleds Changes LZW.INFO README.md
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="7"
Expand Down Expand Up @@ -32,6 +32,9 @@ src_prepare() {
# Upstream is aware but thinks this isn't a bug/problem in sharutils itself
# See http://lists.gnu.org/archive/html/bug-gnu-utils/2013-10/msg00011.html
append-cflags $(test-flags-CC -Wno-error=format-security)

# bug #943901
append-cflags -std=gnu17
}

src_configure() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ else
"

if [[ ${PV} != *_alpha* && ${PV} != *_beta* ]] ; then
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
fi

S="${WORKDIR}/${MY_P}"
Expand Down
Loading