debian/0000755000000000000000000000000012256116224007167 5ustar debian/changelog0000644000000000000000000000736312256116224011052 0ustar dose2 (1.4.2-6build1) trusty; urgency=medium * Rebuild for ocaml-4.01. -- Matthias Klose Mon, 23 Dec 2013 20:27:01 +0000 dose2 (1.4.2-6) unstable; urgency=low * build-depend on libdbm-ocaml-dev or ocaml<<4.0 since libdbm was factored out of the ocaml distribution starting from version 4.0 on. * Standards-version 3.9.5 (no change). -- Ralf Treinen Sat, 07 Dec 2013 21:03:37 +0100 dose2 (1.4.2-5) unstable; urgency=low * debian/control: remove some redundant entries in the depencies of libdose2-ocaml-dev that are aleady filled in via ${ocaml:Depends} * Bump standards-version to 3.9.2 (no change) -- Ralf Treinen Mon, 06 Feb 2012 13:32:14 +0100 dose2 (1.4.2-4) unstable; urgency=low * Team upload. * Fix build failure when building with rpm 4.9 (Closes: #627433). - Add patch 0001-RPM-4.9.0.patch, by Colin Watson (Thanks for the patch). * Put changes made in 1.4.2-3 to source in debian/patches/0002-Ralf.patch -- Mehdi Dogguy Sun, 22 May 2011 12:09:33 +0200 dose2 (1.4.2-3) unstable; urgency=low * Install *.cmxa files only on native architectures (closes: #612749). * Change priority to "extra" since we depend on librpm-dev, which is of priority extra (closes: #612751). * Bump version in build-dependency on debhelper to (>= 7.0.50~), in order to have dh overrides. * Generate API doc with ocamldoc, install with doc-base. * Fix spelling of Jérôme Vouillon in debian/copyright. -- Ralf Treinen Thu, 10 Feb 2011 21:04:29 +0100 dose2 (1.4.2-2) unstable; urgency=low * Make short descriptions of libdose2-ocaml and libdose2-ocaml-dev different. * Standards-version 3.9.1 (no change). * debian/rules: switch from cdbs to debhelper > 7, dh. * Use dh_ocaml (>= 0.9.0) to calculate depencies and provides (closes: #599300) * Dependency on ocaml-findlib: downgrade to Suggests in -dev package, remove completely in library package. * source format 3.0 (quilt) -- Ralf Treinen Thu, 10 Feb 2011 08:26:13 +0100 dose2 (1.4.2-1) unstable; urgency=low * New upstream release, which resolves the issue with ocamlrpm/ocamlrpm_stubs.c observed in 1.4.1-3. * Standards-Version 3.8.2 (no change). -- Ralf Treinen Tue, 21 Jul 2009 19:41:55 +0200 dose2 (1.4.1-3) unstable; urgency=low * Merge in latest ocamlrpm/ocamlrpm_stubs.c from upstream svn to solve an issue with fdOpen and fdClose calls -- Ralf Treinen Tue, 16 Jun 2009 20:34:25 +0200 dose2 (1.4.1-2) unstable; urgency=low * Remove reference to the lead datastructure from rpm 4.4 (closes: #533165). -- Ralf Treinen Mon, 15 Jun 2009 22:00:54 +0200 dose2 (1.4.1-1) unstable; urgency=low * New upstream version -- Ralf Treinen Mon, 18 May 2009 20:27:40 +0200 dose2 (1.4-2) unstable; urgency=low * Added missing dependencies on libbz2-ocaml(-dev). -- Ralf Treinen Wed, 25 Mar 2009 22:39:48 +0100 dose2 (1.4-1) unstable; urgency=low * New Upstream Version * Fixed FTBFS due to wrong order of ocamlfind options. Thanks to Samuel Thibault for the patch! (Closes: #493866) * Section: ocaml * Standards-Version 3.8.1 (no change) * Some improvements on long package dscriptions * CDBS includes in debian/rules: class/ocaml.mk -> rules/ocaml.mk * Add build-dependencies on dh-ocaml and libbz2-ocaml-dev * Use debian/libdose2-ocaml.install file to install stublibs -- Ralf Treinen Tue, 24 Mar 2009 22:07:37 +0100 dose2 (1.3.2-1) experimental; urgency=low * Initial release (Closes: #476465) -- Stefano Zacchiroli Thu, 17 Jul 2008 16:18:16 +0200 debian/rules0000755000000000000000000000063212251043053010242 0ustar #!/usr/bin/make -f # do we have compilation of ocaml to native code? OPT = $(shell test -x /usr/bin/ocamlopt && echo true) %: dh $@ --with ocaml override_dh_install: dh_install ifeq ($(OPT),true) dh_install */*.cmxa /usr/lib/ocaml/dose2 endif override_dh_auto_build: dh_auto_build mkdir -p debian/html -ocamldoc -html -d debian/html */*.mli override_dh_auto_clean: dh_auto_clean -rm -r debian/htmldebian/libdose2-ocaml-dev.install0000644000000000000000000000023312251043053014117 0ustar */*.cma /usr/lib/ocaml/dose2 */*.a /usr/lib/ocaml/dose2 */*.cmi /usr/lib/ocaml/dose2 */*.mli /usr/lib/ocaml/dose2 META /usr/lib/ocaml/dose2 debian/libdose2-ocaml-dev.doc-base0000644000000000000000000000053312251043053014131 0ustar Document: libdose2 Title: libdose2-ocaml-dev OCamldoc API Reference Author: Jaap Boender, Berke Durak, Jérôme Vouillon Abstract: API reference manual for libdose2-ocaml-dev (generated via OCamldoc) Section: Programming/OCaml Format: HTML Index: /usr/share/doc/libdose2-ocaml-dev/html/index.html Files: /usr/share/doc/libdose2-ocaml-dev/html/* debian/control0000644000000000000000000000517112251046675010605 0ustar Source: dose2 Section: ocaml Priority: extra Maintainer: Debian OCaml Maintainers Uploaders: Stefano Zacchiroli , Ralf Treinen Build-Depends: debhelper (>= 7.0.50~), dh-ocaml (>= 0.9.0), ocaml-nox (>=3.11.1-3~), camlp4, ocaml-findlib, menhir, librpm-dev, libpcre-ocaml-dev, libcalendar-ocaml-dev, libzip-ocaml-dev, libbz2-ocaml-dev, libdbm-ocaml-dev | ocaml-nox (<< 4.0) Standards-Version: 3.9.5 Homepage: http://sodiac.gforge.inria.fr/ Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/dose2.git Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/dose2.git Package: libdose2-ocaml-dev Architecture: any Depends: ${ocaml:Depends}, librpm-dev, libgdbm-dev, ${misc:Depends} Suggests: ocaml-findlib Provides: ${ocaml:Provides} Description: OCaml libraries for package dependencies (development files) Dose2 is a framework made of several OCaml libraries for managing distribution packages and their dependencies. . Though not tied to any particular distribution, Dose 2 constitutes a pool of libraries which enable injecting packages coming from various distribution. Companion libraries (e.g. ceve) and tools (e.g. pkglab) rely on dose2 to manage packages coming from various distributions, e.g. Debian and Red Hat. . Besides basic functionalities for querying and setting package properties, dose also implements algorithms for solving more complex problems (monitoring package evolutions, correct and complete dependency resolution, repository-wide uninstallability checks). . This package contains the development stuff you need to use dose2 in the development of your programs. Package: libdose2-ocaml Architecture: any Depends: ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends} Provides: ${ocaml:Provides} Description: OCaml libraries for managing packages and their dependencies Dose2 is a framework made of several OCaml libraries for managing distribution packages and their dependencies. . Though not tied to any particular distribution, dose2 constitutes a pool of libraries which enable injecting packages coming from various distribution. Companion libraries (e.g. ceve) and tools (e.g. pkglab) rely on dose2 to manage packages coming from various distributions, e.g. Debian and Red Hat. . Besides basic functionalities for querying and setting package properties, dose2 also implements algorithms for solving more complex problems (monitoring package evolutions, correct and complete dependency resolution, repository-wide uninstallability checks). . This package contains the runtime stuff you need to run programs using dose2. debian/libdose2-ocaml.install0000644000000000000000000000004012251043053013337 0ustar */*.so /usr/lib/ocaml/stublibs debian/copyright0000644000000000000000000000204512251043053011115 0ustar This package was debianized by Stefano Zacchiroli on Fri, 16 May 2008 00:00:49 +0200. It was downloaded from Files: * Copyright: © 2004-2008 Berke Durak © 2004-2008 Jaap Boender © 2004-2008 Inria Rocquencourt License: LGPL-3+ File: satsolver/* Copyright: © 2005 Jérôme Vouillon © 2005-2008 Jaap Boender License: LGPL-3+ Dose2 program 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 3 of the License, or (at your option) any later version. On Debian systems, the complete text of the latest GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL'. Files: debian/* Copyright: © 2008 Stefano Zacchiroli License: GPL-3+ The Debian packaging is copyright Stefano Zacchiroli, and licensed under the GNU General Public License, see `/usr/share/common-licenses/GPL' for the full text. debian/source/0000755000000000000000000000000012251043053010461 5ustar debian/source/format0000644000000000000000000000001412251043053011667 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000011212251043053010204 0ustar version=3 http://gforge.inria.fr/frs/?group_id=929 .*/dose2-(.*)\.tar\.gz debian/patches/0000755000000000000000000000000012251043053010610 5ustar debian/patches/series0000644000000000000000000000004512251043053012024 0ustar 0001-RPM-4.9.0.patch 0002-Ralf.patch debian/patches/0002-Ralf.patch0000644000000000000000000000601712251043053013100 0ustar From d2d071b82866f0e8961ec3c47aedf6e58031b487 Mon Sep 17 00:00:00 2001 From: Mehdi Dogguy Date: Sun, 22 May 2011 12:27:07 +0200 Subject: [PATCH] Ralf --- Makefile.config.in | 4 ++-- Makefile.in | 30 ++++++++++++++++++++++++------ ocamlpkgsrc/Makefile | 2 +- ocamlrpm/Makefile | 2 +- 4 files changed, 28 insertions(+), 10 deletions(-) diff --git a/Makefile.config.in b/Makefile.config.in index 3ffbd94..2c3d163 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -7,9 +7,9 @@ OCAMLC= @OCAMLFIND@ ocamlc OCAMLCP= @OCAMLFIND@ ocamlcp OCAMLOPT= @OCAMLFIND@ ocamlopt OCAMLMKLIB= @OCAMLMKLIB@ +override CFLAGS= @DEFS@ @CFLAGS@ +override CPPFLAGS= @CPPFLAGS@ OCAMLFIND = @OCAMLFIND@ -CFLAGS= @DEFS@ @CFLAGS@ -CPPFLAGS= @CPPFLAGS@ LDFLAGS= @LDFLAGS@ LIBS= @LIBS@ diff --git a/Makefile.in b/Makefile.in index 76ca53b..575e84b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -7,6 +7,17 @@ CMAS= util/util.cma ocamlrpm/ocamlrpm.cma ocamldeb/ocamldeb.cma \ packetology/packetology.cma CMXAS= $(CMAS:%.cma=%.cmxa) ARCHIVES= $(CMAS:%.cma=%.a) +DIRTS = \ + Makefile \ + Makefile.config \ + config.h \ + config.log \ + config.status \ + dql/Makefile \ + io/Makefile \ + ocamldeb/Makefile \ + META \ + $(NULL) OCAMLFIND = @OCAMLFIND@ ifeq ($(DESTDIR),) @@ -18,7 +29,7 @@ INSTALL = $(OCAMLFIND) install -destdir $(DESTDIR) UNINSTALL = $(OCAMLFIND) remove -destdir $(DESTDIR) endif -all: @BEST@ +all: depend @BEST@ bcl: @for i in $(DIRS); do \ @@ -41,6 +52,7 @@ clean: @for i in $(DIRS); do \ $(MAKE) -C $$i clean; \ done + rm -f $(DIRTS) depend: @for i in $(DIRS); do \ @@ -48,14 +60,20 @@ depend: $(MAKE) -C $$i depend; \ done -install: @BEST@ - -$(UNINSTALL) dose2 +ifneq ($(DESTDIR),) +DESTDIR_FLAGS = -destdir $(DESTDIR) +$(DESTDIR): + mkdir -p $(DESTDIR) +endif + +install: @BEST@ $(DESTDIR) + -@OCAMLFIND@ remove $(DESTDIR_FLAGS) dose2 ifeq (@OCAMLBEST@, byte) - $(INSTALL) -patch-archives -patch-version @VERSION@ dose2 META $(CMAS) + @OCAMLFIND@ install $(DESTDIR_FLAGS) -patch-archives -patch-version @VERSION@ dose2 META $(CMAS) else - $(INSTALL) -patch-version @VERSION@ dose2 META $(CMAS) $(CMXAS) $(ARCHIVES) + @OCAMLFIND@ install $(DESTDIR_FLAGS) -patch-version @VERSION@ dose2 META $(CMAS) $(CMXAS) $(ARCHIVES) endif install -d $(DESTDIR)/stublibs @for i in $(DIRS); do \ - $(MAKE) -C $$i cmi-install extra-install stub-install; \ + $(MAKE) -C $$i cmi-install extra-install INSTALLDIR=$(DESTDIR)/dose2; \ done diff --git a/ocamlpkgsrc/Makefile b/ocamlpkgsrc/Makefile index 8ab56ee..3ad614f 100644 --- a/ocamlpkgsrc/Makefile +++ b/ocamlpkgsrc/Makefile @@ -12,4 +12,4 @@ PACKAGES= pcre include ../Makefile.config include .depend -CFLAGS+= -I.. -fPIC +override CFLAGS+= -I.. -fPIC diff --git a/ocamlrpm/Makefile b/ocamlrpm/Makefile index 17bb4b9..a20dca3 100644 --- a/ocamlrpm/Makefile +++ b/ocamlrpm/Makefile @@ -12,4 +12,4 @@ PACKAGES= pcre include ../Makefile.config include .depend -CFLAGS+= -I.. -fPIC +override CFLAGS+= -I.. -fPIC -- 1.7.2.5 debian/patches/0001-RPM-4.9.0.patch0000644000000000000000000000613412251043053013317 0ustar From: Colin Watson Date: Sun, 20 May 2011 17:03:00 +0200 Subject: [PATCH] RPM 4.9.0 fdWritable no longer exists in RPM 4.9.0 Look for a symbol we actually use instead. --- configure | 24 ++++++++++++------------ configure.ac | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/configure b/configure index a8d8737..5262b6e 100755 --- a/configure +++ b/configure @@ -5315,9 +5315,9 @@ $as_echo "$as_me: error: Could not find popt library." >&2;} { (exit 1); exit 1; }; } fi -{ $as_echo "$as_me:$LINENO: checking for library containing fdWritable" >&5 -$as_echo_n "checking for library containing fdWritable... " >&6; } -if test "${ac_cv_search_fdWritable+set}" = set; then +{ $as_echo "$as_me:$LINENO: checking for library containing Fopen" >&5 +$as_echo_n "checking for library containing Fopen... " >&6; } +if test "${ac_cv_search_Fopen+set}" = set; then $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS @@ -5334,11 +5334,11 @@ cat >>conftest.$ac_ext <<_ACEOF #ifdef __cplusplus extern "C" #endif -char fdWritable (); +char Fopen (); int main () { -return fdWritable (); +return Fopen (); ; return 0; } @@ -5371,7 +5371,7 @@ $as_echo "$ac_try_echo") >&5 test "$cross_compiling" = yes || $as_test_x conftest$ac_exeext }; then - ac_cv_search_fdWritable=$ac_res + ac_cv_search_Fopen=$ac_res else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 @@ -5382,21 +5382,21 @@ fi rm -rf conftest.dSYM rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ conftest$ac_exeext - if test "${ac_cv_search_fdWritable+set}" = set; then + if test "${ac_cv_search_Fopen+set}" = set; then break fi done -if test "${ac_cv_search_fdWritable+set}" = set; then +if test "${ac_cv_search_Fopen+set}" = set; then : else - ac_cv_search_fdWritable=no + ac_cv_search_Fopen=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi -{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdWritable" >&5 -$as_echo "$ac_cv_search_fdWritable" >&6; } -ac_res=$ac_cv_search_fdWritable +{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_Fopen" >&5 +$as_echo "$ac_cv_search_Fopen" >&6; } +ac_res=$ac_cv_search_Fopen if test "$ac_res" != no; then test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" diff --git a/configure.ac b/configure.ac index 1dd7bd1..0d963d1 100644 --- a/configure.ac +++ b/configure.ac @@ -145,7 +145,7 @@ AC_CHECK_HEADERS([caml/alloc.h],,AC_MSG_ERROR(Could not find OCaml headers.)) AC_CHECK_HEADERS([caml/custom.h],,AC_MSG_ERROR(Could not find OCaml headers.)) AC_CHECK_MEMBER([struct rpmlead.major],[AC_DEFINE([HAVE_RPMLEAD],[1],[Define if rpmlead exists.])]) AC_SEARCH_LIBS([poptGetContext],[popt],,AC_MSG_ERROR(Could not find popt library.)) -AC_SEARCH_LIBS([fdWritable],[rpmio],,AC_MSG_ERROR(Could not find RPM library.)) +AC_SEARCH_LIBS([Fopen],[rpmio],,AC_MSG_ERROR(Could not find RPM library.)) AC_SEARCH_LIBS([rpmdbOpen],[rpmdb],,,[-lrpm],,AC_MSG_ERROR(Could not find RPM library.)) AC_SEARCH_LIBS([rpmVerifyFile],[rpm],,AC_MSG_ERROR(Could not find RPM library.)) -- debian/libdose2-ocaml-dev.docs0000644000000000000000000000002312251043053013376 0ustar README debian/html debian/compat0000644000000000000000000000000212251043053010357 0ustar 7