Compare commits

...
Sign in to create a new pull request.

162 commits

Author SHA1 Message Date
Fedora Release Engineering
30bc22cffe Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 19:16:41 +00:00
Gwyn Ciesla
d48a6a0274 Fix FTBFS 2025-02-03 11:35:11 -06:00
Fedora Release Engineering
caa2e140a7 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 15:45:00 +00:00
Fedora Release Engineering
e396f8ce41 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 20:58:15 +00:00
Michal Domonkos
054a3b9eb7 Fix improperly commented out macros in %prep
Since RPM 4.20, %prep is no longer implemented as a special "hack" [1]
but is now a regular build scriptlet, meaning that %setup or %patch are
now treated as regular macros and thus will be expanded even in comments
(as documented in [2]).

Our spec has these so fix them up to unbreak the build on F41.

[1] https://github.com/rpm-software-management/rpm/issues/2205
[2] https://rpm-software-management.github.io/rpm/manual/spec.html
2024-05-31 15:05:26 +02:00
Fedora Release Engineering
8b585bcf2f Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 09:26:16 +00:00
Fedora Release Engineering
7fba8dced8 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 17:09:33 +00:00
Gwyn Ciesla
a202e42876 Fix FTBFS 2023-08-24 11:43:07 -05:00
Fedora Release Engineering
0fa1d76227 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 17:27:23 +00:00
Gwyn Ciesla
0292476790 migrated to SPDX license 2023-03-07 15:38:18 -06:00
Fedora Release Engineering
e8ece41b1b Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 01:23:49 +00:00
Florian Weimer
44061c3b49 C99 compatibility fixes (#2156074)
Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2022-12-23 18:36:43 +01:00
Fedora Release Engineering
2c7928ccf4 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 00:27:34 +00:00
Fedora Release Engineering
fad7e2992f - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 00:39:53 +00:00
Fedora Release Engineering
04074347b3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 20:47:11 +00:00
Fedora Release Engineering
f77cb95d5d - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 03:24:19 +00:00
Tom Stellard
849d5cbf11 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2020-12-17 04:31:53 +00:00
Fedora Release Engineering
ab48481a71 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 15:23:31 +00:00
Jeff Law
3a8f67ea00 Disable LTO 2020-07-13 09:50:39 -06:00
Fedora Release Engineering
b43fb6b695 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 15:50:43 +00:00
Fedora Release Engineering
6e06a6e767 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 21:59:29 +00:00
Fedora Release Engineering
096728f597 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 17:13:42 +00:00
Gwyn Ciesla
3f44ee2d4d 0.34 2018-09-25 08:21:42 -05:00
Igor Gnatenko
0bc39a612b add BuildRequires: gcc
Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot
2018-07-18 11:23:39 +02:00
Fedora Release Engineering
26e18673c6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 22:52:39 +00:00
Jason Tibbitts
0d1a23dd91 Remove needless use of %defattr 2018-07-10 00:38:24 -05:00
Igor Gnatenko
62d80f22b3
Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-14 07:57:42 +01:00
Igor Gnatenko
9466fb9d01 Remove BuildRoot definition
None of currently supported distributions need that.
It was needed last for EL5 which is EOL now

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-13 23:13:15 +01:00
Igor Gnatenko
88c9dd69d5
Escape macros in %changelog
Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Y2ZUKK2B7T2IKXPMODNF6HB2O5T5TS6H/
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-09 09:07:43 +01:00
Fedora Release Engineering
3c79ceed2c - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 06:50:47 +00:00
Fedora Release Engineering
d73454b1b3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-02 19:35:49 +00:00
Fedora Release Engineering
a8cf0df9e8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 06:13:19 +00:00
Richard W.M. Jones
37f0b67b43 Move to much newer upstream version which supports aarch64 and POWER.
- Fix bogus date in changelog.
2017-03-18 13:02:30 -04:00
Fedora Release Engineering
513dd71273 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 08:23:38 +00:00
Dan Horák
4938e95ef0 - Enable s390x build 2016-09-15 12:39:24 +02:00
Peter Robinson
abcee70778 Exclude aarch64 Power64 s390x 2016-08-13 00:28:59 +01:00
Jon Ciesla
5a591d76c9 Patch for insecure defpath. 2016-07-25 12:09:34 -05:00
Jon Ciesla
1f59733a51 Spec cleanup. 2016-04-07 11:14:07 -04:00
Dennis Gilmore
2eb5c9ba3a - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-03 18:44:04 +00:00
Dennis Gilmore
2a9f7fbc87 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-17 04:04:31 +00:00
Jon Ciesla
64344f85c6 Fix FTBFS. 2014-11-17 11:52:05 -06:00
Jon Ciesla
25fcdf4c29 Merge branch 'master' of ssh://pkgs.fedoraproject.org/dietlibc 2014-10-06 13:07:30 -05:00
Jon Ciesla
6f331cb433 Pull extra cl macro 2014-10-06 13:07:11 -05:00
Peter Robinson
5c717e2ad7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-16 02:48:02 +00:00
Dennis Gilmore
fd5b87ad1b - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 02:23:05 -05:00
Jon Ciesla
50f75fadec Update to latest. 2014-05-05 12:23:11 -05:00
Jon Ciesla
1553e83649 Fix type in files. 2013-09-17 07:39:03 -05:00
Dennis Gilmore
2acfe430ea - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-03 02:12:25 -05:00
Jon Ciesla
c0f10d1aae Spec cleanup. 2013-03-27 16:11:45 -05:00
Dennis Gilmore
2173c64079 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild 2013-02-13 13:42:44 -06:00
Enrico Scholz
48316be399 updated to recent snapshot 2012-08-26 16:24:21 +02:00
Dennis Gilmore
afb79389e9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-18 15:42:16 -05:00
Enrico Scholz
1b41fd7205 reverted removal of kernel headers; causes too much trouble 2012-04-30 12:11:45 +02:00
Enrico Scholz
08122db4c1 bumped release 2012-04-29 14:54:20 +02:00
Enrico Scholz
55acbe41bb make: embedded monotic increasing number into github patch 2012-04-29 14:53:58 +02:00
Enrico Scholz
a9e78e341c added some -Wno-* build flags 2012-04-29 14:53:03 +02:00
Enrico Scholz
ab2b604420 removed shipped linux headers 2012-04-29 14:52:12 +02:00
Enrico Scholz
031e2ffc83 - updated git-patch (fstatat(2) implementation + actime_r(3) fixes)
- removed local runtests-X.sh; it is in git already
2012-04-05 14:52:00 +02:00
Enrico Scholz
022e9e2642 - updated to 20120330 CVS snapshot
- versionized the patchset fetched from github
2012-03-31 16:04:45 +02:00
Enrico Scholz
2ed0748501 makefile: added target to fetch the github patch 2012-03-31 16:01:11 +02:00
Enrico Scholz
752d6199de updated to 20111222 CVS snapshot
removed github patch from scm and upload it to the source cache
2012-01-14 14:52:06 +01:00
Enrico Scholz
edbb4f6111 verinfo: updated url 2012-01-14 14:49:53 +01:00
Enrico Scholz
566f0a438e generate .xz tarballs 2012-01-14 14:47:06 +01:00
Dennis Gilmore
7604e732c2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-12 18:37:41 -06:00
Enrico Scholz
26c9d4c27f create files in mkstemp() with O_LARGEFILE 2011-03-12 22:28:45 +01:00
Enrico Scholz
02f25d8def reduced stack size for testsuite 2011-03-12 21:32:12 +01:00
Enrico Scholz
fd647b68b1 set fixed page size for arm 2011-03-12 21:32:01 +01:00
Enrico Scholz
daabea0b25 disabled linux 2.2/2.4 compatibility code + valgrind nice mode 2011-03-12 21:31:42 +01:00
Enrico Scholz
eb12cf48a8 updated to 20110311 CVS + rediffed patches 2011-03-12 21:31:14 +01:00
Enrico Scholz
d7dfb66cef - other ARM enhancements
- fixed missing headers in last utime(2) + fadvise(2) patches
2011-02-20 20:57:53 +01:00
Enrico Scholz
f2e3c0ca3e - further ARM fixes
- global fixes for utime(2), fadvise*(2)
2011-02-20 16:21:54 +01:00
Dennis Gilmore
7c1ee801ca - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild 2011-02-08 07:49:21 -06:00
Enrico Scholz
6e9794c707 added common alarm(2) implementation 2011-01-14 21:29:01 +01:00
Enrico Scholz
dc82a0df5a updated comment about failing tst-strtod test
whitespace cleanups
2011-01-09 15:16:36 +01:00
Enrico Scholz
b92a8e93a6 - replaced all the single patches with a big one from
https://github.com/ensc/dietlibc/commits/rebase
- various ARM-EABI fixes (667852)
2011-01-09 14:44:03 +01:00
Enrico Scholz
c42d5c8550 updated pagesize patch 2011-01-09 14:39:48 +01:00
Enrico Scholz
6c2f51368e initial checkin 2011-01-09 14:39:22 +01:00
Enrico Scholz
9c6a50d7ce updated to 20101223 CVS snapshot 2010-12-24 13:23:45 +01:00
Enrico Scholz
1c6c4ec53c whitespace cleanup 2010-12-24 13:23:16 +01:00
Enrico Scholz
c24d5e7f4b updated CVS_BASEVER 2010-12-24 13:22:10 +01:00
Enrico Scholz
1db3978d8f rediffed 2010-12-24 13:22:00 +01:00
Enrico Scholz
2425041cc1 readded makefile 2010-08-15 23:53:19 +02:00
Fedora Release Engineering
c7bbe4034a dist-git conversion 2010-07-28 12:58:00 +00:00
ensc
0d68259124 - added -static provides (#609606)
- use %%apply, not %%patch
- updated %%release_func macro
2010-07-09 08:17:59 +00:00
Bill Nottingham
b698ec0421 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-25 23:12:00 +00:00
ensc
6153cd4d78 updated 2009-07-25 14:52:48 +00:00
Jesse Keating
6e4df79732 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild 2009-07-24 20:15:23 +00:00
ensc
6309c04f31 updated 2009-03-01 12:42:34 +00:00
ensc
4c54bbeedc updated 2009-03-01 12:26:20 +00:00
ensc
851a42ec6d updated 2009-03-01 12:00:59 +00:00
ensc
defd35883b updated 2009-03-01 11:53:24 +00:00
Jesse Keating
e644337fae - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild 2009-02-24 11:46:39 +00:00
ensc
2faf846d2d updated to 20081017 CVS snapshot 2008-10-18 17:06:02 +00:00
ensc
2164f44e49 rediffed patches 2008-10-18 17:04:19 +00:00
ensc
40415ddcc8 updated ARM code s!#error!#warning! 2008-10-18 17:02:52 +00:00
ensc
d5c4ed627d fixed typo; reverted %if changes from last commit 2008-07-16 21:05:56 +00:00
ensc
e58672bac5 fixed patch 2008-07-16 20:49:34 +00:00
Tom Callaway
e41dfb516a fix license tag 2008-07-16 20:37:53 +00:00
ensc
8298f6b77b fixed ARM code and use cmp instead of orrs 2008-07-02 06:59:34 +00:00
ensc
fd1180c7f9 use .comment instead of .note section for the not-implemented symbol 2008-07-02 06:57:21 +00:00
ensc
1cfe6b6bbf removed CVS tags 2008-06-21 14:57:08 +00:00
ensc
0abbcc0bac - updated to 20080517 snapshot
- use patches from git repository
2008-05-18 10:16:45 +00:00
ensc
921d845ad7 updated to 20080517 snapshot 2008-05-18 10:14:44 +00:00
ensc
1c0742353d use patches from git repository; rediffed against 20080517 2008-05-18 10:12:53 +00:00
ensc
c0c3c48d61 include <sys/signalfd.h> 2008-05-18 09:48:16 +00:00
ensc
6b900f5b03 fixed __signalfd() prototype 2008-05-18 09:44:21 +00:00
ensc
0e0e2afde7 fixed post-increment issue on ppc*
die when AT_PAGESZ entry is empty
2008-04-19 17:14:18 +00:00
ensc
cb07023084 added changelog entry 2008-04-19 16:26:41 +00:00
ensc
a977bf906b moved calculation of __elfinto into start.S; user could do e.g. '*environ =
NULL' which breaks the current deferred calculation in
    __libc_getpagesize()
do not return a predefined PAGE_SIZE when __elfinfo code fails
2008-04-19 16:25:25 +00:00
ensc
a63829de79 - removed debug stuff from specfile
- updated patches to work with new isinf() behavior of gcc 4.3
2008-04-13 22:57:58 +00:00
ensc
3b7df88197 - fixed tests using isinf(); the math.c test checks the dietlibc
implementation of isinf() (which differs between positive and negative
    inf). All other tests use boolean retval only and test for the signess
    of the values
2008-04-13 22:55:07 +00:00
ensc
881b9971c9 - do not test for signess of isinf(3); C99 guarantees values of 0 and not 0
and does not differ between positive and negative inf. 'isinf(3)' is a
    builtin in gcc 4.3 and previous check won't work anymore. Instead of,
    test whether value is lesser or greater than zero.
- renabled the INF testsuite
2008-04-13 22:52:24 +00:00
ensc
d23740c869 added other INFINITY testcases 2008-04-13 21:55:08 +00:00
ensc
005894e400 disabled -inf testcases for now 2008-04-13 21:54:21 +00:00
ensc
538991a0f9 use a better definition for INFINITY whitespace cleanup 2008-04-13 21:39:16 +00:00
ensc
318d905e03 added -noreturn patch deactivated some debug code 2008-04-13 21:24:13 +00:00
ensc
1a844ca210 fixed a lot of borken printf(3) format specifiers 2008-04-13 21:23:19 +00:00
ensc
585d8348ae fixed a printf() statement 2008-04-13 21:22:31 +00:00
ensc
63100c2fd3 fixed other issues preventing an -Werror-implicit-function-declaration
build
2008-04-13 21:21:56 +00:00
ensc
2148489018 SUSv2 says about abort(3):
The abort() function shall not return.
Hence, add an __attribute__((__noreturn__))
2008-04-13 21:20:45 +00:00
ensc
d49ea1924d added -implicitfunc patch 2008-04-13 20:38:13 +00:00
ensc
c8fe5dc928 added a missing '#include <math.h>' 2008-04-13 20:37:13 +00:00
ensc
66676e2784 define and use a custom __diet_elf_addr_t datatype instead of elf_addr_t
which disappeared in linux 2.6.25
2008-04-13 20:36:32 +00:00
ensc
401d33c3b0 declares an implicitly used function 2008-04-13 20:35:27 +00:00
ensc
722e943974 more debugging... 2008-04-13 18:22:34 +00:00
ensc
667117c38e added sanity check to detect broken headers at compile time 2008-04-13 18:21:22 +00:00
ensc
066ee97d8d further debugging... 2008-04-13 17:31:51 +00:00
ensc
c6571b4fba added 'gethostbyname' to list of bogus checks 2008-04-13 17:10:42 +00:00
ensc
4dc3f7fcbb added debugging code for PPC 2008-04-13 17:09:37 +00:00
ensc
0cd7732adf lib/alloc.c: return value of__ind_shift() depends on PAGE_SIZE 2008-04-13 17:09:02 +00:00
ensc
de70f517d9 - added patch for dynamic PAGE_SIZE support
- fixed/enhanced testsuite and removed the '|| :' in %%check
- improved/fixed floating point support *printf(3)
2008-04-13 14:18:39 +00:00
ensc
1fee7d679b - whitespace cleanups
- use gnu-style
- added __pure attribute to __get_elf_aux_value()
2008-04-13 14:14:48 +00:00
ensc
25b8a8926a registered test which are known to be broken resp. which test for features
known to be broken.
2008-04-13 14:02:33 +00:00
ensc
bc919cc87e This patch fixes/enhances the testsuite:
I removed the checks which called endmntent() multiple times resp. with a
    NULL pointer. Behavior in first case is undefined and latter causes a
    segfault (I could not find documentation that this is allowed). Hence,
    it does not make sense to test this.
test 'malloc(0)' only, when WANT_MALLOC_ZERO is set
the '%Zu' printf format specifier is bogus (from libc5 ages). I replaced it
    with the '%zu' one.
Please note, that this test still fails because it uses glibc specific
    features.
removed tests which set a non-C locale. Broken usage of 'strptime()' result
    was fixed too. This test should succeed now.
this test was added while working on the '%F/%G' patch and verifies the
    isinf() + isnan() functions.
Please see
http://cvs.fedora.redhat.com/viewcvs/rpms/dietlibc/devel/runtests-X.sh?root
    =extras&view=markup
for tests which are known to be broken.
2008-04-13 14:01:03 +00:00
ensc
7c0cc8d835 The tst-fseek testsuite is bogus on 64 bit platforms because the
*stat64 functions/structures are not available there. This patch defines
    '_FILE_OFFSET_BITS 64' and uses the plain *stat instead of.
2008-04-13 13:48:16 +00:00
ensc
657cb3c746 This patch changes the used format for %x and %X specifiers in strptime(3)
to match these specified by SUSv2. It adds support for '%F' in
    strftime(3) too.
2008-04-13 13:45:58 +00:00
ensc
ddfc4b59ef This patch adds support for uppercase 'F' and 'G' printf format specifiers.
It fixes handling of -INF values in __dtostr() too; previously, there
    was
| unsigned int i; | if ((i=isinf(d))) return
    copystring(buf,maxlen,i>0?"inf":"-inf"); ~~~ which evaluated to true
    everytime. The copystring() function worked for 3-letter words only but
    not for '-inf'.
The last argument of __dtostr() was changed from a boolean flag to a
    bitmask. Bit 0 encodes 'g' or 'f', and bit 1 lower-/uppercase. There
    should be probably added some macros for them; for now, these values
    are used directly.
Please note that this might affect other applications (liblowfat?) too
    which are using __dtostr().
2008-04-13 13:43:05 +00:00
ensc
4927ab8208 This patch adds support for dynamic PAGE_SIZE values to 'dietlibc'. It is a
little bit invasive in several aspects:
it modifies the startup code. We need to know the position of the elf-info
    auxilary table which is located after 'environ'. We can not use
    'environ' directly because it might be modified by the application.
Hence, an additional __elfinfo variable is placed into .bss and filled in
    the startup code. Depending on platform, this adds 1-3 instructions and
    an additional pointer to .bss.
I tested only the i386 and x86_64 modifications; it would be nice when
    people with corresponding hardware would test the other ones. I am
    especially uncertain regarding the parisc changes.
The elf-info stuff (which might be interesting e.g. for dynamic linking or
    sysconf(_SC_CLK_TCK)) can be enabled without the dynamic pagesize too.
it removes the 'PAGE_SIZE' macro from <sys/shm.h>; this will break
    compilation of existing userspace application which are using this
    deprecated macro
I added a new internal 'dietpagesize.h' header which defines
| __DIET_PAGE_SIZE | __DIET_PAGE_SHIFT
macros. These return either builtin constants (when WANT_DYN_PAGESIZE is
    not selected), or values derived from __libc_getpagesize().
Every usage of PAGE_SIZE in dietlibc code was replaced by these macros.
due to the previous point, the internal 'struct __dirstream' was modified.
    I replaced
| getdents64(d->fd,(struct dirent64*)d->buf, sizeof (d->buf)-1);
with
| getdents64(d->fd,(struct dirent64*)d->buf, __DIRSTREAM_BUF_SIZE-1);
literally but I am not sure where the '-1' is coming from. There is one
    hunk, where this '-1' is missing so I think the '-1' should be removed
    from all calls to getdents64().
changes affect the *alloc() functions too; on x86_64 around 64 bytes where
    added to .text of alloc.o
the new testprogramm requires a 'getconf' binary which returns the correct
    values for PAGE_SIZE and CLK_TCK
2008-04-13 13:20:03 +00:00
ensc
88839ec3c7 removed as now in upstream 2008-04-12 09:09:47 +00:00
ensc
5465f6e346 updated to CVS snapshot 20080409 2008-04-12 09:04:48 +00:00
ensc
06eb0c7bcf fixed CFLAGS for check 2008-02-22 17:59:12 +00:00
ensc
0b285b4227 fixed optimized memcpy(3) 2008-02-22 17:57:57 +00:00
ensc
2953d403af - updated to CVS snapshot 20080221; removed most of the last patches as
they are now in upstream
- moved files into platform neutral /usr/lib dir (not using %%_lib or
    %%_libdir macro)
- added -devel subpackage due to multiarch issues; main package contains
    only the 'diet' binary plus some tools while -devel holds all the
    header and object files.
2008-02-22 16:29:14 +00:00
ensc
443db2fb7c - updated to CVS snapshot 20080221; removed most of the last patches as
they are now in upstream
2008-02-22 16:27:57 +00:00
ensc
a030bf001f ok; was hard work, but it should build now... 2008-02-14 22:15:07 +00:00
ensc
6d8978bea8 further fixes 2008-02-14 22:06:18 +00:00
ensc
f64111dd32 fixed big-endian problems in strcpy + strcmp 2008-02-14 21:51:41 +00:00
ensc
9c4dfc9262 added ulong patch 2008-02-14 20:39:31 +00:00
ensc
a263bc0007 avoid compiler warnings 2008-02-14 20:32:56 +00:00
ensc
102859dd8c further strlen fixes... 2008-02-14 20:29:33 +00:00
ensc
7e5d7168b5 fixed strlen patch 2008-02-14 19:03:48 +00:00
ensc
0136367ad4 added strlen patch; build testsuite with -fno-builtin 2008-02-14 16:31:20 +00:00
ensc
691bf7b3f0 BR gdb 2008-02-14 12:10:24 +00:00
ensc
0f8aeab54b further hacks... 2008-02-14 11:49:42 +00:00
ensc
6aa347dbde further tests... 2008-02-13 21:26:45 +00:00
ensc
fea4a802d0 added temporary code to trace down ppc problems 2008-02-13 21:11:20 +00:00
ensc
b0593e5c27 use --with dynamic + --with ssp constructs 2008-02-13 21:07:14 +00:00
ensc
9ad08dd387 fixup status output; made it a bash script 2008-02-13 21:06:05 +00:00
ensc
18415a91b7 - updated to CVS snapshot 20080212
- 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...
2008-02-13 17:54:35 +00:00
ensc
8fdd3c7786 updated to CVS snapshot 20080212 2008-02-13 17:53:40 +00:00
ensc
eaa1d20209 added 'cvs-sources' target 2008-02-13 17:52:30 +00:00
ensc
3a8c47ad89 initial checkin 2008-02-13 17:52:03 +00:00
16 changed files with 503 additions and 313 deletions

View file

@ -1,4 +0,0 @@
dietlibc-[0-9].[0-9][0-9]
dietlibc*.tar.bz2*
dietlibc*.rpm
i386

9
.gitignore vendored Normal file
View file

@ -0,0 +1,9 @@
/dietlibc-0.33.20120330.tar.xz
/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

81
ChangeLog.2005 Normal file
View file

@ -0,0 +1,81 @@
* Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.29-4
- added '-fno-stack-protector' to the CFLAGS
* Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.29-3
- removed '-fstack-protector' from CLI because it uses __stack_chk_fail
which is not provided by dietlibc
* Thu May 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.29-2
- rebuilt
* Tue May 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.29-1
- updated to 0.29
- unset some compiler options which cause errors with gcc4
- rediffed -scall patch
- removed most patches as already in upstream
* Thu May 19 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.28-6
- use %%dist instead of %%disttag
- package some more %%doc files (reported by Chris Ricker)
- add %%release to the BuildRoot (reported by Chris Ricker)
- fixed URLs of the sources (reported by Chris Ricker)
* Sun May 1 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.28-5
- added Herbert Poetzl's syscall(2) implementation for x86_64 and
sparc* architectures (see
http://vserver.13thfloor.at/Experimental/delta-diet.diff); rediffed
the .call patch
- catch the case when syscall(2) is used on archs where it is not
implemented yet
- define MADV_* constants on HPPA and IA64 archs
- fix *truncate64() handling on 64bit archs
* Fri Mar 4 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.28-4
- rebuild
- fixed compilation with gcc4
- made nice(2) SUSv3 compliantly on x86_64 and other platforms (patch
provided by Colin Hill)
- build the dynamic libs for x86, x86_64 and arm only
- fixed PPC issues in ISO mode (do not use the 'powerpc' macro but the
'__powerpc__' one)
- added some O_* -flags for the HPPA arch
- use more modern flags for '-Os'
* Tue Feb 1 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.28-1
- updated to 0.28
- unset LD_RUN_PATH which would result in empty rpaths else
- removed the waitpid patch; it is solved upstream
* Tue Aug 17 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.27-1
- updated to 0.27
* Fri Jun 11 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.26-1
- updated to 0.26
* Fri Apr 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.25-1
- updated to 0.25
* Sat Jan 17 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:%VERSION.90.%DATE}-5
- renewed -snprintf patch
* Tue Jan 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:%VERSION.90.%DATE}-4
- applied -snprintf patch (from fedora dietlibc-0.24-2 package)
* Tue Dec 30 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:%VERSION.90.%DATE}-2
- added C99 patch
* Thu Dec 4 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.24-1
- updated to 0.24
* Tue Sep 16 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.23-1
- updated to 0.23
* Fri Nov 8 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 1:0.21-1
- updated to 0.21
- removed unpackaged files in %%install-stage
* Thu Jul 11 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 1:0.18-1
- updated to 0.18
* Thu Jul 4 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
- Initial build.

