diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-11-13 10:19:01 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-11-13 10:19:01 +0000 |
commit | 0ab048b6557ea0a337b96f5d0558694a237dfab8 (patch) | |
tree | 89dbb0a558beba1894d348fc537cc8d5e8a3d74a /debian | |
parent | 9cb6901edf2145a9111f11b15acf9d74494bd04d (diff) |
Update the debian packaging for use in a standalone uClibc
system, rather than being a subordinate lib under a glibc
based system.
-Erik
Diffstat (limited to 'debian')
-rw-r--r-- | debian/README.Debian | 12 | ||||
-rw-r--r-- | debian/changelog | 187 | ||||
-rw-r--r-- | debian/config | 101 | ||||
-rw-r--r-- | debian/control | 58 | ||||
-rw-r--r-- | debian/control.in | 47 | ||||
-rw-r--r-- | debian/copyright | 10 | ||||
-rw-r--r-- | debian/docs | 3 | ||||
-rwxr-xr-x | debian/fixlinks | 81 | ||||
-rw-r--r-- | debian/gcc-uClibc/.cvsignore | 2 | ||||
-rw-r--r-- | debian/gcc-uClibc/Makefile | 99 | ||||
-rw-r--r-- | debian/gcc-uClibc/gcc-uClibc.c | 668 | ||||
-rw-r--r-- | debian/ldconfig.1 (renamed from debian/uclibc-gcc.1) | 0 | ||||
-rw-r--r-- | debian/ldd.1 (renamed from debian/uclibc-ldd.1) | 0 | ||||
-rw-r--r-- | debian/libuclibc-dev.files | 10 | ||||
-rw-r--r-- | debian/libuclibc0.files | 3 | ||||
-rw-r--r-- | debian/libuclibc0.postinst | 8 | ||||
-rw-r--r-- | debian/libuclibc0.shlibs | 8 | ||||
-rwxr-xr-x | debian/mksnapshot | 36 | ||||
-rwxr-xr-x | debian/rules | 92 | ||||
-rw-r--r-- | debian/uclibc-dev.files | 2 | ||||
-rw-r--r-- | debian/uclibc-gcc.dirs | 4 | ||||
-rw-r--r-- | debian/uclibc-ldconfig.1 | 28 | ||||
-rw-r--r-- | debian/uclibc-readelf.1 | 19 | ||||
-rw-r--r-- | debian/uclibc-toolchain.files | 3 | ||||
-rw-r--r-- | debian/uclibc.files | 4 | ||||
-rw-r--r-- | debian/uclibc.postinst | 8 | ||||
-rw-r--r-- | debian/uclibc.shlibs | 10 |
27 files changed, 167 insertions, 1336 deletions
diff --git a/debian/README.Debian b/debian/README.Debian deleted file mode 100644 index fd3919ead..000000000 --- a/debian/README.Debian +++ /dev/null @@ -1,12 +0,0 @@ - -The script mksnapshot will automatically download a new snapshot -from the uClibc CVS server. - -Notes on Build-Depends: - - kernel-headers | kernel-headers-2.4.10 autobuilt on i386 and powerpc - - kernel-headers-2.4 autobuilt on xxx - - - diff --git a/debian/changelog b/debian/changelog index 3733b657c..6155dce92 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,189 +1,6 @@ -uclibc (0.9.18-1) unstable; urgency=low +uclibc (0.9.23-1) unstable; urgency=low * New upstream release - * Update to kernel-source-2.4.20 - * Upgrade .shlib dependencies - * Enable IPv6 and other options (Closes: #174092) - * Remove build directory from ld script (Closes: #161474) - * Add/fix /lib/ld-uClibc.so.0 symlink - -- David Schleef <ds@schleef.org> Wed, 12 Feb 2003 12:40:38 -0800 - -uclibc (0.9.16-6) unstable; urgency=low - - * Reenable FPU and C99 math support that were accidentally - disabled in the move to 0.9.16. (Closes: #171359, #172686) - * Fix ${arch}-uclibc-xx installation directory (should be /usr/bin) - * Make ldd work with dh_shlibdeps (Closes: #171282, #171287) - - -- David Schleef <ds@schleef.org> Wed, 11 Dec 2002 15:55:52 -0800 - -uclibc (0.9.16-5) unstable; urgency=low - - * (Attempt #2) Removed some default flags on sparc. - - -- David Schleef <ds@schleef.org> Wed, 27 Nov 2002 13:56:39 -0800 - -uclibc (0.9.16-4) unstable; urgency=low - - * Removed some default flags on m68k and sparc, since they don't - work with the standard gcc. - * Stripped quotes around ARCH_CFLAGS - - -- David Schleef <ds@schleef.org> Fri, 22 Nov 2002 15:15:25 -0800 - -uclibc (0.9.16-3) unstable; urgency=low - - * Got the last change wrong. - * Enabled alpha build. - - -- David Schleef <ds@schleef.org> Thu, 21 Nov 2002 16:24:27 -0800 - -uclibc (0.9.16-2) unstable; urgency=low - - * Disable shared lib loader on m68k and sparc - - -- David Schleef <ds@schleef.org> Wed, 20 Nov 2002 19:45:31 -0800 - -uclibc (0.9.16-1) unstable; urgency=low - - * New upstream release (Closes: #169650, #169547) - * Rewrote much of the installation code to use dh_ more - * Removed gasp man page link (Closes: #169648) - * Upstream uses new configuration method (Closes: #169513) - - -- David Schleef <ds@schleef.org> Mon, 18 Nov 2002 11:32:43 -0800 - -uclibc (0.9.12-2) unstable; urgency=low - - * Make sure MAS_MMU=true on m68k - - -- David Schleef <ds@schleef.org> Thu, 27 Jun 2002 15:04:59 -0700 - -uclibc (0.9.12-1) unstable; urgency=low - - * New upstream release. - * Attempt to fix MIPS build again. (Closes: #150313) - - -- David Schleef <ds@schleef.org> Mon, 24 Jun 2002 16:26:18 -0700 - -uclibc (0.9.11-cvs20020619-1) unstable; urgency=low - - * This is an automatic snapshot of uClibc CVS - * new snapshot - * MIPS build should have been fixed in the last entry, which - was not actually uploaded (Closes: #150313). - - -- David Schleef <ds@schleef.org> Wed, 19 Jun 2002 11:45:59 -0700 - -uclibc (0.9.11-cvs20020420-1) unstable; urgency=low - - * Many of the configs have broken CROSS definitions. Compensate - for that in debian/rules. - - -- David Schleef <ds@schleef.org> Sat, 20 Apr 2002 15:40:39 -0700 - -uclibc (0.9.11-cvs20020419-1) unstable; urgency=low - - * new upstream snapshot - - should fix build on sparc and m68kk (Closes: #142708) - * I wanted to have a debian package for the 0.9.11 release, but - that was rather broken on PowerPC. - * Updated kernel source to 2.4.18 - - -- David Schleef <ds@schleef.org> Fri, 19 Apr 2002 10:15:59 -0700 - -uclibc (0.9.10-cvs20020406-1) unstable; urgency=low - - * new upstream snapshot - - should fix build on mips - * updated shlibs to 0.9.10, since it was broken previously (actually - was done in previous upload) - * create top-level lib/, for safety - - -- David Schleef <ds@schleef.org> Sat, 6 Apr 2002 14:34:41 -0800 - -uclibc (0.9.10-1) unstable; urgency=low - - * New upstream release (Closes: #140295) - - -- David Schleef <ds@schleef.org> Thu, 28 Mar 2002 11:25:17 -0800 - -uclibc (0.9.9-cvs20020221-2) unstable; urgency=low - - * debian/rules: touch linux/autoconf.h. Should make us buildable - on arm. - * add build-dep on bzip2 - - -- David Schleef <ds@schleef.org> Sun, 24 Feb 2002 17:26:37 -0800 - -uclibc (0.9.9-cvs20020221-1) unstable; urgency=low - - * New upstream snapshot - * Add subarchitecture symlinks on arm - * Use mips config file on mipsel - - -- David Schleef <ds@schleef.org> Thu, 21 Feb 2002 23:11:23 -0800 - -uclibc (0.9.9-cvs20020210-1) unstable; urgency=low - - * New upstream snapshot. - * debian/mksnapshot: updated version and filenames - * debian/control.in: changed dependency from kernel-headers to - kernel-source. - * debian/rules: force HAS_MMU=true - * debian/rules: change mipsel to mips - * debian/rules: untar kernel-source include directory and use - that as kernel source. - * Previous 3 lines should fix autobuildability (Closes: #131373) - - -- David Schleef <ds@schleef.org> Sun, 10 Feb 2002 17:11:22 -0800 - -uclibc (0.9.5-cvs20011117-1) unstable; urgency=low - - * New upstream snaphot - * mksnapshot (new): script to generate snapshots from upstream CVS - * control, control.in: limited architectures to those that can - theoretically build. Updated kernel-headers dependency to - -2.4.10 -- this may cause problems with autobuilders. - * fixlinks (new): script to fix up symlinks to comply with policy. - Decreases number of lintian complaints. - * rules: use fixlinks. Fix method of finding kernel headers -- - should increase potential autobuildability. - * uclibc-ldd.1, uclibc-readelf.1: Bogus updates to bogus man pages. - These really need to be written. - - -- David Schleef <ds@schleef.org> Sat, 17 Nov 2001 18:10:33 -0800 - -uclibc (0.9.5-cvs20011011-1) unstable; urgency=low - - * Closes #104243 - - -- David Schleef <ds@schleef.org> Thu, 11 Oct 2001 13:29:02 -0700 - -uclibc (0.9.5-cvs20010702-1) unstable; urgency=low - - * Build from CVS - * Can create cross-compiling library (but not cross packages) - - -- David Schleef <ds@schleef.org> Mon, 2 Jul 2001 23:16:20 -0700 - -uclibc (0.9.5-cvs20010630-1) unstable; urgency=low - - * No, really. Initial Release. I mean it this time. - * Clean up patch. - - -- David Schleef <ds@schleef.org> Sat, 30 Jun 2001 17:12:41 -0700 - -uclibc (0.9.5-cvs20010626-1) unstable; urgency=low - - * No, really. Initial Release. - - -- David Schleef <ds@schleef.org> Thu, 28 Jun 2001 16:49:25 -0700 - -uclibc (0.9.5-cvs20010625-1) unstable; urgency=low - - * Initial Release. - - -- David Schleef <ds@schleef.org> Mon, 25 Jun 2001 22:13:43 -0700 + -- Erik Andersen <andersen@codepoet.org> Wed, 12 Nov 2003 18:20:49 -0700 diff --git a/debian/config b/debian/config index 22711f08c..a478d4b0b 100644 --- a/debian/config +++ b/debian/config @@ -1,72 +1,127 @@ # # Automatically generated make config: don't edit # +# TARGET_alpha is not set +# TARGET_arm is not set +# TARGET_cris is not set +# TARGET_e1 is not set +# TARGET_h8300 is not set +# TARGET_i386 is not set +# TARGET_i960 is not set +# TARGET_m68k is not set +# TARGET_microblaze is not set +# TARGET_mips is not set +# TARGET_powerpc is not set +# TARGET_sh is not set +# TARGET_sparc is not set +# TARGET_v850 is not set # # Target Architecture Features and Options # HAVE_ELF=y -CONFIG_386=y -# CONFIG_486 is not set -# CONFIG_586 is not set -# CONFIG_586MMX is not set -# CONFIG_686 is not set -# CONFIG_PENTIUMIII is not set -# CONFIG_PENTIUM4 is not set -# CONFIG_K6 is not set -# CONFIG_K7 is not set -# CONFIG_CRUSOE is not set -# CONFIG_WINCHIPC6 is not set -# CONFIG_WINCHIP2 is not set -# CONFIG_CYRIXIII is not set -UCLIBC_HAS_MMU=y +TARGET_ARCH="none" +# ARCH_LITTLE_ENDIAN is not set +# ARCH_BIG_ENDIAN is not set +# ARCH_HAS_NO_MMU is not set UCLIBC_HAS_FLOATS=y -HAS_FPU=y +# ARCH_HAS_NO_FPU is not set +# HAS_FPU is not set DO_C99_MATH=y WARNINGS="-Wall" KERNEL_SOURCE="/usr/src/linux" -C_SYMBOL_PREFIX="" +HAVE_DOT_CONFIG=y # # General Library Settings # +# HAVE_NO_PIC is not set DOPIC=y HAVE_SHARED=y BUILD_UCLIBC_LDSO=y LDSO_LDD_SUPPORT=y +UCLIBC_CTOR_DTOR=y +# UCLIBC_PROFILING is not set UCLIBC_HAS_THREADS=y +PTHREADS_DEBUG_SUPPORT=y UCLIBC_HAS_LFS=y # MALLOC is not set MALLOC_930716=y +MALLOC_GLIBC_COMPAT=y +UCLIBC_DYNAMIC_ATEXIT=y HAS_SHADOW=y -UCLIBC_HAS_REGEX=y UNIX98PTY_ONLY=y ASSUME_DEVPTS=y +UCLIBC_HAS_TM_EXTENSIONS=y +UCLIBC_HAS_TZ_CACHING=y +UCLIBC_HAS_TZ_FILE=y +UCLIBC_HAS_TZ_FILE_READ_MANY=y +UCLIBC_TZ_FILE_PATH="/etc/TZ" # # Networking Support # -UCLIBC_HAS_IPV6=y +# UCLIBC_HAS_IPV6 is not set UCLIBC_HAS_RPC=y +# UCLIBC_HAS_FULL_RPC is not set # # String and Stdio Support # +UCLIBC_HAS_CTYPE_TABLES=y +UCLIBC_HAS_CTYPE_SIGNED=y +# UCLIBC_HAS_CTYPE_UNSAFE is not set +UCLIBC_HAS_CTYPE_CHECKED=y +# UCLIBC_HAS_CTYPE_ENFORCED is not set UCLIBC_HAS_WCHAR=y -# USE_OLD_VFPRINTF is not set +# UCLIBC_HAS_LOCALE is not set +UCLIBC_HAS_HEXADECIMAL_FLOATS=y +UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y +UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9 +UCLIBC_HAS_SCANF_GLIBC_A_FLAG=y +# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set +UCLIBC_HAS_STDIO_BUFSIZ_256=y +# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set +# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set +# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set +# UCLIBC_HAS_STDIO_BUFSIZ_4096 is not set +# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set +UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y +# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set +# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set +UCLIBC_HAS_STDIO_GETC_MACRO=y +UCLIBC_HAS_STDIO_PUTC_MACRO=y +UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y +# UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set +UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y +UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y +UCLIBC_HAS_PRINTF_M_SPEC=y +UCLIBC_HAS_ERRNO_MESSAGES=y +# UCLIBC_HAS_SYS_ERRLIST is not set +UCLIBC_HAS_SIGNUM_MESSAGES=y +# UCLIBC_HAS_SYS_SIGLIST is not set +UCLIBC_HAS_GNU_GETOPT=y + +# +# Big and Tall +# +UCLIBC_HAS_REGEX=y +# UCLIBC_HAS_WORDEXP is not set +UCLIBC_HAS_FTW=y +UCLIBC_HAS_GLOB=y # # Library Installation Options # -SHARED_LIB_LOADER_PATH="$(DEVEL_PREFIX)/lib" +SHARED_LIB_LOADER_PREFIX="/lib" +RUNTIME_PREFIX="/usr/$(TARGET_ARCH)-linux-uclibc" DEVEL_PREFIX="/usr/$(TARGET_ARCH)-linux-uclibc" -SYSTEM_DEVEL_PREFIX="$(DEVEL_PREFIX)" -DEVEL_TOOL_PREFIX="$(DEVEL_PREFIX)/usr" # -# uClibc hacking options +# uClibc development/debugging options # # DODEBUG is not set # DOASSERTS is not set # SUPPORT_LD_DEBUG is not set # SUPPORT_LD_DEBUG_EARLY is not set +# UCLIBC_MJN3_ONLY is not set diff --git a/debian/control b/debian/control index 2ea715022..b525be24d 100644 --- a/debian/control +++ b/debian/control @@ -1,47 +1,31 @@ Source: uclibc -Section: devel -Priority: optional -Maintainer: David Schleef <ds@schleef.org> -Build-Depends: debhelper, bzip2, kernel-source-2.4.20 +Section: libs +Priority: required +Maintainer: Erik Andersen <andersen@codepoet.org> +Build-Depends: make (>= 3.78-4), dpkg-dev (>= 1.4.1.5), debianutils (>= 1.13.1), tar (>= 1.13.11), bzip2, texinfo (>= 4.0), kernel-source-2.4.22, gcc-3.3, binutils (>= 2.14.90.0.6), sed (>= 4.0.5-4) Standards-Version: 3.5.8 -Package: libuclibc-dev -Section: devel -Architecture: alpha arm i386 m68k mips mipsel powerpc sh sparc -Depends: libuclibc0 (= ${Source-Version}) -Description: A small implementation of the C library - uClibc is an implementation of the standard C library that is - much smaller than glibc, which makes it useful for embedded - systems. This package includes header files and development - libraries necessary to compile applications that use uClibc. - -Package: libuclibc0 -Section: libs -Architecture: alpha arm i386 m68k mips mipsel powerpc sh sparc +Package: uclibc +Architecture: alpha arm i386 m68k mips mipsel powerpc sparc sh3 sh4 sh3eb sh4eb +Section: base +Priority: required Depends: -Description: A small implementation of the C library +Conflicts: libc6 +Description: The uClibc C Library: Shared libraries uClibc is an implementation of the standard C library that is much smaller than glibc, which makes it useful for embedded systems. This package provides only the run-time libraries. - . - The Debian binary packages for uClibc do not provide the necessary - components for using uClibc as the primary library on a system, - as might be done for an embedded system. -Package: uclibc-toolchain +Package: uclibc-dev +Architecture: alpha arm i386 m68k mips mipsel powerpc sparc sh3 sh4 sh3eb sh4eb Section: devel -Architecture: alpha arm i386 m68k mips mipsel powerpc sh sparc -Depends: gcc|c-compiler, binutils, ${shlibs:Depends} -Recommends: libuclibc-dev -Conflicts: uclibc-gcc -Replaces: uclibc-gcc -Description: A compiler wrapper for uClibc - This package includes utilities that function as a toolchain for - compiling with uClibc instead of the native libc. The utilities - have names such as powerpc-uclibc-gcc (depending on the architecture), - and should behave identically to the base utilities, except that - they use headers and libraries provided in the libuclibc-dev - package. Most utilities are symbolic links to the correct underlying - utility, although gcc and ld are implemented as wrapper binaries that - call gcc and ld with the necessary arguments and command line options. +Priority: standard +Depends: uclibc (= ${Source-Version}) +Provides: libc-dev, libc6-dev +Recommends: c-compiler +Description: The uClibc C Library: Development Libraries and Header Files + uClibc is an implementation of the standard C library that is + much smaller than glibc, which makes it useful for embedded + systems. This package includes header files and development + libraries necessary to compile applications that use uClibc. diff --git a/debian/control.in b/debian/control.in deleted file mode 100644 index ee46a686c..000000000 --- a/debian/control.in +++ /dev/null @@ -1,47 +0,0 @@ -Source: uclibc -Section: devel -Priority: optional -Maintainer: David Schleef <ds@schleef.org> -Build-Depends: debhelper, bzip2, _KERNEL_ -Standards-Version: 3.5.8 - -Package: libuclibc-dev_TARGET_ -Section: devel -Architecture: _ARCHS_ -Depends: libuclibc0_TARGET_ (= ${Source-Version}) -Description: A small implementation of the C library - uClibc is an implementation of the standard C library that is - much smaller than glibc, which makes it useful for embedded - systems. This package includes header files and development - libraries necessary to compile applications that use uClibc. - -Package: libuclibc0_TARGET_ -Section: libs -Architecture: _ARCHS_ -Depends: -Description: A small implementation of the C library - uClibc is an implementation of the standard C library that is - much smaller than glibc, which makes it useful for embedded - systems. This package provides only the run-time libraries. - . - The Debian binary packages for uClibc do not provide the necessary - components for using uClibc as the primary library on a system, - as might be done for an embedded system. - -Package: uclibc_TARGET_-toolchain -Section: devel -Architecture: _ARCHS_ -Depends: gcc|c-compiler, binutils, ${shlibs:Depends} -Recommends: libuclibc-dev_TARGET_ -Conflicts: uclibc_TARGET_-gcc -Replaces: uclibc_TARGET_-gcc -Description: A compiler wrapper for uClibc - This package includes utilities that function as a toolchain for - compiling with uClibc instead of the native libc. The utilities - have names such as powerpc-uclibc-gcc (depending on the architecture), - and should behave identically to the base utilities, except that - they use headers and libraries provided in the libuclibc-dev_TARGET_ - package. Most utilities are symbolic links to the correct underlying - utility, although gcc and ld are implemented as wrapper binaries that - call gcc and ld with the necessary arguments and command line options. - diff --git a/debian/copyright b/debian/copyright index 3d3c38511..f7562ade9 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,11 +1,7 @@ -This package was debianized by David Schleef <ds@stm.lbl.gov> on -Mon, 25 Jun 2001 22:13:43 -0700. +This package was debianized by Erik Andersen <andersee@debian.org> on +Wed, 12 Nov 2003 19:15:30 -0700 -The source is a snapshot of the uClibc CVS tree at -:pserver:anonymous@uclibc.org:/var/cvs. Password -is "", module name is uClibc. - -Upstream Maintainer: Erik Andersen <andersee@debian.org> +Maintainer: Erik Andersen <andersee@debian.org> Copyright: diff --git a/debian/docs b/debian/docs index 724e08449..4860c7273 100644 --- a/debian/docs +++ b/debian/docs @@ -1,2 +1,5 @@ README +INSTALL TODO +Changelog +Changelog.full diff --git a/debian/fixlinks b/debian/fixlinks deleted file mode 100755 index 110a5e313..000000000 --- a/debian/fixlinks +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/perl -w -# vi: set ts=4: - - -@LINKS=`find . -type l|LC_ALL=C xargs ls -l`; - -#print @LINKS; - -#$debug = 1; - -while($_ = shift @LINKS){ - chomp; - my ($perm,$nlinks,$owner,$group,$size,$month,$day,$year,$file) = - split(' ', $_, 9); - my $link; - - if($perm =~ m/^l/){ - ($relfile, $link) = split(' -> ', $file); - } - - # chop off leading . in $file - $file = $relfile; - $file =~ s/^\.//; - - if($perm =~ m/^l/){ - my @pathcomponents = split('/', $file); - my @linkcomponents = split('/', $link); - - if($link =~ m/^\//){ - @newcomponents = @linkcomponents; - }else{ - @newcomponents = @pathcomponents; - - # chop off filename - pop(@newcomponents); - - while($comp = shift @linkcomponents){ - $debug && print "path: ",join(':',@newcomponents)," -- $comp -- ", join(':',@linkcomponents),"\n"; - - if($comp eq ""){ - # ignore - }elsif($comp eq ".."){ - pop(@newcomponents); - }else{ - push @newcomponents,$comp; - } - } - } - - if($newcomponents[0] eq ""){ - shift(@newcomponents); - } - if($pathcomponents[0] eq ""){ - shift(@pathcomponents); - } - - #print "from ",join('/',@pathcomponents),"\n"; - #print "to ",join('/',@newcomponents),"\n"; - - if($newcomponents[0] eq $pathcomponents[0]){ - $debug && print $newcomponents[0],", ",$pathcomponents[0]; - $debug && print "should be relative\n"; - while($newcomponents[0] eq $pathcomponents[0]){ - shift(@newcomponents); - shift(@pathcomponents); - } - while(@pathcomponents > 1){ - shift(@pathcomponents); - unshift(@newcomponents,".."); - } - }else{ - $debug && print "should be absolute\n"; - unshift(@newcomponents,""); - } - $newlink=join('/',@newcomponents); - print "ln -sf $newlink $relfile\n"; - unlink($relfile); - symlink($newlink,$relfile); - } -} - diff --git a/debian/gcc-uClibc/.cvsignore b/debian/gcc-uClibc/.cvsignore deleted file mode 100644 index d67d50416..000000000 --- a/debian/gcc-uClibc/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -gcc-uClibc.h -*-uclibc-* diff --git a/debian/gcc-uClibc/Makefile b/debian/gcc-uClibc/Makefile deleted file mode 100644 index b4b4808d0..000000000 --- a/debian/gcc-uClibc/Makefile +++ /dev/null @@ -1,99 +0,0 @@ -# Makefile for building a fake gcc/binutils toolchain -# that simply spoofs the location of the C library -# -# Copyright (C) 2000-2002 Erik Andersen <andersen@uclibc.org> -# - -TOPDIR = ../../ -include $(TOPDIR)Rules.mak - -UCLIBC_DIR := $(shell (cd $(TOPDIR); /bin/pwd)) -GCC_BIN := $(shell which $(CC)) -LD_BIN := $(shell which $(LD)) -GCCINCDIR := $(shell $(CC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") - -ifeq ($(HAVE_SHARED),y) - LIBRARY_CACHE:=#-DUSE_CACHE - ifeq ($(BUILD_UCLIBC_LDSO),y) - LDSO:=$(TOPDIR)lib/$(UCLIBC_LDSO) - DYNAMIC_LINKER:=$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO) - else - LDSO:=$(SYSTEM_LDSO) - DYNAMIC_LINKER:=/lib/$(strip $(subst ",, $(notdir $(SYSTEM_LDSO)))) - endif -endif - -all: $(TARGET_ARCH)-uclibc-gcc $(TARGET_ARCH)-uclibc-ld - -gcc-uClibc.h: Makefile $(TOPDIR)/.config - @echo "/* this file was autogenerated by make */" > $@ - @echo "#define UCLIBC_TARGET_PREFIX " \"$(TARGET_PREFIX)\" >> $@ - @echo "#define UCLIBC_DEVEL_PREFIX " \"$(DEVEL_PREFIX)\" >> $@ - @echo "#define UCLIBC_BUILD_DIR " \"$(UCLIBC_DIR)\" >> $@ - @echo "#define GCC_BIN " \"$(GCC_BIN)\" >> $@ - @echo "#define LIBGCC_DIR " \"$(LIBGCC_DIR)\" >> $@ - @echo "#define TARGET_ARCH " \"$(TARGET_ARCH)\" >> $@ - @echo "#define DYNAMIC_LINKER " \"$(DYNAMIC_LINKER)\" >> $@ - @echo "#define BUILD_DYNAMIC_LINKER " \"$(UCLIBC_DIR)/lib/$(UCLIBC_LDSO)\" >> $@ -ifeq ($(strip $(HAVE_SHARED)),y) - @echo "#define __UCLIBC_HAS_SHARED__ 1" >> $@ -else - @echo "#undef __UCLIBC_HAS_SHARED__" >> $@ -endif -ifeq ($(strip $(UCLIBC_HAS_MMU)),y) - @echo "#define __UCLIBC_HAS_MMU__ 1" >> $@ -else - @echo "#undef __UCLIBC_HAS_MMU__" >> $@ -endif -ifeq ($(strip $(HAS_ELF)),y) - @echo "#define __HAS_ELF__ 1" >> $@ -else - @echo "#undef __HAS_ELF__" >> $@ -endif -ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y) - @echo "#define __UCLIBC_CTOR_DTOR__ 1" >> $@ -ifeq ($(strip $(UCLIBC_PROFILING)),y) - @echo "#define __UCLIBC_PROFILING__ 1" >> $@ -else - @echo "#undef __UCLIBC_PROFILING__" >> $@ -endif -else - @echo "#undef __UCLIBC_CTOR_DTOR__" >> $@ -endif - -$(TARGET_ARCH)-uclibc-gcc: gcc-uClibc.c gcc-uClibc.h - $(HOSTCC) $(HOSTCFLAGS) -s $< -o $@ - -$(TARGET_ARCH)-uclibc-ld: Makefile $(TOPDIR)/.config - @echo "#!/bin/sh" > $@ - @echo "# This file was autogenerated by make" >> $@ - @echo "exec $(LD_BIN) \"\$$@\" -L$(DEVEL_PREFIX)usr/lib " \ - "-L$(DEVEL_PREFIX)lib -L$(UCLIBC_DIR)" >> $@ - chmod a+x $@ - -install: all - $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)usr/bin - $(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)bin - $(INSTALL) -m 755 $(TARGET_ARCH)-uclibc-gcc $(PREFIX)$(DEVEL_PREFIX)bin/ - $(INSTALL) -m 755 $(TARGET_ARCH)-uclibc-ld $(PREFIX)$(DEVEL_PREFIX)bin/ - $(LN) -fs $(TARGET_ARCH)-uclibc-gcc $(PREFIX)$(DEVEL_PREFIX)bin/$(TARGET_ARCH)-uclibc-cc - $(LN) -fs $(DEVEL_PREFIX)bin/$(TARGET_ARCH)-uclibc-gcc $(PREFIX)$(DEVEL_PREFIX)usr/bin/gcc - $(LN) -fs $(DEVEL_PREFIX)bin/$(TARGET_ARCH)-uclibc-gcc $(PREFIX)$(DEVEL_PREFIX)usr/bin/cc - $(LN) -fs $(DEVEL_PREFIX)bin/$(TARGET_ARCH)-uclibc-ld $(PREFIX)$(DEVEL_PREFIX)usr/bin/ld -ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y) - $(LN) -fs $(TARGET_ARCH)-uclibc-gcc $(PREFIX)$(DEVEL_PREFIX)bin/$(TARGET_ARCH)-uclibc-g++ - $(LN) -fs $(TARGET_ARCH)-uclibc-gcc $(PREFIX)$(DEVEL_PREFIX)bin/$(TARGET_ARCH)-uclibc-c++ - $(LN) -fs $(DEVEL_PREFIX)bin/$(TARGET_ARCH)-uclibc-gcc $(PREFIX)$(DEVEL_PREFIX)usr/bin/c++ - $(LN) -fs $(DEVEL_PREFIX)bin/$(TARGET_ARCH)-uclibc-gcc $(PREFIX)$(DEVEL_PREFIX)usr/bin/g++ -endif - for app in addr2line ar as cpp gasp nm objcopy \ - objdump ranlib size strings strip; do \ - APPNAME=`which $(CROSS)$${app} 2>/dev/null`; \ - if [ -x "$$APPNAME" ] ; then \ - $(LN) -fs "$$APPNAME" $(PREFIX)$(DEVEL_PREFIX)usr/bin/$${app}; \ - $(LN) -fs "$$APPNAME" $(PREFIX)$(DEVEL_PREFIX)bin/$(TARGET_ARCH)-uclibc-$${app}; \ - fi; \ - done - -clean: - $(RM) gcc-uClibc.h *-uclibc-gcc *-uclibc-ld core diff --git a/debian/gcc-uClibc/gcc-uClibc.c b/debian/gcc-uClibc/gcc-uClibc.c deleted file mode 100644 index e6566a143..000000000 --- a/debian/gcc-uClibc/gcc-uClibc.c +++ /dev/null @@ -1,668 +0,0 @@ -/* vi: set sw=4 ts=4: */ -/* - * Copyright (C) 2000 Manuel Novoa III - * Copyright (C) 2002-2003 Erik Andersen - * - * This is a crude wrapper to use uClibc with gcc. - * It was originally written to work around ./configure for ext2fs-utils. - * It certainly can be improved, but it works for me in the normal cases. - * - * April 7, 2001 - * - * A bug was fixed in building the gcc command line when dynamic linking. - * The functions dlopen, etc. now work. At this time, you must make sure - * the correct libdl.so is included however. It is safest to, for example, - * add /lib/libdl.so.1 if using ld-linux.so.1 rather than adding -ldl to the - * command line. - * - * Note: This is only a problem if devel and target archs are the same. To - * avoid the problem, you can use a customized dynamic linker. - * - * - * April 18, 2001 - * - * The wrapper now works with either installed and uninstalled uClibc versions. - * If you want to use the uninstalled header files and libs, either include - * the string "build" in the invocation name such as - * 'ln -s <ARCH>-uclibc-gcc <ARCH>-uclibc-gcc-build' - * or include it in the environment variable setting of UCLIBC_ENV. - * Note: This automatically enables the "rpath" behavior described below. - * - * The wrapper will now pass the location of the uClibc shared libs used to - * the linker with the "-rpath" option if the invocation name includes the - * string "rpath" or if the environment variable UCLIBC_ENV include it (as - * with "build" above). This is primarily intended to be used on devel - * platforms of the same arch as the target. A good place to use this feature - * would be in the uClibc/test directory. - * - * The wrapper now displays the command line passed to gcc when '-v' is used. - * - * May 31, 2001 - * - * "rpath" and "build" behavior are now decoupled. You can of course get - * the old "build" behavior by setting UCLIBC_ENV="rpath-build". Order - * isn't important here, as only the substrings are searched for. - * - * Added environment variable check for UCLIBC_GCC_DLOPT to let user specify - * an alternative dynamic linker at runtime without using command line args. - * Since this wouldn't commonly be used, I made it easy on myself. You have - * to match the option you would have passed to the gcc wrapper. As an - * example, - * - * export UCLIBC_GCC_DLOPT="-Wl,--dynamic-linker,/lib/ld-alt-linker.so.3" - * - * This is really only useful if target arch == devel arch and DEVEL_PREFIX - * isn't empty. It involves a recompile, but you can at least test apps - * on your devel system if combined with the "rpath" behavor if by using - * LD_LIBRARY_PATH, etc. - * - * Also added check for "-Wl,--dynamic-linker" on the command line. The - * use default dynamic linker or the envirnment-specified dynamic linker - * is disabled in that case. - * - * Added options --uclibc-use-build-dir and --uclibc-use-rpath so that those - * behaviors can be invoked from the command line. - * - */ - -/* - * - * TODO: - * Check/modify gcc-specific environment variables? - */ - -#include <stdio.h> -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <unistd.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/wait.h> - -#include "gcc-uClibc.h" - -static char *our_usr_lib_path = "-L"UCLIBC_DEVEL_PREFIX"/lib"; - -static char static_linking[] = "-static"; -static char nostdinc[] = "-nostdinc"; -static char nostartfiles[] = "-nostartfiles"; -static char nodefaultlibs[] = "-nodefaultlibs"; -static char nostdlib[] = "-nostdlib"; -#ifdef __UCLIBC_CTOR_DTOR__ -static char nostdinc_plus[] = "-nostdinc++"; -#endif - -/* Include a local implementation of basename, since this - * uses the host system's C lib, and CYGWIN apparently - * doesn't provide an implementation of basename(). */ -char *basename(const char *path) -{ - register const char *s; - register const char *p; - p = s = path; - while (*s) { - if (*s++ == '/') { - p = s; - } - } - return (char *) p; -} - -char *dirname(char *path) -{ - static const char null_or_empty_or_noslash[] = "."; - register char *s; - register char *last; - char *first; - - last = s = path; - - if (s != NULL) |