debian/0000755000000000000000000000000012227332346007172 5ustar debian/copyright0000644000000000000000000000241112227327310011116 0ustar This package was debianized by Timshel Knoll on Tue, 26 Feb 2002 13:29:09 +1100. It was downloaded from http://download.ofb.net/liboop/ Upstream Author: Dan Egnor With contributions by Ian Jackson Current upstream maintainers: Niels Möller and Per Cederqvist Copyright: Copyright (C) 1999, 2000, 2001 Dan Egnor, Ian Jackson This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian GNU/Linux systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL'. debian/liboop4.install0000644000000000000000000000002211424563033012121 0ustar usr/lib/lib*.so.* debian/liboop-doc.doc-base0000644000000000000000000000056311030417162012613 0ustar Document: liboop-doc Title: Liboop Website and Manuals Author: Dan Egnor Abstract: This website describes the liboop library, and includes manuals. There is an introduction and overview of the library, as well as a hypertext reference manual. Section: Programming/C Format: HTML Index: /usr/share/doc/liboop-doc/html/index.html Files: /usr/share/doc/liboop-doc/html/* debian/source/0000755000000000000000000000000012227332250010464 5ustar debian/source/format0000644000000000000000000000001411424545117011700 0ustar 3.0 (quilt) debian/liboop-dev.install0000644000000000000000000000010111424563033012607 0ustar usr/include/* usr/lib/lib*.a usr/lib/lib*.so usr/lib/pkgconfig/* debian/watch0000644000000000000000000000007711030426512010215 0ustar version=3 http://download.ofb.net/liboop/liboop-(.*)\.tar\.gz debian/patches/0000755000000000000000000000000012227332250010613 5ustar debian/patches/tcl_dev.patch0000644000000000000000000000126212227330765013266 0ustar --- a/configure +++ b/configure @@ -19935,7 +19935,7 @@ fi if test xno != x$with_tcl; then - for version in 8.4 8.3 8.2 8.1 8.0 ; do + for version in "" 8.4 8.3 8.2 8.1 8.0 ; do CPPFLAGS="$save_cppflags -I/usr/include/tcl$version" as_ac_Lib=`echo "ac_cv_lib_tcl$version''_Tcl_Main" | $as_tr_sh` echo "$as_me:$LINENO: checking for Tcl_Main in -ltcl$version" >&5 --- a/configure.ac +++ b/configure.ac @@ -71,7 +71,7 @@ fi if test xno != x$with_tcl; then - for version in 8.4 8.3 8.2 8.1 8.0 ; do + for version in "" 8.4 8.3 8.2 8.1 8.0 ; do CPPFLAGS="$save_cppflags -I/usr/include/tcl$version" AC_CHECK_LIB(tcl$version,Tcl_Main,[ AC_CHECK_HEADER(tcl.h,[ debian/patches/explicit_linking.patch0000644000000000000000000000131311424573207015175 0ustar --- a/Makefile.am +++ b/Makefile.am @@ -51,7 +51,7 @@ noinst_PROGRAMS = test-oop test_oop_SOURCES = test-oop.c test_oop_CFLAGS = $(GLIB2_CFLAGS) $(GLIB_INCLUDES) $(TCL_INCLUDES) $(WWW_INCLUDES) -test_oop_LDADD = $(lib_LTLIBRARIES) +test_oop_LDADD = $(lib_LTLIBRARIES) $(GLIB2_LIBS) $(ADNS_LIBS) $(TCL_LIBS) $(READLINE_LIBS) release: dist gzip -dc $(PACKAGE)-$(VERSION).tar.gz | bzip2 -9 \ --- a/liboop-glib2.pc.in +++ b/liboop-glib2.pc.in @@ -7,5 +7,5 @@ Name: liboop-glib2 Description: Event loop management library (GLIB2 support) Version: @VERSION@ Requires: liboop = @VERSION@ glib-2.0 -Libs: -L${libdir} -loop-glib2 +Libs: -L${libdir} -loop-glib2 @GLIB2_LIBS@ Cflags: -D_REENTRANT -I${includedir} debian/patches/series0000644000000000000000000000013612227330765012041 0ustar read_bugfixes.patch configure_support_freebsd_hurd.patch explicit_linking.patch tcl_dev.patch debian/patches/configure_support_freebsd_hurd.patch0000644000000000000000000000102211424564602020126 0ustar From: Cyril Brulebois Origin: , Bug-Debian: http://bugs.debian.org/359930 Forwarded: no Subject: Make configure.ac recognize BSD and Hurd. --- liboop-1.0.orig/configure.ac +++ liboop-1.0/configure.ac @@ -15,7 +15,7 @@ AC_ARG_WITH(libwww, AC_HELP_STRING(--wit dnl System type checks. case "$host" in - *-linux-*) + *-linux-*|*-k*bsd*|*-gnu*) AC_PATH_PROG(PROG_LDCONFIG, ldconfig, :, $PATH:/usr/sbin:/sbin) no_wacky_libs=yes ;; debian/patches/read_bugfixes.patch0000644000000000000000000000243711424547112014454 0ustar From: Ian Jackson Applied-Upstream: no Bug-Debian: http://bugs.debian.org/579604 Subject: oop-read.h bugfixes Some years ago I contributed a feature for reading lines and records to liboop: oop-read.h and read.c. Since it took a while for that feature to make it into distributed versions, for a long time I've been using my own copy of the source file. It seems that I fixed a couple of bugs in my copy which are still in the Debian package. I can't find any record of me having told anyone about them and now I find that 1.0-6 still has the bugs. There are two fixes: * Initialise "rd->discard" properly * Avoid rd->neednotcheck becoming negative --- a/read.c +++ b/read.c @@ -114,6 +114,7 @@ oop_read *oop_rd_new(oop_source *oop, oo rd->allocbuf= 0; rd->used= 0; rd->alloc= buf ? bufsz : 0; + rd->discard= 0; rd->neednotcheck= 0; rd->displacedchar= -1; rd->style= *OOP_RD_STYLE_IMMED; @@ -235,7 +236,11 @@ static void *on_process(oop_source *oop, if (rd->discard) { rd->used -= rd->discard; - rd->neednotcheck -= rd->discard; + if (rd->neednotcheck > rd->discard) { + rd->neednotcheck -= rd->discard; + } else { + rd->neednotcheck= 0; + } memmove(buf, buf + rd->discard, rd->used); rd->discard= 0; } debian/liboop-doc.docs0000644000000000000000000000000511424563033012063 0ustar html debian/control0000644000000000000000000000536212227332241010575 0ustar Source: liboop Section: libs Priority: optional Maintainer: Magnus Holmgren Build-Depends: dpkg-dev (>= 1.15.7), debhelper (>= 7), libtool, dh-autoreconf, autoconf, automake, libadns1-dev, libglib2.0-dev, libreadline-dev, tcl-dev Standards-Version: 3.9.4 Homepage: http://www.lysator.liu.se/liboop/ Package: liboop4 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Provides: liboop Replaces: liboop3 Description: Event loop management library Liboop is a low-level event loop management library for POSIX-based operating systems. It supports the development of modular, multiplexed applications which may respond to events from several sources. It replaces the "select() loop" and allows the registration of event handlers for file and network I/O, timers and signals. Since processes use these mechanisms for almost all external communication, liboop can be used as a basis for almost any application. Package: liboop-dev Section: libdevel Architecture: any Depends: liboop4 (= ${binary:Version}), ${misc:Depends} Description: Event loop management library - development files Liboop is a low-level event loop management library for POSIX-based operating systems. It supports the development of modular, multiplexed applications which may respond to events from several sources. It replaces the "select() loop" and allows the registration of event handlers for file and network I/O, timers and signals. Since processes use these mechanisms for almost all external communication, liboop can be used as a basis for almost any application. . This package contains the liboop development libraries and header files, required to develop and/or compile applications that use liboop. Package: liboop-doc Section: doc Architecture: all Depends: ${misc:Depends} Description: Event loop management library - documentation Liboop is a low-level event loop management library for POSIX-based operating systems. It supports the development of modular, multiplexed applications which may respond to events from several sources. It replaces the "select() loop" and allows the registration of event handlers for file and network I/O, timers and signals. Since processes use these mechanisms for almost all external communication, liboop can be used as a basis for almost any application. . This package contains a mirror of the http://liboop.org website and its associated HTML documentation for the liboop library. Package: liboop-dbg Section: debug Priority: extra Architecture: any Depends: liboop4 (= ${binary:Version}), ${misc:Depends} Description: Event loop management library - debug symbols Liboop is a low-level event loop management library for POSIX-based operating systems. . This package contains debugging symbols. debian/changelog0000644000000000000000000001362512227332241011045 0ustar liboop (1.0-10) unstable; urgency=low * Update homepage URL and upstream maintainers. * Build with default tcl-dev instead of obsolete versions (Closes: #725334). Thanks to Sergei Golovan. * Bump Standards-Version to 3.9.4. -- Magnus Holmgren Tue, 15 Oct 2013 23:20:55 +0200 liboop (1.0-9) unstable; urgency=low * Add build-arch and build-indep targets. * Remove arch-indep build dependency on sharutils, which is unnecessary since the conversion to source format 3.0 when the former web site was put in an additional upstream tarball. * Use dpkg-buildflags. * Use dh-autoreconf to handle autoreconfing. * Use current automake to build package, instead of 1.9, since it seems to work. Maybe 1.10 didn't work. * Bump Standards-Version to 3.9.3. -- Magnus Holmgren Sun, 26 Feb 2012 22:43:16 +0100 liboop (1.0-8) unstable; urgency=low * Remove dependency on binutils-gold, which was inadvertently left in place after testing. -- Magnus Holmgren Fri, 30 Jul 2010 18:08:11 +0200 liboop (1.0-7) unstable; urgency=low * Add debug package * Switch to source format 3.0 (quilt). * Put the documentation from the former web site in an additional upstream tarball. This means the logo no longer has to be stored as-is instead of as a self-extracting archive, making the associated Makefile unnecessary as well. The html can be installed by dh_installdocs instead. * read_bugfixes.patch: Fixes from Ian Jackson to bugs in a feature for reading lines and records that he once contributed (Closes: #579604). * Upgrade to debhelper compatibility level 7, use dh_install instead of dh_movefiles as well as dh_prep instead of dh_clean. * configure_support_freebsd_hurd.patch: Separate patch for bug #359930. * explicit_linking.patch: In Makefile.am, explicitly link test-oop with all the libraries that the adapter libraries use, so that the package can be built with binutils-gold, where --no-add-needed is the default (Closes: #555285). Also add -lglib-2.0 to the Libs: line in liboop-glib2.pc (indirectly, via liboop-glib2.pc.in). -- Magnus Holmgren Fri, 30 Jul 2010 17:57:35 +0200 liboop (1.0-6) unstable; urgency=low * Build with libreadline6 instead of libreadline5 (drop the libreadline5-dev Build-Depends alternative). * Add ${misc:Depends} to all Depends in case Debhelper needs it. * Remove libc6-dev from Depends of liboop-dev; it's build-essential. * Bump Standards-Version to 3.8.3. -- Magnus Holmgren Sun, 27 Sep 2009 21:29:45 +0200 liboop (1.0-5) unstable; urgency=low * Build with GLib 2.0 instead of 1.2 (Closes: #523688). * Switch to Debhelper level 5. * Bump Standards-Version to 3.8.1. * Skip unnecessary dh_installdirs; delete unused files from the debian directory. -- Magnus Holmgren Mon, 13 Apr 2009 20:36:57 +0200 liboop (1.0-4) unstable; urgency=low * New maintainer (Closes: #487130). * Fix documentation file name extensions (Closes: #307732). * Build liboop-doc in binary-indep target (Closes: #475573). * Add debian/compat; remove DH_COMPAT from debian/rules. * Don't ignore "make distclean" errors. * Move sharutils to Build-Depends-Indep. * debian/copyright: Update postal address of the FSF. * Patch configure.ac as suggested in bug 359930, run autoreconf for good measure and remove autogenerated files in clean target. I don't like huge Debian diffs. Copying files from autotools-dev thus becomes redundant. * Update doc-base section to match current structure. * debian/control: Replace ${Source-Version} with ${binary:Version}. * Standards-Version upgraded to 3.8.0 with the above change. * Add Homepage field and watch file, and update download location in debian/copyright to one that works. -- Magnus Holmgren Wed, 25 Jun 2008 13:03:42 +0200 liboop (1.0-3.3) unstable; urgency=high * Non-maintainer upload. * Drop unused libwww-dev build-dependency. Closes: #458866. * This fixes an FTBFS in testing, set urgency to high. -- Regis Boudin Thu, 10 Apr 2008 21:47:16 +0100 liboop (1.0-3.2) unstable; urgency=low * Non-maintainer upload. * Relibtoolize. Closes: #359930. -- Aurelien Jarno Wed, 23 Jan 2008 22:22:53 +0100 liboop (1.0-3.1) unstable; urgency=medium * Non-maintainer upload. * Build against libreadline5. Closes: #350647. -- Matej Vela Thu, 16 Mar 2006 16:50:24 +0100 liboop (1.0-3) unstable; urgency=low * Include pkg-config files. (Closes: Bug#227061) * New liboop-doc package that includes documentation from liboop.org. (Closes: Bug#224392) -- Simon Law Sun, 11 Jul 2004 16:53:38 -0400 liboop (1.0-2) unstable; urgency=low * New maintainer. * Update 'missing' binary from Automake 1.6. * Use Policy 3.6.1. * Use Debconf 4. -- Simon Law Wed, 02 Jun 2004 17:39:12 -0400 liboop (1.0-1) unstable; urgency=low * New upstream release (closes: #224210) -- Timshel Knoll Fri, 19 Dec 2003 00:55:53 +1100 liboop (0.9-1) unstable; urgency=low * New upstream release (closes: #191305) + liboop SONAME has been bumped to 4, so name of source and binary packages is now liboop4, to allow co-existence with liboop3 * Moved liboop-dev to libdevel section * Fixed configure{.in,} to build libwww support, Build-Depend on libwww-dev * Policy 3.5.9 -- Timshel Knoll Wed, 30 Apr 2003 22:50:34 +1000 liboop (0.8-2) unstable; urgency=low * debian/rules: update config.{sub,guess} in `clean' target (closes: #142310) -- Timshel Knoll Sat, 20 Apr 2002 02:25:49 +1000 liboop (0.8-1) unstable; urgency=low * Initial Release. (closes: #135810) -- Timshel Knoll Tue, 26 Feb 2002 13:29:09 +1100 debian/compat0000644000000000000000000000000211424563033010365 0ustar 7 debian/rules0000755000000000000000000000501111722521722010244 0ustar #!/usr/bin/make -f # # To build the packages, run `dpkg-buildpackage' or `debuild' from the # parent directory of this file. (You may need to specify the `-rfakeroot' # option if you are using dpkg-buildpackage and are not running as root) # # Copyright © 1999, 2000, 2001, 2002 Timshel Knoll # Copyright © 2008, 2009, 2010, 2012 Magnus Holmgren # Licensed under the terms of the GNU General Public License # # Based originally on Sample debian/rules that uses debhelper, from dh-make, # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) buildflags := --build=$(DEB_BUILD_GNU_TYPE) else buildflags := --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) endif buildflags += $(shell dpkg-buildflags --export=configure) configure: configure-stamp configure-stamp: dh_testdir [ -f debian/autoreconf.before ] || dh_autoreconf ./configure --prefix=/usr $(buildflags) touch $@ build: build-arch build-indep: build-arch: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) touch $@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp [ ! -f Makefile ] || $(MAKE) distclean dh_autoreconf_clean dh_clean install: build dh_testdir dh_testroot dh_prep $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp binary-indep: dh_testdir dh_testroot dh_install -i dh_installdocs -i dh_installman -i dh_installinfo -i dh_installchangelogs -i dh_link -i dh_compress -i -Xliboop-doc/html dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary-arch: install dh_testdir dh_testroot dh_install -a dh_installdocs -a dh_installman -a dh_installinfo -a dh_installchangelogs -a dh_link -a dh_strip -a --dbg-package=liboop-dbg dh_compress -a -Xliboop-doc/html dh_fixperms -a dh_makeshlibs -a dh_installdeb -a # Don't add the depends for adapter libraries - programs which link # with them will also link with the appropriate library dh_shlibdeps -a -Xliboop- dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-indep binary-arch .PHONY: configure build build-arch build-indep install .PHONY: binary-indep binary-arch binary clean debian/README.Debian0000644000000000000000000000311011030264760011221 0ustar liboop for Debian ----------------- I've chosen at this stage not to package the adapter libraries separately, since the package only weighs in at just over 500k when unpacked. If anyone would rather that these were all in separate packages, please let me know and I'll think again about doing this ... At the moment, the package _DOES NOT DEPEND_ on any of the libraries required to use the adapter libraries, so if your package uses one of the adapter libraries, you _must_ depend on the appropriate library (ie. if you link with liboop-tcl, you must also depend on tcl8.3 ...). The same goes for Build-Depends. My reasoning for packaging liboop in this way is to avoid having to install excessive numbers of large-ish packages (tcl for instance) just to install your program that depends on liboop. I haven't compiled in the libwww adapter support - this is primarily because the current libwww0 package in Debian doesn't include libwwwxml, because when this library is compiled there is a name clash (libwww also includes libxmltok and libxmlparse, which are in the libxmltok1 package). It's difficult to compile liboop support for libwww libraries excluding libwwwxml, as the configure script simply links liboop-www with all of the libwww libraries, including libwwwxml. I'm working on a solution to this with the libwww maintainer. In the meantime, liboop Build-Conflicts: libwww-dev. If you need this support urgently, feel free to contact me and I'll hurry up my work on this (no real urgency at the moment, however ...) -- Timshel Knoll Tue, 5 Mar 2002 15:41:41 +1100