View file

@ -1,21 +1,27 @@
# Makefile for source rpm: dietlibc
# $Id$
NAME := dietlibc
SPECFILE = $(firstword $(wildcard *.spec))
MAKEFILE_COMMON = $(HOME)/.fedora/common.mk
-include $(MAKEFILE_COMMON)
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
CVS ?= cvs
GIT ?= git
TAR ?= tar
GZIP ?= gzip
CVS_BASEVER = 0.34
CVS_DATE := $(shell date +'%Y%m%d' -d '-1 day')
GIT_URL = git://github.com/ensc/dietlibc.git
GIT_DIFF_OPTS = --summary --stat --patch
GIT_BRANCH_OLD = CVS
GIT_BRANCH_NEW = master
_cvs_suffix = ${CVS_BASEVER}.${CVS_DATE}
MAKEFILE_COMMON := $(shell $(find-makefile-common))
cvs-sources:
cd ${DESTDIR} . && $(CVS) -d :pserver:cvs@cvs.fefe.de:/cvs -z9 export -D${CVS_DATE} -d dietlibc-${_cvs_suffix} dietlibc
cd ${DESTDIR} . && $(TAR) cJf dietlibc-${_cvs_suffix}.tar.xz dietlibc-${_cvs_suffix} --owner root --group root
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)
git-patch:
cd ${DESTDIR} . && $(GIT) clone --mirror $(GIT_URL) dietlibc.git
cd ${DESTDIR} . && cd dietlibc.git && { \
ref=`git ls-remote . refs/heads/$(GIT_BRANCH_NEW) | cut -f 1` && \
cnt=`git rev-list refs/heads/$(GIT_BRANCH_NEW) | wc -l` && \
$(GIT) diff $(GIT_DIFF_OPTS) $(GIT_BRANCH_OLD)..$(GIT_BRANCH_NEW) > diff && \
$(GZIP) -c < diff > ../dietlibc-g$$cnt+$$ref.patch.gz ; }
cd ${DESTDIR} . && rm -rf dietlibc.git

