From: Luca Boccassi Date: Wed, 23 Sep 2026 07:55:50 +0000 (+0200) Subject: Import libdnf_0.76.0-1.debian.tar.xz X-Git-Tag: archive/raspbian/0.76.0-1+rpi1^2~5^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5ce09536b004749704064ed58fbfa25d759dd561;p=libdnf.git Import libdnf_0.76.0-1.debian.tar.xz [dgit import tarball libdnf 0.76.0-1 libdnf_0.76.0-1.debian.tar.xz] --- 5ce09536b004749704064ed58fbfa25d759dd561 diff --git a/changelog b/changelog new file mode 100644 index 0000000..8d4000e --- /dev/null +++ b/changelog @@ -0,0 +1,188 @@ +libdnf (0.76.0-1) unstable; urgency=medium + + * Drop out-of-tree patch not needed since Buster + * Update upstream source from tag 'upstream/0.76.0' + * Drop patches merged upstream + * Drop priority: optional, now it's default + * Drop Rules-Requires-Root: no, now it's default + * Bump Standards-Version to 4.7.4 + * Switch to dh-compat 14 + + -- Luca Boccassi Wed, 23 Sep 2026 09:55:50 +0200 + +libdnf (0.75.0-1) unstable; urgency=medium + + * Update upstream source from tag 'upstream/0.75.0' + * Refresh patch for 0.75 + * d/control: bump Standards-Version to 4.7.2, no changes + * d/copyright: use GPL URL instead of old FSF postal address + + -- Luca Boccassi Fri, 24 Oct 2025 14:45:24 +0100 + +libdnf (0.74.0-1) unstable; urgency=medium + + * Update upstream source from tag 'upstream/0.74.0' + * Refresh patch to remove fuzz from new version + * Drop 0015-fix-segfault.patch, merged upstream + + -- Luca Boccassi Sat, 08 Mar 2025 12:29:37 +0000 + +libdnf (0.73.4-2) unstable; urgency=medium + + * Backport patch to fix libdnf segfault + + -- Luca Boccassi Mon, 27 Jan 2025 11:16:37 +0000 + +libdnf (0.73.4-1) unstable; urgency=medium + + * Update upstream source from tag 'upstream/0.73.4' + * Refresh patches to remove fuzz + + -- Luca Boccassi Thu, 14 Nov 2024 12:17:18 +0000 + +libdnf (0.73.3-1) unstable; urgency=high + + * Drop unused Valgrind bits + * Update upstream source from tag 'upstream/0.73.3' + * Update patches to remove fuzz from 0.73.3 + * Bump dependency on librepo to avoid libselinux crash + + -- Luca Boccassi Mon, 26 Aug 2024 16:44:33 +0100 + +libdnf (0.73.2-1) unstable; urgency=medium + + * Update upstream source from tag 'upstream/0.73.2' + + -- Luca Boccassi Sat, 29 Jun 2024 20:38:56 +0100 + +libdnf (0.73.1-3) unstable; urgency=medium + + * Remove workaround for dh_python3 regression, fixed in latest upload + * Drop patch to use rpmdb in home, no longer needed + + -- Luca Boccassi Mon, 06 May 2024 20:29:03 +0100 + +libdnf (0.73.1-2) unstable; urgency=medium + + * Add workaround for dh_python3 regression that wrongly renames cpython + module + + -- Luca Boccassi Sat, 20 Apr 2024 20:17:09 +0100 + +libdnf (0.73.1-1) unstable; urgency=medium + + * Switch to git-buildpackage workflow + * Update upstream source from tag 'upstream/0.73.1' + * Drop 0006-Add-rpmdb-in-home-directory-to-checksum-and-DNF-cont.patch, + no longer needed + * Refresh patches for new version + * Bump dependency on librepo-dev to 1.15.0 + * Bump dependency on rpm to 4.15.0 + * Bump dependency on modulemd to 2.11.2 + * python3-libdnf: install python metadata too + * Drop dh_missing from d/rules, it's default in compat 13 + * Drop dependency on python3-nose, deprecated (Closes: #1018395) + * Drop transitional libdnf1 package (Closes: #1038262) + * python3-hawkey-doc: add dependencies on libjs-jquery and libjs- + underscore (Closes: #988770) + * Add d/clean to remove leftover doc files (Closes: #1045949) + * 0013-python-tests-fix-locale-issues.patch: do not create + python/hawkey/tests/tests/__init__.py + * Use a patch instead of manually mangling source file (Closes: #1045949) + * Switch to pkgconf + * Set Rules-Requires-Root: no + * Switch to dh-sequence-python3 + * Enable ELF metadata stamping + * Bump Standards-Version to 4.7.0 + * Move manpage to -dev package + * Fix typo in 0013-python-tests-fix-locale-issues.patch + * Drop Lintian override for python3-hawkey, no longer needed + + -- Luca Boccassi Mon, 15 Apr 2024 01:03:35 +0100 + +libdnf (0.69.0-2.3) unstable; urgency=medium + + * Non-maintainer upload. + * Rename libraries for 64-bit time_t transition. + + -- Steve Langasek Wed, 31 Jan 2024 22:13:42 +0000 + +libdnf (0.69.0-2.2) unstable; urgency=medium + + * Non-maintainer upload. + * Use mkdir -p in override_dh_auto_test to fix FTBFS on buildds + + -- Luca Boccassi Fri, 03 Nov 2023 19:22:17 +0000 + +libdnf (0.69.0-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Move python3 modules from /usr/lib/local/ (Closes: #1052915) + + -- Luca Boccassi Sun, 29 Oct 2023 15:57:28 +0000 + +libdnf (0.69.0-2) unstable; urgency=medium + + * Set myself to maintainer + + -- Frédéric Pierret Sun, 08 Jan 2023 10:08:51 +0100 + +libdnf (0.69.0-1) unstable; urgency=medium + + * Update to libdnf-0.69.0. + * Update debian/control:bump debhelper-compat to 13 and update + Build-Depends constraints. + * Update debian/rules: remove reproducible flag being the default, + remove not needed anymore PYTHON_DESIRED from dh_auto_configure, + remove undeeded override of dh_install as debhelper is bumped and, + few cleanups. + * Update debian/watch: update to use tags endpoint. + + -- Frédéric Pierret Sat, 12 Nov 2022 15:51:20 +0100 + +libdnf (0.62.0-1) experimental; urgency=high + + * Update to libdnf-0.62.0 + + -- Frédéric Pierret Wed, 14 Apr 2021 14:59:34 +0200 + +libdnf (0.55.2-5) unstable; urgency=medium + + * Team upload. + + [ Marek Marczykowski-Górecki ] + * Use shlibs file instead of symbols. + + -- Holger Levsen Thu, 04 Feb 2021 01:17:07 +0100 + +libdnf (0.55.2-4) unstable; urgency=medium + + * Team upload. + * Source upload for testing migration. + + -- Holger Levsen Wed, 03 Feb 2021 13:05:37 +0100 + +libdnf (0.55.2-3) unstable; urgency=medium + + * debian/copyright: Update and specify copyright holders + + -- Frédéric Pierret Tue, 02 Feb 2021 14:13:30 +0100 + +libdnf (0.55.2-2) unstable; urgency=medium + + * Update renamed lintian tag names in lintian overrides. + * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, + Repository-Browse. + * Remove listed license files (COPYING) from copyright. + * Remove unnecessary get-orig-source-target. + + -- Frédéric Pierret Wed, 30 Dec 2020 09:38:25 -0000 + +libdnf (0.55.2-1) unstable; urgency=medium + + * Initial upload. + * libdnf, libcomps and librepo are all needed for dnf, see #978627 (ITP bug + for dnf) and https://github.com/QubesOS/qubes-issues/issues/5940 for more + details on this packaging efford. + + -- Frédéric Pierret Sat, 26 Dec 2020 10:00:00 +0100 diff --git a/clean b/clean new file mode 100644 index 0000000..79839bb --- /dev/null +++ b/clean @@ -0,0 +1,42 @@ +data/tests/modules/yum.repos.d/test.repo +debian/tests-home/ +docs/libdnf/html.stamp +docs/libdnf/html/annotation-glossary.html +docs/libdnf/html/home.png +docs/libdnf/html/index.html +docs/libdnf/html/left-insensitive.png +docs/libdnf/html/left.png +docs/libdnf/html/libdnf-DnfContext.html +docs/libdnf/html/libdnf-DnfLock.html +docs/libdnf/html/libdnf-DnfRepo.html +docs/libdnf/html/libdnf-DnfRepoLoader.html +docs/libdnf/html/libdnf-DnfSack.html +docs/libdnf/html/libdnf-DnfState.html +docs/libdnf/html/libdnf-DnfTransaction.html +docs/libdnf/html/libdnf-dnf-goal.html +docs/libdnf/html/libdnf-dnf-keyring.html +docs/libdnf/html/libdnf-dnf-package.html +docs/libdnf/html/libdnf-dnf-rpmts.html +docs/libdnf/html/libdnf-dnf-types.html +docs/libdnf/html/libdnf-dnf-utils.html +docs/libdnf/html/libdnf-dnf-version.html +docs/libdnf/html/libdnf-helpers.html +docs/libdnf/html/libdnf.devhelp2 +docs/libdnf/html/libdnf.html +docs/libdnf/html/right-insensitive.png +docs/libdnf/html/right.png +docs/libdnf/html/style.css +docs/libdnf/html/up-insensitive.png +docs/libdnf/html/up.png +docs/libdnf/libdnf-decl-list.txt +docs/libdnf/libdnf-decl.txt +docs/libdnf/libdnf-overrides.txt +docs/libdnf/libdnf-sections.txt +docs/libdnf/libdnf-undeclared.txt +docs/libdnf/libdnf-undocumented.txt +docs/libdnf/libdnf-unused.txt +docs/libdnf/libdnf.types +docs/libdnf/sgml.stamp +docs/libdnf/version.xml +docs/libdnf/xml/ +libdnf/config-64.h diff --git a/control b/control new file mode 100644 index 0000000..bf544c0 --- /dev/null +++ b/control @@ -0,0 +1,118 @@ +Source: libdnf +Section: libs +Maintainer: RPM packaging team +Uploaders: Frédéric Pierret , + Luca Boccassi , +Build-Depends: debhelper-compat (= 14), + dh-package-notes, + dh-sequence-python3, + python3-dev, + libpython3-dev, + cmake, + pkgconf, + libglib2.0-dev, + libsolv-dev (>= 0.7.14-1.1~), + libsolvext-dev (>= 0.7.14-1.1~), + libsolv-tools (>= 0.7.14-1.1~), + librpm-dev (>= 4.19.1.1~), + libzstd-dev, + librepo-dev (>= 1.18.1~), + gtk-doc-tools, + python3-sphinx, + check, + libgpgme-dev, + libssl-dev, + libjson-c-dev, + libmodulemd-dev (>= 2.11.2~), + libsmartcols-dev, + libsqlite3-dev, + gettext, + swig, + libcppunit-dev, + doxygen, + python3-breathe, + rpm-common (>= 4.19.1.1~), +Standards-Version: 4.7.4 +Homepage: https://github.com/rpm-software-management/libdnf +Vcs-Browser: https://salsa.debian.org/pkg-rpm-team/libdnf +Vcs-Git: https://salsa.debian.org/pkg-rpm-team/libdnf.git +#Testsuite: autopkgtest-pkg-python + +Package: libdnf-dev +Section: libdevel +Architecture: any +Multi-Arch: same +Depends: libdnf2t64 (= ${binary:Version}), + libsolv-dev (>= 0.7.14-1.1~), + libsolvext-dev (>= 0.7.14-1.1~), +Breaks: gir1.2-libdnf-1.0 (<< ${binary:Version}), + libdnf2t64 (<< 0.73.1-1~), libdnf2 (<< 0.73.1-1~), +Replaces: libdnf2t64 (<< 0.73.1-1~), libdnf2 (<< 0.73.1-1~), +Description: libdnf - development files + A library providing simplified C and Python APIs to libsolv. + . + This package contains the development header files for the + libdnf library. + +Package: libdnf2t64 +Provides: libdnf, ${t64:Provides} +Architecture: any +Multi-Arch: same +Depends: libdnf2-common (= ${source:Version}), +Replaces: libdnf2, +Breaks: libdnf2 (<< ${source:Version}), +Description: libdnf - shared library + A library providing simplified C and Python APIs to libsolv. + . + This package provides the libdnf shared library. + +Package: libdnf2-common +Architecture: all +Multi-Arch: foreign +Description: libdnf - common files + A library providing simplified C and Python APIs to libsolv. + . + This package provides common files for the libdnf library. + +Package: libdnf-doc +Architecture: all +Multi-Arch: foreign +Section: doc +Description: Documentation for the libdnf library (common documentation) + A library providing simplified C and Python APIs to libsolv. + . + This package installs common documentation for the libdnf + C bindings. + +Package: python3-hawkey +Architecture: any +Multi-Arch: no +Section: python +Depends: libdnf2t64 (= ${binary:Version}), + python3-libdnf (= ${binary:Version}), +Suggests: python3-hawkey-docs +Description: Python bindings for the hawkey library (Python 3) + A library providing simplified C and Python APIs to libsolv. + . + This package installs the hawkey library for Python 3. + +Package: python3-hawkey-doc +Architecture: all +Multi-Arch: foreign +Section: doc +Depends: libjs-jquery, libjs-underscore, +Description: Python 3 bindings for the hawkey library (common documentation) + A library providing simplified C and Python APIs to libsolv. + . + This package installs common documentation for the hawkey Python + 3 bindings. + +Package: python3-libdnf +Architecture: any +Multi-Arch: no +Section: python +Depends: libdnf2t64 (= ${binary:Version}), +Description: Python bindings for the libdnf library (Python 3) + A library providing simplified C and Python APIs to libsolv. + . + This package installs the libdnf library for Python 3. diff --git a/copyright b/copyright new file mode 100644 index 0000000..276d432 --- /dev/null +++ b/copyright @@ -0,0 +1,243 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libdnf +Upstream-Contact: https://github.com/rpm-software-management/libdnf/issues +Source: https://github.com/rpm-software-management/libdnf + +Files: * +Copyright: 2012-2020, Red Hat, Inc. +License: LGPL-2.1 + +Files: debian/* +Copyright: 2018, 2019, Mihai Moldovan +License: GPL-2+ + +Files: docs/hawkey/* +Copyright: 2012-2015, Red Hat, Inc. +License: GPL-2+ + +Files: docs/libdnf/html/* +Copyright: 2001-2003, Jürgen Hermann +License: GPL-2+ + +Files: libdnf/* +Copyright: 2012-2020, Red Hat, Inc. +License: LGPL-2.1+ + +Files: libdnf/catch-error.hpp + libdnf/error.hpp +Copyright: 2012-2019, Red Hat, Inc. +License: LGPL-2.1 + +Files: libdnf/dnf-advisory-private.hpp + libdnf/dnf-advisory.cpp + libdnf/dnf-advisory.h + libdnf/dnf-advisorypkg.cpp + libdnf/dnf-advisorypkg.h + libdnf/dnf-advisoryref.cpp + libdnf/dnf-advisoryref.h + libdnf/dnf-packagedelta-private.hpp + libdnf/dnf-packagedelta.cpp + libdnf/dnf-packagedelta.h + libdnf/dnf-sack.cpp + libdnf/dnf-sack.h + libdnf/hy-package-private.hpp + libdnf/hy-package.h + libdnf/hy-packageset.cpp + libdnf/hy-packageset.h +Copyright: 2013-2015, Richard Hughes + 2012-2018, Red Hat, Inc. +License: LGPL-2.1+ + +Files: libdnf/dnf-context.cpp +Copyright: 2016, Igor Gnatenko + 2014, 2015, Richard Hughes +License: LGPL-2.1+ + +Files: libdnf/dnf-context.h + libdnf/dnf-goal.cpp + libdnf/dnf-goal.h + libdnf/dnf-keyring.cpp + libdnf/dnf-keyring.h + libdnf/dnf-lock.cpp + libdnf/dnf-lock.h + libdnf/dnf-package.cpp + libdnf/dnf-package.h + libdnf/dnf-repo-loader.cpp + libdnf/dnf-repo-loader.h + libdnf/dnf-repo.cpp + libdnf/dnf-repo.h + libdnf/dnf-rpmts.cpp + libdnf/dnf-rpmts.h + libdnf/dnf-state.cpp + libdnf/dnf-state.h + libdnf/dnf-transaction.cpp + libdnf/dnf-transaction.h + libdnf/dnf-utils.cpp + libdnf/dnf-utils.h + libdnf/dnf-version.h.in + libdnf/libdnf.h +Copyright: 2008-2015, Richard Hughes +License: LGPL-2.1+ + +Files: libdnf/dnf-enums.h + libdnf/libdnf.pc.in + libdnf/dnf-reldep-list.cpp + libdnf/dnf-reldep-list.h + libdnf/dnf-reldep.cpp + libdnf/dnf-reldep.h +Copyright: 2016, Igor Gnatenko +License: LGPL-2.1+ + +Files: libdnf/dnf-types.h +Copyright: 2015, Colin Walters + 2013-2015, Richard Hughes +License: LGPL-2.1+ + +Files: libdnf/plugin/plugin-private.hpp + libdnf/plugin/plugin.cpp + libdnf/plugin/plugin.h +Copyright: 2012-2020, Red Hat, Inc. +License: LGPL-2.1+ + +Files: libdnf/transaction/sql/* +Copyright: 2012-2019, Red Hat, Inc. +License: LGPL-2.1 + +Files: libdnf/utils/bgettext/bgettext-common.h + libdnf/utils/bgettext/bgettext-lib.h + libdnf/utils/bgettext/bgettext.c + libdnf/utils/bgettext/bgettext.h +Copyright: 2017, Jaroslav Rohel +License: LGPL-3+ + +Files: libdnf/utils/tinyformat/tinyformat.hpp +Copyright: 2011, Chris Foster [chris42f (at) gmail (d0t) com] +License: BSL-1.0 + +Files: plugins/* +Copyright: 2012-2020, Red Hat, Inc. +License: LGPL-2.1+ + +Files: python/* +Copyright: 2012-2020, Red Hat, Inc. +License: LGPL-2.1+ + +Files: tests/hawkey/fixtures.cpp + tests/hawkey/fixtures.h + tests/hawkey/test_advisory.cpp + tests/hawkey/test_advisorypkg.cpp + tests/hawkey/test_advisoryref.cpp + tests/hawkey/test_goal.cpp + tests/hawkey/test_iutil.cpp + tests/hawkey/test_main.cpp + tests/hawkey/test_package.cpp + tests/hawkey/test_packagelist.cpp + tests/hawkey/test_packageset.cpp + tests/hawkey/test_query.cpp + tests/hawkey/test_reldep.cpp + tests/hawkey/test_repo.cpp + tests/hawkey/test_sack.cpp + tests/hawkey/test_selector.cpp + tests/hawkey/test_subject.cpp + tests/hawkey/test_suites.h + tests/hawkey/test_util.cpp + tests/hawkey/testshared.cpp + tests/hawkey/testshared.h + tests/hawkey/testsys.cpp + tests/hawkey/testsys.h +Copyright: 2012-2020, Red Hat, Inc. +License: LGPL-2.1+ + +Files: tests/libdnf/dnf-self-test.c +Copyright: 2008-2015, Richard Hughes +License: LGPL-2.1+ + +License: BSL-1.0 + Permission is hereby granted, free of charge, to any person or organization + obtaining a copy of the software and accompanying documentation covered by + this license (the "Software") to use, reproduce, display, distribute, + execute, and transmit the Software, and to prepare derivative works of the + Software, and to permit third-parties to whom the Software is furnished to + do so, all subject to the following: + . + The copyright notices in the Software and this entire statement, including + the above license grant, this restriction and the following disclaimer, + must be included in all copies of the Software, in whole or in part, and + all derivative works of the Software, unless such copies or derivative + works are solely in the form of machine-executable object code generated by + a source language processor. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT + SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE + FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + +License: GPL-2+ + 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 2 of the License, or + (at your option) any later version. + . + This program 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 v2 can be found in `/usr/share/common-licenses/GPL-2'. + +License: LGPL-2.1 + This package is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License version 2.1 as published by the Free Software Foundation. + . + 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-2.1". + +License: LGPL-2.1+ + 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 2 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-2.1. + +License: LGPL-3+ + 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 package; 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'. diff --git a/gbp.conf b/gbp.conf new file mode 100644 index 0000000..f7ff1ff --- /dev/null +++ b/gbp.conf @@ -0,0 +1,11 @@ +[DEFAULT] +debian-branch = debian/sid +upstream-branch = upstream +pristine-tar = True +sign-tags = True + +[import-orig] +upstream-vcs-tag = %(version)s + +[dch] +git-log = --first-parent diff --git a/libdnf-dev.install b/libdnf-dev.install new file mode 100644 index 0000000..399b33a --- /dev/null +++ b/libdnf-dev.install @@ -0,0 +1,3 @@ +usr/include/libdnf +usr/lib/*/libdnf.so +usr/lib/*/pkgconfig/libdnf.pc diff --git a/libdnf-dev.manpages b/libdnf-dev.manpages new file mode 100644 index 0000000..fa37b90 --- /dev/null +++ b/libdnf-dev.manpages @@ -0,0 +1 @@ +usr/share/man/man3/hawkey.3 diff --git a/libdnf-doc.docs b/libdnf-doc.docs new file mode 100644 index 0000000..0b6e0f3 --- /dev/null +++ b/libdnf-doc.docs @@ -0,0 +1,2 @@ +AUTHORS +README.md diff --git a/libdnf-doc.install b/libdnf-doc.install new file mode 100644 index 0000000..986dd64 --- /dev/null +++ b/libdnf-doc.install @@ -0,0 +1 @@ +usr/share/gtk-doc/html/libdnf diff --git a/libdnf-doc.links b/libdnf-doc.links new file mode 100644 index 0000000..7fa3691 --- /dev/null +++ b/libdnf-doc.links @@ -0,0 +1 @@ +usr/share/gtk-doc/html/libdnf usr/share/doc/libdnf-doc/libdnf diff --git a/libdnf2-common.install b/libdnf2-common.install new file mode 100644 index 0000000..afb5869 --- /dev/null +++ b/libdnf2-common.install @@ -0,0 +1 @@ +usr/share/locale/*/*/libdnf.mo diff --git a/libdnf2t64.install b/libdnf2t64.install new file mode 100644 index 0000000..c42c02c --- /dev/null +++ b/libdnf2t64.install @@ -0,0 +1,2 @@ +usr/lib/*/libdnf.so.* +usr/lib/*/libdnf/plugins/ diff --git a/libdnf2t64.lintian-overrides b/libdnf2t64.lintian-overrides new file mode 100644 index 0000000..8597c65 --- /dev/null +++ b/libdnf2t64.lintian-overrides @@ -0,0 +1,3 @@ +# File actually describes the directory's purpose. +libdnf2t64: package-contains-documentation-outside-usr-share-doc +libdnf2t64: package-name-doesnt-match-sonames libdnf2 diff --git a/libdnf2t64.shlibs b/libdnf2t64.shlibs new file mode 100644 index 0000000..21687a6 --- /dev/null +++ b/libdnf2t64.shlibs @@ -0,0 +1 @@ +libdnf 2 libdnf2t64 (>= 0.55.2) diff --git a/patches/0008-Workaround-hawkey-test-failures-with-CK_FORK-no.patch b/patches/0008-Workaround-hawkey-test-failures-with-CK_FORK-no.patch new file mode 100644 index 0000000..cacd4da --- /dev/null +++ b/patches/0008-Workaround-hawkey-test-failures-with-CK_FORK-no.patch @@ -0,0 +1,46 @@ +From ac422a0b38f9396483cd58113074c6db2795e276 Mon Sep 17 00:00:00 2001 +From: Mihai Moldovan +Date: Tue, 29 Sep 2020 18:30:16 +0200 +Subject: [PATCH] Workaround hawkey test failures with CK_FORK=no. + +For a description of what is happening here and a rational of why this might +just be okay for us, see the source code comment. +--- + tests/hawkey/test_goal.cpp | 21 +++++++++++++++++++++ + 1 file changed, 21 insertions(+) + +diff --git a/tests/hawkey/test_goal.cpp b/tests/hawkey/test_goal.cpp +index cca12775..0c4db99c 100644 +--- a/tests/hawkey/test_goal.cpp ++++ b/tests/hawkey/test_goal.cpp +@@ -950,6 +950,27 @@ START_TEST(test_goal_upgrade_disabled_repo) + auto pool = dnf_sack_get_pool(test_globals.sack); + HyGoal goal = hy_goal_create(sack); + ++ /* ++ * This is probably the weirdest workaround ever, but this test case fails ++ * with CK_FORK=no (which is used in the valgrind tests) for an unknown ++ * reason I wasn't able to figure out. ++ * However, just querying the sack, which should be a read-only operation, ++ * seems to remedy this problem. ++ * Since the failure doesn't happen with CK_FORK=yes, whatever is causing ++ * it is likely not a problem in libdnf/hawkey or the libsolv integration, ++ * but rather some sort of... stack or heap corruption? Or a side-effect ++ * of libcheck? ++ * Given that rationale, it's probably okay to mask the problem with this ++ * very weird workaround. ++ */ ++ HyQuery q = hy_query_create (sack); ++ hy_query_filter (q, HY_PKG_REPONAME, HY_EQ, HY_SYSTEM_REPO_NAME); ++ GPtrArray *res = hy_query_run (q); ++ g_ptr_array_unref (res); ++ res = NULL; ++ hy_query_free (q); ++ q = NULL; ++ + hy_goal_upgrade_all(goal); + hy_goal_run_flags(goal, DNF_NONE); + int implicitobsoleteusescolors = pool_get_flag(pool, POOL_FLAG_IMPLICITOBSOLETEUSESCOLORS); +-- +2.26.2 + diff --git a/patches/0011-Set-CMAKE_SKIP_RPATH-to-TRUE.patch b/patches/0011-Set-CMAKE_SKIP_RPATH-to-TRUE.patch new file mode 100644 index 0000000..7eecf72 --- /dev/null +++ b/patches/0011-Set-CMAKE_SKIP_RPATH-to-TRUE.patch @@ -0,0 +1,26 @@ +From ea406b2109c0aba5ac592b2249c0f0a92f62d57b Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= + +Date: Tue, 24 Nov 2020 22:16:41 +0100 +Subject: [PATCH] Set CMAKE_SKIP_RPATH to TRUE + +--- + CMakeLists.txt | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 00ab52f7..b3fc5cda 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -115,6 +115,8 @@ add_compile_options(-Wcast-align -Wno-uninitialized -Wredundant-decls -Wwrite-st + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11 -Wmissing-prototypes -Waggregate-return -Wshadow -Werror=implicit-function-declaration") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wmissing-declarations") + ++SET(CMAKE_SKIP_RPATH TRUE) ++ + # apple: turn rpath off + set(CMAKE_MACOSX_RPATH 0) + +-- +2.26.2 + diff --git a/patches/0012-data-workaround-for-hardcoded-absolute-path-data-in-.patch b/patches/0012-data-workaround-for-hardcoded-absolute-path-data-in-.patch new file mode 100644 index 0000000..c544311 --- /dev/null +++ b/patches/0012-data-workaround-for-hardcoded-absolute-path-data-in-.patch @@ -0,0 +1,29 @@ +From 9c8e0cb52813ed5c8bd713ecda40ccb5e648b81a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= + +Date: Sat, 28 Nov 2020 23:00:31 +0100 +Subject: [PATCH] data: workaround for hardcoded absolute path data in + variables + +We use clean env for each build to use /tmp as location. This is +a temporary solution until upstream/we found a better way for that. +--- + CMakeLists.txt | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -139,7 +139,7 @@ + add_definitions(-DG_LOG_DOMAIN="libdnf") + + # tests +-add_definitions(-DTESTDATADIR="${CMAKE_SOURCE_DIR}/data/tests") ++add_definitions(-DTESTDATADIR="/tmp/data/tests") + + # Use libdnf5 drop-in configuration directories including distribution configuration. + if(ENABLE_DNF5_CONF_DROP_IN) +@@ -203,3 +203,4 @@ + + + add_subdirectory(etc) ++file(COPY data DESTINATION /tmp) diff --git a/patches/0013-python-tests-fix-locale-issues.patch b/patches/0013-python-tests-fix-locale-issues.patch new file mode 100644 index 0000000..dadbcc3 --- /dev/null +++ b/patches/0013-python-tests-fix-locale-issues.patch @@ -0,0 +1,39 @@ +From 712085ae6d701317ca00e90fa03c79c733b3f112 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= + +Date: Wed, 2 Dec 2020 11:30:10 +0100 +Subject: [PATCH] python tests: fix locale issues + +It has been observed that manipulating locales in Debian +environment, tests are failing. + +====================================================================== +ERROR: test_custom_querying (tests.test_reldep.Reldep) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/tmp/reprotest.wOQ8sL/build-experiment-1/build-experiment-1/python/hawkey/tests/tests/test_reldep.py", line 78, in test_custom_querying + reldep = hawkey.Reldep(self.sack, u"\u0159 >= 3") +_hawkey.ValueException: Wrong reldep format: \u0159 >= 3 +--- + python/hawkey/tests/tests/base.py | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/python/hawkey/tests/tests/base.py b/python/hawkey/tests/tests/base.py +index 4d5937b2..e46a1d66 100644 +--- a/python/hawkey/tests/tests/base.py ++++ b/python/hawkey/tests/tests/base.py +@@ -33,6 +33,11 @@ if cachedir is None: + cachedir = tempfile.mkdtemp(dir=os.path.dirname(hawkey.test.UNITTEST_DIR), + prefix='pyhawkey') + ++# run tests with C locales ++os.environ["LC_ALL"] = "C" ++os.environ["LANG"] = "C.UTF-8" ++os.environ["LANGUAGE"] = "en_US:en" ++ + class TestCase(unittest.TestCase): + repo_dir = os.path.normpath(os.path.join(__file__, "../../../../../data/tests/hawkey/")) + +-- +2.26.2 + diff --git a/patches/series b/patches/series new file mode 100644 index 0000000..9b1c82e --- /dev/null +++ b/patches/series @@ -0,0 +1,4 @@ +0008-Workaround-hawkey-test-failures-with-CK_FORK-no.patch +0011-Set-CMAKE_SKIP_RPATH-to-TRUE.patch +0012-data-workaround-for-hardcoded-absolute-path-data-in-.patch +0013-python-tests-fix-locale-issues.patch diff --git a/python3-hawkey-doc.docs b/python3-hawkey-doc.docs new file mode 100644 index 0000000..65aa932 --- /dev/null +++ b/python3-hawkey-doc.docs @@ -0,0 +1,3 @@ +AUTHORS +README.md +build/docs/hawkey/html/ diff --git a/python3-hawkey-doc.links b/python3-hawkey-doc.links new file mode 100644 index 0000000..fe385b3 --- /dev/null +++ b/python3-hawkey-doc.links @@ -0,0 +1,2 @@ +usr/share/javascript/jquery/jquery.js usr/share/doc/python3-hawkey-doc/html/_static/jquery.js +usr/share/javascript/underscore/underscore.js usr/share/doc/python3-hawkey-doc/html/_static/underscore.js diff --git a/python3-hawkey.install b/python3-hawkey.install new file mode 100644 index 0000000..5ea1182 --- /dev/null +++ b/python3-hawkey.install @@ -0,0 +1 @@ +usr/lib/python3/dist-packages/hawkey diff --git a/python3-libdnf.install b/python3-libdnf.install new file mode 100644 index 0000000..1e125bb --- /dev/null +++ b/python3-libdnf.install @@ -0,0 +1 @@ +usr/lib/python3/dist-packages/libdnf* diff --git a/rules b/rules new file mode 100755 index 0000000..5092f11 --- /dev/null +++ b/rules @@ -0,0 +1,52 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +# export DH_VERBOSE = 1 + +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/default.mk +include /usr/share/debhelper/dh_package_notes/package-notes.mk + +%: + dh "${@}" --buildsystem=cmake + +override_dh_auto_configure: + dh_auto_configure --builddirectory=build -- \ + -DWITH_BINDINGS:BOOL=ON \ + -DWITH_GTKDOC:BOOL=ON \ + -DWITH_HTML:BOOL=ON \ + -DWITH_MAN:BOOL=ON \ + -DENABLE_RHSM_SUPPORT:BOOL=OFF \ + -DENABLE_SOLV_URPMREORDER:BOOL=OFF \ + -DWITH_ZCHUNK:BOOL=OFF \ + -DCMAKE_INSTALL_PREFIX:PATH="/usr" \ + -DLIB:STRING="lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)" + +override_dh_auto_build: + dh_auto_build --builddirectory=build -- all doc-html doc-gtk doc + +override_dh_auto_install: + dh_auto_install --builddirectory=build + + # Remove doctree files (redundant, conflicts with reproducible builds) + rm -rfv 'build/docs/hawkey/html/.doctrees' + + # Use system-provides files. + rm -fv 'build/docs/hawkey/html/_static/jquery.js' \ + 'build/docs/hawkey/html/_static/underscore.js' \ + 'build/docs/hawkey/html/_static/doctools.js' \ + 'build/docs/hawkey/html/_static/language_data.js' \ + 'build/docs/hawkey/html/_static/searchtools.js' + +override_dh_auto_clean: + rm -f 'libdnf/dnf-version.h' + dh_auto_clean --builddirectory=build + +override_dh_auto_test: + mkdir -p '$(CURDIR)/debian/tests-home' + LC_ALL=C HOME='$(CURDIR)/debian/tests-home' dh_auto_test --builddirectory=build -- ARGS='-V' + +override_dh_installchangelogs: + # Do not try to install a history directory within docs. + dh_installchangelogs -Xhistory diff --git a/source/format b/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/source/options b/source/options new file mode 100644 index 0000000..cb61fa5 --- /dev/null +++ b/source/options @@ -0,0 +1 @@ +extend-diff-ignore = "^[^/]*[.]egg-info/" diff --git a/upstream/metadata b/upstream/metadata new file mode 100644 index 0000000..dcaab2d --- /dev/null +++ b/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/rpm-software-management/libdnf/issues +Bug-Submit: https://github.com/rpm-software-management/libdnf/issues/new +Repository: https://github.com/rpm-software-management/libdnf.git +Repository-Browse: https://github.com/rpm-software-management/libdnf diff --git a/watch b/watch new file mode 100644 index 0000000..e402a59 --- /dev/null +++ b/watch @@ -0,0 +1,3 @@ +version=4 +opts=filenamemangle=s/.+\/(\d\S+)\.tar\.gz/libdnf-$1\.tar\.gz/ \ + https://github.com/rpm-software-management/libdnf/tags .*/@ANY_VERSION@\.tar\.gz