Package: klibc / 2.0.4-9

Metadata

Package Version Patches format
klibc 2.0.4-9 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
klibc linux libc dev | (download)

scripts/Kbuild.install | 7 6 + 1 - 0 !
1 file changed, 6 insertions(+), 1 deletion(-)

 fix klibc debian specific build trouble

Simply remove the headers_install invocation and rely on linux-libc-dev.

With these changes:

(the extra chmod was needed to allow for umask > 022) I could compile,
link and run this program:

#include <unistd.h>

int main(void)
{
	write(1, "Hello world\n", 12);
	return 0;
}

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
[ added multi arch support ]
Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
Signed-off-by: maximilian attems <max@stro.at>
[ fixed cross building ]
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>

multiarch include path | (download)

klcc/Kbuild | 1 1 + 0 - 0 !
klcc/klcc.in | 4 4 + 0 - 0 !
2 files changed, 5 insertions(+)

 include the multiarch include directory in klcc's path
 The multiarch include directory, /usr/include/<triplet>, needs to be
 explicitly added to klcc's path; without this, klcc is incompatible
 with recent Ubuntu versions of linux-libc-dev and fails to find any asm/
 headers.
 .
 This change is safe to apply on non-multiarch-enabled systems, since
 $(DEB_HOST_MULTIARCH) will evaluate empty.  However, upstreaming should
 probably wait until we have a way to get this path information in a
 vendor-neutral manner.
Fix minimal mv to work across fs | (download)

usr/utils/mv.c | 236 217 + 19 - 0 !
1 file changed, 217 insertions(+), 19 deletions(-)

 [patch] [klibc] fix minimal mv to work across fs
ppc64el load toc syscall stub.patch | (download)

usr/klibc/arch/ppc64/sysstub.ph | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 [klibc] [patch] ppc64: elfv2: load toc value in system call stub
implement realpath.patch | (download)

usr/include/stdlib.h | 2 2 + 0 - 0 !
usr/klibc/Kbuild | 2 1 + 1 - 0 !
usr/klibc/realpath.c | 49 49 + 0 - 0 !
3 files changed, 52 insertions(+), 1 deletion(-)

 [klibc] implement realpath()
Bug-Debian: https://bugs.debian.org/763049
readlink add f option.patch | (download)

usr/utils/readlink.c | 29 25 + 4 - 0 !
1 file changed, 25 insertions(+), 4 deletions(-)

 readlink: add -f option
Bug-Debian: https://bugs.debian.org/763049
mount implement o defaults.patch | (download)

usr/utils/mount_opts.c | 9 7 + 2 - 0 !
1 file changed, 7 insertions(+), 2 deletions(-)

 mount: implement -o defaults
Bug-Debian: https://bugs.debian.org/763049
mips update archfcntl h.patch | (download)

usr/include/arch/mips/klibc/archfcntl.h | 22 21 + 1 - 0 !
1 file changed, 21 insertions(+), 1 deletion(-)

 [klibc] mips: update archfcntl.h
Bug-Debian: https://bugs.debian.org/763049
0001 add mips64 support headers.patch | (download)

usr/include/arch/mips64/klibc/archconfig.h | 5 5 + 0 - 0 !
usr/include/arch/mips64/klibc/archsetjmp.h | 26 26 + 0 - 0 !
usr/include/arch/mips64/machine/asm.h | 82 82 + 0 - 0 !
usr/include/fcntl.h | 2 1 + 1 - 0 !
4 files changed, 114 insertions(+), 1 deletion(-)

 added header files for mips64.
Modeled on mips 32 header files and adapted for 64 bit ABI.
 - archsetjmp.h: do not save floating-point state
 - asm.h:        Symbolic register names for 64 bit ABI

0002 add mips64 support arch mips32.patch | (download)

usr/klibc/arch/mips64/Kbuild | 11 11 + 0 - 0 !
usr/klibc/arch/mips64/sysstub.ph | 29 29 + 0 - 0 !
2 files changed, 40 insertions(+)

 add mips64 support, using existing mips32 code.
 - using mips32 assembler source files: pipe.S vfork.S syscall.S
 - sysstub.ph: copied over from klibc/arch/mips

