diff options
Diffstat (limited to 'libc/debian')
-rw-r--r-- | libc/debian/changelog | 5 | ||||
-rw-r--r-- | libc/debian/compat | 1 | ||||
-rw-r--r-- | libc/debian/compat_headers/features.h | 78 | ||||
-rw-r--r-- | libc/debian/compat_headers/sys/cdefs.h | 81 | ||||
-rw-r--r-- | libc/debian/control | 76 | ||||
-rwxr-xr-x | libc/debian/ldconfig | 8 | ||||
-rw-r--r-- | libc/debian/libc-bin.install | 36 | ||||
-rw-r--r-- | libc/debian/libc-bin.links | 3 | ||||
-rw-r--r-- | libc/debian/libc-compat.install | 2 | ||||
-rw-r--r-- | libc/debian/libc1-dev-illumos-i386.install | 2 | ||||
-rw-r--r-- | libc/debian/libc1-dev-illumos-i386.links | 7 | ||||
-rw-r--r-- | libc/debian/libc1-dev.install | 357 | ||||
-rw-r--r-- | libc/debian/libc1-dev.links | 7 | ||||
-rw-r--r-- | libc/debian/libc1.dirs | 2 | ||||
-rw-r--r-- | libc/debian/libc1.install | 40 | ||||
-rw-r--r-- | libc/debian/libc1.links | 8 | ||||
-rw-r--r-- | libc/debian/libc1.postinst | 17 | ||||
-rw-r--r-- | libc/debian/patches/u_int_types.patch | 21 | ||||
-rwxr-xr-x | libc/debian/rules | 48 |
19 files changed, 799 insertions, 0 deletions
diff --git a/libc/debian/changelog b/libc/debian/changelog new file mode 100644 index 0000000..babe0aa --- /dev/null +++ b/libc/debian/changelog @@ -0,0 +1,5 @@ +libc (0.1+13513-20) unstable; urgency=low + + * Initial release. + + -- Igor Pashev <pashev.igor@gmail.com> Wed, 01 Feb 2012 14:03:23 +0400 diff --git a/libc/debian/compat b/libc/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/libc/debian/compat @@ -0,0 +1 @@ +9 diff --git a/libc/debian/compat_headers/features.h b/libc/debian/compat_headers/features.h new file mode 100644 index 0000000..db119d7 --- /dev/null +++ b/libc/debian/compat_headers/features.h @@ -0,0 +1,78 @@ +/* + The Romantic WTF public license. + -------------------------------- + a.k.a. version "<3" or simply v3 + + Dear user, + + The Romantic WTF Public License a.k.a version "<3" + + \ + '.,__ + \ / + '/,__ + / + / + / + has been / released + ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ + under the Romantic WTF Public License. + ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~`,´ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ + I hereby grant you an irrevocable license to + ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ + do what the gentle caress you want to + ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ + with this lovely + ~ ~ ~ ~ ~ ~ ~ ~ + / license. + / ~ ~ ~ ~ + / Love, + # / '.' + ####### · + ##### + ### + # + + -- the author. + + + P.S.: Even though I poured my heart into this work, + I _cannot_ provide any warranty regarding + its fitness for _any_ purpose. You + acknowledge that I will not be held liable + for any damage its use could incur. +*/ + + +#ifndef _FEATURES_H +#define _FEATURES_H + +#ifdef _GNU_SOURCE +# undef __EXTENSIONS__ +# define __EXTENSIONS__ 1 +# undef _ISOC95_SOURCE +# define _ISOC95_SOURCE 1 +# undef _ISOC99_SOURCE +# define _ISOC99_SOURCE 1 +# undef _POSIX_SOURCE +# define _POSIX_SOURCE 1 +# undef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +# undef _XOPEN_SOURCE +# define _XOPEN_SOURCE 600 +# undef _XOPEN_SOURCE_EXTENDED +# define _XOPEN_SOURCE_EXTENDED 0 +# undef _LARGEFILE64_SOURCE +# define _LARGEFILE64_SOURCE 1 +# undef _BSD_SOURCE +# define _BSD_SOURCE 1 +# undef _SVID_SOURCE +# define _SVID_SOURCE 1 +# undef _ATFILE_SOURCE +# define _ATFILE_SOURCE 1 +#endif + +#include <sys/feature_tests.h> + +#endif /* _FEATURES_H */ + diff --git a/libc/debian/compat_headers/sys/cdefs.h b/libc/debian/compat_headers/sys/cdefs.h new file mode 100644 index 0000000..223cd3b --- /dev/null +++ b/libc/debian/compat_headers/sys/cdefs.h @@ -0,0 +1,81 @@ +/* + The Romantic WTF public license. + -------------------------------- + a.k.a. version "<3" or simply v3 + + Dear user, + + The Romantic WTF Public License a.k.a version "<3" + + \ + '.,__ + \ / + '/,__ + / + / + / + has been / released + ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ + under the Romantic WTF Public License. + ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~`,´ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ + I hereby grant you an irrevocable license to + ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ + do what the gentle caress you want to + ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ + with this lovely + ~ ~ ~ ~ ~ ~ ~ ~ + / license. + / ~ ~ ~ ~ + / Love, + # / '.' + ####### · + ##### + ### + # + + -- the author. + + + P.S.: Even though I poured my heart into this work, + I _cannot_ provide any warranty regarding + its fitness for _any_ purpose. You + acknowledge that I will not be held liable + for any damage its use could incur. +*/ + + +#ifndef _SYS_CDEFS_H +#define _SYS_CDEFS_H + +/* + * For old software which cares about prototyped + * and non-prototyped functions. + * We now always use prototypes. + */ +#undef __P +#define __P(x) x + + +/* FreeBSD likes it */ +#undef __FBSDID +#define __FBSDID(x) /* nothing */ +#undef __RCSID +#define __RCSID(x) /* nothing */ + + + +#undef __BEGIN_DECLS +#undef __END_DECLS + +#if __cplusplus +# define __BEGIN_DECLS extern "C" { +# define __END_DECLS } +#else /* ! __cplusplus */ +# define __BEGIN_DECLS /* empty */ +# define __END_DECLS /* empty */ +#endif /* __cplusplus */ + + + +#endif /* _SYS_CDEFS_H */ + diff --git a/libc/debian/control b/libc/debian/control new file mode 100644 index 0000000..e55021e --- /dev/null +++ b/libc/debian/control @@ -0,0 +1,76 @@ +Source: libc +Maintainer: Igor Pashev <pashev.igor@gmail.com> +Build-Depends: + debhelper ( >= 8 ), +Standards-Version: 3.9.2 +Homepage: http://illumos.org/ + +Package: libc1-dev +Priority: optional +Section: libdevel +# Some stupid packages require libc6-dev (not libc6-dev | libc-dev) +Provides: libc-dev, libc6-dev +# link.h includes libelf.h, link.h should be a part of libc, +# but I want to avoid Illumos' libelf: +Recommends: libelf-dev +Architecture: illumos-amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Illumos C Library: development files + Contains the symlinks, headers, and object files needed to compile and link + programs which use the standard C library. + . + It is *NOT* GNU libc. + +Package: libc1-dev-illumos-i386 +Provides: libc-dev-illumos-i386, libc6-dev-illumos-i386 +Priority: optional +Section: libdevel +Architecture: illumos-amd64 +Depends: ${shlibs:Depends}, ${misc:Depends}, libc1-dev (= ${binary:Version}) +Description: Illumos C Library: development files + Contains the symlinks, headers, and object files needed to compile and link + programs which use the standard C library. + . + This is the 32bit version of the library, meant for AMD64 systems. + . + It is *NOT* GNU libc. + + +Package: libc1 +Essential: yes +Priority: required +Section: libs +Architecture: illumos-amd64 +Provides: libthread1, libpthread1, libsocket1, libnsl1, libm2, libm1 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Illumos C Library: Shared libraries + Contains the standard libraries that are used by nearly all programs on the + system. This package includes shared versions of the standard C library and + the standard math library, as well as many others. + . + It is *NOT* GNU libc. + +Package: libc-bin +Section: libs +Priority: required +Architecture: illumos-amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: utility programs related to the C Library + +Package: libc-compat +Priority: extra +Section: libs +Architecture: illumos-amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: obsolete libc synonym symbols library + This package contains a compatibility library to provide access to + obsolete libc synonym symbols. + . + The synonyms compatibility library, c_synonyms.so.1, provides access + mechanism to support old applications and libraries that were mistakenly + built using now-obsolete synonym symbols from libc. + . + The synonyms compatibility library is intended neither to enable the + generation of applications that call the obsolete leading-underscore + synonym functions, nor to endorse this particular programming practice. + diff --git a/libc/debian/ldconfig b/libc/debian/ldconfig new file mode 100755 index 0000000..e11653f --- /dev/null +++ b/libc/debian/ldconfig @@ -0,0 +1,8 @@ +#!/sbin/sh +# This script is a stub +# Illumos does not have ldconfig because +# ld.so does not use library cache. +# But some packages and dpkg itself may require ldconfig + +exit 0 + diff --git a/libc/debian/libc-bin.install b/libc/debian/libc-bin.install new file mode 100644 index 0000000..2b46b0e --- /dev/null +++ b/libc/debian/libc-bin.install @@ -0,0 +1,36 @@ +debian/ldconfig sbin/ + +sbin/tzreload +usr/bin/amd64/ldd usr/bin/ +usr/bin/amd64/moe usr/bin/ +usr/bin/getconf +usr/bin/getent +usr/bin/isainfo +usr/bin/isalist +usr/bin/locale +usr/bin/localedef +usr/bin/pvs +usr/bin/rpcinfo +usr/bin/tzselect +usr/lib/amd64/lddstub usr/lib/x86_64-illumos/ +usr/lib/lddstub usr/lib/i386-illumos/ +usr/sbin/tzreload +usr/sbin/zdump +usr/sbin/zic +usr/share/man/man1/crle.1 +usr/share/man/man1/getconf.1 +usr/share/man/man1/ldd.1 +usr/share/man/man1/locale.1 +usr/share/man/man1/localedef.1 +usr/share/man/man1/moe.1 +usr/share/man/man1/pvs.1 +usr/share/man/man1m/getent.1m +usr/share/man/man1m/rpcinfo.1m +usr/share/man/man1m/tzselect.1m +usr/share/man/man1m/zdump.1m +usr/share/man/man1m/zic.1m + + +# crle -64 will exec amd64/crle: +usr/bin/crle sbin/ +usr/bin/amd64/crle sbin/amd64/ diff --git a/libc/debian/libc-bin.links b/libc/debian/libc-bin.links new file mode 100644 index 0000000..4453710 --- /dev/null +++ b/libc/debian/libc-bin.links @@ -0,0 +1,3 @@ +usr/lib/i386-illumos/lddstub usr/lib/lddstub +lib/i386-illumos/ld.so.1 usr/lib/i386-illumos/ld.so.1 +lib/x86_64-illumos/ld.so.1 usr/lib/x86_64-illumos/ld.so.1 diff --git a/libc/debian/libc-compat.install b/libc/debian/libc-compat.install new file mode 100644 index 0000000..b286e0d --- /dev/null +++ b/libc/debian/libc-compat.install @@ -0,0 +1,2 @@ +lib/amd64/c_synonyms.so.1 lib/x86_64-illumos/ +lib/c_synonyms.so.1 lib/i386-illumos/ diff --git a/libc/debian/libc1-dev-illumos-i386.install b/libc/debian/libc1-dev-illumos-i386.install new file mode 100644 index 0000000..639d3e3 --- /dev/null +++ b/libc/debian/libc1-dev-illumos-i386.install @@ -0,0 +1,2 @@ +usr/lib/*crt* usr/lib/i386-illumos/ +usr/lib/values-*.o usr/lib/i386-illumos/ diff --git a/libc/debian/libc1-dev-illumos-i386.links b/libc/debian/libc1-dev-illumos-i386.links new file mode 100644 index 0000000..01f03d2 --- /dev/null +++ b/libc/debian/libc1-dev-illumos-i386.links @@ -0,0 +1,7 @@ +../../../../lib/i386-illumos/libc.so.1 usr/lib/i386-illumos/libc.so +../../../../lib/i386-illumos/libdl.so.1 usr/lib/i386-illumos/libdl.so +../../../../lib/i386-illumos/libm.so.2 usr/lib/i386-illumos/libm.so +../../../../lib/i386-illumos/libnsl.so.1 usr/lib/i386-illumos/libnsl.so +../../../../lib/i386-illumos/libresolv.so.2 usr/lib/i386-illumos/libresolv.so +../../../../lib/i386-illumos/librt.so.1 usr/lib/i386-illumos/librt.so +../../../../lib/i386-illumos/libsocket.so.1 usr/lib/i386-illumos/libsocket.so diff --git a/libc/debian/libc1-dev.install b/libc/debian/libc1-dev.install new file mode 100644 index 0000000..ccc2601 --- /dev/null +++ b/libc/debian/libc1-dev.install @@ -0,0 +1,357 @@ +usr/lib/amd64/*crt* usr/lib/x86_64-illumos/ +usr/lib/amd64/values-*.o usr/lib/x86_64-illumos/ + +debian/compat_headers/* usr/include/ + +usr/include/alloca.h +usr/include/amd64/sys/privregs.h +usr/include/ar.h +usr/include/arpa/ +usr/include/arpa/ftp.h +usr/include/arpa/inet.h +usr/include/arpa/nameser.h +usr/include/arpa/nameser_compat.h +usr/include/arpa/telnet.h +usr/include/arpa/tftp.h +usr/include/assert.h +usr/include/attr.h +usr/include/bsm/audit.h +usr/include/crypt.h +usr/include/ctype.h +usr/include/dirent.h +usr/include/dlfcn.h +usr/include/elf.h +usr/include/err.h +usr/include/errno.h +usr/include/execinfo.h +usr/include/fcntl.h +usr/include/float.h +usr/include/floatingpoint.h +usr/include/fnmatch.h +usr/include/ftw.h +usr/include/getopt.h +usr/include/glob.h +usr/include/grp.h +usr/include/ia32/sys/machtypes.h +usr/include/ia32/sys/privregs.h +usr/include/ieeefp.h +usr/include/ifaddrs.h +usr/include/inet/common.h +usr/include/inet/ip.h +usr/include/inet/ip_stack.h +usr/include/inet/led.h +usr/include/inet/mib2.h +usr/include/inet/nd.h +usr/include/inet/wifi_ioctl.h +usr/include/inttypes.h +usr/include/iso/assert_iso.h +usr/include/iso/ctype_c99.h +usr/include/iso/ctype_iso.h +usr/include/iso/errno_iso.h +usr/include/iso/float_iso.h +usr/include/iso/iso646_iso.h +usr/include/iso/limits_iso.h +usr/include/iso/locale_iso.h +usr/include/iso/math_c99.h +usr/include/iso/math_iso.h +usr/include/iso/setjmp_iso.h +usr/include/iso/signal_iso.h +usr/include/iso/stdarg_c99.h +usr/include/iso/stdarg_iso.h +usr/include/iso/stddef_iso.h +usr/include/iso/stdio_c99.h +usr/include/iso/stdio_iso.h +usr/include/iso/stdlib_c99.h +usr/include/iso/stdlib_iso.h +usr/include/iso/string_iso.h +usr/include/iso/time_iso.h +usr/include/iso/wchar_c99.h +usr/include/iso/wchar_iso.h +usr/include/iso/wctype_c99.h +usr/include/iso/wctype_iso.h +usr/include/iso646.h +usr/include/langinfo.h +usr/include/libgen.h +usr/include/libintl.h +usr/include/limits.h +usr/include/link.h +usr/include/locale.h +usr/include/malloc.h +usr/include/math.h +usr/include/memory.h +usr/include/net +usr/include/net/af.h +usr/include/net/bpf.h +usr/include/net/bpfdesc.h +usr/include/net/dlt.h +usr/include/net/if.h +usr/include/net/if_arp.h +usr/include/net/if_dl.h +usr/include/net/if_types.h +usr/include/net/radix.h +usr/include/net/route.h +usr/include/net/trill.h +usr/include/net/vjcompress.h +usr/include/netconfig.h +usr/include/netdb.h +usr/include/netdir.h +usr/include/netinet +usr/include/netinet/arp.h +usr/include/netinet/dhcp.h +usr/include/netinet/dhcp6.h +usr/include/netinet/icmp6.h +usr/include/netinet/icmp_var.h +usr/include/netinet/if_ether.h +usr/include/netinet/igmp.h +usr/include/netinet/igmp_var.h +usr/include/netinet/in.h +usr/include/netinet/in_pcb.h +usr/include/netinet/in_systm.h +usr/include/netinet/in_var.h +usr/include/netinet/ip.h +usr/include/netinet/ip6.h +usr/include/netinet/ip_var.h +usr/include/netinet/pim.h +usr/include/netinet/sctp.h +usr/include/netinet/tcp.h +usr/include/netinet/tcp_debug.h +usr/include/netinet/tcp_fsm.h +usr/include/netinet/tcp_seq.h +usr/include/netinet/tcp_timer.h +usr/include/netinet/tcp_var.h +usr/include/netinet/tcpip.h +usr/include/netinet/udp.h +usr/include/netinet/udp_var.h +usr/include/netinet/vrrp.h +usr/include/netpacket +usr/include/netpacket/packet.h +usr/include/nl_types.h +usr/include/paths.h +usr/include/poll.h +usr/include/pool.h +usr/include/priv.h +usr/include/procfs.h +usr/include/pthread.h +usr/include/pwd.h +usr/include/regex.h +usr/include/regexp.h +usr/include/regexpr.h +usr/include/resolv.h +usr/include/sched.h +usr/include/search.h +usr/include/semaphore.h +usr/include/setjmp.h +usr/include/sgtty.h +usr/include/shadow.h +usr/include/signal.h +usr/include/spawn.h +usr/include/stdarg.h +usr/include/stdbool.h +usr/include/stddef.h +usr/include/stdint.h +usr/include/stdio.h +usr/include/stdio_ext.h +usr/include/stdio_impl.h +usr/include/stdio_tag.h +usr/include/stdlib.h +usr/include/string.h +usr/include/strings.h +usr/include/stropts.h +usr/include/synch.h +usr/include/sys/aio_req.h +usr/include/sys/atomic.h +usr/include/sys/attr.h +usr/include/sys/auxv.h +usr/include/sys/auxv_386.h +usr/include/sys/avl.h +usr/include/sys/avl_impl.h +usr/include/sys/buf.h +usr/include/sys/byteorder.h +usr/include/sys/ccompile.h +usr/include/sys/class.h +usr/include/sys/condvar.h +usr/include/sys/condvar_impl.h +usr/include/sys/conf.h +usr/include/sys/contract.h +usr/include/sys/controlregs.h +usr/include/sys/copyops.h +usr/include/sys/cpc_impl.h +usr/include/sys/cred.h +usr/include/sys/dditypes.h +usr/include/sys/dirent.h +usr/include/sys/disp.h +usr/include/sys/dld.h +usr/include/sys/door_impl.h +usr/include/sys/elf.h +usr/include/sys/elftypes.h +usr/include/sys/errno.h +usr/include/sys/ethernet.h +usr/include/sys/fcntl.h +usr/include/sys/feature_tests.h +usr/include/sys/file.h +usr/include/sys/filio.h +usr/include/sys/fs/snode.h +usr/include/sys/hook.h +usr/include/sys/hook_event.h +usr/include/sys/hook_impl.h +usr/include/sys/ieeefp.h +usr/include/sys/int_const.h +usr/include/sys/int_fmtio.h +usr/include/sys/int_limits.h +usr/include/sys/int_types.h +usr/include/sys/inttypes.h +usr/include/sys/ioccom.h +usr/include/sys/ioctl.h +usr/include/sys/ipc.h +usr/include/sys/isa_defs.h +usr/include/sys/iso/signal_iso.h +usr/include/sys/kcpc.h +usr/include/sys/klwp.h +usr/include/sys/kmem.h +usr/include/sys/kstat.h +usr/include/sys/ksynch.h +usr/include/sys/link.h +usr/include/sys/list.h +usr/include/sys/list_impl.h +usr/include/sys/loadavg.h +usr/include/sys/lock.h +usr/include/sys/lwp.h +usr/include/sys/mac.h +usr/include/sys/mac_flow.h +usr/include/sys/machlock.h +usr/include/sys/machsig.h +usr/include/sys/machtypes.h +usr/include/sys/mkdev.h +usr/include/sys/mman.h +usr/include/sys/mntent.h +usr/include/sys/mode.h +usr/include/sys/model.h +usr/include/sys/modhash.h +usr/include/sys/mount.h +usr/include/sys/msacct.h +usr/include/sys/msg.h +usr/include/sys/mutex.h +usr/include/sys/netconfig.h +usr/include/sys/neti.h +usr/include/sys/netstack.h +usr/include/sys/note.h +usr/include/sys/nvpair.h +usr/include/sys/old_procfs.h +usr/include/sys/param.h +usr/include/sys/pcb.h +usr/include/sys/pci.h +usr/include/sys/policy.h +usr/include/sys/poll.h +usr/include/sys/pool.h +usr/include/sys/priocntl.h +usr/include/sys/priv.h +usr/include/sys/priv_names.h +usr/include/sys/privregs.h +usr/include/sys/proc.h +usr/include/sys/processor.h +usr/include/sys/procfs.h +usr/include/sys/procset.h +usr/include/sys/queue.h +usr/include/sys/random.h +usr/include/sys/rctl.h +usr/include/sys/refstr.h +usr/include/sys/regset.h +usr/include/sys/resource.h +usr/include/sys/rwlock.h +usr/include/sys/rwstlock.h +usr/include/sys/sad.h +usr/include/sys/segments.h +usr/include/sys/select.h +usr/include/sys/sem.h +usr/include/sys/semaphore.h +usr/include/sys/shm.h +usr/include/sys/siginfo.h +usr/include/sys/signal.h +usr/include/sys/socket.h +usr/include/sys/socket_impl.h +usr/include/sys/sockio.h +usr/include/sys/squeue.h +usr/include/sys/squeue_impl.h +usr/include/sys/stat.h +usr/include/sys/stat_impl.h +usr/include/sys/statfs.h +usr/include/sys/statvfs.h +usr/include/sys/stdbool.h +usr/include/sys/stdint.h +usr/include/sys/stream.h +usr/include/sys/strlog.h +usr/include/sys/strmdep.h +usr/include/sys/stropts.h +usr/include/sys/strsubr.h +usr/include/sys/synch.h +usr/include/sys/syscall.h +usr/include/sys/syslog.h +usr/include/sys/sysmacros.h +usr/include/sys/systeminfo.h +usr/include/sys/t_lock.h +usr/include/sys/termio.h +usr/include/sys/termios.h +usr/include/sys/thread.h +usr/include/sys/ticlts.h +usr/include/sys/ticots.h +usr/include/sys/ticotsord.h +usr/include/sys/tihdr.h +usr/include/sys/time.h +usr/include/sys/time_impl.h +usr/include/sys/time_std_impl.h +usr/include/sys/timeb.h +usr/include/sys/timer.h +usr/include/sys/times.h +usr/include/sys/timex.h +usr/include/sys/timod.h +usr/include/sys/tirdwr.h +usr/include/sys/tiuser.h +usr/include/sys/tl.h +usr/include/sys/tpicommon.h +usr/include/sys/tsol/label.h +usr/include/sys/tsol/label_macro.h +usr/include/sys/tss.h +usr/include/sys/ttold.h +usr/include/sys/ttychars.h +usr/include/sys/ttydev.h +usr/include/sys/types.h +usr/include/sys/types32.h +usr/include/sys/ucontext.h +usr/include/sys/ucred.h +usr/include/sys/uio.h +usr/include/sys/un.h +usr/include/sys/unistd.h +usr/include/sys/user.h +usr/include/sys/ustat.h +usr/include/sys/utime.h +usr/include/sys/utrap.h +usr/include/sys/utsname.h +usr/include/sys/va_impl.h +usr/include/sys/va_list.h +usr/include/sys/var.h +usr/include/sys/varargs.h +usr/include/sys/vmem.h +usr/include/sys/vmparam.h +usr/include/sys/vnode.h +usr/include/sys/wait.h +usr/include/sys/watchpoint.h +usr/include/sysexits.h +usr/include/syslog.h +usr/include/tar.h +usr/include/termio.h +usr/include/termios.h +usr/include/thread.h +usr/include/time.h +usr/include/tiuser.h +usr/include/ucontext.h +usr/include/ucred.h +usr/include/unistd.h +usr/include/ustat.h +usr/include/utime.h +usr/include/utmp.h +usr/include/utmpx.h +usr/include/vm/faultcode.h +usr/include/vm/seg_enum.h +usr/include/wchar.h +usr/include/wchar_impl.h +usr/include/wctype.h diff --git a/libc/debian/libc1-dev.links b/libc/debian/libc1-dev.links new file mode 100644 index 0000000..51bb387 --- /dev/null +++ b/libc/debian/libc1-dev.links @@ -0,0 +1,7 @@ +../../../../lib/x86_64-illumos/libc.so.1 usr/lib/x86_64-illumos/libc.so +../../../../lib/x86_64-illumos/libdl.so.1 usr/lib/x86_64-illumos/libdl.so +../../../../lib/x86_64-illumos/libm.so.2 usr/lib/x86_64-illumos/libm.so +../../../../lib/x86_64-illumos/libnsl.so.1 usr/lib/x86_64-illumos/libnsl.so +../../../../lib/x86_64-illumos/libresolv.so.2 usr/lib/x86_64-illumos/libresolv.so +../../../../lib/x86_64-illumos/librt.so.1 usr/lib/x86_64-illumos/librt.so +../../../../lib/x86_64-illumos/libsocket.so.1 usr/lib/x86_64-illumos/libsocket.so diff --git a/libc/debian/libc1.dirs b/libc/debian/libc1.dirs new file mode 100644 index 0000000..76a4cfe --- /dev/null +++ b/libc/debian/libc1.dirs @@ -0,0 +1,2 @@ +var/ld +var/ld/64 diff --git a/libc/debian/libc1.install b/libc/debian/libc1.install new file mode 100644 index 0000000..5545f03 --- /dev/null +++ b/libc/debian/libc1.install @@ -0,0 +1,40 @@ +lib/amd64/ld.so.1 lib/x86_64-illumos/ +lib/amd64/libc.so.1 lib/x86_64-illumos/ +lib/amd64/libc_db.so.1 lib/x86_64-illumos/ +lib/amd64/libdl.so.1 lib/x86_64-illumos/ +lib/amd64/libld.so.4 lib/x86_64-illumos/ +lib/amd64/liblddbg.so.4 lib/x86_64-illumos/ +lib/amd64/libm.so.2 lib/x86_64-illumos/ +lib/amd64/libnsl.so.1 lib/x86_64-illumos/ +lib/amd64/libresolv.so.2 lib/x86_64-illumos/ +lib/amd64/librt*.so.1 lib/x86_64-illumos/ +lib/amd64/libsocket.so.1 lib/x86_64-illumos/ +lib/amd64/nss*.so.1 lib/x86_64-illumos/ + +lib/ld.so.1 lib/i386-illumos/ +lib/libc.so.1 lib/i386-illumos/ +lib/libc_db.so.1 lib/i386-illumos/ +lib/libdl.so.1 lib/i386-illumos/ +lib/libld.so.4 lib/i386-illumos/ +lib/liblddbg.so.4 lib/i386-illumos/ +lib/libm.so.2 lib/i386-illumos/ +lib/libnsl.so.1 lib/i386-illumos/ +lib/libresolv.so.1 lib/i386-illumos/ +lib/libresolv.so.2 lib/i386-illumos/ +lib/librt*.so.1 lib/i386-illumos/ +lib/libsocket.so.1 lib/i386-illumos/ +lib/nss*.so.1 lib/i386-illumos/ + + +# Dummy libs (filters): +lib/amd64/libintl.so.1 lib/x86_64-illumos/ +lib/amd64/libpthread.so.1 lib/x86_64-illumos/ +lib/amd64/libthread.so.1 lib/x86_64-illumos/ +lib/amd64/libxnet.so.1 lib/x86_64-illumos/ +lib/libintl.so.1 lib/i386-illumos/ +lib/libpthread.so.1 lib/i386-illumos/ +lib/libthread.so.1 lib/i386-illumos/ +lib/libxnet.so.1 lib/i386-illumos/ + +usr/share/man/man1/ld.so.1.1 +usr/lib/utmp_update diff --git a/libc/debian/libc1.links b/libc/debian/libc1.links new file mode 100644 index 0000000..daca160 --- /dev/null +++ b/libc/debian/libc1.links @@ -0,0 +1,8 @@ +# Compatibility links: +lib/x86_64-illumos lib/amd64 +lib/x86_64-illumos lib/64 +usr/lib/x86_64-illumos usr/lib/amd64 +usr/lib/x86_64-illumos usr/lib/64 + +# all Illumos apps have /lib/ld.so.1 built in +lib/i386-illumos/ld.so.1 lib/ld.so.1 diff --git a/libc/debian/libc1.postinst b/libc/debian/libc1.postinst new file mode 100644 index 0000000..c19f941 --- /dev/null +++ b/libc/debian/libc1.postinst @@ -0,0 +1,17 @@ +#!/sbin/sh + +if [ "$1" = configure ]; then + + if [ ! -e /var/ld/64/ld.config ]; then + echo "Creating default /var/ld/64/ld.config for 64-bit arch" + cp /usr/lib/ld/64/ld.config /var/ld/64/ld.config + fi + if [ ! -e /var/ld/ld.config ]; then + echo "Creating default /var/ld/ld.config for 32-bit arch" + cp /usr/lib/ld/ld.config /var/ld/ld.config + fi + +fi + +#DEBHELPER# + diff --git a/libc/debian/patches/u_int_types.patch b/libc/debian/patches/u_int_types.patch new file mode 100644 index 0000000..9831fd7 --- /dev/null +++ b/libc/debian/patches/u_int_types.patch @@ -0,0 +1,21 @@ +--- root_i386/usr/include/sys/int_types.h 2011-11-12 18:13:49.825504006 +0300 ++++ root_i386/usr/include/sys/u_int_types.h 2012-01-28 14:17:09.483926782 +0300 +@@ -91,13 +91,18 @@ + #endif + + typedef unsigned char uint8_t; ++typedef unsigned char u_int8_t; + typedef unsigned short uint16_t; ++typedef unsigned short u_int16_t; + typedef unsigned int uint32_t; ++typedef unsigned int u_int32_t; + #ifdef _LP64 + typedef unsigned long uint64_t; ++typedef unsigned long u_int64_t; + #else /* _ILP32 */ + #if defined(_LONGLONG_TYPE) + typedef unsigned long long uint64_t; ++typedef unsigned long long u_int64_t; + #endif + #endif + diff --git a/libc/debian/rules b/libc/debian/rules new file mode 100755 index 0000000..b4672af --- /dev/null +++ b/libc/debian/rules @@ -0,0 +1,48 @@ +#!/usr/bin/make -f + + +%: + dh $@ + +# For a while we use binary "sources" +override_dh_auto_configure: +override_dh_auto_build: +override_dh_auto_test: +override_dh_auto_install: + ln -sf ../../root_i386 debian/tmp + +override_dh_auto_clean: + +override_dh_strip: + +override_dh_installmodules: + +override_dh_install: + dh_install + +# Seed for ld.so +# Will be copied to /var/ld/ld.config +# and /var/ld/64/ld/config + mkdir -p debian/libc1/usr/lib/ld/64 + debian/libc-bin/sbin/crle \ + -c debian/libc1/usr/lib/ld/ld.config \ + -l /lib/i386-illumos \ + -l /usr/lib/i386-illumos \ + -l /usr/lib32 + debian/libc-bin/sbin/crle \ + -64 \ + -c debian/libc1/usr/lib/ld/64/ld.config \ + -l /lib/x86_64-illumos \ + -l /usr/lib/x86_64-illumos \ + -l /usr/lib \ + + # Add u_int*_t types: + cd debian/libc1-dev && \ + patch -p1 < ../patches/u_int_types.patch + + +override_dh_fixperms: + dh_fixperms + # ld.so.1 is an interpreter, so must be executable: + chmod +x debian/libc1/lib/*/ld.so* + |