View file

@ -1,18 +0,0 @@
--- dietlibc-0.28-unpatched/lib/__nice.c 2005-02-13 18:01:18.966469056 -0500
+++ dietlibc-0.28/lib/__nice.c 2005-02-13 18:17:04.381744088 -0500
@@ -1,9 +1,13 @@
#include "syscalls.h"
-#include <sys/time.h>
+#include <errno.h>
#include <sys/resource.h>
#ifndef __NR_nice
int nice(int i) {
- return setpriority(PRIO_PROCESS,0,getpriority(PRIO_PROCESS,0)+i);
+ if (setpriority(PRIO_PROCESS,0,getpriority(PRIO_PROCESS,0)+i) == -1) {
+ errno=EPERM;
+ return -1;
+ }
+ return getpriority(PRIO_PROCESS,0);
}
#endif

View file

@ -1,11 +0,0 @@
--- dietlibc-0.29/diet.c.nostackprotector 2005-05-18 16:38:55.000000000 +0200
+++ dietlibc-0.29/diet.c 2005-10-30 12:27:06.000000000 +0100
@@ -319,6 +319,8 @@
if (strcmp(argv[i],"-fpic") && strcmp(argv[i],"-fno-pic"))
continue;
}
+ if (strcmp(argv[i],"-fstack-protector")==0)
+ continue;
*dest++=argv[i];
}
#ifndef __DYN_LIB