0003 add mips64 support arch mips64 specific.patch | (download)

usr/klibc/arch/mips64/MCONFIG | 2 2 + 0 - 0 !
usr/klibc/arch/mips64/crt0.S | 31 31 + 0 - 0 !
usr/klibc/arch/mips64/setjmp.S | 50 50 + 0 - 0 !
3 files changed, 83 insertions(+)

 adding mips64 specific chagnes.
Modeled on mips 32 and adapted for 64 bit ABI.
 - MCONFIG:  using existing klibc.ld scrpit
 - crt0.S:   adapted gp initialization
 - setjmp.S: do not save floating-point state

install headers with consistent mode.patch | (download)

scripts/Kbuild.install | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 install headers with consistent mode
dash mkbuiltins fix sort order harder.patch | (download)

usr/dash/mkbuiltins | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 dash: mkbuiltins: fix sort order harder
klibc add pread and pwrite 32bit syscall wrappers for parisc.patch | (download)

usr/include/endian.h | 6 6 + 0 - 0 !
usr/klibc/Kbuild | 1 1 + 0 - 0 !
usr/klibc/SYSCALLS.def | 6 4 + 2 - 0 !
usr/klibc/pread.c | 29 29 + 0 - 0 !
usr/klibc/pwrite.c | 29 29 + 0 - 0 !
5 files changed, 69 insertions(+), 2 deletions(-)

 [klibc] add pread and pwrite 32bit syscall wrappers for parisc
Date: Wed, 23 Apr 2014 22:52:53 +0200
Bug-Debian: https://bugs.debian.org/745660
klibc ppc64 fix struct stat.patch | (download)

usr/include/arch/ppc64/klibc/archstat.h | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 [patch] ppc64: fix struct stat
Bug-Debian: https://bugs.debian.org/783292
gzip fix silent fallback to decompression.patch | (download)

usr/gzip/gzip.c | 29 16 + 13 - 0 !
1 file changed, 16 insertions(+), 13 deletions(-)

 gzip: fix silent fallback to decompression
Bug-Debian: https://bugs.debian.org/355809
klibc mips setjmp s don t save and restore floating point.patch | (download)

usr/klibc/arch/mips/setjmp.S | 24 0 + 24 - 0 !
1 file changed, 24 deletions(-)

 [klibc] mips/setjmp.s: don't save and restore floating-point registers
Bug-Debian: https://bugs.debian.org/789683
syscalls override detection of direct socket syscalls on i386 m68k s390.patch | (download)

usr/include/arch/i386/klibc/archconfig.h | 3 3 + 0 - 0 !
usr/include/arch/m68k/klibc/archconfig.h | 3 3 + 0 - 0 !
usr/include/arch/s390/klibc/archconfig.h | 3 3 + 0 - 0 !
3 files changed, 9 insertions(+)

 syscalls: override detection of direct socket syscalls on i386, m68k, s390
Bug-Debian: https://bugs.debian.org/809423
run init add dry run mode.patch | (download)

usr/kinit/kinit.c | 2 1 + 1 - 0 !
usr/kinit/run-init/run-init.c | 37 24 + 13 - 0 !
usr/kinit/run-init/run-init.h | 5 4 + 1 - 0 !
usr/kinit/run-init/runinitlib.c | 44 29 + 15 - 0 !
4 files changed, 58 insertions(+), 30 deletions(-)

 run-init: add dry-run mode
Bug-Debian: https://bugs.debian.org/810965

initramfs-tools wants to validate the real init program before running
it, as there is no way out once it has exec'd run-init.  This is
complicated by the increasing use of symlinks for /sbin/init and for
/sbin itself.  We can't simply resolve them with 'readlink -f' because
any absolute symlinks will be resolved using the wrong root.  Add a
dry-run mode (-n option) to run-init that goes as far as possible to
validate that the given init is executable.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>