diff --git a/base/comps/components.toml b/base/comps/components.toml index cfed7f265dd..43787104de0 100644 --- a/base/comps/components.toml +++ b/base/comps/components.toml @@ -1887,7 +1887,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml", "component-min [components.libslirp] [components.libsmi] [components.libsodium] -[components.libsolv] [components.libsoup] [components.libspatialite] [components.libspectre] diff --git a/base/comps/libsolv/0002-Make-file-time-available-for-dnf-plugins.patch b/base/comps/libsolv/0002-Make-file-time-available-for-dnf-plugins.patch new file mode 100644 index 00000000000..0e3cb759064 --- /dev/null +++ b/base/comps/libsolv/0002-Make-file-time-available-for-dnf-plugins.patch @@ -0,0 +1,152 @@ +diff --git a/ext/repo_rpmmd.c b/ext/repo_rpmmd.c +index 42b7c73..2d3281c 100644 +--- a/ext/repo_rpmmd.c ++++ b/ext/repo_rpmmd.c +@@ -842,6 +842,9 @@ startElement(struct solv_xmlparser *xmlp, int state, const char *name, const cha + str = solv_xmlparser_find_attr("build", atts); + if (str && (ti = strtoull(str, 0, 10)) != 0) + repodata_set_num(pd->data, handle, SOLVABLE_BUILDTIME, ti); ++ str = solv_xmlparser_find_attr("file", atts); ++ if (str && (ti = strtoull(str, 0, 10)) != 0) ++ repodata_set_num(pd->data, handle, SOLVABLE_FILETIME, ti); + break; + } + case STATE_SIZE: +diff --git a/src/knownid.h b/src/knownid.h +index 3d558af..abad692 100644 +--- a/src/knownid.h ++++ b/src/knownid.h +@@ -274,6 +274,7 @@ KNOWNID(UPDATE_COLLECTIONLIST, "update:collectionlist"), /* list of UPDATE_COLL + KNOWNID(SOLVABLE_MULTIARCH, "solvable:multiarch"), /* debian multi-arch field */ + KNOWNID(SOLVABLE_SIGNATUREDATA, "solvable:signaturedata"), /* conda */ + KNOWNID(SOLVABLE_ORDERWITHREQUIRES, "solvable:orderwithrequires"), /* rpm */ ++KNOWNID(SOLVABLE_FILETIME, "solvable:filetime"), /* file publish time from rpm-md