View file

@ -1,21 +0,0 @@
2005-04-24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
* libcompat/syscall.S: catch the case when syscall(2) is not
implemented for the actual arch instead of jumping to the next
function and executing the wrong code
--- dietlibc-0.29/libcompat/syscall.S.scall
+++ dietlibc-0.29/libcompat/syscall.S
@@ -120,6 +120,12 @@
nop
#else
- /* arch not implemented yet */
+#include <endian.h>
+ .section .note
+#if (__WORDSIZE == 64)
+ .quad __syscall_2_not_implemented_for_this_arch
+#else
+ .long __syscall_2_not_implemented_for_this_arch
+#endif
#endif
.size syscall, . - syscall

View file

@ -1,35 +0,0 @@
--- dietlibc-0.30/libm/gamma.c~ 2005-03-15 08:51:23.000000000 +0000
+++ dietlibc-0.30/libm/gamma.c 2006-12-28 14:36:58.000000000 +0000
@@ -33,19 +33,19 @@ Return value gamma returns a value in
#include <stdlib.h>
#include <math.h>
-#define B0 + 1.0l/ 6/ 1/ 2
-#define B1 - 1.0l/ 30/ 3/ 4
-#define B2 + 1.0l/ 42/ 5/ 6
-#define B3 - 1.0l/ 30/ 7/ 8
-#define B4 + 5.0l/ 66/ 9/10
-#define B5 - 691.0l/2730/11/12
-#define B6 + 7.0l/ 6/13/14
-#define B7 - 3617.0l/ 510/15/16
-#define B8 + 43867.0l/ 798/17/18
-#define B9 - 174611.0l/ 330/19/20
-#define B10 + 854513.0l/ 138/21/22
-#define B11 - 236364091.0l/2730/23/24
-#define B12 + 8553103.0l/ 6/25/26
+#define B0 + 1.0/ 6/ 1/ 2
+#define B1 - 1.0/ 30/ 3/ 4
+#define B2 + 1.0/ 42/ 5/ 6
+#define B3 - 1.0/ 30/ 7/ 8
+#define B4 + 5.0/ 66/ 9/10
+#define B5 - 691.0/2730/11/12
+#define B6 + 7.0/ 6/13/14
+#define B7 - 3617.0/ 510/15/16
+#define B8 + 43867.0/ 798/17/18
+#define B9 - 174611.0/ 330/19/20
+#define B10 + 854513.0/ 138/21/22
+#define B11 - 236364091.0/2730/23/24
+#define B12 + 8553103.0/ 6/25/26
static const double coeff[] = { B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10 };
int signgam;

