Compare commits
No commits in common. "rawhide" and "f20" have entirely different histories.
6 changed files with 40 additions and 194 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -2,8 +2,3 @@
|
|||
/dietlibc-github-236455eac1d2ed2e2004a89b85f904f3ab27e0da.patch.gz
|
||||
/dietlibc-0.33.20120825.tar.xz
|
||||
/dietlibc-github-c3f1cf67fcc186bb859e64a085bf98aaa6182a82.patch.gz
|
||||
/dietlibc.tar.gz
|
||||
/dietlibc-0.33.20170317.tar.xz
|
||||
/dietlibc-0.34.20170317.tar.xz
|
||||
/dietlibc-0.34.tar.xz
|
||||
/dietlibc-0.34.tar.xz.sig
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -5,7 +5,7 @@ CVS ?= cvs
|
|||
GIT ?= git
|
||||
TAR ?= tar
|
||||
GZIP ?= gzip
|
||||
CVS_BASEVER = 0.34
|
||||
CVS_BASEVER = 0.33
|
||||
CVS_DATE := $(shell date +'%Y%m%d' -d '-1 day')
|
||||
GIT_URL = git://github.com/ensc/dietlibc.git
|
||||
GIT_DIFF_OPTS = --summary --stat --patch
|
||||
|
|
|
|||
|
|
@ -1,33 +0,0 @@
|
|||
Changes to avoid implicit function declarations: <arpa/inet.h>
|
||||
provides a declaration of noths. -D_BSD_SOURCE enables declarations
|
||||
of random, srandom.
|
||||
|
||||
diff -ur dietlibc-0.34.orig/test/getservbyname.c dietlibc-0.34/test/getservbyname.c
|
||||
--- dietlibc-0.34.orig/test/getservbyname.c 2003-12-15 14:07:42.000000000 +0100
|
||||
+++ dietlibc-0.34/test/getservbyname.c 2022-12-23 18:17:26.645479365 +0100
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <netdb.h>
|
||||
+#include <arpa/inet.h>
|
||||
|
||||
int main(int argc,char *argv[]) {
|
||||
struct servent* se;
|
||||
diff -ur dietlibc-0.34.orig/test/stdlib/testsort.c dietlibc-0.34/test/stdlib/testsort.c
|
||||
--- dietlibc-0.34.orig/test/stdlib/testsort.c 2003-12-15 14:07:42.000000000 +0100
|
||||
+++ dietlibc-0.34/test/stdlib/testsort.c 2022-12-23 18:16:33.758018509 +0100
|
||||
@@ -1,3 +1,4 @@
|
||||
+#define _BSD_SOURCE
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
diff -ur dietlibc-0.34.orig/test/stdlib/tst-calloc.c dietlibc-0.34/test/stdlib/tst-calloc.c
|
||||
--- dietlibc-0.34.orig/test/stdlib/tst-calloc.c 2003-12-15 14:07:42.000000000 +0100
|
||||
+++ dietlibc-0.34/test/stdlib/tst-calloc.c 2022-12-23 18:16:49.272860349 +0100
|
||||
@@ -17,6 +17,7 @@
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
+#define _BSD_SOURCE
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <malloc.h>
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
--- include/paths.h~ 2008-02-22 18:09:54.000000000 -0600
|
||||
+++ include/paths.h 2016-07-25 12:03:25.144058895 -0500
|
||||
@@ -2,7 +2,7 @@
|
||||
#define _PATHS_H
|
||||
|
||||
#define _PATH_BSHELL "/bin/sh"
|
||||
-#define _PATH_DEFPATH "/bin:/usr/bin:"
|
||||
+#define _PATH_DEFPATH "/bin:/usr/bin"
|
||||
|
||||
#define _PATH_DEVNULL "/dev/null"
|
||||
|
||||
179
dietlibc.spec
179
dietlibc.spec
|
|
@ -2,11 +2,8 @@
|
|||
## --with[out] ssp ... enable/disable SSP; default depends
|
||||
## on target architecture
|
||||
|
||||
# Disabled per upstream to fix FTBFS.
|
||||
%undefine _hardened_build
|
||||
|
||||
#%%global prerelease 20170317
|
||||
#%%global githubref c3f1cf67fcc186bb859e64a085bf98aaa6182a82
|
||||
%global prerelease 20120825
|
||||
%global githubref c3f1cf67fcc186bb859e64a085bf98aaa6182a82
|
||||
%global pkglibdir %{_prefix}/lib/dietlibc
|
||||
|
||||
%ifarch %ix86 x86_64
|
||||
|
|
@ -26,31 +23,30 @@
|
|||
|
||||
Summary: Small libc implementation
|
||||
Name: dietlibc
|
||||
Version: 0.34
|
||||
Release: 20%{?dist}
|
||||
License: GPL-2.0-only
|
||||
Version: 0.33
|
||||
Release: 0.1904.%prerelease%{?dist}
|
||||
License: GPLv2
|
||||
Group: Development/Libraries
|
||||
URL: http://www.fefe.de/dietlibc/
|
||||
%if !0%{?prerelease:1}
|
||||
Source0: https://www.fefe.de/dietlibc/%{name}-%{version}.tar.xz
|
||||
Source1: http://www.fefe.de/dietlibc/%{name}-%{version}.tar.xz.sig
|
||||
Source0: http://www.kernel.org/pub/linux/libs/dietlibc/%{name}-%{version}.tar.bz2
|
||||
Source1: http://www.fefe.de/dietlibc/%{name}-%{version}.tar.bz2.sig
|
||||
%else
|
||||
# generated by 'make cvs-sources [CVS_DATE=....]'
|
||||
Source0: %{name}-%{version}.%prerelease.tar.xz
|
||||
%endif
|
||||
## CVS..master diff from https://github.com/ensc/dietlibc
|
||||
#Patch0: dietlibc-github-%%githubref.patch.gz
|
||||
Patch1: dietlibc-insecure-defpath.patch
|
||||
Patch2: dietlibc-c99.patch
|
||||
#Requires: dietlibc-lib = %%{version}-%%{release}}
|
||||
Obsoletes: dietlibc-lib < %{version}-%{release}
|
||||
Patch0: dietlibc-github-%githubref.patch.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||
#Requires: dietlibc-lib = %{version}-%{release}}
|
||||
Obsoletes: dietlibc-lib < %{version}-%{release}}
|
||||
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gdb
|
||||
BuildRequires: make
|
||||
|
||||
%package devel
|
||||
Summary: dietlibc development files
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Obsoletes: %{name}-header < %{version}-%{release}
|
||||
Provides: %{name}-header = %{version}-%{release}
|
||||
|
|
@ -59,6 +55,7 @@ Provides: %{name}-static%{?_isa} = %{version}-%{release}
|
|||
|
||||
%package lib
|
||||
Summary: Dynamic libraries for dietlibc
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description
|
||||
|
|
@ -83,11 +80,8 @@ This package contains the dynamic libraries for dietlibc.
|
|||
|
||||
%prep
|
||||
%setup -q %{?prerelease:-n %{name}-%{version}.%prerelease}
|
||||
%dnl %setup -qn dietlibc
|
||||
|
||||
%dnl %apply -n0 -p1
|
||||
%patch -P 1 -p0
|
||||
%patch -P 2 -p1
|
||||
%apply -n0 -p1
|
||||
|
||||
%if %{without ssp}
|
||||
sed -i -e 's!^#define WANT_SSP$!// \0!g;
|
||||
|
|
@ -109,24 +103,21 @@ sed -i \
|
|||
dietfeatures.h
|
||||
%endif
|
||||
|
||||
%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os -g3 -Werror-implicit-function-declaration -Wno-unused -Wno-switch -std=gnu17
|
||||
%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os -g3 -Werror-implicit-function-declaration -Wno-unused -Wno-switch
|
||||
%global basemakeflags prefix=%pkglibdir BINDIR=%{_bindir} MAN1DIR=%{_mandir}/man1 CFLAGS="$RPM_OPT_FLAGS %fixcflags $XTRA_CFLAGS" PDIET=%pkglibdir STRIP=:
|
||||
%global makeflags %basemakeflags
|
||||
|
||||
|
||||
%build
|
||||
# This package strips .o files as they are created which removes the LTO
|
||||
# sections. It's likely this would work if those strip commands were
|
||||
# changed to leave the LTO sections alone. For now, disable LTO
|
||||
%define _lto_cflags %{nil}
|
||||
|
||||
make %makeflags all %{?_smp_mflags}
|
||||
|
||||
# 'dyn' target is not SMP safe
|
||||
#make %%makeflags dyn
|
||||
#make %makeflags dyn
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
install -d -m755 $RPM_BUILD_ROOT/etc
|
||||
make %makeflags DESTDIR=$RPM_BUILD_ROOT install
|
||||
|
||||
|
|
@ -144,10 +135,14 @@ make %makeflags -C test/inet all %{?_smp_mflags} DIET=$(echo `pwd`/bin-*/diet)
|
|||
cd test
|
||||
ulimit -m $[ 128*1024 ] -v $[ 256*1024 ] -d $[ 128*1024 ] -s 512
|
||||
|
||||
#bash ./runtests-X.sh
|
||||
bash ./runtests-X.sh
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHOR BUGS CAVEAT CHANGES COPYING FAQ PORTING README*
|
||||
%doc SECURITY THANKS TODO
|
||||
%doc %{_mandir}/*/*
|
||||
|
|
@ -155,121 +150,20 @@ ulimit -m $[ 128*1024 ] -v $[ 256*1024 ] -d $[ 128*1024 ] -s 512
|
|||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%pkglibdir
|
||||
%exclude %pkglibdir/*/*.so
|
||||
|
||||
|
||||
#%files lib
|
||||
#%defattr(-,root,root,-)
|
||||
#%config(noreplace) %{_sysconfdir}/*
|
||||
#%dir %pkglibdir
|
||||
#%dir %pkglibdir/lib-*
|
||||
#%pkglibdir/lib-%target_cpu/*.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jul 23 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-18
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Thu Aug 24 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.34-15
|
||||
- Fix FTBFS
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-14
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Tue Mar 07 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.34-13
|
||||
- migrated to SPDX license
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-12
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Fri Dec 23 2022 Florian Weimer <fweimer@redhat.com> - 0.34-11
|
||||
- C99 compatibility fixes (#2156074)
|
||||
|
||||
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon Jul 13 2020 Jeff Law <law@redhat.com> - 0.34-5
|
||||
- Disable LTO
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Tue Sep 25 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.34-1
|
||||
- 0.34
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-0.6.20170317
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.34-0.5.20170317
|
||||
- Escape macros in %%changelog
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-0.4.20170317
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-0.3.20170317
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.34-0.2.20170317
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 18 2017 Richard W.M. Jones <rjones@redhat.com> - 0.34-0.1
|
||||
- Move to much newer upstream version which supports aarch64 and POWER.
|
||||
- Fix bogus date in changelog.
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.33-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Sep 15 2016 Dan Horák <dan[at]danny.cz> - 0.33-10
|
||||
- Enable s390x build
|
||||
|
||||
* Fri Aug 12 2016 Peter Robinson <pbrobinson@fedoraproject.org> - 0.33-9
|
||||
- Exclude aarch64 Power64 s390x
|
||||
|
||||
* Mon Jul 25 2016 Jon Ciesla <limburgher@gmail.com> - 0.33-8
|
||||
- Patch for insecure defpath, BZ 1359768.
|
||||
|
||||
* Thu Apr 07 2016 Jon Ciesla <limburgher@gmail.com> - 0.33-7
|
||||
- Spec cleanup.
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.33-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Mon Nov 17 2014 Jon Ciesla <limburgher@gmail.com> - 0.33-4
|
||||
- Fix FTBFS using latest official cvs which drops a test script.
|
||||
|
||||
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Thu Apr 24 2014 Jon Ciesla <limburgher@gmail.com> - 0.33-1
|
||||
- Latest upstream.
|
||||
|
||||
* Tue Sep 17 2013 Jon Ciesla <limburgher@gmail.com> - 0.33-0.1904.20120825
|
||||
- Fix typo in %%files, BZ 1008729.
|
||||
|
||||
|
|
@ -344,6 +238,7 @@ ulimit -m $[ 128*1024 ] -v $[ 256*1024 ] -d $[ 128*1024 ] -s 512
|
|||
* Fri Dec 24 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1500.20101223
|
||||
- updated to 20101223 CVS snapshot
|
||||
|
||||
%changelog
|
||||
* Fri Jul 9 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.32-1400
|
||||
- added -static provides (#609606)
|
||||
- use %%apply, not %%patch
|
||||
|
|
@ -411,7 +306,7 @@ ulimit -m $[ 128*1024 ] -v $[ 256*1024 ] -d $[ 128*1024 ] -s 512
|
|||
|
||||
* Wed Feb 13 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-1.20080212
|
||||
- updated to CVS snapshot 20080212
|
||||
- fixed printf regression for '%%+04i' style formats
|
||||
- fixed printf regression for '%+04i' style formats
|
||||
- added %%check and run a testsuite; it does not succeed now so it is
|
||||
for informational purposes only...
|
||||
- added bunch of patches to fixes big-endian issues in string routines
|
||||
|
|
|
|||
4
sources
4
sources
|
|
@ -1,2 +1,2 @@
|
|||
SHA512 (dietlibc-0.34.tar.xz) = 2b38528c0ccf50e426f587b6448fed997fab1147eecc9e1af2f3fb3efe3d8f3997656d8e66e7cf1045ceb1f602cef43456c62ba83ff494f9c9816721bdb4d6c6
|
||||
SHA512 (dietlibc-0.34.tar.xz.sig) = 0428f1a7430b335f527ceb0fb347d50846c25aff38e32ca961f07ca3fc7dc4ca657c09c0797c7bb38b5c126a21e3d6a96f76e6d511e5121bd500276a9ded2a4c
|
||||
016865b8c40d40a57b2ddb5862f2e338 dietlibc-0.33.20120825.tar.xz
|
||||
734e14b59b7f017ae5843ee9b9b6d34e dietlibc-github-c3f1cf67fcc186bb859e64a085bf98aaa6182a82.patch.gz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue