Compare commits
No commits in common. "c8" and "c10s" have entirely different histories.
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
||||||
14
.gitignore
vendored
14
.gitignore
vendored
@ -1 +1,13 @@
|
|||||||
SOURCES/sharutils-4.15.2.tar.xz
|
sharutils-4.9.tar.bz2
|
||||||
|
/sharutils-4.10.tar.bz2
|
||||||
|
/sharutils-4.11.tar.bz2
|
||||||
|
/sharutils-4.11.1.tar.bz2
|
||||||
|
/sharutils-4.13.1.tar.bz2
|
||||||
|
/sharutils-4.13.3.tar.xz
|
||||||
|
/sharutils-4.13.4.tar.xz
|
||||||
|
/sharutils-4.13.5.tar.xz
|
||||||
|
/sharutils-4.14.tar.xz
|
||||||
|
/sharutils-4.14.2.tar.xz
|
||||||
|
/sharutils-4.15.tar.xz
|
||||||
|
/sharutils-4.15.1.tar.xz
|
||||||
|
/sharutils-4.15.2.tar.xz
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
250377131bcf7a081f066ed0f9c51a0b7e0b0c04 SOURCES/sharutils-4.15.2.tar.xz
|
|
||||||
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
-- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-10
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.installability.functional}
|
||||||
|
|
||||||
@ -0,0 +1,39 @@
|
|||||||
|
From 4c47a36fb6e2e4349995376cee063bb37d4e68e3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||||
|
Date: Thu, 23 Jan 2020 15:57:05 +0100
|
||||||
|
Subject: [PATCH 2/2] Do not include lib/md5.c into src/shar.c
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
lib/md5.o is part of libgnu.a that is linked to shar. There is no
|
||||||
|
point in linking md5.o twice into shar executable. Moreover SuSE
|
||||||
|
reports that this triggers a linking error with GCC 10:
|
||||||
|
|
||||||
|
/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld:
|
||||||
|
../lib/libgnu.a(md5.o): in function `md5_stream':
|
||||||
|
[ 30s] md5.c:(.text+0x15d): multiple definition of `md5_stream';
|
||||||
|
shar.o:shar.c:(.text+0x28): first defined here
|
||||||
|
|
||||||
|
<https://lists.gnu.org/archive/html/bug-gnu-utils/2020-01/msg00001.html>
|
||||||
|
|
||||||
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||||
|
---
|
||||||
|
src/shar.c | 1 -
|
||||||
|
1 file changed, 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/shar.c b/src/shar.c
|
||||||
|
index 11cbada..6d7ed1d 100644
|
||||||
|
--- a/src/shar.c
|
||||||
|
+++ b/src/shar.c
|
||||||
|
@@ -53,7 +53,6 @@ static const char cright_years_z[] =
|
||||||
|
|
||||||
|
#include "inttostr.h"
|
||||||
|
#include "liballoca.h"
|
||||||
|
-#include "md5.c"
|
||||||
|
#include "md5.h"
|
||||||
|
#include "quotearg.h"
|
||||||
|
#include "xalloc.h"
|
||||||
|
--
|
||||||
|
2.21.1
|
||||||
|
|
||||||
97
sharutils-4.15.2-Fix-building-with-GCC-10.patch
Normal file
97
sharutils-4.15.2-Fix-building-with-GCC-10.patch
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
From ec4ceb632abc0d54061269bc779459e13172f264 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||||
|
Date: Thu, 23 Jan 2020 15:42:41 +0100
|
||||||
|
Subject: [PATCH 1/2] Fix building with GCC 10
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
GCC 10 defaults to -fno-common that results into errors on multiple
|
||||||
|
global variable definitions:
|
||||||
|
|
||||||
|
/usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld:
|
||||||
|
shar-opts.o:(.data.rel.ro.local+0x0): multiple definition of
|
||||||
|
`program_name'; shar.o:(.rodata+0x10): first defined here
|
||||||
|
|
||||||
|
This patch fixes it by changing the definitions in header files into extern
|
||||||
|
declarations.
|
||||||
|
|
||||||
|
<https://lists.gnu.org/archive/html/bug-gnu-utils/2020-01/msg00001.html>
|
||||||
|
|
||||||
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||||
|
---
|
||||||
|
src/shar-opts.h | 2 +-
|
||||||
|
src/shar-std.def | 2 +-
|
||||||
|
src/unshar-opts.h | 2 +-
|
||||||
|
src/uudecode-opts.h | 2 +-
|
||||||
|
src/uuencode-opts.h | 2 +-
|
||||||
|
5 files changed, 5 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/shar-opts.h b/src/shar-opts.h
|
||||||
|
index 75dcae2..5055d1c 100644
|
||||||
|
--- a/src/shar-opts.h
|
||||||
|
+++ b/src/shar-opts.h
|
||||||
|
@@ -352,7 +352,7 @@ extern "C" {
|
||||||
|
* global exported definitions
|
||||||
|
*/
|
||||||
|
#include "local.h"
|
||||||
|
-char const * const program_name;
|
||||||
|
+extern char const * const program_name;
|
||||||
|
|
||||||
|
extern bool initialization_done;
|
||||||
|
extern int optidx;
|
||||||
|
diff --git a/src/shar-std.def b/src/shar-std.def
|
||||||
|
index ed06b77..a28f61c 100644
|
||||||
|
--- a/src/shar-std.def
|
||||||
|
+++ b/src/shar-std.def
|
||||||
|
@@ -41,7 +41,7 @@ no-misuse-usage;
|
||||||
|
usage-message;
|
||||||
|
die-code;
|
||||||
|
|
||||||
|
-export = '#include "local.h"'"\nchar const * const program_name;";
|
||||||
|
+export = '#include "local.h"'"\nextern char const * const program_name;";
|
||||||
|
|
||||||
|
#shell
|
||||||
|
echo "include = 'char const * const program_name = \"${progname}\";';"
|
||||||
|
diff --git a/src/unshar-opts.h b/src/unshar-opts.h
|
||||||
|
index 2c3febe..9ebe2fc 100644
|
||||||
|
--- a/src/unshar-opts.h
|
||||||
|
+++ b/src/unshar-opts.h
|
||||||
|
@@ -192,7 +192,7 @@ extern "C" {
|
||||||
|
extern size_t separator_str_len;
|
||||||
|
|
||||||
|
#include "local.h"
|
||||||
|
-char const * const program_name;
|
||||||
|
+extern char const * const program_name;
|
||||||
|
|
||||||
|
|
||||||
|
/* * * * * *
|
||||||
|
diff --git a/src/uudecode-opts.h b/src/uudecode-opts.h
|
||||||
|
index 29b3b5c..5494289 100644
|
||||||
|
--- a/src/uudecode-opts.h
|
||||||
|
+++ b/src/uudecode-opts.h
|
||||||
|
@@ -170,7 +170,7 @@ extern "C" {
|
||||||
|
* global exported definitions
|
||||||
|
*/
|
||||||
|
#include "local.h"
|
||||||
|
-char const * const program_name;
|
||||||
|
+extern char const * const program_name;
|
||||||
|
|
||||||
|
|
||||||
|
/* * * * * *
|
||||||
|
diff --git a/src/uuencode-opts.h b/src/uuencode-opts.h
|
||||||
|
index e71c9b8..d6ec03e 100644
|
||||||
|
--- a/src/uuencode-opts.h
|
||||||
|
+++ b/src/uuencode-opts.h
|
||||||
|
@@ -166,7 +166,7 @@ extern "C" {
|
||||||
|
* global exported definitions
|
||||||
|
*/
|
||||||
|
#include "local.h"
|
||||||
|
-char const * const program_name;
|
||||||
|
+extern char const * const program_name;
|
||||||
|
|
||||||
|
|
||||||
|
/* * * * * *
|
||||||
|
--
|
||||||
|
2.21.1
|
||||||
|
|
||||||
2
sharutils.rpmlintrc
Normal file
2
sharutils.rpmlintrc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
from Config import *
|
||||||
|
addFilter("spelling-error .* (multi|shar|unpackaging|unshar|Unshar|uuencoding)");
|
||||||
@ -1,23 +1,22 @@
|
|||||||
Summary: The GNU shar utilities for packaging and unpackaging shell archives
|
Summary: The GNU shar utilities for packaging and unpackaging shell archives
|
||||||
Name: sharutils
|
Name: sharutils
|
||||||
Version: 4.15.2
|
Version: 4.15.2
|
||||||
Release: 11%{?dist}
|
Release: 28%{?dist}
|
||||||
# The main code: GPLv3+
|
# The main code: GPL-3.0-or-later
|
||||||
# intl/dngettext.c: LGPLv2+
|
# intl/dngettext.c: LGPL-2.0-or-later
|
||||||
# lib (gnulib): GPLv3+
|
# lib (gnulib): GPL-3.0-or-later
|
||||||
# lib/md5.c: GPLv3+ and Public Domain
|
# lib/md5.c: GPL-3.0-or-later and PLicenseRef-Fedora-Public-Domain
|
||||||
# libopts/file.c: LGPLv3+ or BSD
|
# libopts/file.c: LGPL-3.0-or-later or BSD-3-Clause
|
||||||
# libopts/genshell.h: LGPLv2+
|
# libopts/genshell.h: LGPL-2.0-or-later
|
||||||
# libopts/m4/libopts.m4: GPLv3+
|
# libopts/m4/libopts.m4: GPL-3.0-or-later
|
||||||
# doc/sharutils.texi: GFDL
|
# doc/sharutils.texi: GFDL-1.3-or-later
|
||||||
# src/uuencode.c: GPLv3+ and BSD
|
# src/uuencode.c: GPL-3.0-or-later and BSD-4-Clause
|
||||||
## Not in the binary package
|
## Not in the binary package
|
||||||
# ar-lib: GPLv2+
|
# ar-lib: GPL-2.0-or-later
|
||||||
# config.rpath: FSFULLR
|
# config.rpath: FSFULLR
|
||||||
# INSTALL: FSFAPP
|
# INSTALL: FSFAPP
|
||||||
# install-sh: MIT
|
# install-sh: MIT
|
||||||
License: GPLv3+ and (GPLv3+ and BSD) and (LGPLv3+ or BSD) and LGPLv2+ and Public Domain and GFDL
|
License: GPL-3.0-or-later AND (GPL-3.0-or-later AND BSD-4-Clause) AND (LGPL-3.0-or-later OR BSD-3-Clause) AND LGPL-2.0-or-later AND LGPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain AND GFDL-1.3-or-later
|
||||||
Group: Applications/Archiving
|
|
||||||
Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
Source: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
|
||||||
# Pass compilation with -Werror=format-security, bug #1037323
|
# Pass compilation with -Werror=format-security, bug #1037323
|
||||||
Patch0: %{name}-4.14.2-Pass-compilation-with-Werror-format-security.patch
|
Patch0: %{name}-4.14.2-Pass-compilation-with-Werror-format-security.patch
|
||||||
@ -25,20 +24,25 @@ Patch0: %{name}-4.14.2-Pass-compilation-with-Werror-format-security.patch
|
|||||||
# bug #1548019,
|
# bug #1548019,
|
||||||
# <http://lists.gnu.org/archive/html/bug-gnu-utils/2018-02/msg00004.html>
|
# <http://lists.gnu.org/archive/html/bug-gnu-utils/2018-02/msg00004.html>
|
||||||
Patch1: %{name}-4.15.2-Fix-a-heap-buffer-overflow-in-find_archive.patch
|
Patch1: %{name}-4.15.2-Fix-a-heap-buffer-overflow-in-find_archive.patch
|
||||||
# Adapt bundled gnulib to glibc-2.28, bug #1611745
|
# Adapt bundled gnulib to glibc-2.28
|
||||||
Patch2: %{name}-4.15.2-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
|
Patch2: %{name}-4.15.2-fflush-adjust-to-glibc-2.28-libio.h-removal.patch
|
||||||
|
# Fix building with GCC 10,
|
||||||
|
# <https://lists.gnu.org/archive/html/bug-gnu-utils/2020-01/msg00001.html>
|
||||||
|
Patch3: %{name}-4.15.2-Fix-building-with-GCC-10.patch
|
||||||
|
# Fix building with GCC 10,
|
||||||
|
# <https://lists.gnu.org/archive/html/bug-gnu-utils/2020-01/msg00001.html>
|
||||||
|
Patch4: %{name}-4.15.2-Do-not-include-lib-md5.c-into-src-shar.c.patch
|
||||||
URL: http://www.gnu.org/software/%{name}/
|
URL: http://www.gnu.org/software/%{name}/
|
||||||
BuildRequires: binutils
|
BuildRequires: binutils
|
||||||
BuildRequires: coreutils
|
BuildRequires: coreutils
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
|
# glibc-common for iconv
|
||||||
BuildRequires: glibc-common
|
BuildRequires: glibc-common
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: sed
|
BuildRequires: sed
|
||||||
# Tests:
|
# Tests:
|
||||||
BuildRequires: diffutils
|
BuildRequires: diffutils
|
||||||
Requires(post): info
|
|
||||||
Requires(preun): info
|
|
||||||
Provides: bundled(gnulib)
|
Provides: bundled(gnulib)
|
||||||
# See libopts/autoopts/options.h for OPTIONS_DOTTED_VERSION
|
# See libopts/autoopts/options.h for OPTIONS_DOTTED_VERSION
|
||||||
Provides: bundled(libopts) = 41.1
|
Provides: bundled(libopts) = 41.1
|
||||||
@ -57,9 +61,11 @@ the shar files.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .format
|
%patch 0 -p1 -b .format
|
||||||
%patch1 -p1
|
%patch 1 -p1
|
||||||
%patch2 -p1
|
%patch 2 -p1
|
||||||
|
%patch 3 -p1
|
||||||
|
%patch 4 -p1
|
||||||
|
|
||||||
# convert TODO, THANKS to UTF-8
|
# convert TODO, THANKS to UTF-8
|
||||||
for i in TODO THANKS; do
|
for i in TODO THANKS; do
|
||||||
@ -80,14 +86,6 @@ chmod 644 AUTHORS ChangeLog COPYING NEWS README THANKS TODO
|
|||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
|
|
||||||
%post
|
|
||||||
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
|
||||||
|
|
||||||
%preun
|
|
||||||
if [ $1 = 0 ]; then
|
|
||||||
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir ||:
|
|
||||||
fi
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
||||||
@ -97,13 +95,65 @@ fi
|
|||||||
%{_mandir}/man5/*
|
%{_mandir}/man5/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Aug 03 2018 Petr Pisar <ppisar@redhat.com> - 4.15.2-11
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 4.15.2-28
|
||||||
- Adapt bundled gnulib to glibc-2.28 (bug #1611745)
|
- Bump release for October 2024 mass rebuild:
|
||||||
|
Resolves: RHEL-64018
|
||||||
|
|
||||||
* Tue Jul 24 2018 Petr Pisar <ppisar@redhat.com> - 4.15.2-10
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 4.15.2-27
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-26
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Nov 13 2023 Honza Horak <hhorak@redhat.com> - 4.15.2-25
|
||||||
|
- SPDX migration
|
||||||
|
|
||||||
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-24
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-23
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-22
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-21
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-20
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-19
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-18
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 23 2020 Petr Pisar <ppisar@redhat.com> - 4.15.2-16
|
||||||
|
- Fix building with GCC 10
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-14
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 24 2018 Petr Pisar <ppisar@redhat.com> - 4.15.2-13
|
||||||
- License corrected to "GPLv3+ and (GPLv3+ and BSD) and (LGPLv3+ or BSD) and
|
- License corrected to "GPLv3+ and (GPLv3+ and BSD) and (LGPLv3+ or BSD) and
|
||||||
LGPLv2+ and Public Domain and GFDL"
|
LGPLv2+ and Public Domain and GFDL"
|
||||||
|
|
||||||
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.15.2-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 18 2018 Petr Pisar <ppisar@redhat.com> - 4.15.2-11
|
||||||
|
- Remove install-info from scriptlets
|
||||||
|
|
||||||
|
* Tue Apr 10 2018 Petr Pisar <ppisar@redhat.com> - 4.15.2-10
|
||||||
|
- Adapt bundled gnulib to glibc-2.28
|
||||||
|
|
||||||
* Thu Feb 22 2018 Petr Pisar <ppisar@redhat.com> - 4.15.2-9
|
* Thu Feb 22 2018 Petr Pisar <ppisar@redhat.com> - 4.15.2-9
|
||||||
- Fix CVE-2018-1000097 (a heap buffer overflow in find_archive())
|
- Fix CVE-2018-1000097 (a heap buffer overflow in find_archive())
|
||||||
(bug #1548019)
|
(bug #1548019)
|
||||||
Loading…
Reference in New Issue
Block a user