View file

@ -1,11 +0,0 @@
diff -up dietlibc-0.31/lib/stack_smash_handler2.c.~1~ dietlibc-0.31/lib/stack_smash_handler2.c
--- dietlibc-0.31/lib/stack_smash_handler2.c.~1~ 2007-09-01 14:13:21.000000000 +0200
+++ dietlibc-0.31/lib/stack_smash_handler2.c 2007-09-01 14:13:40.000000000 +0200
@@ -2,6 +2,7 @@
#include <write12.h>
void __stack_chk_fail(void);
+void __stack_chk_fail_local(void) __attribute__((__alias__("__stack_chk_fail")));
/* earlier versions of ProPolice actually gave the address and function
* name as arguments to the handler, so it could print some useful

View file

@ -1,40 +0,0 @@
2007-09-01 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
* lib/stack_smash_handler2: modified __stack_chk_fail() to trigger
a segfault by accessing address 0x0. Every system with an MMU
known by me, segfaults by dereferencing a NULL pointer
* Makefile: added hack to compile stack_smash_handler2 with
'--fno-omit-frame-pointer'.
diff -up dietlibc-0.31/lib/stack_smash_handler2.c.~1~ dietlibc-0.31/lib/stack_smash_handler2.c
--- dietlibc-0.31/lib/stack_smash_handler2.c.stacksmash
+++ dietlibc-0.31/lib/stack_smash_handler2.c
@@ -8,5 +8,13 @@ void __stack_chk_fail(void);
* diagnostics. No more. :-( */
void __stack_chk_fail(void) {
__write2("smashed stack detected, program terminated.\n");
- _exit(127);
+
+ /* trigger a segfault which can be inspected within a debugger (inclusive
+ * stack-trace). 'abort(3)' at this place would be too heavy weighted.
+ *
+ * TODO: limit this to systems which are known to have an MMU (resp. is
+ * dietlibc with stack-protector used on systems without an MMU?)
+ */
+ while (1)
+ *(char *)0 = 0;
}
--- dietlibc-0.31/Makefile.stacksmash
+++ dietlibc-0.31/Makefile
@@ -172,9 +172,10 @@ $(OBJDIR)/%.o: %.S $(ARCH)/syscalls.h
$(OBJDIR)/pthread_%.o: libpthread/pthread_%.c
$(CROSS)$(CC) $(INC) $(CFLAGS) -c $< -o $@
$(COMMENT) -$(CROSS)strip -x -R .comment -R .note $@
+$(OBJDIR)/stack_smash_handler2.o: XCFLAGS:=-fno-omit-frame-pointer
$(OBJDIR)/%.o: %.c
- $(CROSS)$(CC) $(INC) $(CFLAGS) -c $< -o $@ -D__dietlibc__
+ $(CROSS)$(CC) $(INC) $(CFLAGS) $(XCFLAGS) -c $< -o $@ -D__dietlibc__
$(COMMENT) -$(CROSS)strip -x -R .comment -R .note $@
endif

