-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
211 additions
and
3,474 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
...kg/debian/patches/000001_docs-hawkeye-CMakeLists.txt_support-debian-python23-sphinx.patch
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
debian-pkg/debian/patches/0001-CMakeLists.txt-append-libsolv-cmake-path.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From d0c07d97dba24d25e41d60e6688f2245522f17f3 Mon Sep 17 00:00:00 2001 | ||
From: Mihai Moldovan <[email protected]> | ||
Date: Tue, 29 Sep 2020 18:30:16 +0200 | ||
Subject: [PATCH] CMakeLists.txt: append libsolv cmake path | ||
|
||
Make sure cmake finds FindLibSolv.cmake installed | ||
in ${CMAKE_INSTALL_PREFIX}/share/cmake/libsolv. | ||
--- | ||
CMakeLists.txt | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 40d64fc4..6c96caed 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -46,6 +46,7 @@ if(APPLE) | ||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH};/usr/local/share/cmake/Modules/) | ||
include_directories(/usr/local/include) | ||
endif() | ||
+LIST (APPEND CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/share/cmake/libsolv/") | ||
|
||
|
||
# build dependencies | ||
-- | ||
2.26.2 | ||
|
16 changes: 0 additions & 16 deletions
16
debian-pkg/debian/patches/000100_CMakeLists.txt_append-libsolv-cmake-path.patch
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
debian-pkg/debian/patches/0002-000200_tests-hawkey-CMakeLists.txt_use-static-libche.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 02f66db51a3e9e058721dfcaea714de20bdb6a4f Mon Sep 17 00:00:00 2001 | ||
From: Mihai Moldovan <[email protected]> | ||
Date: Tue, 29 Sep 2020 18:30:16 +0200 | ||
Subject: [PATCH] | ||
000200_tests-hawkey-CMakeLists.txt_use-static-libcheck-and-add-LDFLAGS | ||
|
||
Within Debian, only the static libcheck library is shipped. Use it correctly, | ||
since the static library requires additional private libraries and definitions. | ||
--- | ||
tests/hawkey/CMakeLists.txt | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/tests/hawkey/CMakeLists.txt b/tests/hawkey/CMakeLists.txt | ||
index c2ca446a..b4acd57b 100644 | ||
--- a/tests/hawkey/CMakeLists.txt | ||
+++ b/tests/hawkey/CMakeLists.txt | ||
@@ -28,7 +28,8 @@ add_executable(test_hawkey_main ${hawkeytest_SRCS}) | ||
set_target_properties(test_hawkey_main PROPERTIES COMPILE_FLAGS -fPIC) | ||
target_link_libraries(test_hawkey_main | ||
libdnf | ||
- ${CHECK_LIBRARIES} | ||
+ ${CHECK_STATIC_LIBRARIES} | ||
+ ${CHECK_STATIC_LDFLAGS} | ||
${SOLV_LIBRARY} | ||
${SOLVEXT_LIBRARY} | ||
${RPMDB_LIBRARY} | ||
-- | ||
2.26.2 | ||
|
18 changes: 0 additions & 18 deletions
18
...bian/patches/000200_tests-hawkey-CMakeLists.txt_use-static-libcheck-and-add-LDFLAGS.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
Description: Set the default disttype to RPM. | ||
Author: Mihai Moldovan <[email protected]> | ||
From 858f1ef41e7e6927b5e6308659f0f0cac965294c Mon Sep 17 00:00:00 2001 | ||
From: Mihai Moldovan <[email protected]> | ||
Date: Tue, 29 Sep 2020 18:30:16 +0200 | ||
Subject: [PATCH] | ||
000300_tests-hawkey-test_iutil.cpp_libdnf-dnf-sack.cpp_set-default-disttype-to-DISTTYPE_RPM | ||
|
||
On "foreign" systems, including Debian, libsolv tries to be smart and default | ||
to the native packaging system type. We need to explicitly override it to use | ||
RPM for dnf to work. | ||
--- | ||
libdnf/dnf-sack.cpp | 1 + | ||
tests/hawkey/test_iutil.cpp | 7 +++++++ | ||
2 files changed, 8 insertions(+) | ||
|
||
diff --git a/libdnf/dnf-sack.cpp b/libdnf/dnf-sack.cpp | ||
index 025988b4..cacf9fff 100644 | ||
--- a/libdnf/dnf-sack.cpp | ||
+++ b/libdnf/dnf-sack.cpp | ||
@@ -183,6 +183,7 @@ dnf_sack_init(DnfSack *sack) | ||
{ | ||
@@ -185,6 +185,7 @@ dnf_sack_init(DnfSack *sack) | ||
DnfSackPrivate *priv = GET_PRIVATE(sack); | ||
priv->pool = pool_create(); | ||
pool_set_flag(priv->pool, POOL_FLAG_WHATPROVIDESWITHDISABLED, 1); | ||
+ pool_setdisttype(priv->pool, DISTTYPE_RPM); | ||
priv->running_kernel_id = -1; | ||
priv->running_kernel_fn = running_kernel; | ||
priv->considered_uptodate = TRUE; | ||
diff --git a/tests/hawkey/test_iutil.cpp b/tests/hawkey/test_iutil.cpp | ||
index 8d00cc94..0ca12800 100644 | ||
--- a/tests/hawkey/test_iutil.cpp | ||
+++ b/tests/hawkey/test_iutil.cpp | ||
@@ -150,6 +150,13 @@ END_TEST | ||
|
@@ -31,3 +42,6 @@ RPM for dnf to work. | |
char evr[] = "1:5.9.3-8"; | ||
char *epoch, *version, *release; | ||
|
||
-- | ||
2.26.2 | ||
|
23 changes: 0 additions & 23 deletions
23
...ian/patches/000310_tests-hawkey-test_sack.cpp-handle-missing-athlon-arch-gracefully.patch
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...ches/000330_tests-hawkey-test_iutil.cpp_libdnf-dnf-sack.cpp_enable-rpmdb-in-homedir.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
Description: Enable implicitobsoleteusescolors flag. | ||
Author: Mihai Moldovan <[email protected]> | ||
From 4f21fb8cfedca9bc23ffbe935718e1cc51b1cc79 Mon Sep 17 00:00:00 2001 | ||
From: Mihai Moldovan <[email protected]> | ||
Date: Tue, 29 Sep 2020 18:30:16 +0200 | ||
Subject: [PATCH] | ||
000320_tests-hawkey-test_iutil.cpp_libdnf-dnf-sack.cpp_enable-implicitobsoleteusescolors | ||
|
||
This flag is normally enabled by default in libsolv if compiled on Fedora or | ||
Mageia systems, but disabled for all others. Since we explicitly want to | ||
support Fedora (and CentOS/RHEL) repositories with DNF, enable this feature for | ||
correct resolution. | ||
--- | ||
libdnf/dnf-sack.cpp | 1 + | ||
tests/hawkey/test_iutil.cpp | 9 +++++++++ | ||
2 files changed, 10 insertions(+) | ||
|
||
diff --git a/libdnf/dnf-sack.cpp b/libdnf/dnf-sack.cpp | ||
index cacf9fff..0162e04b 100644 | ||
--- a/libdnf/dnf-sack.cpp | ||
+++ b/libdnf/dnf-sack.cpp | ||
@@ -184,6 +184,7 @@ dnf_sack_init(DnfSack *sack) | ||
DnfSackPrivate *priv = GET_PRIVATE(sack); | ||
@@ -186,6 +186,7 @@ dnf_sack_init(DnfSack *sack) | ||
priv->pool = pool_create(); | ||
pool_set_flag(priv->pool, POOL_FLAG_WHATPROVIDESWITHDISABLED, 1); | ||
pool_setdisttype(priv->pool, DISTTYPE_RPM); | ||
+ pool_set_flag(priv->pool, POOL_FLAG_IMPLICITOBSOLETEUSESCOLORS, 1); | ||
priv->running_kernel_id = -1; | ||
priv->running_kernel_fn = running_kernel; | ||
priv->considered_uptodate = TRUE; | ||
diff --git a/tests/hawkey/test_iutil.cpp b/tests/hawkey/test_iutil.cpp | ||
index 0ca12800..8ce75bfb 100644 | ||
--- a/tests/hawkey/test_iutil.cpp | ||
+++ b/tests/hawkey/test_iutil.cpp | ||
@@ -157,6 +157,15 @@ START_TEST(test_version_split) | ||
|
@@ -34,3 +45,6 @@ correct resolution. | |
char evr[] = "1:5.9.3-8"; | ||
char *epoch, *version, *release; | ||
|
||
-- | ||
2.26.2 | ||
|
31 changes: 31 additions & 0 deletions
31
debian-pkg/debian/patches/0005-000330_tests-hawkey-test_iutil.cpp_libdnf-dnf-sack.c.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From af55ca7fb2193fce2dcdb36efb98c1993f2c7cdb Mon Sep 17 00:00:00 2001 | ||
From: Mihai Moldovan <[email protected]> | ||
Date: Tue, 29 Sep 2020 18:30:16 +0200 | ||
Subject: [PATCH] | ||
000330_tests-hawkey-test_iutil.cpp_libdnf-dnf-sack.cpp_enable-rpmdb-in-homedir | ||
|
||
The rpm package on Debian is patched to always use the RPMDB in a user's home | ||
directory. Libsolv is not patched in such a way. Since DNF is mixing librpm and | ||
libsolv, strange situations occur. | ||
|
||
Tell libsolv to prefer the rpmdb in the user's home directory. | ||
--- | ||
libdnf/dnf-sack.cpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/libdnf/dnf-sack.cpp b/libdnf/dnf-sack.cpp | ||
index 0162e04b..b12ee6df 100644 | ||
--- a/libdnf/dnf-sack.cpp | ||
+++ b/libdnf/dnf-sack.cpp | ||
@@ -1685,7 +1685,7 @@ dnf_sack_load_system_repo(DnfSack *sack, HyRepo a_hrepo, int flags, GError **err | ||
repo = repo_create(pool, HY_SYSTEM_REPO_NAME); | ||
|
||
g_debug("fetching rpmdb"); | ||
- int flagsrpm = REPO_REUSE_REPODATA | RPM_ADD_WITH_HDRID | REPO_USE_ROOTDIR; | ||
+ int flagsrpm = REPO_REUSE_REPODATA | RPM_ADD_WITH_HDRID | REPO_USE_ROOTDIR | RPMDB_USE_HOMEDIR; | ||
int rc = repo_add_rpmdb_reffp(repo, NULL, flagsrpm); | ||
if (!rc) { | ||
repoImpl->state_main = _HY_LOADED_FETCH; | ||
-- | ||
2.26.2 | ||
|
Oops, something went wrong.