import libsolv-0.7.4-3.el8
This commit is contained in:
parent
10a0e9ae3c
commit
8f4422ccd0
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
SOURCES/libsolv-0.6.35.tar.gz
|
||||
SOURCES/libsolv-0.7.4.tar.gz
|
||||
|
@ -1 +1 @@
|
||||
4f53d60467ddab4099cfe5eb91a3fe7260666209 SOURCES/libsolv-0.6.35.tar.gz
|
||||
c7f87563faf2566d40c643a49d115aa4a6f01ac2 SOURCES/libsolv-0.7.4.tar.gz
|
||||
|
@ -1,61 +0,0 @@
|
||||
From 0e29e1188c19609e117478a0df1cb995a2f9e745 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Schroeder <mls@suse.de>
|
||||
Date: Fri, 28 Sep 2018 14:48:14 +0200
|
||||
Subject: [PATCH] Make sure that targeted updates don't do reinstalls
|
||||
|
||||
---
|
||||
src/solver.c | 16 +++++++++++++---
|
||||
1 file changed, 13 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/solver.c b/src/solver.c
|
||||
index 6405f4a..a4e0c4b 100644
|
||||
--- a/src/solver.c
|
||||
+++ b/src/solver.c
|
||||
@@ -2957,7 +2957,9 @@ add_update_target(Solver *solv, Id p, Id how)
|
||||
Pool *pool = solv->pool;
|
||||
Solvable *s = pool->solvables + p;
|
||||
Repo *installed = solv->installed;
|
||||
- Id pi, pip;
|
||||
+ Id pi, pip, identicalp;
|
||||
+ int startcnt, endcnt;
|
||||
+
|
||||
if (!solv->update_targets)
|
||||
{
|
||||
solv->update_targets = solv_calloc(1, sizeof(Queue));
|
||||
@@ -2968,6 +2970,8 @@ add_update_target(Solver *solv, Id p, Id how)
|
||||
queue_push2(solv->update_targets, p, p);
|
||||
return;
|
||||
}
|
||||
+ identicalp = 0;
|
||||
+ startcnt = solv->update_targets->count;
|
||||
FOR_PROVIDES(pi, pip, s->name)
|
||||
{
|
||||
Solvable *si = pool->solvables + pi;
|
||||
@@ -2982,9 +2986,9 @@ add_update_target(Solver *solv, Id p, Id how)
|
||||
if (how & SOLVER_CLEANDEPS)
|
||||
add_cleandeps_updatepkg(solv, pi);
|
||||
queue_push2(solv->update_targets, pi, p);
|
||||
- /* check if it's ok to keep the installed package */
|
||||
+ /* remember an installed package that is identical to p */
|
||||
if (s->evr == si->evr && solvable_identical(s, si))
|
||||
- queue_push2(solv->update_targets, pi, pi);
|
||||
+ identicalp = pi;
|
||||
}
|
||||
if (s->obsoletes)
|
||||
{
|
||||
@@ -3014,6 +3018,12 @@ add_update_target(Solver *solv, Id p, Id how)
|
||||
}
|
||||
}
|
||||
}
|
||||
+ /* also allow upgrading to an identical installed package */
|
||||
+ if (identicalp)
|
||||
+ {
|
||||
+ for (endcnt = solv->update_targets->count; startcnt < endcnt; startcnt += 2)
|
||||
+ queue_push2(solv->update_targets, solv->update_targets->elements[startcnt], identicalp);
|
||||
+ }
|
||||
}
|
||||
|
||||
static int
|
||||
--
|
||||
libgit2 0.26.6
|
||||
|
@ -0,0 +1,58 @@
|
||||
From 5ab0d7ab942d97cb6992c8b73b29b2a896e9fe7a Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Mracek <jmracek@redhat.com>
|
||||
Date: Fri, 22 Feb 2019 18:32:02 +0100
|
||||
Subject: [PATCH] Not considered excluded packages as a best candidate
|
||||
|
||||
---
|
||||
src/policy.c | 28 ++++++++++++++++++++++++++++
|
||||
1 file changed, 28 insertions(+)
|
||||
|
||||
diff --git a/src/policy.c b/src/policy.c
|
||||
index 5f61115..d51fa6f 100644
|
||||
--- a/src/policy.c
|
||||
+++ b/src/policy.c
|
||||
@@ -831,6 +831,33 @@ move_installed_to_front(Pool *pool, Queue *plist)
|
||||
}
|
||||
}
|
||||
|
||||
+
|
||||
+/*
|
||||
+ * prune_to_considered
|
||||
+ *
|
||||
+ * Keep only considered (pool->considered) solvables in plist. If pool->considered is NULL, it keeps
|
||||
+ * all solvable in plist. If non of solvables in plist is in considered map, it returns empty plist.
|
||||
+ */
|
||||
+static void
|
||||
+prune_to_considered(Pool *pool, Queue *plist)
|
||||
+{
|
||||
+ if (plist->count == 0) /* no need to prune if plist is empty */
|
||||
+ return;
|
||||
+ if (!pool->considered) /* no need to prune if no considered map */
|
||||
+ return;
|
||||
+ int i, j;
|
||||
+ Id id;
|
||||
+ for (i = j = 0; i < plist->count; i++)
|
||||
+ {
|
||||
+ id = plist->elements[i];
|
||||
+ if (MAPTST(pool->considered, id))
|
||||
+ {
|
||||
+ plist->elements[j++] = id;
|
||||
+ }
|
||||
+ }
|
||||
+ plist->count = j;
|
||||
+}
|
||||
+
|
||||
/*
|
||||
* prune_to_best_version
|
||||
*
|
||||
@@ -1299,6 +1326,7 @@ policy_filter_unwanted(Solver *solv, Queue *plist, int mode)
|
||||
return;
|
||||
}
|
||||
}
|
||||
+ prune_to_considered(pool, plist);
|
||||
if (plist->count > 1)
|
||||
{
|
||||
if (mode != POLICY_MODE_SUGGEST)
|
||||
--
|
||||
libgit2 0.27.7
|
||||
|
@ -0,0 +1,159 @@
|
||||
From d053217223eff6e329da84b4d2e0c73d95e1a00f Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Rohel <jrohel@redhat.com>
|
||||
Date: Thu, 28 Mar 2019 12:56:08 +0100
|
||||
Subject: [PATCH] Add support for computing hashes using OpenSSL
|
||||
|
||||
---
|
||||
CMakeLists.txt | 11 ++++++++++-
|
||||
src/CMakeLists.txt | 15 ++++++++++-----
|
||||
src/chksum.c | 32 ++++++++++++++++++++++++++++++++
|
||||
tools/CMakeLists.txt | 2 +-
|
||||
4 files changed, 53 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index ab385f1..b2a0b72 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -38,6 +38,7 @@ OPTION (ENABLE_ZSTD_COMPRESSION "Build with zstd compression support?" OFF)
|
||||
OPTION (ENABLE_ZCHUNK_COMPRESSION "Build with zchunk compression support?" OFF)
|
||||
OPTION (WITH_SYSTEM_ZCHUNK "Use system zchunk library?" OFF)
|
||||
OPTION (WITH_LIBXML2 "Build with libxml2 instead of libexpat?" OFF)
|
||||
+OPTION (WITH_OPENSSL "Use OpenSSL instead of internal implementation of hashes?" OFF)
|
||||
|
||||
# Library
|
||||
IF (DEFINED LIB)
|
||||
@@ -177,6 +178,11 @@ INCLUDE_DIRECTORIES (${EXPAT_INCLUDE_DIRS})
|
||||
ENDIF (WITH_LIBXML2 )
|
||||
ENDIF (ENABLE_RPMMD OR ENABLE_SUSEREPO OR ENABLE_APPDATA OR ENABLE_COMPS OR ENABLE_HELIXREPO OR ENABLE_MDKREPO)
|
||||
|
||||
+IF (WITH_OPENSSL)
|
||||
+FIND_PACKAGE (OpenSSL REQUIRED)
|
||||
+INCLUDE_DIRECTORIES (${OPENSSL_INCLUDE_DIR})
|
||||
+ENDIF(WITH_OPENSSL)
|
||||
+
|
||||
IF (ENABLE_ZLIB_COMPRESSION)
|
||||
FIND_PACKAGE (ZLIB REQUIRED)
|
||||
INCLUDE_DIRECTORIES (${ZLIB_INCLUDE_DIRS})
|
||||
@@ -287,7 +293,7 @@ ENDIF (${CMAKE_MAJOR_VERSION} GREATER 2)
|
||||
|
||||
# should create config.h with #cmakedefine instead...
|
||||
FOREACH (VAR HAVE_STRCHRNUL HAVE_FOPENCOOKIE HAVE_FUNOPEN WORDS_BIGENDIAN
|
||||
- HAVE_RPM_DB_H HAVE_PGPDIGGETPARAMS WITH_LIBXML2 )
|
||||
+ HAVE_RPM_DB_H HAVE_PGPDIGGETPARAMS WITH_LIBXML2 WITH_OPENSSL)
|
||||
IF(${VAR})
|
||||
ADD_DEFINITIONS (-D${VAR}=1)
|
||||
SET (SWIG_FLAGS ${SWIG_FLAGS} -D${VAR})
|
||||
@@ -419,6 +425,9 @@ ENDIF (ENABLE_ZSTD_COMPRESSION)
|
||||
IF (WITH_SYSTEM_ZCHUNK)
|
||||
SET (SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} ${ZCHUNK_LIBRARIES})
|
||||
ENDIF (WITH_SYSTEM_ZCHUNK)
|
||||
+IF (WITH_OPENSSL)
|
||||
+SET (SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES} ${OPENSSL_CRYPTO_LIBRARY})
|
||||
+ENDIF (WITH_OPENSSL)
|
||||
IF (ENABLE_RPMDB)
|
||||
SET (SYSTEM_LIBRARIES ${RPMDB_LIBRARY} ${SYSTEM_LIBRARIES})
|
||||
ENDIF (ENABLE_RPMDB)
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index be487a7..fc3092a 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -18,9 +18,8 @@ SET (libsolv_SRCS
|
||||
solver.c solverdebug.c repo_solv.c repo_write.c evr.c pool.c
|
||||
queue.c repo.c repodata.c repopage.c util.c policy.c solvable.c
|
||||
transaction.c order.c rules.c problems.c linkedpkg.c cplxdeps.c
|
||||
- chksum.c md5.c sha1.c sha2.c solvversion.c selection.c
|
||||
- fileprovides.c diskusage.c suse.c solver_util.c cleandeps.c
|
||||
- userinstalled.c filelistfilter.c)
|
||||
+ chksum.c solvversion.c selection.c fileprovides.c diskusage.c
|
||||
+ suse.c solver_util.c cleandeps.c userinstalled.c filelistfilter.c)
|
||||
|
||||
SET (libsolv_HEADERS
|
||||
bitmap.h evr.h hash.h policy.h poolarch.h poolvendor.h pool.h
|
||||
@@ -33,16 +32,22 @@ IF (ENABLE_CONDA)
|
||||
SET (libsolv_SRCS ${libsolv_SRCS} conda.c)
|
||||
ENDIF (ENABLE_CONDA)
|
||||
|
||||
+IF (NOT WITH_OPENSSL)
|
||||
+ SET (libsolv_SRCS ${libsolv_SRCS} md5.c sha1.c sha2.c)
|
||||
+ENDIF (NOT WITH_OPENSSL)
|
||||
|
||||
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
|
||||
IF (HAVE_LINKER_VERSION_SCRIPT)
|
||||
SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${LINK_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/src/libsolv.ver")
|
||||
ENDIF (HAVE_LINKER_VERSION_SCRIPT)
|
||||
|
||||
IF (DISABLE_SHARED)
|
||||
-ADD_LIBRARY (libsolv STATIC ${libsolv_SRCS})
|
||||
+ ADD_LIBRARY (libsolv STATIC ${libsolv_SRCS})
|
||||
ELSE (DISABLE_SHARED)
|
||||
-ADD_LIBRARY (libsolv SHARED ${libsolv_SRCS})
|
||||
+ ADD_LIBRARY (libsolv SHARED ${libsolv_SRCS})
|
||||
+ IF (WITH_OPENSSL)
|
||||
+ TARGET_LINK_LIBRARIES (libsolv ${OPENSSL_CRYPTO_LIBRARY})
|
||||
+ ENDIF (WITH_OPENSSL)
|
||||
ENDIF (DISABLE_SHARED)
|
||||
|
||||
SET_TARGET_PROPERTIES(libsolv PROPERTIES OUTPUT_NAME "solv")
|
||||
diff --git a/src/chksum.c b/src/chksum.c
|
||||
index df46145..d7b39e8 100644
|
||||
--- a/src/chksum.c
|
||||
+++ b/src/chksum.c
|
||||
@@ -15,10 +15,42 @@
|
||||
#include "util.h"
|
||||
#include "chksum.h"
|
||||
|
||||
+#ifdef WITH_OPENSSL
|
||||
+
|
||||
+#include <openssl/md5.h>
|
||||
+#include <openssl/sha.h>
|
||||
+
|
||||
+typedef SHA_CTX SHA1_CTX;
|
||||
+typedef SHA256_CTX SHA224_CTX;
|
||||
+typedef SHA512_CTX SHA384_CTX;
|
||||
+
|
||||
+#define solv_MD5_Init(ctx) MD5_Init(ctx)
|
||||
+#define solv_MD5_Update(ctx, data, len) MD5_Update(ctx, data, len)
|
||||
+#define solv_MD5_Final(md, ctx) MD5_Final(md, ctx)
|
||||
+#define solv_SHA1_Init(ctx) SHA1_Init(ctx)
|
||||
+#define solv_SHA1_Update(ctx, data, len) SHA1_Update(ctx, data, len)
|
||||
+#define solv_SHA1_Final(ctx, md) SHA1_Final(md, ctx)
|
||||
+#define solv_SHA224_Init(ctx) SHA224_Init(ctx)
|
||||
+#define solv_SHA224_Update(ctx, data, len) SHA224_Update(ctx, data, len)
|
||||
+#define solv_SHA224_Final(md, ctx) SHA224_Final(md, ctx)
|
||||
+#define solv_SHA256_Init(ctx) SHA256_Init(ctx)
|
||||
+#define solv_SHA256_Update(ctx, data, len) SHA256_Update(ctx, data, len)
|
||||
+#define solv_SHA256_Final(md, ctx) SHA256_Final(md, ctx)
|
||||
+#define solv_SHA384_Init(ctx) SHA384_Init(ctx)
|
||||
+#define solv_SHA384_Update(ctx, data, len) SHA384_Update(ctx, data, len)
|
||||
+#define solv_SHA384_Final(md, ctx) SHA384_Final(md, ctx)
|
||||
+#define solv_SHA512_Init(ctx) SHA512_Init(ctx)
|
||||
+#define solv_SHA512_Update(ctx, data, len) SHA512_Update(ctx, data, len)
|
||||
+#define solv_SHA512_Final(md, ctx) SHA512_Final(md, ctx)
|
||||
+
|
||||
+#else
|
||||
+
|
||||
#include "md5.h"
|
||||
#include "sha1.h"
|
||||
#include "sha2.h"
|
||||
|
||||
+#endif
|
||||
+
|
||||
struct s_Chksum {
|
||||
Id type;
|
||||
int done;
|
||||
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
|
||||
index 802dc50..b1f6c7a 100644
|
||||
--- a/tools/CMakeLists.txt
|
||||
+++ b/tools/CMakeLists.txt
|
||||
@@ -99,7 +99,7 @@ SET (tools_list ${tools_list} appdata2solv)
|
||||
ENDIF (ENABLE_APPDATA)
|
||||
|
||||
ADD_EXECUTABLE (dumpsolv dumpsolv.c )
|
||||
-TARGET_LINK_LIBRARIES (dumpsolv libsolv)
|
||||
+TARGET_LINK_LIBRARIES (dumpsolv libsolv ${SYSTEM_LIBRARIES})
|
||||
|
||||
ADD_EXECUTABLE (mergesolv mergesolv.c )
|
||||
TARGET_LINK_LIBRARIES (mergesolv toolstuff libsolvext libsolv ${SYSTEM_LIBRARIES})
|
||||
--
|
||||
libgit2 0.27.8
|
||||
|
@ -1,412 +0,0 @@
|
||||
From b581b8e135b3d381d6df7e392a3f31b88697ea26 Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Rohel <jrohel@redhat.com>
|
||||
Date: Fri, 7 Dec 2018 07:05:10 +0100
|
||||
Subject: [PATCH 1/7] Fix: Dereference of null pointer
|
||||
|
||||
---
|
||||
ext/repo_repomdxml.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ext/repo_repomdxml.c b/ext/repo_repomdxml.c
|
||||
index 760d481f..b2a5b8dd 100644
|
||||
--- a/ext/repo_repomdxml.c
|
||||
+++ b/ext/repo_repomdxml.c
|
||||
@@ -181,7 +181,7 @@ startElement(struct solv_xmlparser *xmlp, int state, const char *name, const cha
|
||||
while (value)
|
||||
{
|
||||
char *p = strchr(value, ',');
|
||||
- if (*p)
|
||||
+ if (p)
|
||||
*p++ = 0;
|
||||
if (*value)
|
||||
repodata_add_poolstr_array(pd->data, SOLVID_META, REPOSITORY_UPDATES, value);
|
||||
--
|
||||
2.19.2
|
||||
|
||||
|
||||
From 17ebf9e87309e8815df865fef8c6e44f185cb16b Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Rohel <jrohel@redhat.com>
|
||||
Date: Tue, 11 Dec 2018 09:50:06 +0100
|
||||
Subject: [PATCH 2/7] Fix: Add va_end() before return
|
||||
|
||||
The va_end() performs cleanup.
|
||||
If va_end() is not called before a function that calls va_start() returns,
|
||||
the behavior is undefined.
|
||||
---
|
||||
src/pool.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/pool.c b/src/pool.c
|
||||
index 60cc0f49..f03b43f9 100644
|
||||
--- a/src/pool.c
|
||||
+++ b/src/pool.c
|
||||
@@ -1505,6 +1505,7 @@ pool_debug(Pool *pool, int type, const char *format, ...)
|
||||
vprintf(format, args);
|
||||
else
|
||||
vfprintf(stderr, format, args);
|
||||
+ va_end(args);
|
||||
return;
|
||||
}
|
||||
vsnprintf(buf, sizeof(buf), format, args);
|
||||
--
|
||||
2.19.2
|
||||
|
||||
|
||||
From 24acb5dea18bef01fae13db414b2369dfae951b4 Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Rohel <jrohel@redhat.com>
|
||||
Date: Tue, 11 Dec 2018 10:14:04 +0100
|
||||
Subject: [PATCH 3/7] Fix: Memory leaks
|
||||
|
||||
---
|
||||
ext/repo_rpmdb.c | 16 ++++++++++++++++
|
||||
ext/testcase.c | 4 ++++
|
||||
tools/repo2solv.c | 1 +
|
||||
3 files changed, 21 insertions(+)
|
||||
|
||||
diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c
|
||||
index 75bb6780..ff939978 100644
|
||||
--- a/ext/repo_rpmdb.c
|
||||
+++ b/ext/repo_rpmdb.c
|
||||
@@ -1939,6 +1939,8 @@ repo_add_rpm(Repo *repo, const char *rpm, int flags)
|
||||
if (fread(lead, 96 + 16, 1, fp) != 1 || getu32(lead) != 0xedabeedb)
|
||||
{
|
||||
pool_error(pool, -1, "%s: not a rpm", rpm);
|
||||
+ solv_chksum_free(leadsigchksumh, NULL);
|
||||
+ solv_chksum_free(chksumh, NULL);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
@@ -1951,12 +1953,16 @@ repo_add_rpm(Repo *repo, const char *rpm, int flags)
|
||||
if (lead[78] != 0 || lead[79] != 5)
|
||||
{
|
||||
pool_error(pool, -1, "%s: not a rpm v5 header", rpm);
|
||||
+ solv_chksum_free(leadsigchksumh, NULL);
|
||||
+ solv_chksum_free(chksumh, NULL);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
if (getu32(lead + 96) != 0x8eade801)
|
||||
{
|
||||
pool_error(pool, -1, "%s: bad signature header", rpm);
|
||||
+ solv_chksum_free(leadsigchksumh, NULL);
|
||||
+ solv_chksum_free(chksumh, NULL);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
@@ -1965,6 +1971,8 @@ repo_add_rpm(Repo *repo, const char *rpm, int flags)
|
||||
if (sigcnt >= MAX_SIG_CNT || sigdsize >= MAX_SIG_DSIZE)
|
||||
{
|
||||
pool_error(pool, -1, "%s: bad signature header", rpm);
|
||||
+ solv_chksum_free(leadsigchksumh, NULL);
|
||||
+ solv_chksum_free(chksumh, NULL);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
@@ -1975,6 +1983,8 @@ repo_add_rpm(Repo *repo, const char *rpm, int flags)
|
||||
{
|
||||
if (!headfromfp(&state, rpm, fp, lead + 96, sigcnt, sigdsize, sigpad, chksumh, leadsigchksumh))
|
||||
{
|
||||
+ solv_chksum_free(leadsigchksumh, NULL);
|
||||
+ solv_chksum_free(chksumh, NULL);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
@@ -2014,6 +2024,8 @@ repo_add_rpm(Repo *repo, const char *rpm, int flags)
|
||||
if (fread(lead, l, 1, fp) != 1)
|
||||
{
|
||||
pool_error(pool, -1, "%s: unexpected EOF", rpm);
|
||||
+ solv_chksum_free(leadsigchksumh, NULL);
|
||||
+ solv_chksum_free(chksumh, NULL);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
@@ -2034,6 +2046,7 @@ repo_add_rpm(Repo *repo, const char *rpm, int flags)
|
||||
if (fread(lead, 16, 1, fp) != 1)
|
||||
{
|
||||
pool_error(pool, -1, "%s: unexpected EOF", rpm);
|
||||
+ solv_chksum_free(chksumh, NULL);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
@@ -2042,6 +2055,7 @@ repo_add_rpm(Repo *repo, const char *rpm, int flags)
|
||||
if (getu32(lead) != 0x8eade801)
|
||||
{
|
||||
pool_error(pool, -1, "%s: bad header", rpm);
|
||||
+ solv_chksum_free(chksumh, NULL);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
@@ -2050,6 +2064,7 @@ repo_add_rpm(Repo *repo, const char *rpm, int flags)
|
||||
if (sigcnt >= MAX_HDR_CNT || sigdsize >= MAX_HDR_DSIZE)
|
||||
{
|
||||
pool_error(pool, -1, "%s: bad header", rpm);
|
||||
+ solv_chksum_free(chksumh, NULL);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
@@ -2057,6 +2072,7 @@ repo_add_rpm(Repo *repo, const char *rpm, int flags)
|
||||
|
||||
if (!headfromfp(&state, rpm, fp, lead, sigcnt, sigdsize, 0, chksumh, 0))
|
||||
{
|
||||
+ solv_chksum_free(chksumh, NULL);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
}
|
||||
diff --git a/ext/testcase.c b/ext/testcase.c
|
||||
index aa72a8d7..3901d90d 100644
|
||||
--- a/ext/testcase.c
|
||||
+++ b/ext/testcase.c
|
||||
@@ -2348,6 +2348,7 @@ testcase_write_mangled(Solver *solv, const char *dir, int resultflags, const cha
|
||||
if (fclose(fp))
|
||||
{
|
||||
pool_error(solv->pool, 0, "testcase_write: write error");
|
||||
+ solv_free(result);
|
||||
strqueue_free(&sq);
|
||||
return 0;
|
||||
}
|
||||
@@ -2360,12 +2361,14 @@ testcase_write_mangled(Solver *solv, const char *dir, int resultflags, const cha
|
||||
if (!(fp = fopen(out, "w")))
|
||||
{
|
||||
pool_error(solv->pool, 0, "testcase_write: could not open '%s' for writing", out);
|
||||
+ solv_free(cmd);
|
||||
strqueue_free(&sq);
|
||||
return 0;
|
||||
}
|
||||
if (*cmd && fwrite(cmd, strlen(cmd), 1, fp) != 1)
|
||||
{
|
||||
pool_error(solv->pool, 0, "testcase_write: write error");
|
||||
+ solv_free(cmd);
|
||||
strqueue_free(&sq);
|
||||
fclose(fp);
|
||||
return 0;
|
||||
@@ -2373,6 +2376,7 @@ testcase_write_mangled(Solver *solv, const char *dir, int resultflags, const cha
|
||||
if (fclose(fp))
|
||||
{
|
||||
pool_error(solv->pool, 0, "testcase_write: write error");
|
||||
+ solv_free(cmd);
|
||||
strqueue_free(&sq);
|
||||
return 0;
|
||||
}
|
||||
diff --git a/tools/repo2solv.c b/tools/repo2solv.c
|
||||
index e055e408..30a41f42 100644
|
||||
--- a/tools/repo2solv.c
|
||||
+++ b/tools/repo2solv.c
|
||||
@@ -208,6 +208,7 @@ read_plaindir_repo(Repo *repo, const char *dir)
|
||||
repodata_set_location(data, p, 0, 0, bp[0] == '.' && bp[1] == '/' ? bp + 2 : bp);
|
||||
solv_free(rpm);
|
||||
}
|
||||
+ solv_free(buf);
|
||||
fclose(fp);
|
||||
while (waitpid(pid, &wstatus, 0) == -1)
|
||||
{
|
||||
--
|
||||
2.19.2
|
||||
|
||||
|
||||
From 6800ad0aaaf709df45c22d92320be42d51b6c704 Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Rohel <jrohel@redhat.com>
|
||||
Date: Tue, 11 Dec 2018 10:22:09 +0100
|
||||
Subject: [PATCH 4/7] Fix: testsolv segfault
|
||||
|
||||
ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fab0e11bf2b bp 0x7ffdfc044b70 sp 0x7ffdfc044a90 T0)
|
||||
0 0x7fab0e11bf2a in testcase_str2dep_complex /home/company/real_sanitize/libsolv-master/ext/testcase.c:577
|
||||
1 0x7fab0e11c80f in testcase_str2dep /home/company/real_sanitize/libsolv-master/ext/testcase.c:656
|
||||
2 0x7fab0e12e64a in testcase_read /home/company/real_sanitize/libsolv-master/ext/testcase.c:2952
|
||||
3 0x402aa5 in main /home/company/real_sanitize/libsolv-master/tools/testsolv.c:148
|
||||
4 0x7fab0d9d2a3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)
|
||||
5 0x401bb8 in _start (/home/company/real_sanitize/libsolv-master/build/install/bin/testsolv+0x401bb8)
|
||||
---
|
||||
ext/testcase.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/ext/testcase.c b/ext/testcase.c
|
||||
index 3901d90d..dd20de14 100644
|
||||
--- a/ext/testcase.c
|
||||
+++ b/ext/testcase.c
|
||||
@@ -571,6 +571,8 @@ testcase_str2dep_complex(Pool *pool, const char **sp, int relop)
|
||||
Id flags, id, id2, namespaceid = 0;
|
||||
struct oplist *op;
|
||||
|
||||
+ if (!s)
|
||||
+ return 0;
|
||||
while (*s == ' ' || *s == '\t')
|
||||
s++;
|
||||
if (!strncmp(s, "namespace:", 10))
|
||||
--
|
||||
2.19.2
|
||||
|
||||
|
||||
From 3c43749d26145e26e0337238ca566aeae157a654 Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Rohel <jrohel@redhat.com>
|
||||
Date: Tue, 11 Dec 2018 10:27:15 +0100
|
||||
Subject: [PATCH 5/7] Fix: testsolv segfaults
|
||||
|
||||
ERROR: AddressSanitizer: SEGV on unknown address 0x0000000002f0 (pc 0x7f31501d3bd2 bp 0x7ffcfe4d4a50 sp 0x7ffcfe4d4a30 T0)
|
||||
0 0x7f31501d3bd1 in pool_whatprovides /home/company/real_sanitize/libsolv-master/src/pool.h:331
|
||||
1 0x7f31501d895e in testcase_str2solvid /home/company/real_sanitize/libsolv-master/ext/testcase.c:793
|
||||
2 0x7f31501e8388 in testcase_read /home/company/real_sanitize/libsolv-master/ext/testcase.c:2807
|
||||
3 0x402aa5 in main /home/company/real_sanitize/libsolv-master/tools/testsolv.c:148
|
||||
4 0x7f314fa8da3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)
|
||||
5 0x401bb8 in _start (/home/company/real_sanitize/libsolv-master/build/install/bin/testsolv+0x401bb8)
|
||||
|
||||
ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f5af9e7815f bp 0x7ffc4c843a40 sp 0x7ffc4c8436c0 T0)
|
||||
0 0x7f5af9e7815e in testcase_read /home/company/real_sanitize/libsolv-master/ext/testcase.c:2799
|
||||
1 0x402aa5 in main /home/company/real_sanitize/libsolv-master/tools/testsolv.c:148
|
||||
2 0x7f5af971da3f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a3f)
|
||||
3 0x401bb8 in _start (/home/company/real_sanitize/libsolv-master/build/install/bin/testsolv+0x401bb8)
|
||||
---
|
||||
ext/testcase.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ext/testcase.c b/ext/testcase.c
|
||||
index dd20de14..83467fe2 100644
|
||||
--- a/ext/testcase.c
|
||||
+++ b/ext/testcase.c
|
||||
@@ -2772,7 +2772,7 @@ testcase_read(Pool *pool, FILE *fp, const char *testcase, Queue *job, char **res
|
||||
{
|
||||
int i = strlen(pieces[1]);
|
||||
s = strchr(pieces[1], '(');
|
||||
- if (!s && pieces[1][i - 1] != ')')
|
||||
+ if (!s || pieces[1][i - 1] != ')')
|
||||
{
|
||||
pool_error(pool, 0, "testcase_read: bad namespace '%s'", pieces[1]);
|
||||
}
|
||||
--
|
||||
2.19.2
|
||||
|
||||
|
||||
From 3723154d0cca4ee9b08e35dfa48a90a6659d05c8 Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Rohel <jrohel@redhat.com>
|
||||
Date: Tue, 11 Dec 2018 12:40:42 +0100
|
||||
Subject: [PATCH 6/7] Fix: Be sure that NONBLOCK is set
|
||||
|
||||
---
|
||||
examples/solv/fastestmirror.c | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/examples/solv/fastestmirror.c b/examples/solv/fastestmirror.c
|
||||
index d2ebd97a..0ee4e73b 100644
|
||||
--- a/examples/solv/fastestmirror.c
|
||||
+++ b/examples/solv/fastestmirror.c
|
||||
@@ -68,7 +68,11 @@ findfastest(char **urls, int nurls)
|
||||
socks[i] = socket(result->ai_family, result->ai_socktype, result->ai_protocol);
|
||||
if (socks[i] >= 0)
|
||||
{
|
||||
- fcntl(socks[i], F_SETFL, O_NONBLOCK);
|
||||
+ if (fcntl(socks[i], F_SETFL, O_NONBLOCK) == -1)
|
||||
+ {
|
||||
+ close(socks[i]);
|
||||
+ socks[i] = -1;
|
||||
+ }
|
||||
if (connect(socks[i], result->ai_addr, result->ai_addrlen) == -1)
|
||||
{
|
||||
if (errno != EINPROGRESS)
|
||||
--
|
||||
2.19.2
|
||||
|
||||
|
||||
From 52bf7e7e56e16928b449cad7fb803eb38555db0a Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Rohel <jrohel@redhat.com>
|
||||
Date: Tue, 11 Dec 2018 12:58:34 +0100
|
||||
Subject: [PATCH 7/7] Don't set values that are never read
|
||||
|
||||
---
|
||||
ext/pool_fileconflicts.c | 1 -
|
||||
ext/repo_appdata.c | 2 +-
|
||||
ext/repo_comps.c | 2 +-
|
||||
src/cleandeps.c | 1 -
|
||||
src/dirpool.c | 2 +-
|
||||
src/order.c | 1 -
|
||||
src/repopage.c | 1 -
|
||||
7 files changed, 3 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/ext/pool_fileconflicts.c b/ext/pool_fileconflicts.c
|
||||
index eaeb52b2..2fd3d540 100644
|
||||
--- a/ext/pool_fileconflicts.c
|
||||
+++ b/ext/pool_fileconflicts.c
|
||||
@@ -590,7 +590,6 @@ findfileconflicts_alias_cb(void *cbdatav, const char *fn, struct filelistinfo *i
|
||||
|
||||
if (!info->dirlen)
|
||||
return;
|
||||
- dp = fn + info->dirlen;
|
||||
if (info->diridx != cbdata->lastdiridx)
|
||||
{
|
||||
cbdata->lastdiridx = info->diridx;
|
||||
diff --git a/ext/repo_appdata.c b/ext/repo_appdata.c
|
||||
index 62faf2d8..69d46386 100644
|
||||
--- a/ext/repo_appdata.c
|
||||
+++ b/ext/repo_appdata.c
|
||||
@@ -103,7 +103,7 @@ startElement(struct solv_xmlparser *xmlp, int state, const char *name, const cha
|
||||
{
|
||||
struct parsedata *pd = xmlp->userdata;
|
||||
Pool *pool = pd->pool;
|
||||
- Solvable *s = pd->solvable;
|
||||
+ Solvable *s;
|
||||
const char *type;
|
||||
|
||||
/* ignore all language tags */
|
||||
diff --git a/ext/repo_comps.c b/ext/repo_comps.c
|
||||
index 255ecb16..e59f8d12 100644
|
||||
--- a/ext/repo_comps.c
|
||||
+++ b/ext/repo_comps.c
|
||||
@@ -107,7 +107,7 @@ startElement(struct solv_xmlparser *xmlp, int state, const char *name, const cha
|
||||
{
|
||||
struct parsedata *pd = xmlp->userdata;
|
||||
Pool *pool = pd->pool;
|
||||
- Solvable *s = pd->solvable;
|
||||
+ Solvable *s;
|
||||
|
||||
switch(state)
|
||||
{
|
||||
diff --git a/src/cleandeps.c b/src/cleandeps.c
|
||||
index 1da28f6e..b2fde317 100644
|
||||
--- a/src/cleandeps.c
|
||||
+++ b/src/cleandeps.c
|
||||
@@ -748,7 +748,6 @@ solver_createcleandepsmap(Solver *solv, Map *cleandepsmap, int unneeded)
|
||||
continue;
|
||||
if (strncmp(pool_id2str(pool, s->name), "pattern:", 8) != 0)
|
||||
continue;
|
||||
- dp = s->repo->idarraydata + s->requires;
|
||||
for (dp = s->repo->idarraydata + s->requires; *dp; dp++)
|
||||
FOR_PROVIDES(p, pp, *dp)
|
||||
if (pool->solvables[p].repo == installed)
|
||||
diff --git a/src/dirpool.c b/src/dirpool.c
|
||||
index afb26ea5..bed9435e 100644
|
||||
--- a/src/dirpool.c
|
||||
+++ b/src/dirpool.c
|
||||
@@ -85,7 +85,7 @@ dirpool_make_dirtraverse(Dirpool *dp)
|
||||
return;
|
||||
dp->dirs = solv_extend_resize(dp->dirs, dp->ndirs, sizeof(Id), DIR_BLOCK);
|
||||
dirtraverse = solv_calloc_block(dp->ndirs, sizeof(Id), DIR_BLOCK);
|
||||
- for (parent = 0, i = 0; i < dp->ndirs; i++)
|
||||
+ for (i = 0; i < dp->ndirs; i++)
|
||||
{
|
||||
if (dp->dirs[i] > 0)
|
||||
continue;
|
||||
diff --git a/src/order.c b/src/order.c
|
||||
index c92c3328..cfde40c9 100644
|
||||
--- a/src/order.c
|
||||
+++ b/src/order.c
|
||||
@@ -1066,7 +1066,6 @@ transaction_order(Transaction *trans, int flags)
|
||||
#if 0
|
||||
printf("do %s [%d]\n", pool_solvid2str(pool, te->p), temedianr[i]);
|
||||
#endif
|
||||
- s = pool->solvables + te->p;
|
||||
for (j = te->edges; od.invedgedata[j]; j++)
|
||||
{
|
||||
struct _TransactionElement *te2 = od.tes + od.invedgedata[j];
|
||||
diff --git a/src/repopage.c b/src/repopage.c
|
||||
index 2b7a863b..85d53eb9 100644
|
||||
--- a/src/repopage.c
|
||||
+++ b/src/repopage.c
|
||||
@@ -399,7 +399,6 @@ match_done:
|
||||
litlen -= 32;
|
||||
}
|
||||
}
|
||||
- litofs = 0;
|
||||
}
|
||||
return oo;
|
||||
}
|
||||
--
|
||||
2.19.2
|
||||
|
@ -1,25 +0,0 @@
|
||||
From 0302dce36cb5066a5c818d616a047dc93cfd025d Mon Sep 17 00:00:00 2001
|
||||
From: Michael Schroeder <mls@suse.de>
|
||||
Date: Thu, 22 Nov 2018 12:02:00 +0100
|
||||
Subject: [PATCH] Fix off-by-one error in the "oneof" parsing code
|
||||
|
||||
---
|
||||
ext/testcase.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ext/testcase.c b/ext/testcase.c
|
||||
index ffc8b8a..469218d 100644
|
||||
--- a/ext/testcase.c
|
||||
+++ b/ext/testcase.c
|
||||
@@ -1071,7 +1071,7 @@ testcase_str2job(Pool *pool, const char *str, Id *whatp)
|
||||
Queue q;
|
||||
job |= SOLVER_SOLVABLE_ONE_OF;
|
||||
queue_init(&q);
|
||||
- if (npieces > 3 && strcmp(pieces[2], "nothing") != 0)
|
||||
+ if (npieces > 2 && strcmp(pieces[2], "nothing") != 0)
|
||||
{
|
||||
for (i = 2; i < npieces; i++)
|
||||
{
|
||||
--
|
||||
libgit2 0.27.7
|
||||
|
@ -0,0 +1,25 @@
|
||||
From 1b8844c26318b91021606e729a604eb47cb37098 Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Rohel <jrohel@redhat.com>
|
||||
Date: Tue, 9 Apr 2019 10:20:16 +0200
|
||||
Subject: [PATCH] Use OpenSSL for computing hashes by default
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index b2a0b72..3450526 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -38,7 +38,7 @@ OPTION (ENABLE_ZSTD_COMPRESSION "Build with zstd compression support?" OFF)
|
||||
OPTION (ENABLE_ZCHUNK_COMPRESSION "Build with zchunk compression support?" OFF)
|
||||
OPTION (WITH_SYSTEM_ZCHUNK "Use system zchunk library?" OFF)
|
||||
OPTION (WITH_LIBXML2 "Build with libxml2 instead of libexpat?" OFF)
|
||||
-OPTION (WITH_OPENSSL "Use OpenSSL instead of internal implementation of hashes?" OFF)
|
||||
+OPTION (WITH_OPENSSL "Use OpenSSL instead of internal implementation of hashes?" ON)
|
||||
|
||||
# Library
|
||||
IF (DEFINED LIB)
|
||||
--
|
||||
libgit2 0.27.8
|
||||
|
@ -1,46 +0,0 @@
|
||||
From 5323eb7e5c0c8dcdf339113f091317afaed810cc Mon Sep 17 00:00:00 2001
|
||||
From: Michael Schroeder <mls@suse.de>
|
||||
Date: Tue, 15 Jan 2019 14:06:08 +0100
|
||||
Subject: [PATCH] Do not disable infarch rules when they don't conflict with the job
|
||||
|
||||
---
|
||||
src/rules.c | 16 +++++++++++++---
|
||||
1 file changed, 13 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/rules.c b/src/rules.c
|
||||
index 2087b35..175cb8d 100644
|
||||
--- a/src/rules.c
|
||||
+++ b/src/rules.c
|
||||
@@ -2126,7 +2126,13 @@ jobtodisablelist(Solver *solv, Id how, Id what, Queue *q)
|
||||
if ((set & SOLVER_SETARCH) != 0 && solv->infarchrules != solv->infarchrules_end)
|
||||
{
|
||||
if (select == SOLVER_SOLVABLE)
|
||||
- queue_push2(q, DISABLE_INFARCH, pool->solvables[what].name);
|
||||
+ {
|
||||
+ for (i = solv->infarchrules; i < solv->infarchrules_end; i++)
|
||||
+ if (solv->rules[i].p == -what)
|
||||
+ break;
|
||||
+ if (i < solv->infarchrules_end)
|
||||
+ queue_push2(q, DISABLE_INFARCH, pool->solvables[what].name);
|
||||
+ }
|
||||
else
|
||||
{
|
||||
int qcnt = q->count;
|
||||
@@ -2140,8 +2146,12 @@ jobtodisablelist(Solver *solv, Id how, Id what, Queue *q)
|
||||
if (q->elements[i + 1] == s->name)
|
||||
break;
|
||||
if (i < q->count)
|
||||
- continue;
|
||||
- queue_push2(q, DISABLE_INFARCH, s->name);
|
||||
+ continue; /* already have that DISABLE_INFARCH element */
|
||||
+ for (i = solv->infarchrules; i < solv->infarchrules_end; i++)
|
||||
+ if (solv->rules[i].p == -p)
|
||||
+ break;
|
||||
+ if (i < solv->infarchrules_end)
|
||||
+ queue_push2(q, DISABLE_INFARCH, s->name);
|
||||
}
|
||||
}
|
||||
}
|
||||
--
|
||||
libgit2 0.27.7
|
||||
|
@ -1,39 +0,0 @@
|
||||
From 2e88b25f5419d686b1d817cb1edecbb3305a0d1b Mon Sep 17 00:00:00 2001
|
||||
From: Michael Schroeder <mls@suse.de>
|
||||
Date: Tue, 15 Jan 2019 14:10:38 +0100
|
||||
Subject: [PATCH] Add testcase for last commit
|
||||
|
||||
---
|
||||
test/testcases/lockstep/infarch_install_best.t | 20 ++++++++++++++++++++
|
||||
1 file changed, 20 insertions(+)
|
||||
create mode 100644 test/testcases/lockstep/infarch_install_best.t
|
||||
|
||||
diff --git a/test/testcases/lockstep/infarch_install_best.t b/test/testcases/lockstep/infarch_install_best.t
|
||||
new file mode 100644
|
||||
index 0000000..e9c4859
|
||||
--- /dev/null
|
||||
+++ b/test/testcases/lockstep/infarch_install_best.t
|
||||
@@ -0,0 +1,20 @@
|
||||
+# test for issue 292
|
||||
+repo system 0 testtags <inline>
|
||||
+#>=Pkg: nss 3.39.0 2.fc29 x86_64
|
||||
+#>=Pkg: nss-sysinit 3.39.0 2.fc29 x86_64
|
||||
+#>=Req: nss = 3.39.0-2.fc29
|
||||
+repo available 0 testtags <inline>
|
||||
+#>=Pkg: nss 3.39.0 2.fc29 i686
|
||||
+#>=Pkg: nss 3.41.0 1.fc29 x86_64
|
||||
+#>=Pkg: nss-sysinit 3.41.0 1.fc29 x86_64
|
||||
+#>=Req: nss = 3.41.0-1.fc29
|
||||
+
|
||||
+system x86_64 rpm system
|
||||
+
|
||||
+poolflags implicitobsoleteusescolors
|
||||
+solverflags allowvendorchange keepexplicitobsoletes bestobeypolicy keeporphans yumobsoletes
|
||||
+
|
||||
+job install oneof nss-3.41.0-1.fc29.x86_64@available [setevr,setarch]
|
||||
+result transaction,problems <inline>
|
||||
+#>upgrade nss-3.39.0-2.fc29.x86_64@system nss-3.41.0-1.fc29.x86_64@available
|
||||
+#>upgrade nss-sysinit-3.39.0-2.fc29.x86_64@system nss-sysinit-3.41.0-1.fc29.x86_64@available
|
||||
--
|
||||
libgit2 0.27.7
|
||||
|
@ -1,101 +0,0 @@
|
||||
From c14beb31bea06d0a46176a20cef4261067d5fc63 Mon Sep 17 00:00:00 2001
|
||||
From: Jaroslav Mracek <jmracek@redhat.com>
|
||||
Date: Thu, 17 Jan 2019 12:48:05 +0100
|
||||
Subject: [PATCH] Add support for modular updateinfo.xml data
|
||||
|
||||
---
|
||||
ext/repo_updateinfoxml.c | 37 +++++++++++++++++++++++++++++++++++++
|
||||
src/knownid.h | 8 ++++++++
|
||||
2 files changed, 45 insertions(+)
|
||||
|
||||
diff --git a/ext/repo_updateinfoxml.c b/ext/repo_updateinfoxml.c
|
||||
index 7ba0062..5e03105 100644
|
||||
--- a/ext/repo_updateinfoxml.c
|
||||
+++ b/ext/repo_updateinfoxml.c
|
||||
@@ -37,6 +37,7 @@
|
||||
* <pkglist>
|
||||
* <collection short="F8">
|
||||
* <name>Fedora 8</name>
|
||||
+ * <module name="pki-deps" stream="10.6" version="20181019123559" context="9edba152" arch="x86_64"/>
|
||||
* <package arch="ppc64" name="imlib-debuginfo" release="6.fc8" src="http://download.fedoraproject.org/pub/fedora/linux/updates/8/ppc64/imlib-debuginfo-1.9.15-6.fc8.ppc64.rpm" version="1.9.15">
|
||||
* <filename>imlib-debuginfo-1.9.15-6.fc8.ppc64.rpm</filename>
|
||||
* <reboot_suggested>True</reboot_suggested>
|
||||
@@ -70,6 +71,7 @@ enum state {
|
||||
STATE_RELOGIN,
|
||||
STATE_RIGHTS,
|
||||
STATE_SEVERITY,
|
||||
+ STATE_MODULE,
|
||||
NUMSTATES
|
||||
};
|
||||
|
||||
@@ -92,6 +94,7 @@ static struct solv_xmlparser_element stateswitches[] = {
|
||||
{ STATE_PKGLIST, "collection", STATE_COLLECTION, 0 },
|
||||
{ STATE_COLLECTION, "name", STATE_NAME, 1 },
|
||||
{ STATE_COLLECTION, "package", STATE_PACKAGE, 0 },
|
||||
+ { STATE_COLLECTION, "module", STATE_MODULE, 0 },
|
||||
{ STATE_PACKAGE, "filename", STATE_FILENAME, 1 },
|
||||
{ STATE_PACKAGE, "reboot_suggested",STATE_REBOOT, 1 },
|
||||
{ STATE_PACKAGE, "restart_suggested",STATE_RESTART, 1 },
|
||||
@@ -321,6 +324,40 @@ startElement(struct solv_xmlparser *xmlp, int state, const char *name, const cha
|
||||
repodata_set_id(pd->data, pd->collhandle, UPDATE_COLLECTION_ARCH, a);
|
||||
break;
|
||||
}
|
||||
+ case STATE_MODULE:
|
||||
+ {
|
||||
+ const char *name = 0, *stream = 0, *version = 0, *context = 0, *arch = 0;
|
||||
+ Id name_id, stream_id, version_id, context_id, arch_id = 0;
|
||||
+ for (; *atts; atts += 2)
|
||||
+ {
|
||||
+ if (!strcmp(*atts, "arch"))
|
||||
+ arch = atts[1];
|
||||
+ else if (!strcmp(*atts, "name"))
|
||||
+ name = atts[1];
|
||||
+ else if (!strcmp(*atts, "stream"))
|
||||
+ stream = atts[1];
|
||||
+ else if (!strcmp(*atts, "version"))
|
||||
+ version = atts[1];
|
||||
+ else if (!strcmp(*atts, "context"))
|
||||
+ context = atts[1];
|
||||
+ }
|
||||
+ name_id = pool_str2id(pool, name, 1);
|
||||
+ if (arch)
|
||||
+ arch_id = pool_str2id(pool, arch, 1);
|
||||
+ stream_id = pool_str2id(pool, stream, 1);
|
||||
+ version_id = pool_str2id(pool, version, 1);
|
||||
+ context_id = pool_str2id(pool, context, 1);
|
||||
+
|
||||
+ Id module_handle = repodata_new_handle(pd->data);
|
||||
+ repodata_set_id(pd->data, module_handle, UPDATE_MODULE_NAME, name_id);
|
||||
+ repodata_set_id(pd->data, module_handle, UPDATE_MODULE_STREAM, stream_id);
|
||||
+ repodata_set_id(pd->data, module_handle, UPDATE_MODULE_VERSION, version_id);
|
||||
+ repodata_set_id(pd->data, module_handle, UPDATE_MODULE_CONTEXT, context_id);
|
||||
+ if (arch_id)
|
||||
+ repodata_set_id(pd->data, module_handle, UPDATE_MODULE_ARCH, arch_id);
|
||||
+ repodata_add_flexarray(pd->data, pd->handle, UPDATE_MODULE, module_handle);
|
||||
+ break;
|
||||
+ }
|
||||
|
||||
default:
|
||||
break;
|
||||
diff --git a/src/knownid.h b/src/knownid.h
|
||||
index 64cc6fc..14d2ded 100644
|
||||
--- a/src/knownid.h
|
||||
+++ b/src/knownid.h
|
||||
@@ -262,6 +262,14 @@ KNOWNID(SOLVABLE_INSTALLSTATUS, "solvable:installstatus"), /* debian install st
|
||||
|
||||
KNOWNID(SOLVABLE_PREREQ_IGNOREINST, "solvable:prereq_ignoreinst"), /* ignore these pre-requires for installed packages */
|
||||
|
||||
+/* 'content' of patch, usually list of modules */
|
||||
+KNOWNID(UPDATE_MODULE, "update:module"), /* "name stream version context arch" */
|
||||
+KNOWNID(UPDATE_MODULE_NAME, "update:module:name"), /* name */
|
||||
+KNOWNID(UPDATE_MODULE_STREAM, "update:module:stream"), /* stream */
|
||||
+KNOWNID(UPDATE_MODULE_VERSION, "update:module:version"), /* version */
|
||||
+KNOWNID(UPDATE_MODULE_CONTEXT, "update:module:context"), /* context */
|
||||
+KNOWNID(UPDATE_MODULE_ARCH, "update:module:arch"), /* architecture */
|
||||
+
|
||||
KNOWNID(ID_NUM_INTERNAL, 0)
|
||||
|
||||
#ifdef KNOWNID_INITIALIZE
|
||||
--
|
||||
libgit2 0.27.7
|
||||
|
@ -41,8 +41,8 @@
|
||||
#global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
|
||||
Name: lib%{libname}
|
||||
Version: 0.6.35
|
||||
Release: 6%{?commit:.git.%{commitnum}.%{?shortcommit}}%{?dist}
|
||||
Version: 0.7.4
|
||||
Release: 3%{?commit:.git.%{commitnum}.%{?shortcommit}}%{?dist}
|
||||
Summary: Package dependency solver
|
||||
|
||||
License: BSD
|
||||
@ -52,12 +52,11 @@ Source: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
|
||||
%else
|
||||
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
%endif
|
||||
Patch0: 0001-Make-sure-that-targeted-updates-dont-do-reinstalls.patch
|
||||
Patch1: 0002-Fix-memory-leaks-memory-access.patch
|
||||
Patch2: 0003-Fix-off-by-one-error-in-the-oneof-parsing-code.patch
|
||||
Patch3: 0004-Do-not-disable-infarch-rules-when-they-dont-conflict-with-the-job.patch
|
||||
Patch4: 0005-Add-testcase-for-last-commit.patch
|
||||
Patch5: 0006-Add-support-for-modular-updateinfoxml-data.patch
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1677583
|
||||
Patch0: 0001-Not-considered-excluded-packages-as-a-best-candidate.patch
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1630300
|
||||
Patch1: 0002-Add-support-for-computing-hashes-using-OpenSSL.patch
|
||||
Patch2: 0003-Use-OpenSSL-for-computing-hashes-by-default.patch
|
||||
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
@ -66,6 +65,8 @@ BuildRequires: pkgconfig(rpm)
|
||||
BuildRequires: zlib-devel
|
||||
# -DWITH_LIBXML2=ON
|
||||
BuildRequires: libxml2-devel
|
||||
# -DWITH_OPENSSL=ON
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
# -DENABLE_LZMA_COMPRESSION=ON
|
||||
BuildRequires: xz-devel
|
||||
# -DENABLE_BZIP2_COMPRESSION=ON
|
||||
@ -179,6 +180,7 @@ Python 3 version.
|
||||
%{?with_appdata:-DENABLE_APPDATA=ON} \
|
||||
-DUSE_VENDORDIRS=ON \
|
||||
-DWITH_LIBXML2=ON \
|
||||
-DWITH_OPENSSL=ON \
|
||||
-DENABLE_LZMA_COMPRESSION=ON \
|
||||
-DENABLE_BZIP2_COMPRESSION=ON \
|
||||
%{?with_helix_repo:-DENABLE_HELIXREPO=ON} \
|
||||
@ -296,6 +298,50 @@ Python 3 version.
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Jun 11 2019 Pavla Kratochvilova <pkratoch@redhat.org> - 0.7.4-3
|
||||
- Backport patches: Use OpenSSL for computing hashes (RhBug:1630300)
|
||||
|
||||
* Wed May 29 2019 Pavla Kratochvilova <pkratoch@redhat.org> - 0.7.4-2
|
||||
- Backport patch: Not considered excluded packages as a best candidate (RhBug:1677583)
|
||||
|
||||
* Fri Apr 26 2019 Pavla Kratochvilova <pkratoch@redhat.org> - 0.7.4-1
|
||||
- soname bump to "1"
|
||||
- incompatible API changes:
|
||||
* bindings: Selection.flags is now an attribute
|
||||
* repodata_lookup_num now works like the other lookup_num functions
|
||||
- new functions:
|
||||
* selection_make_matchsolvable
|
||||
* selection_make_matchsolvablelist
|
||||
* pool_whatmatchessolvable
|
||||
* repodata_search_arrayelement
|
||||
* repodata_lookup_kv_uninternalized
|
||||
* repodata_search_uninternalized
|
||||
* repodata_translate_dir
|
||||
- new repowriter interface to write solv files allowing better
|
||||
control over what gets written
|
||||
- support for filtered file lists with a custom filter
|
||||
- dropped support of (since a long time unused) REPOKEY_TYPE_U32
|
||||
- selected bug fixes:
|
||||
* fix nasty off-by-one error in repo_write
|
||||
* do not autouninstall packages because of forcebest updates
|
||||
* fixed a couple of null pointer derefs and potential memory
|
||||
leaks
|
||||
* made disfavoring recommended packages work if strong recommends
|
||||
is enabled
|
||||
* no longer disable infarch rules when they don't conflict with
|
||||
the job
|
||||
* repo_add_rpmdb: do not copy bad solvables from the old solv file
|
||||
* fix cleandeps updates not updating all packages
|
||||
- new features:
|
||||
* support rpm's new '^' version separator
|
||||
* support set/get_considered_list in bindings
|
||||
* new experimental SOLVER_FLAG_ONLY_NAMESPACE_RECOMMENDED flag
|
||||
* do favor evaluation before pruning allowing to (dis)favor
|
||||
specific package versions
|
||||
* bindings: support pool.matchsolvable(), pool.whatmatchessolvable()
|
||||
pool.best_solvables() and selection.matchsolvable()
|
||||
* experimental DISTTYPE_CONDA and REL_CONDA support
|
||||
|
||||
* Fri Feb 08 2019 Jaroslav Mracek <jmracek@redhat.com> - 0.6.35-6
|
||||
- Backport patch to add support for modular updateinfoxml data
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user