33
dietlibc-c99.patch Normal file
View file

@ -0,0 +1,33 @@
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>

View file

@ -1,6 +1,5 @@
diff -up dietlibc-0.31/include/paths.h.~1~ dietlibc-0.31/include/paths.h
--- dietlibc-0.31/include/paths.h.defpath
+++ dietlibc-0.31/include/paths.h
--- 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

View file

@ -1,18 +1,18 @@
## $Id: dietlibc.spec,v 1.3 2005/02/01 12:03:17 ensc Exp $
## This package understands the following switches:
## --with[out] ssp ... enable/disable SSP; default depends
## on target architecture
## Fedora Extras specific customization below...
##
# Disabled per upstream to fix FTBFS.
%undefine _hardened_build
%ifarch %ix86 x86_64 arm
%global do_dyn 0
#%%global prerelease 20170317
#%%global githubref c3f1cf67fcc186bb859e64a085bf98aaa6182a82
%global pkglibdir %{_prefix}/lib/dietlibc
%ifarch %ix86 x86_64
%bcond_without ssp
%else
%global do_dyn 0
%endif
%if %do_dyn
%global with_dyn 1
%bcond_with ssp
%endif
%ifarch %ix86
@ -21,41 +21,57 @@
%global target_cpu %_target_cpu
%endif
%{!?release_func:%global release_func() %1%{?dist}}
%{!?apply:%global apply(p:n:b:) %patch%%{-n:%%{-n*}} %%{-p:-p %%{-p*}} %%{-b:-b %%{-b*}} \
%nil}
Summary: Small libc implementation
Name: dietlibc
Version: 0.31
Release: %release_func 1
License: GPL
Group: Development/Libraries
Version: 0.34
Release: 20%{?dist}
License: GPL-2.0-only
URL: http://www.fefe.de/dietlibc/
Source0: http://www.kernel.org/pub/linux/libs/dietlibc/%name-%version.tar.bz2
Source1: http://www.fefe.de/dietlibc/%name-%version.tar.bz2.sig
Patch1: dietlibc-0.28-setpriority.patch
Patch10: dietlibc-0.29-scall.patch
Patch20: dietlibc-0.29-nostackprotector.patch
Patch30: dietlibc-0.30-longdouble.patch
Patch31: dietlibc-0.31-defpath.patch
Patch32: dietlibc-0.31-stacksmash.patch
Patch33: dietlibc-0.31-stacksmash-dyn.patch
BuildRoot: %_tmppath/%name-%version-%release-buildroot
%{?with_dyn:Requires: dietlibc-lib = %version-%release}
%{!?with_dyn:Obsoletes: dietlibc-lib < %version-%release}
%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
%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}
Requires: %{name}-devel = %{version}-%{release}
BuildRequires: gcc
BuildRequires: gdb
BuildRequires: make
%package devel
Summary: dietlibc development files
Requires: %{name} = %{version}-%{release}
Obsoletes: %{name}-header < %{version}-%{release}
Provides: %{name}-header = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
Provides: %{name}-static%{?_isa} = %{version}-%{release}
%package lib
Summary: Dynamic libraries for dietlibc
Group: System Environment/Libraries
Conflicts: %name < %version-%release
Conflicts: %name > %version-%release
Requires: %{name} = %{version}-%{release}
%description
The diet libc is a libc that is optimized for small size. It can be
used to create small statically linked binaries for Linux on alpha,
arm, hppa, ia64, i386, mips, s390, sparc, sparc64, ppc and x86_64.
%description devel
The diet libc is a libc that is optimized for small size. It can be
used to create small statically linked binaries for Linux on alpha,
arm, hppa, ia64, i386, mips, s390, sparc, sparc64, ppc and x86_64.
This package contains the object files for dietlibc.
%description lib
The diet libc is a libc that is optimized for small size. It can be
@ -66,16 +82,14 @@ This package contains the dynamic libraries for dietlibc.
%prep
%setup -q
%patch1 -p1 -b .nice
%patch10 -p1 -b .scall
%patch30 -p1 -b .longdouble
%patch31 -p1 -b .defpath
%patch32 -p1 -b .stacksmash
%patch33 -p1 -b .stacksmash-dyn
%setup -q %{?prerelease:-n %{name}-%{version}.%prerelease}
%dnl %setup -qn dietlibc
%ifnarch i386 x86_64
%patch20 -p1 -b .nostackprotector
%dnl %apply -n0 -p1
%patch -P 1 -p0
%patch -P 2 -p1
%if %{without ssp}
sed -i -e 's!^#define WANT_SSP$!// \0!g;
s!.*\(#define WANT_STACKGAP\).*!\1!g' dietfeatures.h
%global xtra_fixcflags -fno-stack-protector
@ -83,55 +97,325 @@ sed -i -e 's!^#define WANT_SSP$!// \0!g;
%global xtra_fixcflags %nil
%endif
sed -i -e 's!strip !: !g' Makefile
sed -i \
-e '/#define \(WANT_LARGEFILE_BACKCOMPAT\|WANT_VALGRIND_SUPPORT\)/d' \
dietfeatures.h
%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os
%global basemakeflags prefix=%_libdir/dietlibc BINDIR=%_bindir MAN1DIR=%_mandir/man1 COMMENT=: CFLAGS="$RPM_OPT_FLAGS %fixcflags" PDIET=%_libdir/dietlibc
%ifarch %ix86 arm
sed -i \
-e '/#define WANT_DYN_PAGESIZE/{c\' \
-e '#define WANT_ELFINFO' \
-e '}' \
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 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
%{?with_dyn: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
ln -s lib-%_arch ${RPM_BUILD_ROOT}%_libdir/dietlibc/lib-%_arch-%_vendor
ln -s lib-%{_arch} ${RPM_BUILD_ROOT}%pkglibdir/lib-%{_arch}-%{_vendor}
chmod a-x $RPM_BUILD_ROOT%_libdir/dietlibc/lib-*/*.o
rm -f $RPM_BUILD_ROOT%_bindir/dnsd
chmod a-x $RPM_BUILD_ROOT%pkglibdir/lib-*/*.o
rm -f $RPM_BUILD_ROOT%{_bindir}/dnsd
%clean
rm -rf $RPM_BUILD_ROOT
%check
XTRA_CFLAGS='-fno-builtin'
make %makeflags -C test all %{?_smp_mflags} DIET=$(echo `pwd`/bin-*/diet) -k || :
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
%files
%defattr(-,root,root,-)
%{?with_dyn:%exclude %_libdir/dietlibc/*/*.so}
%doc AUTHOR BUGS CAVEAT CHANGES COPYING FAQ PORTING README*
%doc SECURITY THANKS TODO
%doc %_mandir/*/*
%_bindir/*
%_libdir/dietlibc
%doc %{_mandir}/*/*
%{_bindir}/*
%if %do_dyn
%files lib
%defattr(-,root,root,-)
%config(noreplace) %_sysconfdir/*
%dir %_libdir/dietlibc
%dir %_libdir/dietlibc/lib-*
%_libdir/dietlibc/lib-%target_cpu/*.so
%endif
%files devel
%pkglibdir
%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.
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-0.1903.20120825
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Mar 20 2013 Jon Ciesla <limburgher@gmail.com> - 0.33-0.1902.20120825
- Macro cleanup.
- Merge header subpackage into devel.
- Converted lib <> Conflicts to Requires =.
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-0.1901.20120825
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sun Aug 26 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1900.20120825
- updated to recent snapshot
- fixed s390 issues (reported and patched by Dan Horák)
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-0.1804.20120330
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sun Apr 29 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1803.20120330
- reverted removal of kernel headers; causes too much trouble
* Sun Apr 29 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1802.20120330
- removed local include/linux headers; shipped ones are outdated and
do not work well with those from the kernel-headers package
- added some '-Wno-*' build flags
* Thu Apr 5 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1801.20120330
- updated git-patch (fstatat(2) implementation + actime_r(3) fixes)
- removed local runtests-X.sh; it is in git already
* Sat Mar 31 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1800.20120330
- updated to 20120330 CVS snapshot
- versionized the patchset fetched from github
- fixed build on armv7+ systems (#800601)
* Sat Jan 14 2012 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1700.20111222
- updated to 20111222 CVS snapshot
- rediffed + updated patchset
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-0.1601.20110311
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Sat Mar 12 2011 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1600.20110311
- updated to 20110311 CVS snapshot
- set fixed page size for arm
- disabled linux 2.2/2.4 compatibility code + valgrind nice mode
- reduced stack size for testsuite
- rediffed patches
* Sun Feb 20 2011 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1600.20101223
- other ARM enhancements
- fixed missing headers in last utime(2) + fadvise(2) patches
* Sun Feb 20 2011 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1505.20101223
- further ARM fixes
- global fixes for utime(2), fadvise*(2)
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-0.1504.20101223
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Fri Jan 14 2011 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
- added common alarm(2) implementation
* Sun Jan 9 2011 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1502.20101223
- replaced all the single patches with a big one from
https://github.com/ensc/dietlibc/commits/rebase
- various ARM-EABI fixes (667852)
* Fri Dec 24 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.33-0.1500.20101223
- updated to 20101223 CVS snapshot
* Fri Jul 9 2010 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.32-1400
- added -static provides (#609606)
- use %%apply, not %%patch
- updated %%release_func macro
* Sat Jul 25 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.32-0
- updated to 0.32
- fixed stackgap/auxvec patch
- added patches to fix SMP builds and to prevent object file stripping
- moved %%changelog entries from 2005 and before into ChangeLog.2005 file
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31-9.20090228
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Sun Mar 1 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-8.20090228
- splitted a noarch -header subpackage out of -devel
* Sun Mar 1 2009 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-7.20090228
- updated to 20090228
- updated patches
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31-7.20081017
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Sat Oct 18 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-6.20081017
- updated to 20081017 CVS snapshot
- relaxed some sanity checks on architecture not supported by Fedora
and use '#warning' instead of '#error'
- fixed ARM dynlib code
* Wed Jul 16 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.31-6.20080517
- fix license tag
* Sun May 18 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-5.20080517
- updated to 20080517 snapshot
- use patches from git repository
* Sun May 18 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-5.20080409
- fixed __signalfd() prototype
* Sat Apr 19 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-4.20080409
- update -pagesize patch
* Mon Apr 14 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-3.20080409
- removed debug stuff from specfile
- updated patches to work with new isinf() behavior of gcc 4.3
* Sun Apr 13 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-2.20080409
- added patch for dynamic PAGE_SIZE support
- fixed/enhanced testsuite and removed the '|| :' in %%check
- improved/fixed floating point support *printf(3)
* Thu Apr 10 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-1.20080409
- updated to CVS snapshot 20080409
* Fri Feb 22 2008 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-1.20080221
- updated to CVS snapshot 20080221; removed most of the last patches
as they are now in upstream
- moved files into platform neutral /usr/lib dir (not using %%_lib or
%%_libdir macro)
- added -devel subpackage due to multiarch issues; main package contains
only the 'diet' binary plus some tools while -devel holds all the
header and object files.
- fixed optimized memcpy(3)
* 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
- 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
* Sat Sep 1 2007 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.31-1
- updated to 0.31
- removed the no-stack-protector bits for i386 and x86_64 archs
@ -156,85 +440,3 @@ rm -rf $RPM_BUILD_ROOT
* Sat Feb 18 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.29-6
- added '-Os' to the CFLAGS
- exclude PPC arch due to strange compilation errors
* Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.29-4
- added '-fno-stack-protector' to the CFLAGS
* Sun Oct 30 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.29-3
- removed '-fstack-protector' from CLI because it uses __stack_chk_fail
which is not provided by dietlibc
* Thu May 26 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.29-2
- rebuilt
* Tue May 24 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.29-1
- updated to 0.29
- unset some compiler options which cause errors with gcc4
- rediffed -scall patch
- removed most patches as already in upstream
* Thu May 19 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.28-6
- use %%dist instead of %%disttag
- package some more %%doc files (reported by Chris Ricker)
- add %%release to the BuildRoot (reported by Chris Ricker)
- fixed URLs of the sources (reported by Chris Ricker)
* Sun May 1 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.28-5
- added Herbert Poetzl's syscall(2) implementation for x86_64 and
sparc* architectures (see
http://vserver.13thfloor.at/Experimental/delta-diet.diff); rediffed
the .call patch
- catch the case when syscall(2) is used on archs where it is not
implemented yet
- define MADV_* constants on HPPA and IA64 archs
- fix *truncate64() handling on 64bit archs
* Fri Mar 4 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 0.28-4
- rebuild
- fixed compilation with gcc4
- made nice(2) SUSv3 compliantly on x86_64 and other platforms (patch
provided by Colin Hill)
- build the dynamic libs for x86, x86_64 and arm only
- fixed PPC issues in ISO mode (do not use the 'powerpc' macro but the
'__powerpc__' one)
- added some O_* -flags for the HPPA arch
- use more modern flags for '-Os'
* Tue Feb 1 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.28-1
- updated to 0.28
- unset LD_RUN_PATH which would result in empty rpaths else
- removed the waitpid patch; it is solved upstream
* Tue Aug 17 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.27-1
- updated to 0.27
* Fri Jun 11 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.26-1
- updated to 0.26
* Fri Apr 9 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.25-1
- updated to 0.25
* Sat Jan 17 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:%VERSION.90.%DATE}-5
- renewed -snprintf patch
* Tue Jan 6 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:%VERSION.90.%DATE}-4
- applied -snprintf patch (from fedora dietlibc-0.24-2 package)
* Tue Dec 30 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:%VERSION.90.%DATE}-2
- added C99 patch
* Thu Dec 4 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.24-1
- updated to 0.24
* Tue Sep 16 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1:0.23-1
- updated to 0.23
* Fri Nov 8 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 1:0.21-1
- updated to 0.21
- removed unpackaged files in %%install-stage
* Thu Jul 11 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> 1:0.18-1
- updated to 0.18
* Thu Jul 4 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
- Initial build.

View file

@ -1 +1 @@
0.31
0.32

View file

@ -1,2 +1,2 @@
acb98d469ee932d902fdf6de07802b7c dietlibc-0.31.tar.bz2
77dadb56faa06c1a5177d76806e79b28 dietlibc-0.31.tar.bz2.sig
SHA512 (dietlibc-0.34.tar.xz) = 2b38528c0ccf50e426f587b6448fed997fab1147eecc9e1af2f3fb3efe3d8f3997656d8e66e7cf1045ceb1f602cef43456c62ba83ff494f9c9816721bdb4d6c6
SHA512 (dietlibc-0.34.tar.xz.sig) = 0428f1a7430b335f527ceb0fb347d50846c25aff38e32ca961f07ca3fc7dc4ca657c09c0797c7bb38b5c126a21e3d6a96f76e6d511e5121bd500276a9ded2a4c

View file

@ -1,2 +1,2 @@
http://www.kernel.org/pub/linux/libs/dietlibc/
dietlibc-(.*?).tar.bz2
http://www.fefe.de/dietlibc/
/dietlibc-(.*?)\.tar\.bz2