debian/0000755000000000000000000000000012142726442007172 5ustar debian/libowfat-dev.dirs0000644000000000000000000000004711622264634012443 0ustar usr/lib usr/include usr/share/man/man3 debian/control0000644000000000000000000000476012142725117010602 0ustar Source: libowfat Section: libs Priority: optional Maintainer: Roland Stigge Standards-Version: 3.9.4 Build-Depends: dietlibc-dev, dietlibc-dev (>= 0.32-5) [sparc], debhelper (>= 9) Homepage: http://www.fefe.de/libowfat/ Package: libowfat0 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Reimplementation of libdjb, shared library This library is a reimplementation of libdjb, which means that it provides Daniel Bernstein's interfaces (with some extensions). . It contains wrappers around memory allocation, buffered I/O, routines for formatting and scanning, a full DNS resolver, several socket routines, wrappers for socket functions, mkfifo, opendir, wait, and an abstraction around errno. It also includes wrappers for Unix signal functions and a layer of mmap and sendfile. . This package contains the shared library linked against glibc. The library is also available for use with the diet libc (see libowfat-dietlibc-dev). Package: libowfat-dev Section: libdevel Architecture: any Depends: libc6-dev, libowfat0 (= ${binary:Version}), ${misc:Depends} Conflicts: libdjbdns1-dev, libudt-dev, libcdb-dev Description: Reimplementation of libdjb, development files This library is a reimplementation of libdjb, which means that it provides Daniel Bernstein's interfaces (with some extensions). . It contains wrappers around memory allocation, buffered I/O, routines for formatting and scanning, a full DNS resolver, several socket routines, wrappers for socket functions, mkfifo, opendir, wait, and an abstraction around errno. It also includes wrappers for Unix signal functions and a layer of mmap and sendfile. . This package contains libowfat linked with glibc, and man pages. Package: libowfat-dietlibc-dev Section: libdevel Architecture: any Depends: dietlibc-dev, ${misc:Depends} Conflicts: libdjbdns1-dev Breaks: libowfat-dev (<< 0.28-3) Replaces: libowfat-dev (<< 0.28-3) Description: Reimplementation of libdjb, dietlibc version This library is a reimplementation of libdjb, which means that it provides Daniel Bernstein's interfaces (with some extensions). . It contains wrappers around memory allocation, buffered I/O, routines for formatting and scanning, a full DNS resolver, several socket routines, wrappers for socket functions, mkfifo, opendir, wait, and an abstraction around errno. It also includes wrappers for Unix signal functions and a layer of mmap and sendfile. . This package contains libowfat linked with dietlibc. debian/changelog0000644000000000000000000001740312142726442011051 0ustar libowfat (0.29-3) unstable; urgency=low * Added patch to set FD_CLOEXEC incorrectly with F_SETFL instead of F_SETFD, thanks to Guillem Jover (Closes: #696251) * debian/control: - Standards-Version: 3.9.4 -- Roland Stigge Thu, 09 May 2013 15:53:33 +0200 libowfat (0.29-2) experimental; urgency=low * Add conflict dependencies to libowfat-dietlibc-dev (Closes: #694360) -- Roland Stigge Sun, 25 Nov 2012 21:45:11 +0100 libowfat (0.29-1) experimental; urgency=low * New upstream release * debian/control: - Standards-Version: 3.9.3 - Build-Depends: debhelper (>= 9) -- Roland Stigge Sat, 03 Nov 2012 15:31:36 +0100 libowfat (0.28-5) unstable; urgency=low * Added debian/watch * debian/rules: New debhelper dh rules -- Roland Stigge Mon, 15 Aug 2011 19:46:53 +0200 libowfat (0.28-4) unstable; urgency=low * debian/control: Adding conflict markers to duplicate headers in other development packages - Conflicts: libcdb-dev - /usr/include/cdb.h (Closes: #633520) - Conflicts: libudt-dev - /usr/include/buffer.h (Closes: #633521) -- Roland Stigge Mon, 15 Aug 2011 19:46:43 +0200 libowfat (0.28-3) unstable; urgency=low [ Walter Franzini ] * Switched to Format: 3.0 (quilt) * Build two flavors of libowfat, one linked against glibc, the other against dietlibc. (Closes: #461150) * Fixed dependency [ Roland Stigge ] * New maintainer (Closes: #544059) * Added shared library version in libowfat0 (Closes: #607274) * debian/control: Standards-Version: 3.9.2 -- Roland Stigge Sat, 09 Jul 2011 18:06:52 +0200 libowfat (0.28-2) unstable; urgency=medium * debian/control: Build-Depends: dietlibc-dev (>= 0.32-5) [sparc] (fixes build failure on sparc). -- Gerrit Pape Mon, 26 Apr 2010 00:37:21 +0000 libowfat (0.28-1) unstable; urgency=low * new upstream version (closes: #550684). * debian/diff/0001-cvs-snapshot-20100320.diff: new; cvs snapshot 20100320. * debian/rules: apply patches with -p1, not -p0. * debian/control: Standards-Version: 3.8.4.0. * debian/rules: do not ignore make clean error. -- Gerrit Pape Sat, 20 Mar 2010 14:17:18 +0000 libowfat (0.27-1) unstable; urgency=low * new upstream version (closes: #435478). * debian/control: Conflicts: libdjbdns1-dev (closes: #447312). * debian/control: add Vcs-Git: http://smarden.org/git/libowfat.git/. * debian/implicit: update to a09db2e42c8b6a2d820754d741558e5894944746. -- Gerrit Pape Sat, 12 Jan 2008 19:38:43 +0000 libowfat (0.24-1) unstable; urgency=low * new upstream version. * debian/control: remove version restrictions on [Build-]Depends: dietlibc-dev. -- Gerrit Pape Sun, 25 Sep 2005 09:44:11 +0000 libowfat (0.23-1) unstable; urgency=low * new upstream version. -- Gerrit Pape Wed, 25 May 2005 20:04:25 +0000 libowfat (0.22-1) unstable; urgency=low * new upstream version. -- Gerrit Pape Sun, 27 Mar 2005 10:59:43 +0000 libowfat (0.21-1) unstable; urgency=low * new upstream version. * debian/control: update long description. * debian/copyright: license is GPLv2. * debian/rules: handle debian patches more gracefully; enable target patch-stamp; minor. -- Gerrit Pape Thu, 3 Feb 2005 22:37:39 +0000 libowfat (0.20-1) unstable; urgency=low * new upstream version. * debian/control: Build-Depends: dietlibc-dev (>> 0.27-0); Depends: dietlibc-dev (>> 0.27-0). * debian/copyright: minor. * debian/implicit: update to revision 1.10. * debian/rules: minor cleanup. -- Gerrit Pape Sun, 1 Aug 2004 12:25:45 +0000 libowfat (0.19.2-2) unstable; urgency=low * debian/rules: install library into /usr/lib/diet/lib/; minor. * debian/control: Build-Depends: dietlibc-dev (>= 0.26-3); Depends: dietlibc-dev (>= 0.26-3). -- Gerrit Pape Sun, 20 Jun 2004 19:17:27 +0000 libowfat (0.19.2-1) unstable; urgency=low * new upstream version. * debian/implicit: update to revision 1.8. * debian/diff/epoll.diff: remove; obsolete. * debian/rules: disable target patch; remove workaround to suppress gcc-3.3 warnings (fixes build failure with gcc-2.95). * debian/control: Build-Depends: dietlibc-dev (>> 0.25-0). -- Gerrit Pape Mon, 29 Mar 2004 09:01:00 +0000 libowfat (0.18-1) unstable; urgency=low * new upstream version. * debian/control: remove Origin: debian, Bugs: debbugs://bugs.debian.org (closes: #220090); move Section: libdevel to package libowfat-dev. * debian/libowfat-dev.docs: add TODO. * debian/diff/epoll.diff: new; define __USE_XOPEN for dietlibc-0.24. * debian/rules: create .diet/gcc on i386 to suppress gcc warnings in build logs. * debian/diff/man-pages.diff: remove; included upstream. -- Gerrit Pape Sat, 28 Feb 2004 11:30:40 +0000 libowfat (0.16-4) unstable; urgency=medium * debian/rules: set MYARCH=parisc on hppa, MYARCH=mips on mipsel; add target patch: apply diffs from debian/diff/, reverse apply diffs in target clean. * debian/diff/man-pages.diff: new; man pages for scan_ulonglong(), scan_short(), fmt_longlong(), fmt_ulonglong(), fmt_xlonglong(), scan_xlonglong() (taken from upstream cvs, closes: #202582). -- Gerrit Pape Mon, 9 Feb 2004 11:06:51 +0000 libowfat (0.16-3) unstable; urgency=low * debian/rules: use implicit Makefile rules; install static library into /usr/lib/diet/lib-$(ARCH)/; support 'nostrip' in DEB_BUILD_OPTIONS. * debian/implicit: new; implicit rules. * debian/libowfat-dev.docs: new. -- Gerrit Pape Wed, 28 Jan 2004 09:42:53 +0000 libowfat (0.16-2) unstable; urgency=low * debian/control: Depends: dietlibc-dev (>> 0.24-0); Standards-Version: 3.6.1.0. * debian/rules: install header files into /usr/include/diet/; install man pages into section 3diet to resolve conflict with libdjbdns1-dev and possibly other packages; minor. -- Gerrit Pape Tue, 16 Dec 2003 11:28:42 +0000 libowfat (0.16-1) unstable; urgency=low * new maintainer; thanks Christian Kurz. * new upstream version. * debian/copyright: minor adaptations. * debian/control: new maintainer; Build-Depends: dietlibc-dev (>> 0.24-0). * debian/rules: minor adaptations. -- Gerrit Pape Tue, 25 Nov 2003 12:28:18 +0000 libowfat (0.15-1) unstable; urgency=low * New Upstream release. * This release will fix the typo in the function buffer_GETC and therefor the bug report 192955 will be resolved. -- Christian Kurz Thu, 19 Jun 2003 08:18:50 +0200 libowfat (0.14-2) unstable; urgency=low * The usage of #include in scan_*.c won't cause a problem anymore since this release is not build with the dietlibc compiler. Therefor it will now have a build dependency on dietlicb-dev. This will adress the bug report #169940. -- Christian Kurz Fri, 30 May 2003 10:46:44 +0200 libowfat (0.14-1) unstable; urgency=low * New Upstream release. * Removed postinst script since policy doesn't enforce it anymore. Also the prerm was removed due to the old script cleaning up /usr/doc. -- Christian Kurz Thu, 7 Nov 2002 10:17:02 +0100 libowfat (0.12-1) unstable; urgency=low * New Upstream release. -- Christian Kurz Thu, 9 May 2002 10:05:38 +0200 libowfat (0.10-1) unstable; urgency=low * New Upstream Release. -- Christian Kurz Tue, 2 Apr 2002 09:00:55 +0200 libowfat (0.9-1) unstable; urgency=low * First Debian release. -- Christian Kurz Tue, 18 Dec 2001 23:10:57 +0100 debian/libowfat0.dirs0000644000000000000000000000001011622265126011732 0ustar usr/lib debian/watch0000644000000000000000000000012111622255550010214 0ustar version=3 http://www.fefe.de/libowfat/ http://dl.fefe.de/libowfat-(.*)\.tar\.bz2 debian/rules0000755000000000000000000000151512045231224010243 0ustar #!/usr/bin/make -f CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS) CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS) LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) %: dh $@ override_dh_auto_build: mkdir build-glibc $(MAKE) -f $(CURDIR)/GNUmakefile -C build-glibc SRC=$(CURDIR)/ DIET='' SHARED=1 libowfat.so $(MAKE) -f $(CURDIR)/GNUmakefile -C build-glibc SRC=$(CURDIR)/ clean $(MAKE) -f $(CURDIR)/GNUmakefile -C build-glibc SRC=$(CURDIR)/ DIET='' mkdir build-diet $(MAKE) -f $(CURDIR)/GNUmakefile -C build-diet SRC=$(CURDIR)/ DIET='diet -v -Os' touch build-stamp override_dh_clean: dh_clean # doesn't remove directories -rm -rf build-glibc build-diet override_dh_installchangelogs: dh_installchangelogs CHANGES # empty targets: override_dh_auto_install: debian/patches/0000755000000000000000000000000012142726314010617 5ustar debian/patches/05-fix-manpages.patch0000644000000000000000000000053211606136210014433 0ustar Description: Man pages fixes This patch contains some minor man page fixes Author: Roland Stigge --- libowfat-0.28.orig/unix/iopause.3 +++ libowfat-0.28/unix/iopause.3 @@ -1,6 +1,6 @@ .TH iopause 3 .SH NAME -iopause \- +iopause \- check for file descriptor readability or writability .SH SYNTAX .B #include debian/patches/series0000644000000000000000000000020212142726325012030 0ustar 02-enable-src.patch 03-shared-lib.patch 04-fix-makefile.patch 05-fix-manpages.patch 06-fix-makefile.patch 07-fix-FD_CLOEXEC.patch debian/patches/03-shared-lib.patch0000644000000000000000000000143511606127413014074 0ustar Description: Add shared lib This patch adds a shared version of the library Author: Roland Stigge --- libowfat-0.28.orig/GNUmakefile +++ libowfat-0.28/GNUmakefile @@ -15,10 +15,15 @@ textcode.a cdb.a all: $(LIBS) libowfat.a libsocket t +SONAME=libowfat.so.0 + CROSS= #CROSS=i686-mingw- CC=$(CROSS)gcc CFLAGS=-pipe -W -Wall -O2 -fomit-frame-pointer +ifeq ($(SHARED),1) +CFLAGS+=-fPIC +endif #CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall # CFLAGS += -fstrict-aliasing -Wstrict-aliasing=2 @@ -313,3 +318,9 @@ Makefile: GNUmakefile dep libdep windoze: $(MAKE) DIET= CROSS=i686-mingw32- + +libowfat.so: $(SONAME) + ln -sf $< $@ + +$(SONAME): $(ALL_OBJS) + $(CC) -shared -Wl,-soname=$(SONAME) $(CFLAGS) $^ -o $@ debian/patches/02-enable-src.patch0000644000000000000000000002242512045226301014070 0ustar Description: SRC support This patch enables SRC variable support to the GNUmakefile Author: Gerrit Pape Index: libowfat-0.29/GNUmakefile =================================================================== --- libowfat-0.29.orig/GNUmakefile 2012-04-17 23:26:31.000000000 +0200 +++ libowfat-0.29/GNUmakefile 2012-11-03 15:39:49.456558657 +0100 @@ -54,28 +54,28 @@ # to build without diet libc support, use $ make DIET= # see http://www.fefe.de/dietlibc/ for details about the diet libc -VPATH=str:byte:fmt:scan:uint:open:stralloc:unix:socket:buffer:mmap:textcode:taia:tai:dns:case:array:mult:io:cdb +VPATH=$(SRC)str:$(SRC)byte:$(SRC)fmt:$(SRC)scan:$(SRC)uint:$(SRC)open:$(SRC)stralloc:$(SRC)unix:$(SRC)socket:$(SRC)buffer:$(SRC)mmap:$(SRC)textcode:$(SRC)taia:$(SRC)tai:$(SRC)dns:$(SRC)case:$(SRC)array:$(SRC)mult:$(SRC)io:$(SRC)cdb:$(SRC) -BYTE_OBJS=$(patsubst byte/%.c,%.o,$(wildcard byte/*.c)) -FMT_OBJS=$(patsubst fmt/%.c,%.o,$(wildcard fmt/*.c)) -SCAN_OBJS=$(patsubst scan/%.c,%.o,$(wildcard scan/*.c)) -STR_OBJS=$(patsubst str/%.c,%.o,$(wildcard str/*.c)) -UINT_OBJS=$(patsubst uint/%.c,%.o,$(wildcard uint/*.c)) -OPEN_OBJS=$(patsubst open/%.c,%.o,$(wildcard open/*.c)) -STRALLOC_OBJS=$(patsubst stralloc/%.c,%.o,$(wildcard stralloc/*.c)) -UNIX_OBJS=$(patsubst unix/%.c,%.o,$(wildcard unix/*.c)) -SOCKET_OBJS=$(patsubst socket/%.c,%.o,$(wildcard socket/*.c)) -BUFFER_OBJS=$(patsubst buffer/%.c,%.o,$(wildcard buffer/*.c)) -MMAP_OBJS=$(patsubst mmap/%.c,%.o,$(wildcard mmap/*.c)) -TEXTCODE_OBJS=$(patsubst textcode/%.c,%.o,$(wildcard textcode/*.c)) -TAI_OBJS=$(patsubst tai/%.c,%.o,$(wildcard tai/*.c)) -TAIA_OBJS=$(patsubst taia/%.c,%.o,$(wildcard taia/*.c)) -DNS_OBJS=$(patsubst dns/%.c,%.o,$(wildcard dns/*.c)) -CASE_OBJS=$(patsubst case/%.c,%.o,$(wildcard case/*.c)) -ARRAY_OBJS=$(patsubst array/%.c,%.o,$(wildcard array/array_*.c)) -MULT_OBJS=$(patsubst mult/%.c,%.o,$(wildcard mult/*.c)) -IO_OBJS=$(patsubst io/%.c,%.o,$(wildcard io/*.c)) -CDB_OBJS=$(patsubst cdb/%.c,%.o,$(wildcard cdb/*.c)) +BYTE_OBJS=$(patsubst $(SRC)byte/%.c,%.o,$(wildcard $(SRC)byte/*.c)) +FMT_OBJS=$(patsubst $(SRC)fmt/%.c,%.o,$(wildcard $(SRC)fmt/*.c)) +SCAN_OBJS=$(patsubst $(SRC)scan/%.c,%.o,$(wildcard $(SRC)scan/*.c)) +STR_OBJS=$(patsubst $(SRC)str/%.c,%.o,$(wildcard $(SRC)str/*.c)) +UINT_OBJS=$(patsubst $(SRC)uint/%.c,%.o,$(wildcard $(SRC)uint/*.c)) +OPEN_OBJS=$(patsubst $(SRC)open/%.c,%.o,$(wildcard $(SRC)open/*.c)) +STRALLOC_OBJS=$(patsubst $(SRC)stralloc/%.c,%.o,$(wildcard $(SRC)stralloc/*.c)) +UNIX_OBJS=$(patsubst $(SRC)unix/%.c,%.o,$(wildcard $(SRC)unix/*.c)) +SOCKET_OBJS=$(patsubst $(SRC)socket/%.c,%.o,$(wildcard $(SRC)socket/*.c)) +BUFFER_OBJS=$(patsubst $(SRC)buffer/%.c,%.o,$(wildcard $(SRC)buffer/*.c)) +MMAP_OBJS=$(patsubst $(SRC)mmap/%.c,%.o,$(wildcard $(SRC)mmap/*.c)) +TEXTCODE_OBJS=$(patsubst $(SRC)textcode/%.c,%.o,$(wildcard $(SRC)textcode/*.c)) +TAI_OBJS=$(patsubst $(SRC)tai/%.c,%.o,$(wildcard $(SRC)tai/*.c)) +TAIA_OBJS=$(patsubst $(SRC)taia/%.c,%.o,$(wildcard $(SRC)taia/*.c)) +DNS_OBJS=$(patsubst $(SRC)dns/%.c,%.o,$(wildcard $(SRC)dns/*.c)) +CASE_OBJS=$(patsubst $(SRC)case/%.c,%.o,$(wildcard $(SRC)case/*.c)) +ARRAY_OBJS=$(patsubst $(SRC)array/%.c,%.o,$(wildcard $(SRC)array/array_*.c)) +MULT_OBJS=$(patsubst $(SRC)mult/%.c,%.o,$(wildcard $(SRC)mult/*.c)) +IO_OBJS=$(patsubst $(SRC)io/%.c,%.o,$(wildcard $(SRC)io/*.c)) +CDB_OBJS=$(patsubst $(SRC)cdb/%.c,%.o,$(wildcard $(SRC)cdb/*.c)) $(BYTE_OBJS): byte.h $(FMT_OBJS): fmt.h @@ -96,7 +96,6 @@ $(IO_OBJS): uint64.h array.h io.h io_internal.h taia.h tai.h haveepoll.h havekqueue.h havesigio.h havebsdsf.h havedevpoll.h havesendfile.h $(CDB_OBJS): cdb.h uint32.h - iob_addbuf.o iob_addfile.o iob_new.o iob_reset.o iob_send.o: iob_internal.h iob.h iopause.o: iopause.h select.h @@ -199,87 +198,87 @@ haveip6.h: tryip6.c -rm -f $@ - if $(DIET) $(CC) $(CFLAGS) -c tryip6.c >/dev/null 2>&1; then echo "#define LIBC_HAS_IP6"; fi > $@ + if $(DIET) $(CC) $(CFLAGS) -c $< >/dev/null 2>&1; then echo "#define LIBC_HAS_IP6"; fi > $@ -rm -f tryip6.o havescope.h: tryscope.c -rm -f $@ - if $(DIET) $(CC) $(CFLAGS) -c tryscope.c >/dev/null 2>&1; then echo "#define LIBC_HAS_SCOPE_ID"; fi > $@ + if $(DIET) $(CC) $(CFLAGS) -c $< >/dev/null 2>&1; then echo "#define LIBC_HAS_SCOPE_ID"; fi > $@ -rm -f tryscope.o haven2i.h: tryn2i.c -rm -f $@ - if $(DIET) $(CC) $(CFLAGS) -o t tryn2i.c >/dev/null 2>&1; then echo "#define HAVE_N2I"; fi > $@ + if $(DIET) $(CC) $(CFLAGS) -o t $< >/dev/null 2>&1; then echo "#define HAVE_N2I"; fi > $@ -rm -f t havesl.h: trysl.c -rm -f $@ - if ! $(DIET) $(CC) $(CFLAGS) -o t trysl.c >/dev/null 2>&1; then echo "typedef int socklen_t;"; fi > $@ + if ! $(DIET) $(CC) $(CFLAGS) -o t $< >/dev/null 2>&1; then echo "typedef int socklen_t;"; fi > $@ -rm -f t haveinline.h: tryinline.c -rm -f $@ - if ! $(DIET) $(CC) $(CFLAGS) -c tryinline.c >/dev/null 2>&1; then echo "#define inline"; fi > $@ + if ! $(DIET) $(CC) $(CFLAGS) -c $< >/dev/null 2>&1; then echo "#define inline"; fi > $@ -rm -f tryinline.o havekqueue.h: trykqueue.c -rm -f $@ - if $(DIET) $(CC) $(CFLAGS) -c trykqueue.c >/dev/null 2>&1; then echo "#define HAVE_KQUEUE"; fi > $@ + if $(DIET) $(CC) $(CFLAGS) -c $< >/dev/null 2>&1; then echo "#define HAVE_KQUEUE"; fi > $@ -rm -f trykqueue.o havebsdsf.h: trybsdsf.c -rm -f $@ - if $(DIET) $(CC) $(CFLAGS) -o trybsdsf trybsdsf.c >/dev/null 2>&1; then echo "#define HAVE_BSDSENDFILE"; fi > $@ + if $(DIET) $(CC) $(CFLAGS) -o trybsdsf $< >/dev/null 2>&1; then echo "#define HAVE_BSDSENDFILE"; fi > $@ -rm -f trybsdsf.o trybsdsf havesendfile.h: trysendfile.c -rm -f $@ - if $(DIET) $(CC) $(CFLAGS) -c trysendfile.c >/dev/null 2>&1; then echo "#define HAVE_SENDFILE"; fi > $@ + if $(DIET) $(CC) $(CFLAGS) -c $< >/dev/null 2>&1; then echo "#define HAVE_SENDFILE"; fi > $@ -rm -f trysendfile.o haveepoll.h: tryepoll.c -rm -f $@ - if $(DIET) $(CC) $(CFLAGS) -o tryepoll tryepoll.c >/dev/null 2>&1; then echo "#define HAVE_EPOLL 1"; else \ - if $(DIET) $(CC) $(CFLAGS) -o tryepoll tryepoll.c -lepoll >/dev/null 2>&1; then echo "#define HAVE_EPOLL 2"; fi; fi > $@ + if $(DIET) $(CC) $(CFLAGS) -o tryepoll $< >/dev/null 2>&1; then echo "#define HAVE_EPOLL 1"; else \ + if $(DIET) $(CC) $(CFLAGS) -o tryepoll $< -lepoll >/dev/null 2>&1; then echo "#define HAVE_EPOLL 2"; fi; fi > $@ -rm -f tryepoll havedevpoll.h: trydevpoll.c -rm -f $@ - if $(DIET) $(CC) $(CFLAGS) -c trydevpoll.c >/dev/null 2>&1; then echo "#define HAVE_DEVPOLL"; fi > $@ + if $(DIET) $(CC) $(CFLAGS) -c $< >/dev/null 2>&1; then echo "#define HAVE_DEVPOLL"; fi > $@ -rm -f trydevpoll.o libepoll: haveepoll.h - if test "z`cat haveepoll.h`" = "z#define HAVE_EPOLL 2"; then echo -lepoll; fi > $@ + if test "z`cat $<`" = "z#define HAVE_EPOLL 2"; then echo -lepoll; fi > $@ havesigio.h: trysigio.c -rm -f $@ - if $(DIET) $(CC) $(CFLAGS) -c trysigio.c >/dev/null 2>&1; then echo "#define HAVE_SIGIO"; fi > $@ + if $(DIET) $(CC) $(CFLAGS) -c $< >/dev/null 2>&1; then echo "#define HAVE_SIGIO"; fi > $@ -rm -f trysigio.o havealloca.h: tryalloca.c -rm -f $@ echo "#include " > $@ - if $(DIET) $(CC) $(CFLAGS) -c tryalloca.c -DA >/dev/null 2>&1; then echo "#include "; fi >> $@ - if $(DIET) $(CC) $(CFLAGS) -c tryalloca.c -DB >/dev/null 2>&1; then echo "#include "; fi >> $@ + if $(DIET) $(CC) $(CFLAGS) -c $< -DA >/dev/null 2>&1; then echo "#include "; fi >> $@ + if $(DIET) $(CC) $(CFLAGS) -c $< -DB >/dev/null 2>&1; then echo "#include "; fi >> $@ -rm -f tryalloca.o iopause.h: iopause.h1 iopause.h2 trypoll.c -rm -f $@ - if $(DIET) $(CC) $(CFLAGS) -o t trypoll.c >/dev/null 2>&1; then cp iopause.h2 iopause.h; else cp iopause.h1 iopause.h; fi + if $(DIET) $(CC) $(CFLAGS) -o t trypoll.c >/dev/null 2>&1; then cp $(SRC)iopause.h1 iopause.h; else cp $(SRC)iopause.h2 iopause.h; fi -rm -f t select.h: select.h1 select.h2 trysysel.c -rm -f $@ - if $(DIET) $(CC) $(CFLAGS) -c trysysel.c >/dev/null 2>&1; then cp select.h2 select.h; else cp select.h1 select.h; fi + if $(DIET) $(CC) $(CFLAGS) -c trysysel.c >/dev/null 2>&1; then cp $(SRC)select.h1 select.h; else cp $(SRC)select.h2 select.h; fi -rm -f trysysel.o -libsocket: trysocket.c - if $(DIET) $(CC) $(CFLAGS) -o trysocket trysocket.c >/dev/null 2>&1; then echo ""; else \ - if $(DIET) $(CC) $(CFLAGS) -o trysocket trysocket.c -lsocket >/dev/null 2>&1; then echo "-lsocket"; else \ - if $(DIET) $(CC) $(CFLAGS) -o trysocket trysocket.c -lsocket -lnsl >/dev/null 2>&1; then echo "-lsocket -lnsl"; \ +libsocket: trysocket.c trysendfile.c + if $(DIET) $(CC) $(CFLAGS) -o trysocket $(SRC)trysocket.c >/dev/null 2>&1; then echo ""; else \ + if $(DIET) $(CC) $(CFLAGS) -o trysocket $(SRC)trysocket.c -lsocket >/dev/null 2>&1; then echo "-lsocket"; else \ + if $(DIET) $(CC) $(CFLAGS) -o trysocket $(SRC)trysocket.c -lsocket -lnsl >/dev/null 2>&1; then echo "-lsocket -lnsl"; \ fi; fi; fi > blah - if $(DIET) $(CC) $(CFLAGS) -o trysocket trysendfile.c `cat blah`>/dev/null 2>&1; then cat blah; else \ - if $(DIET) $(CC) $(CFLAGS) -o trysocket trysendfile.c -lsendfile `cat blah` >/dev/null 2>&1; then echo "-lsendfile"; cat blah; \ + if $(DIET) $(CC) $(CFLAGS) -o trysocket $(SRC)trysendfile.c `cat blah`>/dev/null 2>&1; then cat blah; else \ + if $(DIET) $(CC) $(CFLAGS) -o trysocket $(SRC)trysendfile.c -lsendfile `cat blah` >/dev/null 2>&1; then echo "-lsendfile"; \ fi; fi > libsocket rm -f blah trysocket debian/patches/06-fix-makefile.patch0000644000000000000000000000137712045232764014437 0ustar Description: Adjust GNUMakefile to Debian build flags This patch adjusts to Debian's CFLAGS and LDFLAGS usage Author: Roland Stigge Index: libowfat-0.29/GNUmakefile =================================================================== --- libowfat-0.29.orig/GNUmakefile 2012-11-03 15:54:17.576581904 +0100 +++ libowfat-0.29/GNUmakefile 2012-11-03 16:17:17.140618848 +0100 @@ -20,7 +20,7 @@ CROSS= #CROSS=i686-mingw- CC=$(CROSS)gcc -CFLAGS=-pipe -W -Wall -O2 -fomit-frame-pointer +#CFLAGS=-pipe -W -Wall -O2 -fomit-frame-pointer ifeq ($(SHARED),1) CFLAGS+=-fPIC endif @@ -323,4 +323,4 @@ ln -sf $< $@ $(SONAME): $(ALL_OBJS) - $(CC) -shared -Wl,-soname=$(SONAME) $(CFLAGS) $^ -o $@ + $(CC) -shared -Wl,-soname=$(SONAME) $(LDFLAGS) $^ -o $@ debian/patches/04-fix-makefile.patch0000644000000000000000000000062211606127303014417 0ustar Description: Makefile fix: include dirs in CFLAGS This patch adds a missing include dir to the CFLAGS in the GNUmakefile Author: Roland Stigge --- libowfat-0.28.orig/GNUmakefile +++ libowfat-0.28/GNUmakefile @@ -142,7 +142,7 @@ libowfat.a: $(ALL_OBJS) $(CROSS)ar cr $@ $(ALL_OBJS) -$(CROSS)ranlib $@ -CFLAGS+=-I. +CFLAGS+=-I. -I.. %.o: %.c $(DIET) $(CC) -c $< $(CFLAGS) debian/patches/07-fix-FD_CLOEXEC.patch0000644000000000000000000000170012142726252014302 0ustar From 7a37a81a87d5c78a2e8e90781898d88df9f861af Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 18 Dec 2012 17:32:04 +0100 Subject: [PATCH] libowfat: Set FD_CLOEXEC correctly using F_SETFD not F_SETFL Using that value on F_SETFL is just wrong, and might make the call fail on some systems, as it's requesting to set an undetermined flag. For example on GNU/* FD_CLOEXEC has value 1, which matches with O_WRONLY. This might cause the code to at least leak file descriptors, and at worst to terminate execution. --- io/io_closeonexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/io_closeonexec.c b/io/io_closeonexec.c index b36d636..aad4773 100644 --- a/io/io_closeonexec.c +++ b/io/io_closeonexec.c @@ -5,6 +5,6 @@ void io_closeonexec(int64 d) { #ifndef __MINGW32__ - fcntl(d,F_SETFL,fcntl(d,F_GETFL,0) | FD_CLOEXEC); + fcntl(d,F_SETFD,fcntl(d,F_GETFD,0) | FD_CLOEXEC); #endif } -- 1.8.1.rc0 debian/libowfat-dietlibc-dev.dirs0000644000000000000000000000004211622264075014212 0ustar usr/lib/diet/lib usr/include/diet debian/libowfat0.shlibs0000644000000000000000000000002511606110060012247 0ustar libowfat 0 libowfat0 debian/libowfat0.install0000644000000000000000000000004211622265145012445 0ustar build-glibc/libowfat.so.* usr/lib debian/source/0000755000000000000000000000000012142725132010465 5ustar debian/source/format0000644000000000000000000000001411432313453011673 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000133311606077540011127 0ustar This package was debianized by Christian Kurz and was adopted by Gerrit Pape on Tue, 25 Nov 2003 11:04:26 +0000 later adopted by Roland Stigge on Sat, 09 Jul 2011 18:18:35 +0200 Source code was obtained from: http://www.fefe.de/libowfat/ Upstream Author: Felix von Leitner The following copyright applies to this package: Copyright (c) 2001 Felix von Leitner. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 as published by the Free Software Foundation. The full text of the GPLv2 can be found in /usr/share/common-licenses/GPL-2. debian/compat0000644000000000000000000000000212045232412010357 0ustar 9 debian/libowfat-dietlibc-dev.docs0000644000000000000000000000001411606077611014200 0ustar README TODO debian/libowfat-dietlibc-dev.install0000644000000000000000000000013511622264312014714 0ustar build-diet/libowfat.a usr/lib/diet/lib *.h usr/include/diet build-diet/*.h usr/include/diet/ debian/libowfat-dev.install0000644000000000000000000000015311622265076013147 0ustar build-glibc/libowfat.a usr/lib *.h usr/include build-glibc/*.h usr/include build-glibc/libowfat.so usr/lib debian/libowfat-dev.manpages0000644000000000000000000000000611622264650013266 0ustar */*.3 debian/libowfat-dev.docs0000644000000000000000000000001411434505750012422 0ustar README TODO