diff --git a/debian/autodeps.py b/debian/autodeps.py new file mode 100755 index 0000000..8819899 --- /dev/null +++ b/debian/autodeps.py @@ -0,0 +1,150 @@ +#!/usr/bin/python +# Update dependencies based on info.py +# Copyright (C) 2010 Jelmer Vernooij +# Licensed under the GNU GPL, version 2 or later. + +import ConfigParser +import optparse +import os +import sys + +parser = optparse.OptionParser( + "deps <--update-control|--minimum-library-version> [SOURCE-TREE-PATH]") +parser.add_option("--minimum-library-version", + help="Print argument for --minimum-library-version", action="store_true") +parser.add_option("--update-control", help="Update debian/control", action="store_true") + +(opts, args) = parser.parse_args() + +if len(args) != 1: + if os.path.exists("source4") or os.path.exists("pyldb.c"): + tree = os.getcwd() + else: + parser.print_usage() + sys.exit(1) +else: + tree = args[0] + + +def update_relation(line, pkg, kind, version): + """Update a relation in a control field. + + :param line: Depends-like dependency list + :param pkg: Package name + :param kind: Version requirement kind ("==", ">=", "<<", etc) + :param version: Required version + """ + found = False + for pr in line: + for e in pr: + if e["name"] == pkg and e["version"] and e["version"][0] == kind: + e["version"] = (kind, version) + found = True + if not found: + line.append([{"version": (kind, version), "name": pkg, "arch": None}]) + + +class LibraryEquivalents(object): + """Lookup table for equivalent library versions.""" + + def __init__(self, path): + self.config = ConfigParser.ConfigParser() + self.config.readfp(open(path)) + + def find_equivalent(self, package, version): + """Find an equivalent version for a specified package version. + + :param package: Package name + :param version: Package version as int-tuple. + :return: Equivalent version as int-tuple. + :raise KeyError: Raised if there was no equivalent version found + """ + try: + version = self.config.get(package, ".".join(str(x) for x in version)) + return tuple([int(x) for x in version.split(".")]) + except (ConfigParser.NoSectionError, ConfigParser.NoOptionError): + raise KeyError + + def find_oldest_compatible(self, package, version): + try: + return self.find_equivalent(package, version) + except KeyError: + return version + + +def find_version(path): + """Find a version in a waf file. + + :param path: waf script to read + :return: Version as int-tuple. + """ + v = open(path, 'r') + try: + for l in v.readlines(): + if l.startswith("VERSION = '"): + return tuple([int(x) for x in l.strip()[len("VERSION = '"):-1].split(".")]) + raise KeyError + finally: + v.close() + + +def update_control(): + """Update the debian control file. + """ + from debian.deb822 import Deb822, PkgRelation + f = open('debian/control', 'r') + iter = Deb822.iter_paragraphs(f) + source = iter.next() + + def update_deps(control, field, package, min_version): + bdi = PkgRelation.parse_relations(control[field]) + update_relation(bdi, package, ">=", "%d.%d.%d~" % min_version) + control[field] = PkgRelation.str(bdi) + + tdb_version = find_version(os.path.join(tree, "lib/tdb/wscript")) + talloc_version = find_version(os.path.join(tree, "lib/talloc/wscript")) + tevent_version = find_version(os.path.join(tree, "lib/tevent/wscript")) + + eq_config = LibraryEquivalents('debian/library-equivalents') + min_tdb_version = eq_config.find_oldest_compatible("tdb", tdb_version) + min_talloc_version = eq_config.find_oldest_compatible("talloc", talloc_version) + min_tevent_version = eq_config.find_oldest_compatible("tevent", tevent_version) + + update_deps(source, "Build-Depends", "libtdb-dev", min_tdb_version) + update_deps(source, "Build-Depends", "python-tdb", min_tdb_version) + update_deps(source, "Build-Depends", "libtalloc-dev", min_talloc_version) + update_deps(source, "Build-Depends", "python-talloc-dev", min_talloc_version) + update_deps(source, "Build-Depends", "libtevent-dev", min_tevent_version) + + o = open("debian/control", "w+") + source.dump(o) + + for binary in iter: + o.write("\n") + binary.dump(o) + + o.close() + + +def forced_minimum_library_versions(): + libraries = [ + ("tdb", "lib/tdb/wscript"), + ("talloc", "lib/talloc/wscript"), + ("tevent", "lib/tevent/wscript")] + eq_config = LibraryEquivalents('debian/library-equivalents') + for (name, path) in libraries: + version = find_version(os.path.join(tree, path)) + try: + min_version = eq_config.find_equivalent(name, version) + except KeyError: + continue + yield "%s:%s" % (name, ".".join([str(x) for x in min_version])) + + +if opts.minimum_library_version: + print ",".join(forced_minimum_library_versions()) +elif opts.update_control: + update_control() +else: + parser.print_usage() + sys.exit(1) diff --git a/debian/build-orig.sh b/debian/build-orig.sh new file mode 100755 index 0000000..5b3ed5d --- /dev/null +++ b/debian/build-orig.sh @@ -0,0 +1,24 @@ +#!/bin/bash -e + +version=$( dpkg-parsechangelog -l`dirname $0`/changelog | sed -n 's/^Version: \(.*:\|\)//p' | sed 's/-[0-9.]\+$//' ) +if echo $version | grep -v git >/dev/null; then + # Not a snapshot, use watch + exit 1 +fi + +if [ -z "$SAMBA_GIT_URL" ]; then + SAMBA_GIT_URL=git://git.samba.org/samba.git +fi + +LDBTMP=`mktemp -d` +if [ -d $SAMBA_GIT_URL/.bzr ]; then + bzr co --lightweight $SAMBA_GIT_URL $LDBTMP +else + git clone --depth 1 $SAMBA_GIT_URL $LDBTMP +fi +pushd $LDBTMP/lib/ldb +./configure +make dist +popd +mv $LDBTMP/lib/ldb/ldb-*.tar.gz ldb_$version.orig.tar.gz +rm -rf $LDBTMP diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ef55898 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ldb (2:2.0.8-ok1) yangtze; urgency=medium + + * Build for openKylin. + + -- openKylinBot Mon, 25 Apr 2022 22:03:04 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3a3c856 --- /dev/null +++ b/debian/control @@ -0,0 +1,127 @@ +Source: ldb +Section: devel +Priority: optional +Maintainer: Debian Samba Maintainers +Uploaders: Jelmer Vernooij , + Mathieu Parent +Build-Depends: dh-exec, + dh-python, + docbook-xml, + docbook-xsl, + libcmocka-dev (>= 1.1.1~), + libldap2-dev, + liblmdb-dev (>= 0.9.16), + libpopt-dev, + libtalloc-dev (>= 2.2.0~), + libtdb-dev (>= 1.4.2~), + libtevent-dev (>= 0.10.0~), + pkg-config, + python3, + python3-dbg, + python3-dev, + python3-talloc-dev (>= 2.2.0~), + python3-tdb (>= 1.4.2~), + xsltproc, + debhelper-compat (= 12) +Rules-Requires-Root: no +Homepage: https://ldb.samba.org/ +Standards-Version: 4.5.0 +Vcs-Browser: https://salsa.debian.org/samba-team/ldb +Vcs-Git: https://salsa.debian.org/samba-team/ldb.git + +Package: libldb2 +Multi-Arch: same +Pre-Depends: ${misc:Pre-Depends} +Architecture: any +Section: libs +Depends: ${misc:Depends}, + ${shlibs:Depends} +Replaces: libldb0 +Breaks: ldb-tools (<<1.1.30~), + libldb0, + libldb1 (<< 2:2~), + libsamdb0 (<< 4.0.0~alpha17~git20110724.dfsg1-0), + python-samba (<< 2:4.7.0~), + samba (<<2:4.7.0~), + samba-dsdb-modules (<< 2:4.7.0~), + samba-libs (<< 2:4.7.0~), + samba-testsuite (<< 2:4.7.0~) +Description: LDAP-like embedded database - shared library + ldb is a LDAP-like embedded database built on top of TDB. + . + It provides a fast database with an LDAP-like API designed + to be used within an application. In some ways it can be seen as a + intermediate solution between key-value pair databases and a real LDAP + database. + . + This package contains the shared library file. + +Package: ldb-tools +Section: utils +Architecture: any +Depends: ${misc:Depends}, + ${shlibs:Depends} +Description: LDAP-like embedded database - tools + ldb is a LDAP-like embedded database built on top of TDB. + . + What ldb does is provide a fast database with an LDAP-like API designed + to be used within an application. In some ways it can be seen as a + intermediate solution between key-value pair databases and a real LDAP + database. + . + This package contains bundled test and utility binaries + +Package: libldb-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libc6-dev, + libldb2 (= ${binary:Version}), + libtalloc-dev, + libtevent-dev, + libtdb-dev, + pkg-config, + ${misc:Depends} +Description: LDAP-like embedded database - development files + ldb is a LDAP-like embedded database built on top of TDB. + . + What ldb does is provide a fast database with an LDAP-like API designed + to be used within an application. In some ways it can be seen as a + intermediate solution between key-value pair databases and a real LDAP + database. + . + This package contains the development files. + +Package: python3-ldb +Pre-Depends: ${misc:Pre-Depends} +Section: python +Architecture: any +Depends: libldb2 (= ${binary:Version}), + ${misc:Depends}, + ${python3:Depends}, + ${shlibs:Depends} +Provides: ${python:Provides} +Breaks: ${python:Breaks} +Description: Python 3 bindings for LDB + ldb is a LDAP-like embedded database built on top of TDB. + . + This package contains the Python 3 bindings. + +Package: python3-ldb-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libc6-dev, + libldb-dev, + pkg-config, + python3-ldb (= ${binary:Version}), + ${misc:Depends} +Description: LDB Python 3 bindings - development files + ldb is a LDAP-like embedded database built on top of TDB. + . + It is a fast database with an LDAP-like API designed + to be used within an application. In some ways it can be seen as a + intermediate solution between key-value pair databases and a real LDAP + database. + . + This package contains the development files for the Python 3 bindings. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0bd99f1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,555 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ldb +Upstream-Contact: Samba Developers +Source: http://ldb.samba.org/ + +Files: * +Copyright: + 2004-2010 Andrew Tridgell + 2004-2010 Simo Sorce + 2005-2010 Andrew Bartlett + 2005,2006 Tim Potter + 2007-2010 Jelmer Vernooij + 2009-2010 Matthias Dieter Wallnöfer + 2005-2006 Brad Hards + 2006 Martin Kuehl + 2004 Stefan Metzmacher + 2004-2005 Derrell Lipman +License: LGPL-3.0+ + +Files: debian/* +Copyright: 2007-2010 Jelmer Vernooij +License: LGPL-3.0+ + +Files: common/qsort.c +Copyright: 1991,1992,1996,1997,1999,2004 Free Software Foundation, Inc. +License: LGPL-3.0+ + +Files: tools/* +Copyright: + 2004-2010 Andrew Tridgell + 2004 Stefan Metzmacher + 2009 Matthieu Patou +License: GPL-3.0+ + +Files: lib/replace/*.c +Comment: This file is not used when building the Debian package. +Copyright: + Copyright (c) Andrew Tridgell 1994-2006 + Copyright (c) Jeremy Allison 2000-2003,2007 + Copyright (c) Michael Adam 2008 + Copyright (c) Patrick Powell 1995 + Copyright (c) Free Software Foundation, Inc. 1991-2001 + Copyright (c) Jelmer Vernooij 2006-2009 + Copyright (c) Andreas Schneider 2009-2015 + Copyright (c) Volker Lendecke 2011-2016 + Copyright (c) Internet Software Consortium 1996-2001 + Copyright (c) Aris Adamantiadis 2003-2009 + Copyright (c) Aleksandar Kanchev 2009 + Copyright (c) Matthieu Patou 2010 +License: LGPL-3.0+ + +Files: lib/replace/getaddrinfo.* +Comment: This file is not used when building the Debian package. +Copyright: + Copyright (c) PostgreSQL Global Development Group 1996-2007 + Copyright (c) The Regents of the University of California 1994 +License: PostgreSQL + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose, without fee, and without a written agreement + is hereby granted, provided that the above copyright notice and this paragraph + and the following two paragraphs appear in all copies. + . + IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR + DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING + LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, + EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + . + THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS + ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS + TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + +Files: lib/replace/inet_ntop.c lib/replace/inet_pton.c +Comment: This file is not used when building the Debian package. +Copyright: Internet Software Consortium. 1996-2001 +License: ISC + +Files: lib/replace/snprintf.c +Comment: This file is not used when building the Debian package. +Copyright: + Copyright (c) Patrick Powell 1995 + Copyright (c) Brandon Long 1997 + Copyright (c) Thomas Roessler 1998 + Copyright (c) Michael Elkins 1998 + Copyright (c) Andrew Tridgell (tridge@samba.org) 1998-2001 + Copyright (c) Martin Pool 2003 + Copyright (c) Darren Tucker (dtucker@zip.com.au) 2005 + Copyright (c) Simo Sorce (idra@samba.org) 2006 +License: BSD-3 + +Files: lib/replace/strptime.c +Comment: This file is not used when building the Debian package. +Copyright: + Copyright (c) Ulrich Drepper , 1996 +License: LGPL-3.0+ + +Files: lib/replace/timegm.c +Comment: This file is not used when building the Debian package. +Copyright: + Copyright (c) Kungliga Tekniska Högskolan 1997 +License: BSD-3 + +Files: lib/replace/xattr.c +Comment: This file is not used when building the Debian package. +Copyright: + Copyright (c) Jeremy Allison 1998-2005 + Copyright (C) Timur Bakeyev 2005 + Copyright (C) Bjoern Jacke 2006-2007 + Copyright (C) Herb Lewis 2003 + Copyright (C) Andrew Bartlett 2012 +License: LGPL-3.0+ + +Files: lib/talloc/* +Copyright: + 2004-2010 Andrew Tridgell + 2008-2011 Jelmer Vernooij + 2006-2009 Stefan Metzmacher + 2015 Petr Viktorin +License: LGPL-3.0+ + +Files: lib/talloc/pytalloc* +Copyright: + Copyright (C) Jelmer Vernooij 2008-2011 + Copyright (C) Andrew Bartlett 2016 +License: GPL-3.0+ + +Files: lib/tdb/* +Copyright: + 2000-2010 Rusty Russell + 1999-2010 Andrew Tridgell + 2000-2006 Jeremy Allison + 2010 Volker Lendecke + 2005 Simon McVittie + 2001 Andrew Esh + 2004-2006 Tim Potter + 2007-2008 Jelmer Vernooij +License: LGPL-3.0+ + +Files: lib/tevent/* +Copyright: + 2008 Volker Lendecke + 2005-2010 Stefan Metzmacher + 2003-2010 Andrew Tridgell + 2010 Jelmer Vernooij +License: LGPL-3.0+ + +Files: + buildtools/bin/waf + buildtools/wafsamba/stale_files.py + third_party/waf/* +Comment: See https://gitlab.com/ita1024/waf/blob/master/waf-light#L6 +Copyright: + Copyright Scott Newton, 2005 (scottn) + Copyright Thomas Nagy, 2005-2018 (ita) +License: BSD-3 + +Files: + third_party/waf/waflib/extras/bjam.py + third_party/waf/waflib/extras/proc.py + third_party/waf/waflib/extras/softlink_libs.py +Copyright: + Copyright rosengren 2011 +License: BSD-3 + +Files: third_party/waf/waflib/extras/blender.py +Copyright: + Copyright Michal Proszek, 2014 (poxip) +License: BSD-3 + +Files: third_party/waf/waflib/extras/boo.py +Copyright: + Copyright Yannick LM 2011 +License: BSD-3 + +Files: third_party/waf/waflib/extras/boost.py +Copyright: + Copyright Gernot Vormayr + Copyright Ruediger Sonderfeld , 2008 + Copyright Bjoern Michaelsen, 2008 + Copyright Luca Fossati, 2008 + Copyright Thomas Nagy, 2008 + Copyright Sylvain Rouquette, 2011 +License: BSD-3 + +Files: third_party/waf/waflib/extras/buildcopy.py +Copyright: + Copyright Calle Rosenquist, 2017 (xbreak) +License: BSD-3 + +Files: third_party/waf/waflib/extras/cabal.py +Copyright: + Copyright Anton Feldmann, 2012 +License: BSD-3 + +Files: + third_party/waf/waflib/extras/c_bgxlc.py + third_party/waf/waflib/extras/c_nec.py + third_party/waf/waflib/extras/fc_bgxlf.py + third_party/waf/waflib/extras/fc_cray.py + third_party/waf/waflib/extras/fc_nag.py + third_party/waf/waflib/extras/fc_nec.py + third_party/waf/waflib/extras/fc_open64.py + third_party/waf/waflib/extras/fc_open64.py + third_party/waf/waflib/extras/fc_solstudio.py + third_party/waf/waflib/extras/fc_xlf.py +Copyright: + Copyright harald at klimachs.de +License: BSD-3 + +Files: third_party/waf/waflib/extras/clang_compilation_database.py +Copyright: + Copyright Christoph Koke, 2013 +License: BSD-3 + +Files: third_party/waf/waflib/extras/codelite.py +Copyright: + Copyright Christian Klein (chrikle@berlios.de) +License: BSD-3 + +Files: + third_party/waf/waflib/extras/color_gcc.py + third_party/waf/waflib/extras/color_rvct.py + third_party/waf/waflib/extras/cross_gnu.py + third_party/waf/waflib/extras/dcc.py + third_party/waf/waflib/extras/halide.py + third_party/waf/waflib/extras/qnxnto.py + third_party/waf/waflib/extras/remote.py + third_party/waf/waflib/extras/rst.py + third_party/waf/waflib/extras/ticgt.py +Copyright: + Copyright Jérôme Carretero, 2011-2014 +License: BSD-3 + +Files: third_party/waf/waflib/extras/cppcheck.py +Copyright: + Copyright Michel Mooij, michel.mooij7@gmail.com +License: BSD-3 + +Files: + third_party/waf/waflib/extras/cpplint.py + third_party/waf/waflib/extras/freeimage.py + third_party/waf/waflib/extras/pep8.py +Copyright: + Copyright Sylvain Rouquette, 2011-2014 +License: BSD-3 + +Files: third_party/waf/waflib/extras/dpapi.py +Copyright: + Copyright Matt Clarkson, 2012 +License: BSD-3 + +Files: third_party/waf/waflib/extras/eclipse.py +Copyright: + Copyright Richard Quirk 2009-1011 +License: BSD-3 + +Files: third_party/waf/waflib/extras/erlang.py +Copyright: + Copyright Thomas Nagy, 2010 (ita) + Copyright Przemyslaw Rzepecki, 2016 +License: BSD-3 + +Files: third_party/waf/waflib/extras/fluid.py third_party/waf/waflib/extras/objcopy.py +Copyright: + Copyright Grygoriy Fuchedzhy 2009-2010 +License: BSD-3 + +Files: third_party/waf/waflib/extras/gdbus.py third_party/waf/waflib/extras/msvcdeps.py +Copyright: + Copyright Copyright Garmin International or its subsidiaries, 2012-2018 +License: BSD-3 + +Files: + third_party/waf/waflib/extras/gob2.py + third_party/waf/waflib/Tools/dbus.py + third_party/waf/waflib/Tools/gnu_dirs.py +Copyright: + Copyright Ali Sabil, 2007 +License: BSD-3 + +Files: third_party/waf/waflib/extras/javatest.py third_party/waf/waflib/extras/pyqt5.py +Copyright: + Copyright Federico Pellegrin, 2016-2018 (fedepell) +License: BSD-3 + +Files: third_party/waf/waflib/extras/midl.py +Copyright: + Copyright ultrix gmail com +License: BSD-3 + +Files: third_party/waf/waflib/extras/msvs.py +Copyright: + Copyright Avalanche Studios 2009-2011 + Copyright Thomas Nagy 2011 +License: BSD-3 + +Files: third_party/waf/waflib/extras/pch.py +Copyright: + Copyright Alexander Afanasyev (UCLA), 2014 +License: BSD-3 + +Files: third_party/waf/waflib/extras/pgicc.py third_party/waf/waflib/extras/pgicxx.py +Copyright: + Copyright Antoine Dechaume 2011 +License: BSD-3 + +Files: third_party/waf/waflib/extras/protoc.py +Copyright: + Copyright Philipp Bender, 2012 + Copyright Matt Clarkson, 2012 +License: BSD-3 + +Files: third_party/waf/waflib/extras/pytest.py +Copyright: + Copyright Calle Rosenquist, 2016-2018 (xbreak) +License: BSD-3 + +Files: third_party/waf/waflib/extras/review.py +Copyright: + Copyright Laurent Birtz, 2011 +License: BSD-3 + +Files: + third_party/waf/waflib/extras/run_do_script.py + third_party/waf/waflib/extras/run_m_script.py + third_party/waf/waflib/extras/run_py_script.py + third_party/waf/waflib/extras/run_r_script.py +Copyright: + Copyright Hans-Martin von Gaudecker, 2012 +License: BSD-3 + +Files: third_party/waf/waflib/extras/sas.py +Copyright: + Copyright Mark Coggeshall, 2010 +License: BSD-3 + +Files: third_party/waf/waflib/extras/swig.py +Copyright: + Copyright Petar Forai + Copyright Thomas Nagy 2008-2010 (ita) +License: BSD-3 + +Files: third_party/waf/waflib/extras/use_config.py +Copyright: + Copyright Mathieu Courtois - EDF R&D, 2013 - http://www.code-aster.org +License: BSD-3 + +Files: third_party/waf/waflib/extras/valadoc.py +Copyright: + Copyright Nicolas Joseph 2009 +License: BSD-3 + +Files: third_party/waf/waflib/extras/xcode6.py +Copyright: + Copyright Nicolas Mercier 2011 + Copyright Simon Warg 2015, https://github.com/mimom +License: BSD-3 + +Files: third_party/waf/waflib/Tools/ar.py +Copyright: + Copyright Thomas Nagy, 2006-2018 (ita) + Copyright Ralf Habacker, 2006 (rh) +License: BSD-3 + +Files: third_party/waf/waflib/Tools/bison.py +Copyright: + Copyright John O'Meara, 2006 + Copyright Thomas Nagy 2009-2018 (ita) +License: BSD-3 + +Files: third_party/waf/waflib/Tools/clang.py +Copyright: + Copyright Krzysztof Kosiński 2014 +License: BSD-3 + +Files: third_party/waf/waflib/Tools/compiler_c.py third_party/waf/waflib/Tools/compiler_cxx.py +Copyright: + Copyright Matthias Jahn jahn dôt matthias ât freenet dôt de, 2007 (pmarat) +License: BSD-3 + +Files: + third_party/waf/waflib/Tools/compiler_d.py + third_party/waf/waflib/Tools/dmd.py + third_party/waf/waflib/Tools/d.py + third_party/waf/waflib/Tools/gdc.py + third_party/waf/waflib/Tools/waf_unit_test.py +Copyright: + Copyright Carlos Rafael Giani, 2006-2007 (dv) + Copyright Thomas Nagy, 2008-2018 (ita) +License: BSD-3 + +Files: third_party/waf/waflib/Tools/flex.py +Copyright: + Copyright John O'Meara, 2006 + Thomas Nagy, 2006-2018 (ita) +License: BSD-3 + +Files: third_party/waf/waflib/Tools/g95.py +Copyright: + Copyright KWS 2010 + Copyright Thomas Nagy 2016-2018 (ita) +License: BSD-3 + +Files: third_party/waf/waflib/Tools/gcc.py third_party/waf/waflib/Tools/gxx.py +Copyright: + Copyright Thomas Nagy, 2006-2018 (ita) + Copyright Ralf Habacker, 2006 (rh) + Copyright Yinon Ehrlich, 2009 +License: BSD-3 + +Files: third_party/waf/waflib/Tools/icc.py +Copyright: + Copyright Stian Selnes 2008 + Copyright Thomas Nagy 2009-2018 (ita) +License: BSD-3 + +Files: third_party/waf/waflib/Tools/ldc2.py +Copyright: + Copyright Alex Rønne Petersen, 2012 (alexrp/Zor) +License: BSD-3 + +Files: third_party/waf/waflib/Tools/lua.py +Copyright: + Copyright Sebastian Schlingmann, 2008 + Copyright Thomas Nagy, 2008-2018 (ita) +License: BSD-3 + +Files: third_party/waf/waflib/Tools/msvc.py +Copyright: + Copyright Carlos Rafael Giani, 2006 (dv) + Copyright Tamas Pal, 2007 (folti) + Copyright Nicolas Mercier, 2009 + Copyright Matt Clarkson, 2012 +License: BSD-3 + +Files: third_party/waf/waflib/Tools/perl.py +Copyright: + Copyright andersg at 0x63.nu 2007 + Copyright Thomas Nagy 2016-2018 (ita) +License: BSD-3 + +Files: third_party/waf/waflib/Tools/python.py +Copyright: + Copyright Thomas Nagy, 2007-2015 (ita) + Copyright Gustavo Carneiro (gjc), 2007 +License: BSD-3 + +Files: third_party/waf/waflib/Tools/ruby.py +Copyright: + Copyright daniel.svensson at purplescout.se 2008 + Copyright Thomas Nagy 2016-2018 (ita) +License: BSD-3 + +Files: third_party/waf/waflib/Tools/suncc.py third_party/waf/waflib/Tools/suncxx.py +Copyright: + Copyright Thomas Nagy, 2006-2018 (ita) + Copyright Ralf Habacker, 2006 (rh) +License: BSD-3 + +Files: third_party/waf/waflib/Tools/vala.py +Copyright: + Copyright Ali Sabil, 2007 + Copyright Radosław Szkodziński, 2010 +License: BSD-3 + +Files: third_party/waf/waflib/Tools/winres.py +Copyright: + Copyright Brant Young, 2007 +License: BSD-3 + +Files: third_party/waf/waflib/Tools/xlc.py third_party/waf/waflib/Tools/xlcxx.py +Copyright: + Copyright Thomas Nagy, 2006-2018 (ita) + Copyright Ralf Habacker, 2006 (rh) + Copyright Yinon Ehrlich, 2009 + Copyright Michael Kuhn, 2009 +License: BSD-3 + +License: ISC + Permission to use, copy, modify, and distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + . + THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM + DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL + INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING + FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, + NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION + WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +License: BSD-3 + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + 3. Neither the name of the Institute nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +License: LGPL-3.0+ + This package 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. + . + This package 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 program. If not, see . + . + On Debian systems, the complete text of the GNU Lesser General + Public License can be found in "/usr/share/common-licenses/LGPL-3". + +License: GPL-3.0+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This package 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 General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..0a3b09a --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,3 @@ +[DEFAULT] +sign-tags = True +pristine-tar = True diff --git a/debian/ldb-tools.install b/debian/ldb-tools.install new file mode 100644 index 0000000..ba147a5 --- /dev/null +++ b/debian/ldb-tools.install @@ -0,0 +1,3 @@ +usr/bin/ldb* +usr/lib/*/ldb/libldb-cmdline.so +usr/share/man/man1/* diff --git a/debian/libldb-dev.examples b/debian/libldb-dev.examples new file mode 100644 index 0000000..bebdeb2 --- /dev/null +++ b/debian/libldb-dev.examples @@ -0,0 +1,2 @@ +examples/ldbreader.c +examples/ldifreader.c diff --git a/debian/libldb-dev.install b/debian/libldb-dev.install new file mode 100644 index 0000000..e0c349f --- /dev/null +++ b/debian/libldb-dev.install @@ -0,0 +1,5 @@ +usr/include/ldb*.h +usr/lib/*/libldb.a +usr/lib/*/libldb.so +usr/lib/*/pkgconfig/ldb.pc +usr/share/man/man3/* diff --git a/debian/libldb2.install b/debian/libldb2.install new file mode 100755 index 0000000..fbb530e --- /dev/null +++ b/debian/libldb2.install @@ -0,0 +1,9 @@ +#!/bin/sh +echo 'usr/lib/*/ldb/modules' +echo 'usr/lib/*/libldb.so.*' +if [ "$DEB_HOST_ARCH_BITS" != 32 ]; then + echo 'usr/lib/*/ldb/libldb-mdb-int.so' +fi +echo 'usr/lib/*/ldb/libldb-key-value.so' +echo 'usr/lib/*/ldb/libldb-tdb-err-map.so' +echo 'usr/lib/*/ldb/libldb-tdb-int.so' diff --git a/debian/libldb2.symbols b/debian/libldb2.symbols new file mode 100644 index 0000000..bcecf30 --- /dev/null +++ b/debian/libldb2.symbols @@ -0,0 +1,358 @@ +libldb.so.2 #PACKAGE# #MINVER# +* Build-Depends-Package: libldb-dev + LDB_0.9.10@LDB_0.9.10 0.9.21 + LDB_0.9.12@LDB_0.9.12 0.9.21 + LDB_0.9.15@LDB_0.9.15 0.9.21 + LDB_0.9.16@LDB_0.9.16 0.9.21 + LDB_0.9.17@LDB_0.9.17 0.9.21 + LDB_0.9.18@LDB_0.9.18 0.9.21 + LDB_0.9.19@LDB_0.9.19 0.9.21 + LDB_0.9.20@LDB_0.9.20 0.9.21 + LDB_0.9.22@LDB_0.9.22 0.9.22 + LDB_0.9.23@LDB_0.9.23 0.9.23 + LDB_0.9.24@LDB_0.9.24 0.9.24 + LDB_1.0.0@LDB_1.0.0 1.0.2~ + LDB_1.0.1@LDB_1.0.1 1.0.1~ + LDB_1.0.2@LDB_1.0.2 1.0.2~ + LDB_1.1.0@LDB_1.1.0 1.1.0 + LDB_1.1.1@LDB_1.1.1 1.1.1~ + LDB_1.1.2@LDB_1.1.2 1.1.2~ + LDB_1.1.3@LDB_1.1.3 1.1.3 + LDB_1.1.4@LDB_1.1.4 1.1.4 + LDB_1.1.5@LDB_1.1.5 1.1.5 + LDB_1.1.6@LDB_1.1.6 1.1.6 + LDB_1.1.7@LDB_1.1.7 1.1.12 + LDB_1.1.8@LDB_1.1.8 1.1.12 + LDB_1.1.9@LDB_1.1.9 1.1.12 + LDB_1.1.10@LDB_1.1.10 1.1.12 + LDB_1.1.11@LDB_1.1.11 1.1.12 + LDB_1.1.12@LDB_1.1.12 1.1.12 + LDB_1.1.13@LDB_1.1.13 1.1.13 + LDB_1.1.14@LDB_1.1.14 1:1.1.15 + LDB_1.1.15@LDB_1.1.15 1:1.1.15 + LDB_1.1.16@LDB_1.1.16 1:1.1.16 + LDB_1.1.17@LDB_1.1.17 1:1.1.17 + LDB_1.1.18@LDB_1.1.18 1:1.1.18 + LDB_1.1.19@LDB_1.1.19 1:1.1.19 + LDB_1.1.20@LDB_1.1.20 1:1.1.20 + LDB_1.1.21@LDB_1.1.21 2:1.1.21 + LDB_1.1.22@LDB_1.1.22 2:1.1.22 + LDB_1.1.23@LDB_1.1.23 2:1.1.23 + LDB_1.1.24@LDB_1.1.24 2:1.1.24 + LDB_1.1.25@LDB_1.1.25 2:1.1.25 + LDB_1.1.26@LDB_1.1.26 2:1.1.26 + LDB_1.1.27@LDB_1.1.27 2:1.1.27 + LDB_1.1.28@LDB_1.1.28 2:1.1.29 + LDB_1.1.29@LDB_1.1.29 2:1.1.29 + LDB_1.1.30@LDB_1.1.30 2:1.1.30 + LDB_1.1.31@LDB_1.1.31 2:1.1.31 + LDB_1.2.0@LDB_1.2.0 2:1.2.0 + LDB_1.2.1@LDB_1.2.1 2:1.2.1 + LDB_1.2.2@LDB_1.2.2 2:1.2.2 + LDB_1.2.3@LDB_1.2.3 2:1.2.3 + LDB_1.3.0@LDB_1.3.0 2:1.3.0 + LDB_1.3.1@LDB_1.3.1 2:1.3.1 + LDB_1.3.2@LDB_1.3.2 2:1.3.2 + LDB_1.4.0@LDB_1.4.0 2:1.4.0 + LDB_1.4.1@LDB_1.4.1 2:1.4.1 + LDB_1.5.0@LDB_1.5.0 2:1.5.0 + LDB_1.5.1@LDB_1.5.1 2:1.5.1 + LDB_1.5.2@LDB_1.5.2 2:1.5.2 + LDB_1.5.3@LDB_1.5.3 2:1.5.3 + LDB_1.6.0@LDB_1.6.0 2:1.6.0 + LDB_1.6.1@LDB_1.6.1 2:1.6.1 + LDB_1.6.2@LDB_1.6.2 2:1.6.2 + LDB_1.6.3@LDB_1.6.3 2:1.6.3 + LDB_2.0.0@LDB_2.0.0 2:2.0.0 + LDB_2.0.1@LDB_2.0.1 2:2.0.1 + LDB_2.0.2@LDB_2.0.2 2:2.0.2 + LDB_2.0.3@LDB_2.0.3 2:2.0.3 + LDB_2.0.4@LDB_2.0.4 2:2.0.4 + LDB_2.0.5@LDB_2.0.5 2:2.0.5 + LDB_2.0.6@LDB_2.0.6 2:2.0.6 + LDB_2.0.7@LDB_2.0.7 2:2.0.7 + LDB_2.0.8@LDB_2.0.8 2:2.0.8 + ldb_check_critical_controls@LDB_0.9.22 0.9.22 + ldb_controls_except_specified@LDB_0.9.22 0.9.22 + ldb_control_to_string@LDB_1.0.2 1.0.2~git20110403 + ldb_add@LDB_0.9.10 0.9.21 + ldb_any_comparison@LDB_0.9.10 0.9.21 + ldb_asprintf_errstring@LDB_0.9.10 0.9.21 + ldb_attr_casefold@LDB_0.9.10 0.9.21 + ldb_attr_dn@LDB_0.9.10 0.9.21 + ldb_attr_in_list@LDB_0.9.10 0.9.21 + ldb_attr_list_copy@LDB_0.9.10 0.9.21 + ldb_attr_list_copy_add@LDB_0.9.10 0.9.21 + ldb_base64_decode@LDB_0.9.10 0.9.21 + ldb_base64_encode@LDB_0.9.10 0.9.21 + ldb_binary_decode@LDB_0.9.10 0.9.21 + ldb_binary_encode@LDB_0.9.10 0.9.21 + ldb_binary_encode_string@LDB_0.9.10 0.9.21 + ldb_build_add_req@LDB_0.9.10 0.9.21 + ldb_build_del_req@LDB_0.9.10 0.9.21 + ldb_build_extended_req@LDB_0.9.10 0.9.21 + ldb_build_mod_req@LDB_0.9.10 0.9.21 + ldb_build_rename_req@LDB_0.9.10 0.9.21 + ldb_build_search_req@LDB_0.9.10 0.9.21 + ldb_build_search_req_ex@LDB_0.9.10 0.9.21 + ldb_casefold@LDB_0.9.10 0.9.21 + ldb_casefold_default@LDB_0.9.10 0.9.21 + ldb_comparison_binary@LDB_0.9.10 0.9.21 + ldb_comparison_fold@LDB_0.9.10 0.9.21 + ldb_connect@LDB_0.9.10 0.9.21 + ldb_control_to_string@LDB_1.0.2 1.0.2 + ldb_debug@LDB_0.9.10 0.9.21 + ldb_debug_add@LDB_0.9.10 0.9.21 + ldb_debug_end@LDB_0.9.10 0.9.21 + ldb_debug_set@LDB_0.9.10 0.9.21 + ldb_delete@LDB_0.9.10 0.9.21 + ldb_dn_add_base@LDB_0.9.10 0.9.21 + ldb_dn_add_base_fmt@LDB_0.9.10 0.9.21 + ldb_dn_add_child@LDB_0.9.10 0.9.21 + ldb_dn_add_child_fmt@LDB_0.9.10 0.9.21 + ldb_dn_add_child_val@LDB_1.5.1 2:1.5.4 + ldb_dn_alloc_casefold@LDB_0.9.10 0.9.21 + ldb_dn_alloc_linearized@LDB_0.9.10 0.9.21 + ldb_dn_canonical_ex_string@LDB_0.9.10 0.9.21 + ldb_dn_canonical_string@LDB_0.9.10 0.9.21 + ldb_dn_check_local@LDB_0.9.10 0.9.21 + ldb_dn_check_special@LDB_0.9.10 0.9.21 + ldb_dn_compare@LDB_0.9.10 0.9.21 + ldb_dn_compare_base@LDB_0.9.10 0.9.21 + ldb_dn_copy@LDB_0.9.10 0.9.21 + ldb_dn_escape_value@LDB_0.9.10 0.9.21 + ldb_dn_extended_add_syntax@LDB_0.9.10 0.9.21 + ldb_dn_extended_filter@LDB_0.9.10 0.9.21 + ldb_dn_extended_syntax_by_name@LDB_0.9.10 0.9.21 + ldb_dn_from_ldb_val@LDB_0.9.10 0.9.21 + ldb_dn_get_casefold@LDB_0.9.10 0.9.21 + ldb_dn_get_comp_num@LDB_0.9.10 0.9.21 + ldb_dn_get_component_name@LDB_0.9.10 0.9.21 + ldb_dn_get_component_val@LDB_0.9.10 0.9.21 + ldb_dn_get_extended_comp_num@LDB_0.9.23 0.9.23 + ldb_dn_get_extended_component@LDB_0.9.10 0.9.21 + ldb_dn_get_extended_linearized@LDB_0.9.10 0.9.21 + ldb_dn_get_ldb_context@LDB_1.1.22 2:1.1.23 + ldb_dn_get_linearized@LDB_0.9.10 0.9.21 + ldb_dn_get_parent@LDB_0.9.10 0.9.21 + ldb_dn_get_rdn_name@LDB_0.9.10 0.9.21 + ldb_dn_get_rdn_val@LDB_0.9.10 0.9.21 + ldb_dn_has_extended@LDB_0.9.10 0.9.21 + ldb_dn_is_null@LDB_0.9.10 0.9.21 + ldb_dn_is_special@LDB_0.9.10 0.9.21 + ldb_dn_is_valid@LDB_0.9.10 0.9.21 + ldb_dn_map_local@LDB_0.9.10 0.9.21 + ldb_dn_map_rebase_remote@LDB_0.9.10 0.9.21 + ldb_dn_map_remote@LDB_0.9.10 0.9.21 + ldb_dn_minimise@LDB_0.9.23 0.9.23 + ldb_dn_new@LDB_0.9.10 0.9.21 + ldb_dn_new_fmt@LDB_0.9.10 0.9.21 + ldb_dn_remove_base_components@LDB_0.9.10 0.9.21 + ldb_dn_remove_child_components@LDB_0.9.10 0.9.21 + ldb_dn_remove_extended_components@LDB_0.9.10 0.9.21 + ldb_dn_replace_components@LDB_1.1.2 1.1.2~ + ldb_dn_set_component@LDB_0.9.10 0.9.21 + ldb_dn_set_extended_component@LDB_0.9.10 0.9.21 + ldb_dn_update_components@LDB_0.9.10 0.9.21 + ldb_dn_validate@LDB_0.9.10 0.9.21 + ldb_dump_results@LDB_0.9.10 0.9.21 + ldb_error_at@LDB_0.9.15 0.9.21 + ldb_errstring@LDB_0.9.10 0.9.21 + ldb_extended@LDB_0.9.10 0.9.21 + ldb_extended_default_callback@LDB_0.9.10 0.9.21 + ldb_filter_attrs@LDB_2.0.1 2:2.0.1 + ldb_filter_from_tree@LDB_0.9.10 0.9.21 + ldb_get_config_basedn@LDB_0.9.10 0.9.21 + ldb_get_create_perms@LDB_0.9.10 0.9.21 + ldb_get_default_basedn@LDB_0.9.10 0.9.21 + ldb_get_event_context@LDB_0.9.10 0.9.21 + ldb_get_flags@LDB_0.9.10 0.9.21 + ldb_get_opaque@LDB_0.9.10 0.9.21 + ldb_get_root_basedn@LDB_0.9.10 0.9.21 + ldb_get_schema_basedn@LDB_0.9.10 0.9.21 + ldb_global_init@LDB_0.9.10 0.9.21 + ldb_handle_get_event_context@LDB_1.1.30 2:1.2.2 + ldb_handle_new@LDB_0.9.10 0.9.21 + ldb_handle_use_global_event_context@LDB_1.1.30 2:1.2.2 + ldb_handler_copy@LDB_0.9.10 0.9.21 + ldb_handler_fold@LDB_0.9.10 0.9.21 + ldb_init@LDB_0.9.10 0.9.21 + ldb_ldif_message_redacted_string@LDB_1.2.2 2:1.2.2 + ldb_ldif_message_string@LDB_0.9.10 0.9.21 + ldb_ldif_parse_modrdn@LDB_1.1.0 1.1.0 + ldb_ldif_read@LDB_0.9.10 0.9.21 + ldb_ldif_read_file@LDB_0.9.10 0.9.21 + ldb_ldif_read_file_state@LDB_1.1.5 1.1.5 + ldb_ldif_read_free@LDB_0.9.10 0.9.21 + ldb_ldif_read_string@LDB_0.9.10 0.9.21 + ldb_ldif_write@LDB_0.9.10 0.9.21 + ldb_ldif_write_file@LDB_0.9.10 0.9.21 + ldb_ldif_write_redacted_trace_string@LDB_1.1.12 1.1.12 + ldb_ldif_write_string@LDB_0.9.10 0.9.21 + ldb_load_modules@LDB_0.9.10 0.9.21 + ldb_map_add@LDB_0.9.22 0.9.22 + ldb_map_delete@LDB_0.9.22 0.9.22 + ldb_map_init@LDB_0.9.10 0.9.21 + ldb_map_modify@LDB_0.9.22 0.9.22 + ldb_map_rename@LDB_0.9.22 0.9.22 + ldb_map_search@LDB_0.9.22 0.9.22 + ldb_match_message@LDB_1.3.0 2:1.3.0 + ldb_match_msg@LDB_0.9.10 0.9.21 + ldb_match_msg_error@LDB_0.9.15 0.9.21 + ldb_match_msg_objectclass@LDB_0.9.10 0.9.21 + ldb_mod_register_control@LDB_0.9.10 0.9.21 + ldb_modify@LDB_0.9.10 0.9.21 + ldb_modify_default_callback@LDB_0.9.12 0.9.21 + ldb_module_call_chain@LDB_0.9.19 0.9.21 + ldb_module_connect_backend@LDB_0.9.19 0.9.21 + ldb_module_done@LDB_0.9.10 0.9.21 + ldb_module_flags@LDB_0.9.19 0.9.21 + ldb_module_get_ctx@LDB_0.9.10 0.9.21 + ldb_module_get_name@LDB_0.9.10 0.9.21 + ldb_module_get_ops@LDB_0.9.10 0.9.21 + ldb_module_get_private@LDB_0.9.10 0.9.21 + ldb_module_init_chain@LDB_0.9.19 0.9.21 + ldb_module_load_list@LDB_0.9.19 0.9.21 + ldb_module_new@LDB_0.9.10 0.9.21 + ldb_module_next@LDB_0.9.19 0.9.21 + ldb_module_popt_options@LDB_0.9.19 0.9.21 + ldb_module_send_entry@LDB_0.9.10 0.9.21 + ldb_module_send_referral@LDB_0.9.10 0.9.21 + ldb_module_set_next@LDB_0.9.19 0.9.21 + ldb_module_set_private@LDB_0.9.10 0.9.21 + ldb_modules_hook@LDB_0.9.18 0.9.21 + ldb_modules_list_from_string@LDB_0.9.10 0.9.21 + ldb_modules_load@LDB_0.9.18 0.9.21 + ldb_msg_add@LDB_0.9.10 0.9.21 + ldb_msg_add_empty@LDB_0.9.10 0.9.21 + ldb_msg_add_fmt@LDB_0.9.10 0.9.21 + ldb_msg_add_linearized_dn@LDB_0.9.10 0.9.21 + ldb_msg_add_steal_string@LDB_0.9.10 0.9.21 + ldb_msg_add_steal_value@LDB_0.9.10 0.9.21 + ldb_msg_add_string@LDB_0.9.10 0.9.21 + ldb_msg_add_value@LDB_0.9.10 0.9.21 + ldb_msg_canonicalize@LDB_0.9.10 0.9.21 + ldb_msg_check_string_attribute@LDB_0.9.10 0.9.21 + ldb_msg_copy@LDB_0.9.10 0.9.21 + ldb_msg_copy_attr@LDB_0.9.10 0.9.21 + ldb_msg_copy_shallow@LDB_0.9.10 0.9.21 + ldb_msg_diff@LDB_0.9.10 0.9.21 + ldb_msg_difference@LDB_0.9.15 0.9.21 + ldb_msg_element_compare@LDB_0.9.10 0.9.21 + ldb_msg_element_compare_name@LDB_0.9.10 0.9.21 + ldb_msg_element_equal_ordered@LDB_1.1.6 1:1.1.6 + ldb_msg_find_attr_as_bool@LDB_0.9.10 0.9.21 + ldb_msg_find_attr_as_dn@LDB_0.9.10 0.9.21 + ldb_msg_find_attr_as_double@LDB_0.9.10 0.9.21 + ldb_msg_find_attr_as_int64@LDB_0.9.10 0.9.21 + ldb_msg_find_attr_as_int@LDB_0.9.10 0.9.21 + ldb_msg_find_attr_as_string@LDB_0.9.10 0.9.21 + ldb_msg_find_attr_as_uint64@LDB_0.9.10 0.9.21 + ldb_msg_find_attr_as_uint@LDB_0.9.10 0.9.21 + ldb_msg_find_common_values@LDB_1.1.31 2:1.2.2 + ldb_msg_find_duplicate_val@LDB_1.1.31 2:1.2.2 + ldb_msg_find_element@LDB_0.9.10 0.9.21 + ldb_msg_find_ldb_val@LDB_0.9.10 0.9.21 + ldb_msg_find_val@LDB_0.9.10 0.9.21 + ldb_msg_new@LDB_0.9.10 0.9.21 + ldb_msg_normalize@LDB_0.9.15 0.9.21 + ldb_msg_remove_attr@LDB_0.9.10 0.9.21 + ldb_msg_remove_element@LDB_0.9.10 0.9.21 + ldb_msg_rename_attr@LDB_0.9.10 0.9.21 + ldb_msg_sanity_check@LDB_0.9.10 0.9.21 + ldb_msg_sort_elements@LDB_0.9.10 0.9.21 + ldb_next_del_trans@LDB_0.9.10 0.9.21 + ldb_next_end_trans@LDB_0.9.10 0.9.21 + ldb_next_init@LDB_0.9.10 0.9.21 + ldb_next_prepare_commit@LDB_0.9.10 0.9.21 + ldb_next_read_lock@LDB_1.2.0 2:1.2.2 + ldb_next_read_unlock@LDB_1.2.0 2:1.2.2 + ldb_next_remote_request@LDB_0.9.10 0.9.21 + ldb_next_request@LDB_0.9.10 0.9.21 + ldb_next_start_trans@LDB_0.9.10 0.9.21 + ldb_op_default_callback@LDB_0.9.10 0.9.21 + ldb_options_copy@LDB_2.0.4 2:2.0.4 + ldb_options_find@LDB_0.9.17 0.9.21 + ldb_options_get@LDB_2.0.5 2:2.0.5 + ldb_pack_data@LDB_1.1.14 1:2.0.2 + ldb_parse_control_from_string@LDB_1.0.2 1.0.2~git20110403 + ldb_parse_control_strings@LDB_0.9.10 0.9.21 + ldb_parse_tree@LDB_0.9.10 0.9.21 + ldb_parse_tree_attr_replace@LDB_0.9.10 0.9.21 + ldb_parse_tree_copy_shallow@LDB_0.9.10 0.9.21 + ldb_parse_tree_walk@LDB_1.1.2 1.1.2~ + ldb_qsort@LDB_0.9.10 0.9.21 + ldb_register_backend@LDB_0.9.10 0.9.21 + ldb_register_extended_match_rule@LDB_1.1.19 1:1.1.20 + ldb_register_hook@LDB_0.9.18 0.9.21 + ldb_register_module@LDB_0.9.10 0.9.21 + ldb_rename@LDB_0.9.10 0.9.21 + ldb_reply_add_control@LDB_0.9.10 0.9.21 + ldb_reply_get_control@LDB_0.9.10 0.9.21 + ldb_req_get_custom_flags@LDB_1.1.0 1.1.0 + ldb_req_is_untrusted@LDB_0.9.16 0.9.21 + ldb_req_location@LDB_0.9.15 0.9.21 + ldb_req_mark_trusted@LDB_0.9.24 0.9.24 + ldb_req_mark_untrusted@LDB_0.9.16 0.9.21 + ldb_req_set_custom_flags@LDB_1.1.0 1.1.0 + ldb_req_set_location@LDB_0.9.15 0.9.21 + ldb_request@LDB_0.9.10 0.9.21 + ldb_request_add_control@LDB_0.9.10 0.9.21 + ldb_request_done@LDB_0.9.10 0.9.21 + ldb_request_get_control@LDB_0.9.10 0.9.21 + ldb_request_get_status@LDB_0.9.10 0.9.21 + ldb_request_replace_control@LDB_0.9.15 0.9.21 + ldb_request_set_state@LDB_0.9.10 0.9.21 + ldb_reset_err_string@LDB_0.9.10 0.9.21 + ldb_schema_attribute_add@LDB_0.9.10 0.9.21 + ldb_schema_attribute_add_with_syntax@LDB_0.9.10 0.9.21 + ldb_schema_attribute_by_name@LDB_0.9.10 0.9.21 + ldb_schema_attribute_fill_with_syntax@LDB_1.1.29 2:1.1.29 + ldb_schema_attribute_remove@LDB_0.9.10 0.9.21 + ldb_schema_attribute_remove_flagged@LDB_1.1.29 2:1.1.29 + ldb_schema_attribute_set_override_handler@LDB_0.9.10 0.9.21 + ldb_schema_set_override_indexlist@LDB_1.1.30 2:1.2.2 + ldb_schema_set_override_GUID_index@LDB_1.3.0 2:1.3.0 + ldb_search@LDB_0.9.10 0.9.21 + ldb_search_default_callback@LDB_0.9.10 0.9.21 + ldb_sequence_number@LDB_0.9.10 0.9.21 + ldb_set_create_perms@LDB_0.9.10 0.9.21 + ldb_set_debug@LDB_0.9.10 0.9.21 + ldb_set_debug_stderr@LDB_0.9.10 0.9.21 + ldb_set_default_dns@LDB_0.9.10 0.9.21 + ldb_set_errstring@LDB_0.9.10 0.9.21 + ldb_set_event_context@LDB_0.9.10 0.9.21 + ldb_set_flags@LDB_0.9.10 0.9.21 + ldb_set_modules_dir@LDB_0.9.10 0.9.21 + ldb_set_opaque@LDB_0.9.10 0.9.21 + ldb_set_require_private_event_context@LDB_1.1.30 2:1.2.2 + ldb_set_timeout@LDB_0.9.10 0.9.21 + ldb_set_timeout_from_prev_req@LDB_0.9.10 0.9.21 + ldb_set_utf8_default@LDB_0.9.10 0.9.21 + ldb_set_utf8_fns@LDB_0.9.10 0.9.21 + ldb_setup_wellknown_attributes@LDB_0.9.10 0.9.21 + ldb_should_b64_encode@LDB_0.9.10 0.9.21 + ldb_standard_syntax_by_name@LDB_0.9.10 0.9.21 + ldb_strerror@LDB_0.9.10 0.9.21 + ldb_string_to_time@LDB_0.9.10 0.9.21 + ldb_string_utc_to_time@LDB_0.9.10 0.9.21 + ldb_timestring@LDB_0.9.10 0.9.21 + ldb_timestring_utc@LDB_0.9.10 0.9.21 + ldb_transaction_cancel@LDB_0.9.10 0.9.21 + ldb_transaction_cancel_noerr@LDB_0.9.10 0.9.21 + ldb_transaction_commit@LDB_0.9.10 0.9.21 + ldb_transaction_prepare_commit@LDB_0.9.10 0.9.21 + ldb_transaction_start@LDB_0.9.10 0.9.21 + ldb_unpack_data@LDB_1.1.14 1:1.1.15 + ldb_unpack_data_flags@LDB_2.0.1 2:2.0.1 + ldb_unpack_get_format@LDB_2.0.2 2:2.0.2 + ldb_val_dup@LDB_0.9.10 0.9.21 + ldb_val_equal_exact@LDB_0.9.10 0.9.21 + ldb_val_map_local@LDB_0.9.10 0.9.21 + ldb_val_map_remote@LDB_0.9.10 0.9.21 + ldb_val_string_cmp@LDB_1.1.1 1.1.1~ + ldb_val_to_time@LDB_0.9.10 0.9.21 + ldb_valid_attr_name@LDB_0.9.10 0.9.21 + ldb_vdebug@LDB_1.1.10 1.1.12 + ldb_wait@LDB_0.9.10 0.9.21 + ldb_save_controls@LDB_0.9.22 0.9.22 diff --git a/debian/library-equivalents b/debian/library-equivalents new file mode 100644 index 0000000..2d46966 --- /dev/null +++ b/debian/library-equivalents @@ -0,0 +1,9 @@ +# Upstream Samba 4 is very strict about minimum versions of libraries, but allows +# looser checking using the --minimum-library-versions option to configure. +# +# This file specifies what upstream versions are equivalent to each other, so that +# this package can be installed with older versions. + +[talloc] +2.0.2 = 2.0.1 +2.0.3 = 2.0.1 diff --git a/debian/patches/01_manpage_dates b/debian/patches/01_manpage_dates new file mode 100644 index 0000000..4a362af --- /dev/null +++ b/debian/patches/01_manpage_dates @@ -0,0 +1,94 @@ +commit 23b9b1e51fee68fbd31585bd5a8f07959a802a8d +Author: Jelmer Vernooij +Date: Mon Apr 27 23:33:52 2015 +0000 + + Add set date to tdb manpages. + + This makes builds reproducible. + + Signed-off-by: Jelmer Vernooij + +diff --git a/man/ldb.3.xml b/man/ldb.3.xml +index b93d532..e138c71 100644 +--- a/man/ldb.3.xml ++++ b/man/ldb.3.xml +@@ -1,6 +1,7 @@ + + + ++2015-04-26 + + + ldb +diff --git a/man/ldbadd.1.xml b/man/ldbadd.1.xml +index 3a3ed2c..5d6936b 100644 +--- a/man/ldbadd.1.xml ++++ b/man/ldbadd.1.xml +@@ -1,6 +1,7 @@ + + + ++2015-04-26 + + + ldbadd +diff --git a/man/ldbdel.1.xml b/man/ldbdel.1.xml +index d57cf2a..cbb6714 100644 +--- a/man/ldbdel.1.xml ++++ b/man/ldbdel.1.xml +@@ -1,6 +1,7 @@ + + + ++2015-04-26 + + + ldbdel +diff --git a/man/ldbedit.1.xml b/man/ldbedit.1.xml +index fd98c60..22ee705 100644 +--- a/man/ldbedit.1.xml ++++ b/man/ldbedit.1.xml +@@ -1,6 +1,7 @@ + + + ++2015-04-26 + + + ldbedit +diff --git a/man/ldbmodify.1.xml b/man/ldbmodify.1.xml +index 5d6b468..87350fd 100644 +--- a/man/ldbmodify.1.xml ++++ b/man/ldbmodify.1.xml +@@ -1,6 +1,7 @@ + + + ++2015-04-26 + + + ldbmodify +diff --git a/man/ldbrename.1.xml b/man/ldbrename.1.xml +index 102cee4..7066140 100644 +--- a/man/ldbrename.1.xml ++++ b/man/ldbrename.1.xml +@@ -1,6 +1,7 @@ + + + ++2015-04-26 + + + ldbrename +diff --git a/man/ldbsearch.1.xml b/man/ldbsearch.1.xml +index e693a290..8ff19af 100644 +--- a/man/ldbsearch.1.xml ++++ b/man/ldbsearch.1.xml +@@ -1,6 +1,7 @@ + + + ++2015-04-26 + + + ldbsearch diff --git a/debian/patches/02_hurd b/debian/patches/02_hurd new file mode 100644 index 0000000..b947dec --- /dev/null +++ b/debian/patches/02_hurd @@ -0,0 +1,19 @@ +Description: Link against pthread on the Hurd, to work around bug #578432 +Author: Gabriele Giacone <1o5g4r8o@gmail.com> +Bug-Debian: http://bugs.debian.org/749095 + +diff --git a/wscript b/wscript +index cd11baa..b671fd6 100644 +--- a/wscript ++++ b/wscript +@@ -197,6 +197,10 @@ def configure(conf): + conf.env.HAVE_LMDB = True + + ++ # Work around pthread bug on the hurd (#578432) ++ if sys.platform.startswith("gnu"): ++ conf.ADD_LDFLAGS('-pthread', testflags=True) ++ + conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True) + + conf.SAMBA_CONFIG_H() diff --git a/debian/patches/Skip-test_guid_indexed_v1_db-on-mips64el-ppc64el-ia6.patch b/debian/patches/Skip-test_guid_indexed_v1_db-on-mips64el-ppc64el-ia6.patch new file mode 100644 index 0000000..b695bb2 --- /dev/null +++ b/debian/patches/Skip-test_guid_indexed_v1_db-on-mips64el-ppc64el-ia6.patch @@ -0,0 +1,34 @@ +From e2d88d65f077f6ed26a79b6e31b46445bb081df9 Mon Sep 17 00:00:00 2001 +From: Mathieu Parent +Date: Wed, 2 Oct 2019 21:26:07 +0200 +Subject: [PATCH] Skip test_guid_indexed_v1_db on mips64el, ppc64el, ia64, + ppc64 + +Workaround for https://bugzilla.samba.org/show_bug.cgi?id=14146 +--- + tests/python/repack.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/tests/python/repack.py b/tests/python/repack.py +index 0844cd2..607ab52 100644 +--- a/tests/python/repack.py ++++ b/tests/python/repack.py +@@ -1,5 +1,5 @@ + import os +-from unittest import TestCase ++from unittest import TestCase, skipIf + import shutil + from subprocess import check_output + import ldb +@@ -176,6 +176,8 @@ class GUIDIndexAndPackFormatTests(TestCase): + + # Check a database with V1 format with GUID indexing enabled is repacked + # with version 2 format. ++ @skipIf(os.environ.get('DEB_HOST_ARCH', 'unknown') in ['mips64el', 'ppc64el', 'ia64', 'ppc64'], ++ "Premade v1 unreadable on arch %s" % os.environ.get('DEB_HOST_ARCH', 'unknown')) + def test_guid_indexed_v1_db(self): + self.setup_premade_v1_db() + +-- +2.20.1 + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..d19026d --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,3 @@ +01_manpage_dates +02_hurd +Skip-test_guid_indexed_v1_db-on-mips64el-ppc64el-ia6.patch diff --git a/debian/python3-ldb-dev.install b/debian/python3-ldb-dev.install new file mode 100755 index 0000000..a2f5db4 --- /dev/null +++ b/debian/python3-ldb-dev.install @@ -0,0 +1,4 @@ +#! /usr/bin/dh-exec +usr/include/pyldb.h ${DEB_PY3_INCDIR} +usr/lib/*/libpyldb-util.cpython-*.so +usr/lib/*/pkgconfig/pyldb-util.cpython-*.pc diff --git a/debian/python3-ldb-dev.lintian-overrides b/debian/python3-ldb-dev.lintian-overrides new file mode 100644 index 0000000..ce0c98f --- /dev/null +++ b/debian/python3-ldb-dev.lintian-overrides @@ -0,0 +1,2 @@ +# This is actually a -dev package +python3-ldb-dev: wrong-section-according-to-package-name python3-ldb-dev => python diff --git a/debian/python3-ldb.install b/debian/python3-ldb.install new file mode 100644 index 0000000..b8d6112 --- /dev/null +++ b/debian/python3-ldb.install @@ -0,0 +1,2 @@ +usr/lib/*/libpyldb-util.cpython-*.so.* +usr/lib/python3* diff --git a/debian/python3-ldb.lintian-overrides b/debian/python3-ldb.lintian-overrides new file mode 100644 index 0000000..74428a4 --- /dev/null +++ b/debian/python3-ldb.lintian-overrides @@ -0,0 +1 @@ +python3-ldb: package-name-doesnt-match-sonames libpyldb-util.cpython-* diff --git a/debian/python3-ldb.symbols.amd64 b/debian/python3-ldb.symbols.amd64 new file mode 100644 index 0000000..6c786fb --- /dev/null +++ b/debian/python3-ldb.symbols.amd64 @@ -0,0 +1,3 @@ +libpyldb-util.cpython-38-x86-64-linux-gnu.so.2 python3-ldb #MINVER# + PYLDB_UTIL.CPYTHON_38_X86_64_LINUX_GNU_2.0.8@PYLDB_UTIL.CPYTHON_38_X86_64_LINUX_GNU_2.0.8 2:2.0.8 +#include "python3-ldb.symbols.common" diff --git a/debian/python3-ldb.symbols.arm64 b/debian/python3-ldb.symbols.arm64 new file mode 100644 index 0000000..9e766f5 --- /dev/null +++ b/debian/python3-ldb.symbols.arm64 @@ -0,0 +1,3 @@ +libpyldb-util.cpython-38-aarch64-linux-gnu.so.2 python3-ldb #MINVER# + PYLDB_UTIL.CPYTHON_38_AARCH64_LINUX_GNU_2.0.8@PYLDB_UTIL.CPYTHON_38_AARCH64_LINUX_GNU_2.0.8 2:2.0.8 +#include "python3-ldb.symbols.common" diff --git a/debian/python3-ldb.symbols.armhf b/debian/python3-ldb.symbols.armhf new file mode 100644 index 0000000..85ab0ca --- /dev/null +++ b/debian/python3-ldb.symbols.armhf @@ -0,0 +1,3 @@ +libpyldb-util.cpython-38-arm-linux-gnueabihf.so.2 python3-ldb #MINVER# + PYLDB_UTIL.CPYTHON_38_ARM_LINUX_GNUEABIHF_2.0.8@PYLDB_UTIL.CPYTHON_38_ARM_LINUX_GNUEABIHF_2.0.8 2:2.0.8 +#include "python3-ldb.symbols.common" diff --git a/debian/python3-ldb.symbols.common b/debian/python3-ldb.symbols.common new file mode 100644 index 0000000..dd40048 --- /dev/null +++ b/debian/python3-ldb.symbols.common @@ -0,0 +1,58 @@ + PYLDB_UTIL_1.1.2@PYLDB_UTIL_1.1.2 2:2.0.7 + PYLDB_UTIL_1.1.3@PYLDB_UTIL_1.1.3 2:2.0.7 + PYLDB_UTIL_1.1.4@PYLDB_UTIL_1.1.4 2:2.0.7 + PYLDB_UTIL_1.1.5@PYLDB_UTIL_1.1.5 2:2.0.7 + PYLDB_UTIL_1.1.6@PYLDB_UTIL_1.1.6 2:2.0.7 + PYLDB_UTIL_1.1.7@PYLDB_UTIL_1.1.7 2:2.0.7 + PYLDB_UTIL_1.1.8@PYLDB_UTIL_1.1.8 2:2.0.7 + PYLDB_UTIL_1.1.9@PYLDB_UTIL_1.1.9 2:2.0.7 + PYLDB_UTIL_1.1.10@PYLDB_UTIL_1.1.10 2:2.0.7 + PYLDB_UTIL_1.1.11@PYLDB_UTIL_1.1.11 2:2.0.7 + PYLDB_UTIL_1.1.12@PYLDB_UTIL_1.1.12 2:2.0.7 + PYLDB_UTIL_1.1.13@PYLDB_UTIL_1.1.13 2:2.0.7 + PYLDB_UTIL_1.1.14@PYLDB_UTIL_1.1.14 2:2.0.7 + PYLDB_UTIL_1.1.15@PYLDB_UTIL_1.1.15 2:2.0.7 + PYLDB_UTIL_1.1.16@PYLDB_UTIL_1.1.16 2:2.0.7 + PYLDB_UTIL_1.1.17@PYLDB_UTIL_1.1.17 2:2.0.7 + PYLDB_UTIL_1.1.18@PYLDB_UTIL_1.1.18 2:2.0.7 + PYLDB_UTIL_1.1.19@PYLDB_UTIL_1.1.19 2:2.0.7 + PYLDB_UTIL_1.1.20@PYLDB_UTIL_1.1.20 2:2.0.7 + PYLDB_UTIL_1.1.21@PYLDB_UTIL_1.1.21 2:2.0.7 + PYLDB_UTIL_1.1.22@PYLDB_UTIL_1.1.22 2:2.0.7 + PYLDB_UTIL_1.1.23@PYLDB_UTIL_1.1.23 1.5.4 + PYLDB_UTIL_1.1.24@PYLDB_UTIL_1.1.24 1.5.4 + PYLDB_UTIL_1.1.25@PYLDB_UTIL_1.1.25 1.5.4 + PYLDB_UTIL_1.1.26@PYLDB_UTIL_1.1.26 1.5.4 + PYLDB_UTIL_1.1.27@PYLDB_UTIL_1.1.27 1.5.4 + PYLDB_UTIL_1.1.28@PYLDB_UTIL_1.1.28 1.5.4 + PYLDB_UTIL_1.1.29@PYLDB_UTIL_1.1.29 1.5.4 + PYLDB_UTIL_1.1.30@PYLDB_UTIL_1.1.30 1.5.4 + PYLDB_UTIL_1.1.31@PYLDB_UTIL_1.1.31 1.5.4 + PYLDB_UTIL_1.2.0@PYLDB_UTIL_1.2.0 1.5.4 + PYLDB_UTIL_1.2.1@PYLDB_UTIL_1.2.1 1.5.4 + PYLDB_UTIL_1.2.2@PYLDB_UTIL_1.2.2 1.5.4 + PYLDB_UTIL_1.2.3@PYLDB_UTIL_1.2.3 1.5.4 + PYLDB_UTIL_1.3.0@PYLDB_UTIL_1.3.0 1.5.4 + PYLDB_UTIL_1.3.1@PYLDB_UTIL_1.3.1 1.5.4 + PYLDB_UTIL_1.3.2@PYLDB_UTIL_1.3.2 1.5.4 + PYLDB_UTIL_1.4.0@PYLDB_UTIL_1.4.0 1.5.4 + PYLDB_UTIL_1.4.1@PYLDB_UTIL_1.4.1 1.5.4 + PYLDB_UTIL_1.5.0@PYLDB_UTIL_1.5.0 1.5.4 + PYLDB_UTIL_1.5.1@PYLDB_UTIL_1.5.1 1.5.4 + PYLDB_UTIL_1.5.2@PYLDB_UTIL_1.5.2 1.5.4 + PYLDB_UTIL_1.5.3@PYLDB_UTIL_1.5.3 1.5.4 + PYLDB_UTIL_1.6.0@PYLDB_UTIL_1.6.0 2:2.0.7 + PYLDB_UTIL_1.6.1@PYLDB_UTIL_1.6.1 2:2.0.7 + PYLDB_UTIL_1.6.2@PYLDB_UTIL_1.6.2 2:2.0.7 + PYLDB_UTIL_1.6.3@PYLDB_UTIL_1.6.3 2:2.0.7 + PYLDB_UTIL_2.0.0@PYLDB_UTIL_2.0.0 2:2.0.7 + PYLDB_UTIL_2.0.1@PYLDB_UTIL_2.0.1 2:2.0.7 + PYLDB_UTIL_2.0.2@PYLDB_UTIL_2.0.2 2:2.0.7 + PYLDB_UTIL_2.0.3@PYLDB_UTIL_2.0.3 2:2.0.7 + PYLDB_UTIL_2.0.4@PYLDB_UTIL_2.0.4 2:2.0.7 + PYLDB_UTIL_2.0.5@PYLDB_UTIL_2.0.5 2:2.0.7 + PYLDB_UTIL_2.0.6@PYLDB_UTIL_2.0.6 2:2.0.7 + PYLDB_UTIL_2.0.7@PYLDB_UTIL_2.0.7 2:2.0.7 + PYLDB_UTIL_2.0.8@PYLDB_UTIL_2.0.8 2:2.0.8 + pyldb_Dn_FromDn@PYLDB_UTIL_1.1.2 2:2.0.7 + pyldb_Object_AsDn@PYLDB_UTIL_1.1.2 2:2.0.7 diff --git a/debian/python3-ldb.symbols.i386 b/debian/python3-ldb.symbols.i386 new file mode 100644 index 0000000..448dbed --- /dev/null +++ b/debian/python3-ldb.symbols.i386 @@ -0,0 +1,3 @@ +libpyldb-util.cpython-38-i386-linux-gnu.so.2 python3-ldb #MINVER# + PYLDB_UTIL.CPYTHON_38_I386_LINUX_GNU_2.0.8@PYLDB_UTIL.CPYTHON_38_I386_LINUX_GNU_2.0.8 2:2.0.8 +#include "python3-ldb.symbols.common" diff --git a/debian/python3-ldb.symbols.ppc64el b/debian/python3-ldb.symbols.ppc64el new file mode 100644 index 0000000..5c80780 --- /dev/null +++ b/debian/python3-ldb.symbols.ppc64el @@ -0,0 +1,3 @@ +libpyldb-util.cpython-38-powerpc64le-linux-gnu.so.2 python3-ldb #MINVER# + PYLDB_UTIL.CPYTHON_38_POWERPC64LE_LINUX_GNU_2.0.8@PYLDB_UTIL.CPYTHON_38_POWERPC64LE_LINUX_GNU_2.0.8 2:2.0.8 +#include "python3-ldb.symbols.common" diff --git a/debian/python3-ldb.symbols.s390x b/debian/python3-ldb.symbols.s390x new file mode 100644 index 0000000..4b8ae4d --- /dev/null +++ b/debian/python3-ldb.symbols.s390x @@ -0,0 +1,3 @@ +libpyldb-util.cpython-38-s390x-linux-gnu.so.2 python3-ldb #MINVER# + PYLDB_UTIL.CPYTHON_38_S390X_LINUX_GNU_2.0.8@PYLDB_UTIL.CPYTHON_38_S390X_LINUX_GNU_2.0.8 2:2.0.8 +#include "python3-ldb.symbols.common" diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..4b2a002 --- /dev/null +++ b/debian/rules @@ -0,0 +1,73 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) +CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) +CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) +LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) + +CFLAGS += -Wall + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +LDFLAGS += -Wl,--as-needed + +DESTDIR=$(CURDIR)/debian/tmp + +include /usr/share/dpkg/architecture.mk + +%: + dh $@ --with python3 + +override_dh_auto_configure: + CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CPPFLAGS="$(CPPFLAGS)" \ + ./configure --prefix=/usr --disable-rpath-install \ + --builtin-libraries=ccan,replace,tdb_compat \ + --bundled-libraries=NONE,pytevent \ + --minimum-library-version="$(shell ./debian/autodeps.py --minimum-library-version)" \ + --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ + --with-modulesdir=/usr/lib/$(DEB_HOST_MULTIARCH)/ldb/modules + +get-packaged-orig-source: + ./debian/build-orig.sh + +override_dh_auto_clean: + [ ! -f Makefile ] || $(MAKE) distclean + # Waf should be doing this; see + # https://bugzilla.samba.org/show_bug.cgi?id=8854 + rm -f .lock-wscript + # Waf should be doing this; see + # https://bugzilla.samba.org/show_bug.cgi?id=8855 + find . -name __pycache__ -o -name "*.pyc" -exec rm -rf {} \; + +override_dh_auto_build: + $(MAKE) all + +override_dh_auto_test: +ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) + $(MAKE) test +endif + +override_dh_install: + DEB_PY3_INCDIR=$(shell python3-config --includes | sed 's,^-I\([^ ]*\).*,\1,') \ + dh_install + +override_dh_auto_install: + DESTDIR=$(DESTDIR) $(MAKE) install + rm $(DESTDIR)/usr/lib/python*/dist-packages/_tevent*.so + rm $(DESTDIR)/usr/lib/python*/dist-packages/tevent.py + ar cr libldb.a bin/default/common/*.o + mv libldb.a $(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH) + +override_dh_missing: + dh_missing --fail-missing + +override_dh_makeshlibs: + dh_makeshlibs -Xldb. -ppython3-ldb -- -c4 + dh_makeshlibs -X/usr/lib/$(DEB_HOST_MULTIARCH)/ldb -plibldb2 -- -c4 diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..33c3a64 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,4 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..d4d428e --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1 @@ +ldb source: dh-exec-subst-unknown-variable debian/python3-ldb-dev.install DEB_PY3_INCDIR diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc new file mode 100644 index 0000000..25fd68a --- /dev/null +++ b/debian/upstream/signing-key.asc @@ -0,0 +1,18 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQENBE0uBhsBCADIjamou8B7vf0Gnvdb8ZhJ708kXnoeGH161xffaYJg40rXhyyl +OHlc4ZLVc4OyFr+tWREgNDyBkeS5TTsJ3ul/cBMbBjpn2LOO41X1fenhlvWFkhuC +TcZJK1GNEH8iEHgHp7fjZ24p8cvHILGnHKOYFuHSK8t4Eai0vT/dwNDuU7HD4ZC0 +LZdVRIkIH5mZ+8ILmLKzzHl+Pbyoit/Utv+SuRuP1rGU606XEaMzBjejPlctHJSv +7SWRQCjnhg8rCdklJstBxUg5M/gof0WLCN5UfW8BJ08EP+ByAjPL2hGKQIBE9NVo +2dxEiLoLNwOT5724zcnzFpnaQrEqrxyD+YI1ABEBAAG0NVNhbWJhIExpYnJhcnkg +RGlzdHJpYnV0aW9uIEtleSA8c2FtYmEtYnVnc0BzYW1iYS5vcmc+iQE8BBMBAgAm +AhsDBgsJCAcDAgQVAggDBBYCAwECHgECF4AFAlcsUeoFCQvff0QACgkQR5ORYRMI +QCXSXwgAyBcx3Haf7BOAaTAepfKAjBBC5ed3XZGiijqLQA2SuH5PBDYrdk33NkW+ +i5JCNXATs5uE27Hb7fGWLskKLgZscXsOSDRF3FQrB8YDQ0a/IioYQnHiAXRb800N +uTOIR+02IZ6O9DfWsqwz3z4AyHmv1uBgTVdmMPJ4B77oC6oljg6SpAwI+xyJC9w/ +yiS2p9gVenkWF6FJ2ksEnMdagxOdkQ+KLgTsvopcDkeVeok1CYPVy4qIkRJX6AUg +TE4sVJgaxGJBVZgR0LkbPWJjdTkCHyucW6XotT10qwuXc5rFEsa7GWgak1I1mL3e +MW3/BccMGgPJg36C1bawR5JF4GCXsQ== +=1S6V +-----END PGP PUBLIC KEY BLOCK----- diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..8f4aac4 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts="pgpsigurlmangle=s/tar\.gz/tar.asc/,decompress" \ +https://download.samba.org/pub/ldb/ ldb-(2\.0\..+).tar.gz