Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- data/miniconda3/pkgs/libpng-1.6.55-h421ea60_0/info/recipe/patches/0001-Include-pkg-config-files-in-the-Windows-packages-too.patch +29 -0
- data/miniconda3/pkgs/libpng-1.6.55-h421ea60_0/info/recipe/patches/0002-Ensure-that-lm-is-not-included-in-Windows-pkg-config.patch +15 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/conda2solv +0 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/dumpsolv +0 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/installcheck +0 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/mergesolv +0 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/repo2solv +0 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/testsolv +0 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/bitmap.h +77 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/chksum.h +49 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/conda.h +33 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/dataiterator.h +197 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/dirpool.h +85 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/evr.h +37 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/hash.h +93 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/knownid.h +289 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/policy.h +54 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/pool.h +426 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolarch.h +51 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolid.h +50 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/pooltypes.h +62 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolvendor.h +25 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/problems.h +72 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/queue.h +127 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo.h +235 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_conda.h +28 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_solv.h +34 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_write.h +68 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repodata.h +359 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/rules.h +198 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/selection.h +81 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solv_xfopen.h +17 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solvable.h +114 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solver.h +450 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solverdebug.h +47 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solvversion.h +55 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/strpool.h +54 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/testcase.h +49 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/tools_util.h +111 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/transaction.h +149 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/util.h +121 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/about.json +169 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/files +57 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/git +0 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/has_prefix +2 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/hash_input.json +13 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/index.json +19 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/licenses/LICENSE.BSD +28 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/paths.json +351 -0
- data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/conda_build_config.yaml +34 -0
data/miniconda3/pkgs/libpng-1.6.55-h421ea60_0/info/recipe/patches/0001-Include-pkg-config-files-in-the-Windows-packages-too.patch
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
--- libpng-1.6.49.orig/CMakeLists.txt 2025-06-12 14:05:46.000000000 -0300
|
| 2 |
+
+++ libpng-1.6.49/CMakeLists.txt 2025-06-16 13:45:00.743415714 -0300
|
| 3 |
+
@@ -1017,7 +1017,7 @@
|
| 4 |
+
# We use the same files like ./configure, so we have to set its vars.
|
| 5 |
+
# Only do this on Windows for Cygwin - the files don't make much sense
|
| 6 |
+
# outside of a UNIX look-alike.
|
| 7 |
+
-if(NOT WIN32 OR CYGWIN OR MINGW)
|
| 8 |
+
+if(1)
|
| 9 |
+
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
| 10 |
+
set(exec_prefix "${CMAKE_INSTALL_PREFIX}")
|
| 11 |
+
set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
|
| 12 |
+
@@ -1087,13 +1087,13 @@
|
| 13 |
+
install(FILES png.5
|
| 14 |
+
DESTINATION "${CMAKE_INSTALL_MANDIR}/man5")
|
| 15 |
+
# Install the pkg-config files.
|
| 16 |
+
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng.pc
|
| 17 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
| 18 |
+
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}.pc
|
| 19 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
| 20 |
+
if(NOT CMAKE_HOST_WIN32 OR CYGWIN OR MINGW)
|
| 21 |
+
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libpng.pc"
|
| 22 |
+
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
| 23 |
+
install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/libpng-config"
|
| 24 |
+
DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
| 25 |
+
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}.pc"
|
| 26 |
+
- DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
| 27 |
+
install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}-config"
|
| 28 |
+
DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
| 29 |
+
endif()
|
data/miniconda3/pkgs/libpng-1.6.55-h421ea60_0/info/recipe/patches/0002-Ensure-that-lm-is-not-included-in-Windows-pkg-config.patch
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
--- libpng-1.6.49.orig/CMakeLists.txt 2025-06-12 14:05:46.000000000 -0300
|
| 2 |
+
+++ libpng-1.6.49/CMakeLists.txt 2025-06-16 13:40:19.280938475 -0300
|
| 3 |
+
@@ -1022,7 +1022,11 @@
|
| 4 |
+
set(exec_prefix "${CMAKE_INSTALL_PREFIX}")
|
| 5 |
+
set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
|
| 6 |
+
set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
|
| 7 |
+
- set(LIBS "-lz -lm")
|
| 8 |
+
+ if(NOT "${M_LIBRARY}" STREQUAL "")
|
| 9 |
+
+ set(LIBS "-lz -lm")
|
| 10 |
+
+ else()
|
| 11 |
+
+ set(LIBS "-lz")
|
| 12 |
+
+ endif()
|
| 13 |
+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/libpng.pc.in"
|
| 14 |
+
"${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}.pc"
|
| 15 |
+
@ONLY)
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/conda2solv
ADDED
|
Binary file (22.8 kB). View file
|
|
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/dumpsolv
ADDED
|
Binary file (27.4 kB). View file
|
|
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/installcheck
ADDED
|
Binary file (27.2 kB). View file
|
|
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/mergesolv
ADDED
|
Binary file (23 kB). View file
|
|
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/repo2solv
ADDED
|
Binary file (23.6 kB). View file
|
|
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/testsolv
ADDED
|
Binary file (28.8 kB). View file
|
|
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/bitmap.h
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007-2011, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* bitmap.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_BITMAP_H
|
| 14 |
+
#define LIBSOLV_BITMAP_H
|
| 15 |
+
|
| 16 |
+
#include <string.h>
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
typedef struct s_Map {
|
| 23 |
+
unsigned char *map;
|
| 24 |
+
int size;
|
| 25 |
+
} Map;
|
| 26 |
+
|
| 27 |
+
#define MAPZERO(m) (memset((m)->map, 0, (m)->size))
|
| 28 |
+
/* set all bits */
|
| 29 |
+
#define MAPSETALL(m) (memset((m)->map, 0xff, (m)->size))
|
| 30 |
+
/* set bit */
|
| 31 |
+
#define MAPSET(m, n) ((m)->map[(n) >> 3] |= 1 << ((n) & 7))
|
| 32 |
+
/* clear bit */
|
| 33 |
+
#define MAPCLR(m, n) ((m)->map[(n) >> 3] &= ~(1 << ((n) & 7)))
|
| 34 |
+
/* test bit */
|
| 35 |
+
#define MAPTST(m, n) ((m)->map[(n) >> 3] & (1 << ((n) & 7)))
|
| 36 |
+
/* clear some bits at a position */
|
| 37 |
+
#define MAPCLR_AT(m, n) ((m)->map[(n) >> 3] = 0)
|
| 38 |
+
|
| 39 |
+
extern void map_init(Map *m, int n);
|
| 40 |
+
extern void map_init_clone(Map *target, const Map *source);
|
| 41 |
+
extern void map_grow(Map *m, int n);
|
| 42 |
+
extern void map_free(Map *m);
|
| 43 |
+
extern void map_and(Map *t, const Map *s);
|
| 44 |
+
extern void map_or(Map *t, const Map *s);
|
| 45 |
+
extern void map_subtract(Map *t, const Map *s);
|
| 46 |
+
extern void map_invertall(Map *m);
|
| 47 |
+
|
| 48 |
+
static inline void map_empty(Map *m)
|
| 49 |
+
{
|
| 50 |
+
MAPZERO(m);
|
| 51 |
+
}
|
| 52 |
+
static inline void map_set(Map *m, int n)
|
| 53 |
+
{
|
| 54 |
+
MAPSET(m, n);
|
| 55 |
+
}
|
| 56 |
+
static inline void map_setall(Map *m)
|
| 57 |
+
{
|
| 58 |
+
MAPSETALL(m);
|
| 59 |
+
}
|
| 60 |
+
static inline void map_clr(Map *m, int n)
|
| 61 |
+
{
|
| 62 |
+
MAPCLR(m, n);
|
| 63 |
+
}
|
| 64 |
+
static inline int map_tst(Map *m, int n)
|
| 65 |
+
{
|
| 66 |
+
return MAPTST(m, n);
|
| 67 |
+
}
|
| 68 |
+
static inline void map_clr_at(Map *m, int n)
|
| 69 |
+
{
|
| 70 |
+
MAPCLR_AT(m, n);
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
#ifdef __cplusplus
|
| 74 |
+
}
|
| 75 |
+
#endif
|
| 76 |
+
|
| 77 |
+
#endif /* LIBSOLV_BITMAP_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/chksum.h
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007-2012, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
#ifndef LIBSOLV_CHKSUM_H
|
| 9 |
+
#define LIBSOLV_CHKSUM_H
|
| 10 |
+
|
| 11 |
+
#include "pool.h"
|
| 12 |
+
|
| 13 |
+
#ifdef __cplusplus
|
| 14 |
+
extern "C" {
|
| 15 |
+
#endif
|
| 16 |
+
|
| 17 |
+
struct s_Chksum;
|
| 18 |
+
typedef struct s_Chksum Chksum;
|
| 19 |
+
|
| 20 |
+
Chksum *solv_chksum_create(Id type);
|
| 21 |
+
Chksum *solv_chksum_create_clone(Chksum *chk);
|
| 22 |
+
Chksum *solv_chksum_create_from_bin(Id type, const unsigned char *buf);
|
| 23 |
+
void solv_chksum_add(Chksum *chk, const void *data, int len);
|
| 24 |
+
Id solv_chksum_get_type(Chksum *chk);
|
| 25 |
+
int solv_chksum_isfinished(Chksum *chk);
|
| 26 |
+
const unsigned char *solv_chksum_get(Chksum *chk, int *lenp);
|
| 27 |
+
void *solv_chksum_free(Chksum *chk, unsigned char *cp);
|
| 28 |
+
const char *solv_chksum_type2str(Id type);
|
| 29 |
+
Id solv_chksum_str2type(const char *str);
|
| 30 |
+
int solv_chksum_len(Id type);
|
| 31 |
+
int solv_chksum_cmp(Chksum *chk, Chksum *chk2);
|
| 32 |
+
|
| 33 |
+
#ifdef LIBSOLV_INTERNAL
|
| 34 |
+
|
| 35 |
+
#define case_CHKSUM_TYPES \
|
| 36 |
+
case REPOKEY_TYPE_MD5: \
|
| 37 |
+
case REPOKEY_TYPE_SHA1: \
|
| 38 |
+
case REPOKEY_TYPE_SHA224: \
|
| 39 |
+
case REPOKEY_TYPE_SHA256: \
|
| 40 |
+
case REPOKEY_TYPE_SHA384: \
|
| 41 |
+
case REPOKEY_TYPE_SHA512
|
| 42 |
+
|
| 43 |
+
#endif
|
| 44 |
+
|
| 45 |
+
#ifdef __cplusplus
|
| 46 |
+
}
|
| 47 |
+
#endif
|
| 48 |
+
|
| 49 |
+
#endif /* LIBSOLV_CHKSUM_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/conda.h
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2019, SUSE LLC
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* conda.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_CONDA_H
|
| 14 |
+
#define LIBSOLV_CONDA_H
|
| 15 |
+
|
| 16 |
+
#include "pooltypes.h"
|
| 17 |
+
#include "solvable.h"
|
| 18 |
+
|
| 19 |
+
#ifdef __cplusplus
|
| 20 |
+
extern "C" {
|
| 21 |
+
#endif
|
| 22 |
+
|
| 23 |
+
int pool_evrcmp_conda(const Pool *pool, const char *evr1, const char *evr2, int mode);
|
| 24 |
+
int solvable_conda_matchversion(Solvable *s, const char *version);
|
| 25 |
+
Id pool_addrelproviders_conda(Pool *pool, Id name, Id evr, Queue *plist);
|
| 26 |
+
Id pool_conda_matchspec(Pool *pool, const char *name);
|
| 27 |
+
|
| 28 |
+
#ifdef __cplusplus
|
| 29 |
+
}
|
| 30 |
+
#endif
|
| 31 |
+
|
| 32 |
+
#endif /* LIBSOLV_CONDA_H */
|
| 33 |
+
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/dataiterator.h
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007-2012, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* dataiterator.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_DATAITERATOR_H
|
| 14 |
+
#define LIBSOLV_DATAITERATOR_H
|
| 15 |
+
|
| 16 |
+
#include "pooltypes.h"
|
| 17 |
+
#include "pool.h"
|
| 18 |
+
|
| 19 |
+
#ifdef __cplusplus
|
| 20 |
+
extern "C" {
|
| 21 |
+
#endif
|
| 22 |
+
|
| 23 |
+
typedef struct s_KeyValue {
|
| 24 |
+
Id id;
|
| 25 |
+
const char *str;
|
| 26 |
+
unsigned int num;
|
| 27 |
+
unsigned int num2;
|
| 28 |
+
|
| 29 |
+
int entry; /* array entry, starts with 0 */
|
| 30 |
+
int eof; /* last entry reached */
|
| 31 |
+
|
| 32 |
+
struct s_KeyValue *parent;
|
| 33 |
+
} KeyValue;
|
| 34 |
+
|
| 35 |
+
#define SOLV_KV_NUM64(kv) (((unsigned long long)((kv)->num2)) << 32 | (kv)->num)
|
| 36 |
+
|
| 37 |
+
/* search matcher flags */
|
| 38 |
+
#define SEARCH_STRINGMASK 15
|
| 39 |
+
#define SEARCH_STRING 1
|
| 40 |
+
#define SEARCH_STRINGSTART 2
|
| 41 |
+
#define SEARCH_STRINGEND 3
|
| 42 |
+
#define SEARCH_SUBSTRING 4
|
| 43 |
+
#define SEARCH_GLOB 5
|
| 44 |
+
#define SEARCH_REGEX 6
|
| 45 |
+
#define SEARCH_ERROR 15
|
| 46 |
+
#define SEARCH_NOCASE (1<<7)
|
| 47 |
+
|
| 48 |
+
/* iterator control */
|
| 49 |
+
#define SEARCH_NO_STORAGE_SOLVABLE (1<<8)
|
| 50 |
+
#define SEARCH_SUB (1<<9)
|
| 51 |
+
#define SEARCH_ARRAYSENTINEL (1<<10)
|
| 52 |
+
#define SEARCH_DISABLED_REPOS (1<<11)
|
| 53 |
+
#define SEARCH_KEEP_TYPE_DELETED (1<<12) /* only has effect if no keyname is given */
|
| 54 |
+
|
| 55 |
+
/* stringification flags */
|
| 56 |
+
#define SEARCH_SKIP_KIND (1<<16)
|
| 57 |
+
/* By default we stringify just to the basename of a file because
|
| 58 |
+
the construction of the full filename is costly. Specify this
|
| 59 |
+
flag if you want to match full filenames */
|
| 60 |
+
#define SEARCH_FILES (1<<17)
|
| 61 |
+
#define SEARCH_CHECKSUMS (1<<18)
|
| 62 |
+
|
| 63 |
+
/* internal */
|
| 64 |
+
#define SEARCH_SUBSCHEMA (1<<30)
|
| 65 |
+
#define SEARCH_THISSOLVID (1<<31)
|
| 66 |
+
|
| 67 |
+
/* obsolete */
|
| 68 |
+
#define SEARCH_COMPLETE_FILELIST 0 /* ignored, this is the default */
|
| 69 |
+
|
| 70 |
+
/*
|
| 71 |
+
* Datamatcher: match a string against a query
|
| 72 |
+
*/
|
| 73 |
+
typedef struct s_Datamatcher {
|
| 74 |
+
int flags; /* see matcher flags above */
|
| 75 |
+
const char *match; /* the query string */
|
| 76 |
+
void *matchdata; /* e.g. compiled regexp */
|
| 77 |
+
int error;
|
| 78 |
+
} Datamatcher;
|
| 79 |
+
|
| 80 |
+
int datamatcher_init(Datamatcher *ma, const char *match, int flags);
|
| 81 |
+
void datamatcher_free(Datamatcher *ma);
|
| 82 |
+
int datamatcher_match(Datamatcher *ma, const char *str);
|
| 83 |
+
int datamatcher_checkbasename(Datamatcher *ma, const char *str);
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
/*
|
| 87 |
+
* Dataiterator
|
| 88 |
+
*
|
| 89 |
+
* Iterator like interface to 'search' functionality
|
| 90 |
+
*
|
| 91 |
+
* Dataiterator is per-pool, additional filters can be applied
|
| 92 |
+
* to limit the search domain. See dataiterator_init below.
|
| 93 |
+
*
|
| 94 |
+
* Use these like:
|
| 95 |
+
* Dataiterator di;
|
| 96 |
+
* dataiterator_init(&di, repo->pool, repo, 0, 0, "bla", SEARCH_SUBSTRING);
|
| 97 |
+
* while (dataiterator_step(&di))
|
| 98 |
+
* dosomething(di.solvid, di.key, di.kv);
|
| 99 |
+
* dataiterator_free(&di);
|
| 100 |
+
*/
|
| 101 |
+
typedef struct s_Dataiterator
|
| 102 |
+
{
|
| 103 |
+
int state;
|
| 104 |
+
int flags;
|
| 105 |
+
|
| 106 |
+
Pool *pool;
|
| 107 |
+
Repo *repo;
|
| 108 |
+
Repodata *data;
|
| 109 |
+
|
| 110 |
+
/* data pointers */
|
| 111 |
+
unsigned char *dp;
|
| 112 |
+
unsigned char *ddp;
|
| 113 |
+
Id *idp;
|
| 114 |
+
Id *keyp;
|
| 115 |
+
|
| 116 |
+
/* the result */
|
| 117 |
+
struct s_Repokey *key;
|
| 118 |
+
KeyValue kv;
|
| 119 |
+
|
| 120 |
+
/* our matcher */
|
| 121 |
+
Datamatcher matcher;
|
| 122 |
+
|
| 123 |
+
/* iterators/filters */
|
| 124 |
+
Id keyname;
|
| 125 |
+
Id repodataid;
|
| 126 |
+
Id solvid;
|
| 127 |
+
Id repoid;
|
| 128 |
+
|
| 129 |
+
Id keynames[3 + 1];
|
| 130 |
+
int nkeynames;
|
| 131 |
+
int rootlevel;
|
| 132 |
+
|
| 133 |
+
/* recursion data */
|
| 134 |
+
struct di_parent {
|
| 135 |
+
KeyValue kv;
|
| 136 |
+
unsigned char *dp;
|
| 137 |
+
Id *keyp;
|
| 138 |
+
} parents[3];
|
| 139 |
+
int nparents;
|
| 140 |
+
|
| 141 |
+
/* vertical data */
|
| 142 |
+
unsigned char *vert_ddp;
|
| 143 |
+
Id vert_off;
|
| 144 |
+
Id vert_len;
|
| 145 |
+
Id vert_storestate;
|
| 146 |
+
|
| 147 |
+
/* strdup data */
|
| 148 |
+
char *dupstr;
|
| 149 |
+
int dupstrn;
|
| 150 |
+
|
| 151 |
+
Id *keyskip;
|
| 152 |
+
Id *oldkeyskip;
|
| 153 |
+
} Dataiterator;
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
/*
|
| 157 |
+
* Initialize dataiterator
|
| 158 |
+
*
|
| 159 |
+
* di: Pointer to Dataiterator to be initialized
|
| 160 |
+
* pool: Search domain for the iterator
|
| 161 |
+
* repo: if non-null, limit search to this repo
|
| 162 |
+
* solvid: if non-null, limit search to this solvable
|
| 163 |
+
* keyname: if non-null, limit search to this keyname
|
| 164 |
+
* match: if non-null, limit search to this match
|
| 165 |
+
*/
|
| 166 |
+
int dataiterator_init(Dataiterator *di, Pool *pool, Repo *repo, Id p, Id keyname, const char *match, int flags);
|
| 167 |
+
void dataiterator_init_clone(Dataiterator *di, Dataiterator *from);
|
| 168 |
+
void dataiterator_set_search(Dataiterator *di, Repo *repo, Id p);
|
| 169 |
+
void dataiterator_set_keyname(Dataiterator *di, Id keyname);
|
| 170 |
+
int dataiterator_set_match(Dataiterator *di, const char *match, int flags);
|
| 171 |
+
|
| 172 |
+
void dataiterator_prepend_keyname(Dataiterator *di, Id keyname);
|
| 173 |
+
void dataiterator_free(Dataiterator *di);
|
| 174 |
+
int dataiterator_step(Dataiterator *di);
|
| 175 |
+
void dataiterator_setpos(Dataiterator *di);
|
| 176 |
+
void dataiterator_setpos_parent(Dataiterator *di);
|
| 177 |
+
int dataiterator_match(Dataiterator *di, Datamatcher *ma);
|
| 178 |
+
void dataiterator_skip_attribute(Dataiterator *di);
|
| 179 |
+
void dataiterator_skip_solvable(Dataiterator *di);
|
| 180 |
+
void dataiterator_skip_repo(Dataiterator *di);
|
| 181 |
+
void dataiterator_jump_to_solvid(Dataiterator *di, Id solvid);
|
| 182 |
+
void dataiterator_jump_to_repo(Dataiterator *di, Repo *repo);
|
| 183 |
+
void dataiterator_entersub(Dataiterator *di);
|
| 184 |
+
void dataiterator_clonepos(Dataiterator *di, Dataiterator *from);
|
| 185 |
+
void dataiterator_seek(Dataiterator *di, int whence);
|
| 186 |
+
void dataiterator_strdup(Dataiterator *di);
|
| 187 |
+
|
| 188 |
+
#define DI_SEEK_STAY (1 << 16)
|
| 189 |
+
#define DI_SEEK_CHILD 1
|
| 190 |
+
#define DI_SEEK_PARENT 2
|
| 191 |
+
#define DI_SEEK_REWIND 3
|
| 192 |
+
|
| 193 |
+
#ifdef __cplusplus
|
| 194 |
+
}
|
| 195 |
+
#endif
|
| 196 |
+
|
| 197 |
+
#endif /* LIBSOLV_DATAITERATOR_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/dirpool.h
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
#ifndef LIBSOLV_DIRPOOL_H
|
| 8 |
+
#define LIBSOLV_DIRPOOL_H
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
#include "pooltypes.h"
|
| 12 |
+
#include "util.h"
|
| 13 |
+
|
| 14 |
+
#ifdef __cplusplus
|
| 15 |
+
extern "C" {
|
| 16 |
+
#endif
|
| 17 |
+
|
| 18 |
+
typedef struct s_Dirpool {
|
| 19 |
+
Id *dirs;
|
| 20 |
+
int ndirs;
|
| 21 |
+
Id *dirtraverse;
|
| 22 |
+
} Dirpool;
|
| 23 |
+
|
| 24 |
+
void dirpool_init(Dirpool *dp);
|
| 25 |
+
void dirpool_free(Dirpool *dp);
|
| 26 |
+
|
| 27 |
+
void dirpool_make_dirtraverse(Dirpool *dp);
|
| 28 |
+
Id dirpool_add_dir(Dirpool *dp, Id parent, Id comp, int create);
|
| 29 |
+
|
| 30 |
+
/* return the parent directory of child did */
|
| 31 |
+
static inline Id dirpool_parent(Dirpool *dp, Id did)
|
| 32 |
+
{
|
| 33 |
+
if (!did)
|
| 34 |
+
return 0;
|
| 35 |
+
while (dp->dirs[--did] > 0)
|
| 36 |
+
;
|
| 37 |
+
return -dp->dirs[did];
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
/* return the next child entry of child did */
|
| 41 |
+
static inline Id
|
| 42 |
+
dirpool_sibling(Dirpool *dp, Id did)
|
| 43 |
+
{
|
| 44 |
+
/* if this block contains another entry, simply return it */
|
| 45 |
+
if (did + 1 < dp->ndirs && dp->dirs[did + 1] > 0)
|
| 46 |
+
return did + 1;
|
| 47 |
+
/* end of block reached, rewind to get to the block's
|
| 48 |
+
* dirtraverse entry */
|
| 49 |
+
while (dp->dirs[--did] > 0)
|
| 50 |
+
;
|
| 51 |
+
/* need to special case did == 0 to prevent looping */
|
| 52 |
+
if (!did)
|
| 53 |
+
return 0;
|
| 54 |
+
if (!dp->dirtraverse)
|
| 55 |
+
dirpool_make_dirtraverse(dp);
|
| 56 |
+
return dp->dirtraverse[did];
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
/* return the first child entry of directory did */
|
| 60 |
+
static inline Id
|
| 61 |
+
dirpool_child(Dirpool *dp, Id did)
|
| 62 |
+
{
|
| 63 |
+
if (!dp->dirtraverse)
|
| 64 |
+
dirpool_make_dirtraverse(dp);
|
| 65 |
+
return dp->dirtraverse[did];
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
static inline void
|
| 69 |
+
dirpool_free_dirtraverse(Dirpool *dp)
|
| 70 |
+
{
|
| 71 |
+
solv_free(dp->dirtraverse);
|
| 72 |
+
dp->dirtraverse = 0;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
static inline Id
|
| 76 |
+
dirpool_compid(Dirpool *dp, Id did)
|
| 77 |
+
{
|
| 78 |
+
return dp->dirs[did];
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
#ifdef __cplusplus
|
| 82 |
+
}
|
| 83 |
+
#endif
|
| 84 |
+
|
| 85 |
+
#endif /* LIBSOLV_DIRPOOL_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/evr.h
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* evr.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_EVR_H
|
| 14 |
+
#define LIBSOLV_EVR_H
|
| 15 |
+
|
| 16 |
+
#ifdef __cplusplus
|
| 17 |
+
extern "C" {
|
| 18 |
+
#endif
|
| 19 |
+
|
| 20 |
+
#include "pooltypes.h"
|
| 21 |
+
|
| 22 |
+
#define EVRCMP_COMPARE 0
|
| 23 |
+
#define EVRCMP_MATCH_RELEASE 1
|
| 24 |
+
#define EVRCMP_MATCH 2
|
| 25 |
+
#define EVRCMP_COMPARE_EVONLY 3
|
| 26 |
+
|
| 27 |
+
extern int solv_vercmp(const char *s1, const char *q1, const char *s2, const char *q2);
|
| 28 |
+
|
| 29 |
+
extern int pool_evrcmp_str(const Pool *pool, const char *evr1, const char *evr2, int mode);
|
| 30 |
+
extern int pool_evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode);
|
| 31 |
+
extern int pool_evrmatch(const Pool *pool, Id evrid, const char *epoch, const char *version, const char *release);
|
| 32 |
+
|
| 33 |
+
#ifdef __cplusplus
|
| 34 |
+
}
|
| 35 |
+
#endif
|
| 36 |
+
|
| 37 |
+
#endif /* LIBSOLV_EVR_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/hash.h
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* hash.h
|
| 10 |
+
* generic hash functions
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_HASH_H
|
| 14 |
+
#define LIBSOLV_HASH_H
|
| 15 |
+
|
| 16 |
+
#include "pooltypes.h"
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
/* value of a hash */
|
| 23 |
+
typedef unsigned int Hashval;
|
| 24 |
+
|
| 25 |
+
/* inside the hash table, Ids are stored. Hash maps: string -> hash -> Id */
|
| 26 |
+
typedef Id *Hashtable;
|
| 27 |
+
|
| 28 |
+
/* hash chain */
|
| 29 |
+
#define HASHCHAIN_START 7
|
| 30 |
+
#define HASHCHAIN_NEXT(h, hh, mask) (((h) + (hh)++) & (mask))
|
| 31 |
+
|
| 32 |
+
/* very simple hash function
|
| 33 |
+
* string -> hash
|
| 34 |
+
*/
|
| 35 |
+
static inline Hashval
|
| 36 |
+
strhash(const char *str)
|
| 37 |
+
{
|
| 38 |
+
Hashval r = 0;
|
| 39 |
+
unsigned int c;
|
| 40 |
+
while ((c = *(const unsigned char *)str++) != 0)
|
| 41 |
+
r += (r << 3) + c;
|
| 42 |
+
return r;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
static inline Hashval
|
| 46 |
+
strnhash(const char *str, unsigned len)
|
| 47 |
+
{
|
| 48 |
+
Hashval r = 0;
|
| 49 |
+
unsigned int c;
|
| 50 |
+
while (len-- && (c = *(const unsigned char *)str++) != 0)
|
| 51 |
+
r += (r << 3) + c;
|
| 52 |
+
return r;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
static inline Hashval
|
| 56 |
+
strhash_cont(const char *str, Hashval r)
|
| 57 |
+
{
|
| 58 |
+
unsigned int c;
|
| 59 |
+
while ((c = *(const unsigned char *)str++) != 0)
|
| 60 |
+
r += (r << 3) + c;
|
| 61 |
+
return r;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
/* hash for rel
|
| 66 |
+
* rel -> hash
|
| 67 |
+
*/
|
| 68 |
+
static inline Hashval
|
| 69 |
+
relhash(Id name, Id evr, int flags)
|
| 70 |
+
{
|
| 71 |
+
return name + 7 * evr + 13 * flags;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
/* compute bitmask for value
|
| 76 |
+
* returns smallest (2^n-1) > 2 * num + 3
|
| 77 |
+
*
|
| 78 |
+
* used for Hashtable 'modulo' operation
|
| 79 |
+
*/
|
| 80 |
+
static inline Hashval
|
| 81 |
+
mkmask(unsigned int num)
|
| 82 |
+
{
|
| 83 |
+
num = num * 2 + 3;
|
| 84 |
+
while (num & (num - 1))
|
| 85 |
+
num &= num - 1;
|
| 86 |
+
return num * 2 - 1;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
#ifdef __cplusplus
|
| 90 |
+
}
|
| 91 |
+
#endif
|
| 92 |
+
|
| 93 |
+
#endif /* LIBSOLV_HASH_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/knownid.h
ADDED
|
@@ -0,0 +1,289 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007-2014, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* knownid.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
/*
|
| 14 |
+
* Warning: you're free to append new entries, but insert/delete breaks
|
| 15 |
+
* the ABI!
|
| 16 |
+
*/
|
| 17 |
+
|
| 18 |
+
#ifndef LIBSOLV_KNOWNID_H
|
| 19 |
+
#define LIBSOLV_KNOWNID_H
|
| 20 |
+
|
| 21 |
+
#undef KNOWNID
|
| 22 |
+
#ifdef KNOWNID_INITIALIZE
|
| 23 |
+
# define KNOWNID(a, b) b
|
| 24 |
+
static const char *initpool_data[] = {
|
| 25 |
+
#else
|
| 26 |
+
# define KNOWNID(a, b) a
|
| 27 |
+
enum solv_knownid {
|
| 28 |
+
#endif
|
| 29 |
+
|
| 30 |
+
KNOWNID(ID_NULL, "<NULL>"),
|
| 31 |
+
KNOWNID(ID_EMPTY, ""),
|
| 32 |
+
|
| 33 |
+
/* The following Ids are stored in the solvable and must
|
| 34 |
+
* come in one block */
|
| 35 |
+
KNOWNID(SOLVABLE_NAME, "solvable:name"),
|
| 36 |
+
KNOWNID(SOLVABLE_ARCH, "solvable:arch"),
|
| 37 |
+
KNOWNID(SOLVABLE_EVR, "solvable:evr"),
|
| 38 |
+
KNOWNID(SOLVABLE_VENDOR, "solvable:vendor"),
|
| 39 |
+
KNOWNID(SOLVABLE_PROVIDES, "solvable:provides"),
|
| 40 |
+
KNOWNID(SOLVABLE_OBSOLETES, "solvable:obsoletes"),
|
| 41 |
+
KNOWNID(SOLVABLE_CONFLICTS, "solvable:conflicts"),
|
| 42 |
+
KNOWNID(SOLVABLE_REQUIRES, "solvable:requires"),
|
| 43 |
+
KNOWNID(SOLVABLE_RECOMMENDS, "solvable:recommends"),
|
| 44 |
+
KNOWNID(SOLVABLE_SUGGESTS, "solvable:suggests"),
|
| 45 |
+
KNOWNID(SOLVABLE_SUPPLEMENTS, "solvable:supplements"),
|
| 46 |
+
KNOWNID(SOLVABLE_ENHANCES, "solvable:enhances"),
|
| 47 |
+
KNOWNID(RPM_RPMDBID, "rpm:dbid"),
|
| 48 |
+
|
| 49 |
+
/* normal requires before this, prereqs after this */
|
| 50 |
+
KNOWNID(SOLVABLE_PREREQMARKER, "solvable:prereqmarker"),
|
| 51 |
+
/* normal provides before this, generated file provides after this */
|
| 52 |
+
KNOWNID(SOLVABLE_FILEMARKER, "solvable:filemarker"),
|
| 53 |
+
|
| 54 |
+
KNOWNID(NAMESPACE_INSTALLED, "namespace:installed"),
|
| 55 |
+
KNOWNID(NAMESPACE_MODALIAS, "namespace:modalias"),
|
| 56 |
+
KNOWNID(NAMESPACE_SPLITPROVIDES, "namespace:splitprovides"),
|
| 57 |
+
KNOWNID(NAMESPACE_LANGUAGE, "namespace:language"),
|
| 58 |
+
KNOWNID(NAMESPACE_FILESYSTEM, "namespace:filesystem"),
|
| 59 |
+
KNOWNID(NAMESPACE_OTHERPROVIDERS, "namespace:otherproviders"),
|
| 60 |
+
|
| 61 |
+
KNOWNID(SYSTEM_SYSTEM, "system:system"),
|
| 62 |
+
|
| 63 |
+
/* special solvable architectures */
|
| 64 |
+
KNOWNID(ARCH_SRC, "src"),
|
| 65 |
+
KNOWNID(ARCH_NOSRC, "nosrc"),
|
| 66 |
+
KNOWNID(ARCH_NOARCH, "noarch"),
|
| 67 |
+
KNOWNID(ARCH_ALL, "all"),
|
| 68 |
+
KNOWNID(ARCH_ANY, "any"),
|
| 69 |
+
|
| 70 |
+
/* the meta tags used in solv file storage */
|
| 71 |
+
KNOWNID(REPOSITORY_SOLVABLES, "repository:solvables"),
|
| 72 |
+
KNOWNID(REPOSITORY_DELTAINFO, "repository:deltainfo"),
|
| 73 |
+
|
| 74 |
+
/* sub-repository information, they will get loaded on demand */
|
| 75 |
+
KNOWNID(REPOSITORY_EXTERNAL, "repository:external"),
|
| 76 |
+
KNOWNID(REPOSITORY_KEYS, "repository:keys"),
|
| 77 |
+
KNOWNID(REPOSITORY_LOCATION, "repository:location"),
|
| 78 |
+
|
| 79 |
+
/* the known data types */
|
| 80 |
+
KNOWNID(REPOKEY_TYPE_VOID, "repokey:type:void"),
|
| 81 |
+
KNOWNID(REPOKEY_TYPE_CONSTANT, "repokey:type:constant"),
|
| 82 |
+
KNOWNID(REPOKEY_TYPE_CONSTANTID, "repokey:type:constantid"),
|
| 83 |
+
KNOWNID(REPOKEY_TYPE_ID, "repokey:type:id"),
|
| 84 |
+
KNOWNID(REPOKEY_TYPE_NUM, "repokey:type:num"),
|
| 85 |
+
KNOWNID(REPOKEY_TYPE_DIR, "repokey:type:dir"),
|
| 86 |
+
KNOWNID(REPOKEY_TYPE_STR, "repokey:type:str"),
|
| 87 |
+
KNOWNID(REPOKEY_TYPE_BINARY, "repokey:type:binary"),
|
| 88 |
+
KNOWNID(REPOKEY_TYPE_IDARRAY, "repokey:type:idarray"),
|
| 89 |
+
KNOWNID(REPOKEY_TYPE_REL_IDARRAY, "repokey:type:relidarray"),
|
| 90 |
+
KNOWNID(REPOKEY_TYPE_DIRSTRARRAY, "repokey:type:dirstrarray"),
|
| 91 |
+
KNOWNID(REPOKEY_TYPE_DIRNUMNUMARRAY, "repokey:type:dirnumnumarray"),
|
| 92 |
+
KNOWNID(REPOKEY_TYPE_MD5, "repokey:type:md5"),
|
| 93 |
+
KNOWNID(REPOKEY_TYPE_SHA1, "repokey:type:sha1"),
|
| 94 |
+
KNOWNID(REPOKEY_TYPE_SHA224, "repokey:type:sha224"),
|
| 95 |
+
KNOWNID(REPOKEY_TYPE_SHA256, "repokey:type:sha256"),
|
| 96 |
+
KNOWNID(REPOKEY_TYPE_SHA384, "repokey:type:sha384"),
|
| 97 |
+
KNOWNID(REPOKEY_TYPE_SHA512, "repokey:type:sha512"),
|
| 98 |
+
KNOWNID(REPOKEY_TYPE_FIXARRAY, "repokey:type:fixarray"),
|
| 99 |
+
KNOWNID(REPOKEY_TYPE_FLEXARRAY, "repokey:type:flexarray"),
|
| 100 |
+
KNOWNID(REPOKEY_TYPE_DELETED, "repokey:type:deleted"), /* internal only */
|
| 101 |
+
|
| 102 |
+
KNOWNID(SOLVABLE_SUMMARY, "solvable:summary"),
|
| 103 |
+
KNOWNID(SOLVABLE_DESCRIPTION, "solvable:description"),
|
| 104 |
+
KNOWNID(SOLVABLE_DISTRIBUTION, "solvable:distribution"),
|
| 105 |
+
KNOWNID(SOLVABLE_AUTHORS, "solvable:authors"),
|
| 106 |
+
KNOWNID(SOLVABLE_PACKAGER, "solvable:packager"),
|
| 107 |
+
KNOWNID(SOLVABLE_GROUP, "solvable:group"),
|
| 108 |
+
KNOWNID(SOLVABLE_URL, "solvable:url"),
|
| 109 |
+
KNOWNID(SOLVABLE_KEYWORDS, "solvable:keywords"),
|
| 110 |
+
KNOWNID(SOLVABLE_LICENSE, "solvable:license"),
|
| 111 |
+
KNOWNID(SOLVABLE_BUILDTIME, "solvable:buildtime"),
|
| 112 |
+
KNOWNID(SOLVABLE_BUILDHOST, "solvable:buildhost"),
|
| 113 |
+
KNOWNID(SOLVABLE_EULA, "solvable:eula"),
|
| 114 |
+
KNOWNID(SOLVABLE_CPEID, "solvable:cpeid"),
|
| 115 |
+
KNOWNID(SOLVABLE_MESSAGEINS, "solvable:messageins"),
|
| 116 |
+
KNOWNID(SOLVABLE_MESSAGEDEL, "solvable:messagedel"),
|
| 117 |
+
KNOWNID(SOLVABLE_INSTALLSIZE, "solvable:installsize"),
|
| 118 |
+
KNOWNID(SOLVABLE_DISKUSAGE, "solvable:diskusage"),
|
| 119 |
+
KNOWNID(SOLVABLE_FILELIST, "solvable:filelist"),
|
| 120 |
+
KNOWNID(SOLVABLE_INSTALLTIME, "solvable:installtime"),
|
| 121 |
+
KNOWNID(SOLVABLE_MEDIADIR, "solvable:mediadir"),
|
| 122 |
+
KNOWNID(SOLVABLE_MEDIAFILE, "solvable:mediafile"),
|
| 123 |
+
KNOWNID(SOLVABLE_MEDIANR, "solvable:medianr"),
|
| 124 |
+
KNOWNID(SOLVABLE_MEDIABASE, "solvable:mediabase"), /* <location xml:base=... > */
|
| 125 |
+
KNOWNID(SOLVABLE_DOWNLOADSIZE, "solvable:downloadsize"),
|
| 126 |
+
KNOWNID(SOLVABLE_SOURCEARCH, "solvable:sourcearch"),
|
| 127 |
+
KNOWNID(SOLVABLE_SOURCENAME, "solvable:sourcename"),
|
| 128 |
+
KNOWNID(SOLVABLE_SOURCEEVR, "solvable:sourceevr"),
|
| 129 |
+
KNOWNID(SOLVABLE_ISVISIBLE, "solvable:isvisible"),
|
| 130 |
+
KNOWNID(SOLVABLE_TRIGGERS, "solvable:triggers"),
|
| 131 |
+
KNOWNID(SOLVABLE_CHECKSUM, "solvable:checksum"),
|
| 132 |
+
KNOWNID(SOLVABLE_PKGID, "solvable:pkgid"), /* pkgid: md5sum over header + payload */
|
| 133 |
+
KNOWNID(SOLVABLE_HDRID, "solvable:hdrid"), /* hdrid: sha1sum over header only */
|
| 134 |
+
KNOWNID(SOLVABLE_LEADSIGID, "solvable:leadsigid"), /* leadsigid: md5sum over lead + sigheader */
|
| 135 |
+
|
| 136 |
+
KNOWNID(SOLVABLE_PATCHCATEGORY, "solvable:patchcategory"),
|
| 137 |
+
KNOWNID(SOLVABLE_HEADEREND, "solvable:headerend"),
|
| 138 |
+
KNOWNID(SOLVABLE_CHANGELOG, "solvable:changelog"),
|
| 139 |
+
KNOWNID(SOLVABLE_CHANGELOG_AUTHOR, "solvable:changelog:author"),
|
| 140 |
+
KNOWNID(SOLVABLE_CHANGELOG_TIME, "solvable:changelog:time"),
|
| 141 |
+
KNOWNID(SOLVABLE_CHANGELOG_TEXT, "solvable:changelog:text"),
|
| 142 |
+
KNOWNID(SOLVABLE_INSTALLSTATUS, "solvable:installstatus"), /* debian install status */
|
| 143 |
+
KNOWNID(SOLVABLE_PREREQ_IGNOREINST, "solvable:prereq_ignoreinst"), /* ignore these pre-requires for installed packages */
|
| 144 |
+
|
| 145 |
+
/* stuff for solvables of type pattern */
|
| 146 |
+
KNOWNID(SOLVABLE_CATEGORY, "solvable:category"),
|
| 147 |
+
KNOWNID(SOLVABLE_INCLUDES, "solvable:includes"),
|
| 148 |
+
KNOWNID(SOLVABLE_EXTENDS, "solvable:extends"),
|
| 149 |
+
KNOWNID(SOLVABLE_ICON, "solvable:icon"),
|
| 150 |
+
KNOWNID(SOLVABLE_ORDER, "solvable:order"),
|
| 151 |
+
|
| 152 |
+
/* extra definitions for updates (i.e. patch: solvables) */
|
| 153 |
+
KNOWNID(UPDATE_REBOOT, "update:reboot"), /* reboot suggested (kernel update) */
|
| 154 |
+
KNOWNID(UPDATE_RESTART, "update:restart"), /* restart suggested (update stack update) */
|
| 155 |
+
KNOWNID(UPDATE_RELOGIN, "update:relogin"), /* relogin suggested */
|
| 156 |
+
|
| 157 |
+
KNOWNID(UPDATE_MESSAGE, "update:message"), /* informative message */
|
| 158 |
+
KNOWNID(UPDATE_SEVERITY, "update:severity"), /* "Important", ...*/
|
| 159 |
+
KNOWNID(UPDATE_RIGHTS, "update:rights"), /* copyright */
|
| 160 |
+
|
| 161 |
+
/* 'content' of patch, usually list of packages */
|
| 162 |
+
KNOWNID(UPDATE_COLLECTION, "update:collection"), /* "name evr arch" */
|
| 163 |
+
KNOWNID(UPDATE_COLLECTION_NAME, "update:collection:name"), /* name */
|
| 164 |
+
KNOWNID(UPDATE_COLLECTION_EVR, "update:collection:evr"), /* epoch:version-release */
|
| 165 |
+
KNOWNID(UPDATE_COLLECTION_ARCH, "update:collection:arch"), /* architecture */
|
| 166 |
+
KNOWNID(UPDATE_COLLECTION_FILENAME, "update:collection:filename"), /* filename (of rpm) */
|
| 167 |
+
KNOWNID(UPDATE_COLLECTION_FLAGS, "update:collection:flags"), /* reboot(1)/restart(2) suggested if this rpm gets updated */
|
| 168 |
+
|
| 169 |
+
KNOWNID(UPDATE_REFERENCE, "update:reference"), /* external references for the update */
|
| 170 |
+
KNOWNID(UPDATE_REFERENCE_TYPE, "update:reference:type"), /* type, e.g. 'bugzilla' or 'cve' */
|
| 171 |
+
KNOWNID(UPDATE_REFERENCE_HREF, "update:reference:href"), /* href, e.g. 'http://bugzilla...' */
|
| 172 |
+
KNOWNID(UPDATE_REFERENCE_ID, "update:reference:id"), /* id, e.g. bug number */
|
| 173 |
+
KNOWNID(UPDATE_REFERENCE_TITLE, "update:reference:title"), /* title, e.g. "the bla forz scribs on fuggle" */
|
| 174 |
+
|
| 175 |
+
/* extra definitions for products */
|
| 176 |
+
KNOWNID(PRODUCT_REFERENCEFILE, "product:referencefile"), /* installed product only */
|
| 177 |
+
KNOWNID(PRODUCT_SHORTLABEL, "product:shortlabel"), /* not in repomd? */
|
| 178 |
+
KNOWNID(PRODUCT_DISTPRODUCT, "product:distproduct"), /* obsolete */
|
| 179 |
+
KNOWNID(PRODUCT_DISTVERSION, "product:distversion"), /* obsolete */
|
| 180 |
+
KNOWNID(PRODUCT_TYPE, "product:type"), /* e.g. 'base' */
|
| 181 |
+
KNOWNID(PRODUCT_URL, "product:url"),
|
| 182 |
+
KNOWNID(PRODUCT_URL_TYPE, "product:url:type"),
|
| 183 |
+
KNOWNID(PRODUCT_FLAGS, "product:flags"), /* e.g. 'update', 'no_you' */
|
| 184 |
+
KNOWNID(PRODUCT_PRODUCTLINE, "product:productline"), /* installed product only */
|
| 185 |
+
KNOWNID(PRODUCT_REGISTER_TARGET, "product:regtarget"), /* installed and available product */
|
| 186 |
+
KNOWNID(PRODUCT_REGISTER_FLAVOR, "product:regflavor"), /* installed and available product */
|
| 187 |
+
KNOWNID(PRODUCT_REGISTER_RELEASE, "product:regrelease"), /* installed product only */
|
| 188 |
+
KNOWNID(PRODUCT_UPDATES_REPOID, "product:updates:repoid"),
|
| 189 |
+
KNOWNID(PRODUCT_UPDATES, "product:updates"),
|
| 190 |
+
KNOWNID(PRODUCT_ENDOFLIFE, "product:endoflife"),
|
| 191 |
+
|
| 192 |
+
/* argh, should rename to repository and unify with REPOMD */
|
| 193 |
+
KNOWNID(SUSETAGS_DATADIR, "susetags:datadir"),
|
| 194 |
+
KNOWNID(SUSETAGS_DESCRDIR, "susetags:descrdir"),
|
| 195 |
+
KNOWNID(SUSETAGS_DEFAULTVENDOR, "susetags:defaultvendor"),
|
| 196 |
+
KNOWNID(SUSETAGS_FILE, "susetags:file"),
|
| 197 |
+
KNOWNID(SUSETAGS_FILE_NAME, "susetags:file:name"),
|
| 198 |
+
KNOWNID(SUSETAGS_FILE_TYPE, "susetags:file:type"),
|
| 199 |
+
KNOWNID(SUSETAGS_FILE_CHECKSUM, "susetags:file:checksum"),
|
| 200 |
+
KNOWNID(SUSETAGS_SHARE_NAME, "susetags:share:name"),
|
| 201 |
+
KNOWNID(SUSETAGS_SHARE_EVR, "susetags:share:evr"),
|
| 202 |
+
KNOWNID(SUSETAGS_SHARE_ARCH, "susetags:share:arch"),
|
| 203 |
+
|
| 204 |
+
KNOWNID(REPOSITORY_ADDEDFILEPROVIDES, "repository:addedfileprovides"), /* file provides already added to our solvables */
|
| 205 |
+
KNOWNID(REPOSITORY_RPMDBCOOKIE, "repository:rpmdbcookie"), /* inode of the rpm database for rpm --rebuilddb detection */
|
| 206 |
+
KNOWNID(REPOSITORY_FILTEREDFILELIST, "repository:filteredfilelist"), /* filelist in repository is filtered */
|
| 207 |
+
KNOWNID(REPOSITORY_TIMESTAMP, "repository:timestamp"), /* timestamp then the repository was generated */
|
| 208 |
+
KNOWNID(REPOSITORY_EXPIRE, "repository:expire"), /* hint when the metadata could be outdated w/respect to generated timestamp */
|
| 209 |
+
KNOWNID(REPOSITORY_UPDATES, "repository:updates"), /* which things does this repo provides updates for, if it does (array) (obsolete?) */
|
| 210 |
+
KNOWNID(REPOSITORY_DISTROS, "repository:distros"), /* which products this repository is supposed to be for (array) */
|
| 211 |
+
KNOWNID(REPOSITORY_PRODUCT_LABEL, "repository:product:label"),
|
| 212 |
+
KNOWNID(REPOSITORY_PRODUCT_CPEID, "repository:product:cpeid"),
|
| 213 |
+
KNOWNID(REPOSITORY_REPOID, "repository:repoid"), /* obsolete? */
|
| 214 |
+
KNOWNID(REPOSITORY_KEYWORDS, "repository:keywords"), /* keyword (tags) for this repository */
|
| 215 |
+
KNOWNID(REPOSITORY_REVISION, "repository:revision"), /* revision of the repository. arbitrary string */
|
| 216 |
+
KNOWNID(REPOSITORY_TOOLVERSION, "repository:toolversion"),
|
| 217 |
+
|
| 218 |
+
KNOWNID(DELTA_PACKAGE_NAME, "delta:pkgname"),
|
| 219 |
+
KNOWNID(DELTA_PACKAGE_EVR, "delta:pkgevr"),
|
| 220 |
+
KNOWNID(DELTA_PACKAGE_ARCH, "delta:pkgarch"),
|
| 221 |
+
KNOWNID(DELTA_LOCATION_DIR, "delta:locdir"),
|
| 222 |
+
KNOWNID(DELTA_LOCATION_NAME, "delta:locname"),
|
| 223 |
+
KNOWNID(DELTA_LOCATION_EVR, "delta:locevr"),
|
| 224 |
+
KNOWNID(DELTA_LOCATION_SUFFIX, "delta:locsuffix"),
|
| 225 |
+
KNOWNID(DELTA_DOWNLOADSIZE, "delta:downloadsize"),
|
| 226 |
+
KNOWNID(DELTA_CHECKSUM, "delta:checksum"),
|
| 227 |
+
KNOWNID(DELTA_BASE_EVR, "delta:baseevr"),
|
| 228 |
+
KNOWNID(DELTA_SEQ_NAME, "delta:seqname"),
|
| 229 |
+
KNOWNID(DELTA_SEQ_EVR, "delta:seqevr"),
|
| 230 |
+
KNOWNID(DELTA_SEQ_NUM, "delta:seqnum"),
|
| 231 |
+
KNOWNID(DELTA_LOCATION_BASE, "delta:locbase"), /* <location xml:base=... > */
|
| 232 |
+
|
| 233 |
+
KNOWNID(REPOSITORY_REPOMD, "repository:repomd"),
|
| 234 |
+
KNOWNID(REPOSITORY_REPOMD_TYPE, "repository:repomd:type"),
|
| 235 |
+
KNOWNID(REPOSITORY_REPOMD_LOCATION, "repository:repomd:location"),
|
| 236 |
+
KNOWNID(REPOSITORY_REPOMD_TIMESTAMP, "repository:repomd:timestamp"),
|
| 237 |
+
KNOWNID(REPOSITORY_REPOMD_CHECKSUM, "repository:repomd:checksum"),
|
| 238 |
+
KNOWNID(REPOSITORY_REPOMD_OPENCHECKSUM, "repository:repomd:openchecksum"),
|
| 239 |
+
KNOWNID(REPOSITORY_REPOMD_SIZE, "repository:repomd:size"),
|
| 240 |
+
|
| 241 |
+
KNOWNID(PUBKEY_KEYID, "pubkey:keyid"),
|
| 242 |
+
KNOWNID(PUBKEY_FINGERPRINT, "pubkey:fingerprint"),
|
| 243 |
+
KNOWNID(PUBKEY_EXPIRES, "pubkey:expires"),
|
| 244 |
+
KNOWNID(PUBKEY_SIGNATURES, "pubkey:signatures"),
|
| 245 |
+
KNOWNID(PUBKEY_DATA, "pubkey:data"),
|
| 246 |
+
KNOWNID(PUBKEY_SUBKEYOF, "pubkey:subkeyof"),
|
| 247 |
+
|
| 248 |
+
KNOWNID(SIGNATURE_ISSUER, "signature:issuer"),
|
| 249 |
+
KNOWNID(SIGNATURE_TIME, "signature:time"),
|
| 250 |
+
KNOWNID(SIGNATURE_EXPIRES, "signature:expires"),
|
| 251 |
+
KNOWNID(SIGNATURE_DATA, "signature:data"),
|
| 252 |
+
|
| 253 |
+
/* 'content' of patch, usually list of modules */
|
| 254 |
+
KNOWNID(UPDATE_MODULE, "update:module"), /* "name stream version context arch" */
|
| 255 |
+
KNOWNID(UPDATE_MODULE_NAME, "update:module:name"), /* name */
|
| 256 |
+
KNOWNID(UPDATE_MODULE_STREAM, "update:module:stream"), /* stream */
|
| 257 |
+
KNOWNID(UPDATE_MODULE_VERSION, "update:module:version"), /* version */
|
| 258 |
+
KNOWNID(UPDATE_MODULE_CONTEXT, "update:module:context"), /* context */
|
| 259 |
+
KNOWNID(UPDATE_MODULE_ARCH, "update:module:arch"), /* architecture */
|
| 260 |
+
|
| 261 |
+
KNOWNID(SOLVABLE_BUILDVERSION, "solvable:buildversion"), /* conda */
|
| 262 |
+
KNOWNID(SOLVABLE_BUILDFLAVOR, "solvable:buildflavor"), /* conda */
|
| 263 |
+
|
| 264 |
+
KNOWNID(UPDATE_STATUS, "update:status"), /* "stable", "testing", ...*/
|
| 265 |
+
|
| 266 |
+
KNOWNID(LIBSOLV_SELF_DESTRUCT_PKG, "libsolv-self-destruct-pkg()"), /* this package will self-destruct on installation */
|
| 267 |
+
|
| 268 |
+
KNOWNID(SOLVABLE_CONSTRAINS, "solvable:constrains"), /* conda */
|
| 269 |
+
KNOWNID(SOLVABLE_TRACK_FEATURES, "solvable:track_features"), /* conda */
|
| 270 |
+
KNOWNID(SOLVABLE_ISDEFAULT, "solvable:isdefault"),
|
| 271 |
+
KNOWNID(SOLVABLE_LANGONLY, "solvable:langonly"),
|
| 272 |
+
|
| 273 |
+
KNOWNID(UPDATE_COLLECTIONLIST, "update:collectionlist"), /* list of UPDATE_COLLECTION (actually packages) and UPDATE_MODULE */
|
| 274 |
+
KNOWNID(SOLVABLE_MULTIARCH, "solvable:multiarch"), /* debian multi-arch field */
|
| 275 |
+
KNOWNID(SOLVABLE_SIGNATUREDATA, "solvable:signaturedata"), /* conda */
|
| 276 |
+
|
| 277 |
+
KNOWNID(ID_NUM_INTERNAL, 0)
|
| 278 |
+
|
| 279 |
+
#ifdef KNOWNID_INITIALIZE
|
| 280 |
+
};
|
| 281 |
+
#else
|
| 282 |
+
};
|
| 283 |
+
#endif
|
| 284 |
+
|
| 285 |
+
#undef KNOWNID
|
| 286 |
+
|
| 287 |
+
#endif
|
| 288 |
+
|
| 289 |
+
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/policy.h
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* Generic policy interface for SAT solver
|
| 10 |
+
* The policy* function can be "overloaded" by defining a callback in the solver struct.
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#include "solver.h"
|
| 14 |
+
|
| 15 |
+
#ifdef __cplusplus
|
| 16 |
+
extern "C" {
|
| 17 |
+
#endif
|
| 18 |
+
|
| 19 |
+
#define POLICY_MODE_CHOOSE 0
|
| 20 |
+
#define POLICY_MODE_RECOMMEND 1
|
| 21 |
+
#define POLICY_MODE_SUGGEST 2
|
| 22 |
+
#define POLICY_MODE_CHOOSE_NOREORDER 3 /* internal, do not use */
|
| 23 |
+
#define POLICY_MODE_SUPPLEMENT 4 /* internal, do not use */
|
| 24 |
+
#define POLICY_MODE_FAVOR_REC (1 << 30) /* internal, do not use */
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
#define POLICY_ILLEGAL_DOWNGRADE 1
|
| 28 |
+
#define POLICY_ILLEGAL_ARCHCHANGE 2
|
| 29 |
+
#define POLICY_ILLEGAL_VENDORCHANGE 4
|
| 30 |
+
#define POLICY_ILLEGAL_NAMECHANGE 8
|
| 31 |
+
|
| 32 |
+
extern void policy_filter_unwanted(Solver *solv, Queue *plist, int mode);
|
| 33 |
+
extern int policy_illegal_archchange(Solver *solv, Solvable *s1, Solvable *s2);
|
| 34 |
+
extern int policy_illegal_vendorchange(Solver *solv, Solvable *s1, Solvable *s2);
|
| 35 |
+
extern int policy_is_illegal(Solver *solv, Solvable *s1, Solvable *s2, int ignore);
|
| 36 |
+
extern void policy_findupdatepackages(Solver *solv, Solvable *s, Queue *qs, int allowall);
|
| 37 |
+
extern const char *policy_illegal2str(Solver *solv, int illegal, Solvable *s, Solvable *rs);
|
| 38 |
+
extern void policy_update_recommendsmap(Solver *solv);
|
| 39 |
+
|
| 40 |
+
extern void policy_create_obsolete_index(Solver *solv);
|
| 41 |
+
|
| 42 |
+
extern void pool_best_solvables(Pool *pool, Queue *plist, int flags);
|
| 43 |
+
|
| 44 |
+
/* internal, do not use */
|
| 45 |
+
extern void prune_to_best_version(Pool *pool, Queue *plist);
|
| 46 |
+
extern void policy_prefer_favored(Solver *solv, Queue *plist);
|
| 47 |
+
|
| 48 |
+
#ifdef ENABLE_CONDA
|
| 49 |
+
extern void prune_to_best_version_conda(Pool *pool, Queue *plist);
|
| 50 |
+
#endif
|
| 51 |
+
|
| 52 |
+
#ifdef __cplusplus
|
| 53 |
+
}
|
| 54 |
+
#endif
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/pool.h
ADDED
|
@@ -0,0 +1,426 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* pool.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_POOL_H
|
| 14 |
+
#define LIBSOLV_POOL_H
|
| 15 |
+
|
| 16 |
+
#include <stdio.h>
|
| 17 |
+
|
| 18 |
+
#include "solvversion.h"
|
| 19 |
+
#include "pooltypes.h"
|
| 20 |
+
#include "poolid.h"
|
| 21 |
+
#include "solvable.h"
|
| 22 |
+
#include "bitmap.h"
|
| 23 |
+
#include "queue.h"
|
| 24 |
+
#include "strpool.h"
|
| 25 |
+
|
| 26 |
+
/* well known ids */
|
| 27 |
+
#include "knownid.h"
|
| 28 |
+
|
| 29 |
+
#ifdef __cplusplus
|
| 30 |
+
extern "C" {
|
| 31 |
+
#endif
|
| 32 |
+
|
| 33 |
+
/* well known solvable */
|
| 34 |
+
#define SYSTEMSOLVABLE 1
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
/*----------------------------------------------- */
|
| 38 |
+
|
| 39 |
+
struct s_Repokey;
|
| 40 |
+
struct s_KeyValue;
|
| 41 |
+
|
| 42 |
+
typedef struct s_Datapos {
|
| 43 |
+
Repo *repo;
|
| 44 |
+
Id solvid;
|
| 45 |
+
Id repodataid;
|
| 46 |
+
Id schema;
|
| 47 |
+
Id dp;
|
| 48 |
+
} Datapos;
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
#ifdef LIBSOLV_INTERNAL
|
| 52 |
+
|
| 53 |
+
/* how many strings to maintain (round robin) */
|
| 54 |
+
#define POOL_TMPSPACEBUF 16
|
| 55 |
+
|
| 56 |
+
struct s_Pool_tmpspace {
|
| 57 |
+
char *buf[POOL_TMPSPACEBUF];
|
| 58 |
+
int len[POOL_TMPSPACEBUF];
|
| 59 |
+
int n;
|
| 60 |
+
};
|
| 61 |
+
|
| 62 |
+
#endif
|
| 63 |
+
|
| 64 |
+
struct s_Pool {
|
| 65 |
+
void *appdata; /* application private pointer */
|
| 66 |
+
|
| 67 |
+
Stringpool ss;
|
| 68 |
+
|
| 69 |
+
Reldep *rels; /* table of rels: Id -> Reldep */
|
| 70 |
+
int nrels; /* number of unique rels */
|
| 71 |
+
|
| 72 |
+
Repo **repos;
|
| 73 |
+
int nrepos; /* repos allocated */
|
| 74 |
+
int urepos; /* repos in use */
|
| 75 |
+
|
| 76 |
+
Repo *installed; /* packages considered installed */
|
| 77 |
+
|
| 78 |
+
Solvable *solvables;
|
| 79 |
+
int nsolvables; /* solvables allocated */
|
| 80 |
+
|
| 81 |
+
const char **languages;
|
| 82 |
+
int nlanguages;
|
| 83 |
+
|
| 84 |
+
/* package manager type, deb/rpm */
|
| 85 |
+
int disttype;
|
| 86 |
+
|
| 87 |
+
Id *id2arch; /* map arch ids to scores */
|
| 88 |
+
unsigned char *id2color; /* map arch ids to colors */
|
| 89 |
+
Id lastarch; /* size of the id2arch/id2color arrays */
|
| 90 |
+
|
| 91 |
+
Queue vendormap; /* map vendor to vendorclasses mask */
|
| 92 |
+
const char **vendorclasses; /* vendor equivalence classes */
|
| 93 |
+
|
| 94 |
+
/* providers data, as two-step indirect list
|
| 95 |
+
* whatprovides[Id] -> Offset into whatprovidesdata for name
|
| 96 |
+
* whatprovidesdata[Offset] -> 0-terminated list of solvables providing Id
|
| 97 |
+
*/
|
| 98 |
+
Offset *whatprovides; /* Offset to providers of a specific name, Id -> Offset */
|
| 99 |
+
Offset *whatprovides_rel; /* Offset to providers of a specific relation, Id -> Offset */
|
| 100 |
+
|
| 101 |
+
Id *whatprovidesdata; /* Ids of solvable providing Id */
|
| 102 |
+
Offset whatprovidesdataoff; /* next free slot within whatprovidesdata */
|
| 103 |
+
int whatprovidesdataleft; /* number of 'free slots' within whatprovidesdata */
|
| 104 |
+
|
| 105 |
+
/* If nonzero, then consider only the solvables with Ids set in this
|
| 106 |
+
bitmap for solving. If zero, consider all solvables. */
|
| 107 |
+
Map *considered;
|
| 108 |
+
|
| 109 |
+
/* callback for REL_NAMESPACE dependencies handled by the application */
|
| 110 |
+
Id (*nscallback)(Pool *, void *data, Id name, Id evr);
|
| 111 |
+
void *nscallbackdata;
|
| 112 |
+
|
| 113 |
+
/* debug mask and callback */
|
| 114 |
+
int debugmask;
|
| 115 |
+
void (*debugcallback)(Pool *, void *data, int type, const char *str);
|
| 116 |
+
void *debugcallbackdata;
|
| 117 |
+
|
| 118 |
+
/* load callback */
|
| 119 |
+
int (*loadcallback)(Pool *, Repodata *, void *);
|
| 120 |
+
void *loadcallbackdata;
|
| 121 |
+
|
| 122 |
+
/* search position */
|
| 123 |
+
Datapos pos;
|
| 124 |
+
|
| 125 |
+
Queue pooljobs; /* fixed jobs, like USERINSTALLED/MULTIVERSION */
|
| 126 |
+
|
| 127 |
+
#ifdef LIBSOLV_INTERNAL
|
| 128 |
+
/* flags to tell the library how the installed package manager works */
|
| 129 |
+
int promoteepoch; /* true: missing epoch is replaced by epoch of dependency */
|
| 130 |
+
int havedistepoch; /* true: thr release part in the evr may contain a distepoch suffix */
|
| 131 |
+
int obsoleteusesprovides; /* true: obsoletes are matched against provides, not names */
|
| 132 |
+
int implicitobsoleteusesprovides; /* true: implicit obsoletes due to same name are matched against provides, not names */
|
| 133 |
+
int obsoleteusescolors; /* true: obsoletes check arch color */
|
| 134 |
+
int implicitobsoleteusescolors; /* true: implicit obsoletes check arch color */
|
| 135 |
+
int noinstalledobsoletes; /* true: ignore obsoletes of installed packages */
|
| 136 |
+
int forbidselfconflicts; /* true: packages which conflict with itself are not installable */
|
| 137 |
+
int noobsoletesmultiversion; /* true: obsoletes are ignored for multiversion installs */
|
| 138 |
+
|
| 139 |
+
Id noarchid; /* ARCH_NOARCH, ARCH_ALL, ARCH_ANY, ... */
|
| 140 |
+
|
| 141 |
+
/* hash for rel unification */
|
| 142 |
+
Hashtable relhashtbl; /* hashtable: (name,evr,op)Hash -> Id */
|
| 143 |
+
Hashval relhashmask;
|
| 144 |
+
|
| 145 |
+
Id *languagecache;
|
| 146 |
+
int languagecacheother;
|
| 147 |
+
|
| 148 |
+
/* our tmp space string space */
|
| 149 |
+
struct s_Pool_tmpspace tmpspace;
|
| 150 |
+
|
| 151 |
+
char *errstr; /* last error string */
|
| 152 |
+
int errstra; /* allocated space for errstr */
|
| 153 |
+
|
| 154 |
+
char *rootdir;
|
| 155 |
+
|
| 156 |
+
int (*custom_vendorcheck)(Pool *, Solvable *, Solvable *);
|
| 157 |
+
|
| 158 |
+
int addfileprovidesfiltered; /* 1: only use filtered file list for addfileprovides */
|
| 159 |
+
int addedfileprovides; /* true: application called addfileprovides */
|
| 160 |
+
Queue lazywhatprovidesq; /* queue to store old whatprovides offsets */
|
| 161 |
+
int nowhatprovidesaux; /* don't allocate and use the whatprovides aux helper */
|
| 162 |
+
Offset *whatprovidesaux;
|
| 163 |
+
Offset whatprovidesauxoff;
|
| 164 |
+
Id *whatprovidesauxdata;
|
| 165 |
+
Offset whatprovidesauxdataoff;
|
| 166 |
+
|
| 167 |
+
int whatprovideswithdisabled;
|
| 168 |
+
#endif
|
| 169 |
+
};
|
| 170 |
+
|
| 171 |
+
#define DISTTYPE_RPM 0
|
| 172 |
+
#define DISTTYPE_DEB 1
|
| 173 |
+
#define DISTTYPE_ARCH 2
|
| 174 |
+
#define DISTTYPE_HAIKU 3
|
| 175 |
+
#define DISTTYPE_CONDA 4
|
| 176 |
+
|
| 177 |
+
#define SOLV_FATAL (1<<0)
|
| 178 |
+
#define SOLV_ERROR (1<<1)
|
| 179 |
+
#define SOLV_WARN (1<<2)
|
| 180 |
+
#define SOLV_DEBUG_STATS (1<<3)
|
| 181 |
+
#define SOLV_DEBUG_RULE_CREATION (1<<4)
|
| 182 |
+
#define SOLV_DEBUG_PROPAGATE (1<<5)
|
| 183 |
+
#define SOLV_DEBUG_ANALYZE (1<<6)
|
| 184 |
+
#define SOLV_DEBUG_UNSOLVABLE (1<<7)
|
| 185 |
+
#define SOLV_DEBUG_SOLUTIONS (1<<8)
|
| 186 |
+
#define SOLV_DEBUG_POLICY (1<<9)
|
| 187 |
+
#define SOLV_DEBUG_RESULT (1<<10)
|
| 188 |
+
#define SOLV_DEBUG_JOB (1<<11)
|
| 189 |
+
#define SOLV_DEBUG_SOLVER (1<<12)
|
| 190 |
+
#define SOLV_DEBUG_TRANSACTION (1<<13)
|
| 191 |
+
#define SOLV_DEBUG_WATCHES (1<<14)
|
| 192 |
+
|
| 193 |
+
#define SOLV_DEBUG_TO_STDERR (1<<30)
|
| 194 |
+
|
| 195 |
+
#define POOL_FLAG_PROMOTEEPOCH 1
|
| 196 |
+
#define POOL_FLAG_FORBIDSELFCONFLICTS 2
|
| 197 |
+
#define POOL_FLAG_OBSOLETEUSESPROVIDES 3
|
| 198 |
+
#define POOL_FLAG_IMPLICITOBSOLETEUSESPROVIDES 4
|
| 199 |
+
#define POOL_FLAG_OBSOLETEUSESCOLORS 5
|
| 200 |
+
#define POOL_FLAG_NOINSTALLEDOBSOLETES 6
|
| 201 |
+
#define POOL_FLAG_HAVEDISTEPOCH 7
|
| 202 |
+
#define POOL_FLAG_NOOBSOLETESMULTIVERSION 8
|
| 203 |
+
#define POOL_FLAG_ADDFILEPROVIDESFILTERED 9
|
| 204 |
+
#define POOL_FLAG_IMPLICITOBSOLETEUSESCOLORS 10
|
| 205 |
+
#define POOL_FLAG_NOWHATPROVIDESAUX 11
|
| 206 |
+
#define POOL_FLAG_WHATPROVIDESWITHDISABLED 12
|
| 207 |
+
|
| 208 |
+
/* ----------------------------------------------- */
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
/* mark dependencies with relation by setting bit31 */
|
| 212 |
+
|
| 213 |
+
#define MAKERELDEP(id) ((id) | 0x80000000)
|
| 214 |
+
#define ISRELDEP(id) (((id) & 0x80000000) != 0)
|
| 215 |
+
#define GETRELID(id) ((id) ^ 0x80000000) /* returns Id */
|
| 216 |
+
#define GETRELDEP(pool, id) ((pool)->rels + ((id) ^ 0x80000000)) /* returns Reldep* */
|
| 217 |
+
|
| 218 |
+
#define REL_GT 1
|
| 219 |
+
#define REL_EQ 2
|
| 220 |
+
#define REL_LT 4
|
| 221 |
+
|
| 222 |
+
#define REL_AND 16
|
| 223 |
+
#define REL_OR 17
|
| 224 |
+
#define REL_WITH 18
|
| 225 |
+
#define REL_NAMESPACE 19
|
| 226 |
+
#define REL_ARCH 20
|
| 227 |
+
#define REL_FILECONFLICT 21
|
| 228 |
+
#define REL_COND 22 /* OR_NOT */
|
| 229 |
+
#define REL_COMPAT 23
|
| 230 |
+
#define REL_KIND 24 /* for filters only */
|
| 231 |
+
#define REL_MULTIARCH 25 /* debian multiarch annotation */
|
| 232 |
+
#define REL_ELSE 26 /* only as evr part of REL_COND/REL_UNLESS */
|
| 233 |
+
#define REL_ERROR 27 /* parse errors and the like */
|
| 234 |
+
#define REL_WITHOUT 28
|
| 235 |
+
#define REL_UNLESS 29 /* AND_NOT */
|
| 236 |
+
#define REL_CONDA 30
|
| 237 |
+
|
| 238 |
+
#if !defined(__GNUC__) && !defined(__attribute__)
|
| 239 |
+
# define __attribute__(x)
|
| 240 |
+
#endif
|
| 241 |
+
|
| 242 |
+
extern Pool *pool_create(void);
|
| 243 |
+
extern void pool_free(Pool *pool);
|
| 244 |
+
extern void pool_freeallrepos(Pool *pool, int reuseids);
|
| 245 |
+
|
| 246 |
+
extern void pool_setdebuglevel(Pool *pool, int level);
|
| 247 |
+
extern int pool_setdisttype(Pool *pool, int disttype);
|
| 248 |
+
extern int pool_set_flag(Pool *pool, int flag, int value);
|
| 249 |
+
extern int pool_get_flag(Pool *pool, int flag);
|
| 250 |
+
|
| 251 |
+
extern void pool_debug(Pool *pool, int type, const char *format, ...) __attribute__((format(printf, 3, 4)));
|
| 252 |
+
extern void pool_setdebugcallback(Pool *pool, void (*debugcallback)(Pool *pool, void *data, int type, const char *str), void *debugcallbackdata);
|
| 253 |
+
extern void pool_setdebugmask(Pool *pool, int mask);
|
| 254 |
+
extern void pool_setloadcallback(Pool *pool, int (*cb)(Pool *, Repodata *, void *), void *loadcbdata);
|
| 255 |
+
extern void pool_setnamespacecallback(Pool *pool, Id (*cb)(Pool *, void *, Id, Id), void *nscbdata);
|
| 256 |
+
extern void pool_flush_namespaceproviders(Pool *pool, Id ns, Id evr);
|
| 257 |
+
|
| 258 |
+
extern void pool_set_custom_vendorcheck(Pool *pool, int (*vendorcheck)(Pool *, Solvable *, Solvable *));
|
| 259 |
+
extern int (*pool_get_custom_vendorcheck(Pool *pool))(Pool *, Solvable *, Solvable *);
|
| 260 |
+
|
| 261 |
+
extern char *pool_alloctmpspace(Pool *pool, int len);
|
| 262 |
+
extern void pool_freetmpspace(Pool *pool, const char *space);
|
| 263 |
+
extern char *pool_tmpjoin(Pool *pool, const char *str1, const char *str2, const char *str3);
|
| 264 |
+
extern char *pool_tmpappend(Pool *pool, const char *str1, const char *str2, const char *str3);
|
| 265 |
+
extern const char *pool_bin2hex(Pool *pool, const unsigned char *buf, int len);
|
| 266 |
+
|
| 267 |
+
extern void pool_set_installed(Pool *pool, Repo *repo);
|
| 268 |
+
|
| 269 |
+
extern int pool_error(Pool *pool, int ret, const char *format, ...) __attribute__((format(printf, 3, 4)));
|
| 270 |
+
extern char *pool_errstr(Pool *pool);
|
| 271 |
+
|
| 272 |
+
extern void pool_set_rootdir(Pool *pool, const char *rootdir);
|
| 273 |
+
extern const char *pool_get_rootdir(Pool *pool);
|
| 274 |
+
extern char *pool_prepend_rootdir(Pool *pool, const char *dir);
|
| 275 |
+
extern const char *pool_prepend_rootdir_tmp(Pool *pool, const char *dir);
|
| 276 |
+
|
| 277 |
+
/**
|
| 278 |
+
* Solvable management
|
| 279 |
+
*/
|
| 280 |
+
extern Id pool_add_solvable(Pool *pool);
|
| 281 |
+
extern Id pool_add_solvable_block(Pool *pool, int count);
|
| 282 |
+
|
| 283 |
+
extern void pool_free_solvable_block(Pool *pool, Id start, int count, int reuseids);
|
| 284 |
+
static inline Solvable *pool_id2solvable(const Pool *pool, Id p)
|
| 285 |
+
{
|
| 286 |
+
return pool->solvables + p;
|
| 287 |
+
}
|
| 288 |
+
static inline Id pool_solvable2id(const Pool *pool, Solvable *s)
|
| 289 |
+
{
|
| 290 |
+
return s - pool->solvables;
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
extern const char *pool_solvable2str(Pool *pool, Solvable *s);
|
| 294 |
+
static inline const char *pool_solvid2str(Pool *pool, Id p)
|
| 295 |
+
{
|
| 296 |
+
return pool_solvable2str(pool, pool->solvables + p);
|
| 297 |
+
}
|
| 298 |
+
extern const char *pool_solvidset2str(Pool *pool, Queue *q);
|
| 299 |
+
|
| 300 |
+
void pool_set_languages(Pool *pool, const char **languages, int nlanguages);
|
| 301 |
+
Id pool_id2langid(Pool *pool, Id id, const char *lang, int create);
|
| 302 |
+
|
| 303 |
+
int pool_intersect_evrs(Pool *pool, int pflags, Id pevr, int flags, Id evr);
|
| 304 |
+
int pool_match_dep(Pool *pool, Id d1, Id d2);
|
| 305 |
+
|
| 306 |
+
/* semi private, used in pool_match_nevr */
|
| 307 |
+
int pool_match_nevr_rel(Pool *pool, Solvable *s, Id d);
|
| 308 |
+
|
| 309 |
+
static inline int pool_match_nevr(Pool *pool, Solvable *s, Id d)
|
| 310 |
+
{
|
| 311 |
+
if (!ISRELDEP(d))
|
| 312 |
+
return d == s->name;
|
| 313 |
+
else
|
| 314 |
+
return pool_match_nevr_rel(pool, s, d);
|
| 315 |
+
}
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
/**
|
| 319 |
+
* Prepares a pool for solving
|
| 320 |
+
*/
|
| 321 |
+
extern void pool_createwhatprovides(Pool *pool);
|
| 322 |
+
extern void pool_addfileprovides(Pool *pool);
|
| 323 |
+
extern void pool_addfileprovides_queue(Pool *pool, Queue *idq, Queue *idqinst);
|
| 324 |
+
extern void pool_freewhatprovides(Pool *pool);
|
| 325 |
+
extern Id pool_queuetowhatprovides(Pool *pool, Queue *q);
|
| 326 |
+
extern Id pool_ids2whatprovides(Pool *pool, Id *ids, int count);
|
| 327 |
+
extern Id pool_searchlazywhatprovidesq(Pool *pool, Id d);
|
| 328 |
+
|
| 329 |
+
extern Id pool_addrelproviders(Pool *pool, Id d);
|
| 330 |
+
|
| 331 |
+
static inline Id pool_whatprovides(Pool *pool, Id d)
|
| 332 |
+
{
|
| 333 |
+
if (!ISRELDEP(d))
|
| 334 |
+
{
|
| 335 |
+
if (pool->whatprovides[d])
|
| 336 |
+
return pool->whatprovides[d];
|
| 337 |
+
}
|
| 338 |
+
else
|
| 339 |
+
{
|
| 340 |
+
Id v = GETRELID(d);
|
| 341 |
+
if (pool->whatprovides_rel[v])
|
| 342 |
+
return pool->whatprovides_rel[v];
|
| 343 |
+
}
|
| 344 |
+
return pool_addrelproviders(pool, d);
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
static inline Id *pool_whatprovides_ptr(Pool *pool, Id d)
|
| 348 |
+
{
|
| 349 |
+
Id off = pool_whatprovides(pool, d);
|
| 350 |
+
return pool->whatprovidesdata + off;
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
void pool_whatmatchesdep(Pool *pool, Id keyname, Id dep, Queue *q, int marker);
|
| 354 |
+
void pool_whatcontainsdep(Pool *pool, Id keyname, Id dep, Queue *q, int marker);
|
| 355 |
+
void pool_whatmatchessolvable(Pool *pool, Id keyname, Id solvid, Queue *q, int marker);
|
| 356 |
+
void pool_set_whatprovides(Pool *pool, Id id, Id providers);
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
/* search the pool. the following filters are available:
|
| 360 |
+
* p - search just this solvable
|
| 361 |
+
* key - search only this key
|
| 362 |
+
* match - key must match this string
|
| 363 |
+
*/
|
| 364 |
+
void pool_search(Pool *pool, Id p, Id key, const char *match, int flags, int (*callback)(void *cbdata, Solvable *s, Repodata *data, struct s_Repokey *key, struct s_KeyValue *kv), void *cbdata);
|
| 365 |
+
|
| 366 |
+
void pool_clear_pos(Pool *pool);
|
| 367 |
+
|
| 368 |
+
/* lookup functions */
|
| 369 |
+
const char *pool_lookup_str(Pool *pool, Id entry, Id keyname);
|
| 370 |
+
Id pool_lookup_id(Pool *pool, Id entry, Id keyname);
|
| 371 |
+
unsigned long long pool_lookup_num(Pool *pool, Id entry, Id keyname, unsigned long long notfound);
|
| 372 |
+
int pool_lookup_void(Pool *pool, Id entry, Id keyname);
|
| 373 |
+
const unsigned char *pool_lookup_bin_checksum(Pool *pool, Id entry, Id keyname, Id *typep);
|
| 374 |
+
int pool_lookup_idarray(Pool *pool, Id entry, Id keyname, Queue *q);
|
| 375 |
+
const char *pool_lookup_checksum(Pool *pool, Id entry, Id keyname, Id *typep);
|
| 376 |
+
const char *pool_lookup_deltalocation(Pool *pool, Id entry, unsigned int *medianrp);
|
| 377 |
+
|
| 378 |
+
|
| 379 |
+
#define DUCHANGES_ONLYADD 1
|
| 380 |
+
|
| 381 |
+
typedef struct s_DUChanges {
|
| 382 |
+
const char *path;
|
| 383 |
+
long long kbytes;
|
| 384 |
+
long long files;
|
| 385 |
+
int flags;
|
| 386 |
+
} DUChanges;
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
void pool_create_state_maps(Pool *pool, Queue *installed, Map *installedmap, Map *conflictsmap);
|
| 390 |
+
void pool_calc_duchanges(Pool *pool, Map *installedmap, DUChanges *mps, int nmps);
|
| 391 |
+
long long pool_calc_installsizechange(Pool *pool, Map *installedmap);
|
| 392 |
+
|
| 393 |
+
void pool_add_fileconflicts_deps(Pool *pool, Queue *conflicts);
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
/* loop over all providers of d */
|
| 398 |
+
#define FOR_PROVIDES(v, vp, d) \
|
| 399 |
+
for (vp = pool_whatprovides(pool, d) ; (v = pool->whatprovidesdata[vp++]) != 0; )
|
| 400 |
+
|
| 401 |
+
/* loop over all repositories */
|
| 402 |
+
#define FOR_REPOS(repoid, r) \
|
| 403 |
+
for (repoid = 1; repoid < pool->nrepos; repoid++) \
|
| 404 |
+
if ((r = pool->repos[repoid]) == 0) \
|
| 405 |
+
continue; \
|
| 406 |
+
else
|
| 407 |
+
|
| 408 |
+
#define FOR_POOL_SOLVABLES(p) \
|
| 409 |
+
for (p = 2; p < pool->nsolvables; p++) \
|
| 410 |
+
if (pool->solvables[p].repo == 0) \
|
| 411 |
+
continue; \
|
| 412 |
+
else
|
| 413 |
+
|
| 414 |
+
#define POOL_DEBUG(type, ...) do {if ((pool->debugmask & (type)) != 0) pool_debug(pool, (type), __VA_ARGS__);} while (0)
|
| 415 |
+
#define IF_POOLDEBUG(type) if ((pool->debugmask & (type)) != 0)
|
| 416 |
+
|
| 417 |
+
/* weird suse stuff */
|
| 418 |
+
void pool_trivial_installable_multiversionmap(Pool *pool, Map *installedmap, Queue *pkgs, Queue *res, Map *multiversionmap);
|
| 419 |
+
void pool_trivial_installable(Pool *pool, Map *installedmap, Queue *pkgs, Queue *res);
|
| 420 |
+
|
| 421 |
+
#ifdef __cplusplus
|
| 422 |
+
}
|
| 423 |
+
#endif
|
| 424 |
+
|
| 425 |
+
|
| 426 |
+
#endif /* LIBSOLV_POOL_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolarch.h
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
#ifndef LIBSOLV_POOLARCH_H
|
| 9 |
+
#define LIBSOLV_POOLARCH_H
|
| 10 |
+
|
| 11 |
+
#include "pool.h"
|
| 12 |
+
|
| 13 |
+
#ifdef __cplusplus
|
| 14 |
+
extern "C" {
|
| 15 |
+
#endif
|
| 16 |
+
|
| 17 |
+
extern void pool_setarch(Pool *, const char *);
|
| 18 |
+
extern void pool_setarchpolicy(Pool *, const char *);
|
| 19 |
+
extern unsigned char pool_arch2color_slow(Pool *pool, Id arch);
|
| 20 |
+
|
| 21 |
+
#define ARCHCOLOR_32 1
|
| 22 |
+
#define ARCHCOLOR_64 2
|
| 23 |
+
#define ARCHCOLOR_ALL 255
|
| 24 |
+
|
| 25 |
+
static inline unsigned char pool_arch2color(Pool *pool, Id arch)
|
| 26 |
+
{
|
| 27 |
+
if ((unsigned int)arch >= (unsigned int)pool->lastarch)
|
| 28 |
+
return ARCHCOLOR_ALL;
|
| 29 |
+
if (pool->id2color && pool->id2color[arch])
|
| 30 |
+
return pool->id2color[arch];
|
| 31 |
+
return pool_arch2color_slow(pool, arch);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
static inline int pool_colormatch(Pool *pool, Solvable *s1, Solvable *s2)
|
| 35 |
+
{
|
| 36 |
+
if (s1->arch == s2->arch)
|
| 37 |
+
return 1;
|
| 38 |
+
if ((pool_arch2color(pool, s1->arch) & pool_arch2color(pool, s2->arch)) != 0)
|
| 39 |
+
return 1;
|
| 40 |
+
return 0;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
static inline unsigned int pool_arch2score(const Pool *pool, Id arch) {
|
| 44 |
+
return (unsigned int)arch < (unsigned int)pool->lastarch ? (unsigned int)pool->id2arch[arch] : 0;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
#ifdef __cplusplus
|
| 48 |
+
}
|
| 49 |
+
#endif
|
| 50 |
+
|
| 51 |
+
#endif /* LIBSOLV_POOLARCH_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolid.h
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* poolid.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_POOLID_H
|
| 14 |
+
#define LIBSOLV_POOLID_H
|
| 15 |
+
|
| 16 |
+
#include "pooltypes.h"
|
| 17 |
+
#include "hash.h"
|
| 18 |
+
|
| 19 |
+
#ifdef __cplusplus
|
| 20 |
+
extern "C" {
|
| 21 |
+
#endif
|
| 22 |
+
|
| 23 |
+
/*-----------------------------------------------
|
| 24 |
+
* Ids with relation
|
| 25 |
+
*/
|
| 26 |
+
|
| 27 |
+
typedef struct s_Reldep {
|
| 28 |
+
Id name; /* "package" */
|
| 29 |
+
Id evr; /* "0:42-3" */
|
| 30 |
+
int flags; /* operation/relation, see REL_x in pool.h */
|
| 31 |
+
} Reldep;
|
| 32 |
+
|
| 33 |
+
extern Id pool_str2id(Pool *pool, const char *, int);
|
| 34 |
+
extern Id pool_strn2id(Pool *pool, const char *, unsigned int, int);
|
| 35 |
+
extern Id pool_rel2id(Pool *pool, Id, Id, int, int);
|
| 36 |
+
extern const char *pool_id2str(const Pool *pool, Id);
|
| 37 |
+
extern const char *pool_id2rel(const Pool *pool, Id);
|
| 38 |
+
extern const char *pool_id2evr(const Pool *pool, Id);
|
| 39 |
+
extern const char *pool_dep2str(Pool *pool, Id); /* might alloc tmpspace */
|
| 40 |
+
|
| 41 |
+
extern void pool_shrink_strings(Pool *pool);
|
| 42 |
+
extern void pool_shrink_rels(Pool *pool);
|
| 43 |
+
extern void pool_freeidhashes(Pool *pool);
|
| 44 |
+
extern void pool_resize_rels_hash(Pool *pool, int numnew);
|
| 45 |
+
|
| 46 |
+
#ifdef __cplusplus
|
| 47 |
+
}
|
| 48 |
+
#endif
|
| 49 |
+
|
| 50 |
+
#endif /* LIBSOLV_POOLID_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/pooltypes.h
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* pooltypes.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_POOLTYPES_H
|
| 14 |
+
#define LIBSOLV_POOLTYPES_H
|
| 15 |
+
|
| 16 |
+
#ifdef __cplusplus
|
| 17 |
+
extern "C" {
|
| 18 |
+
#endif
|
| 19 |
+
|
| 20 |
+
/* format version number for .solv files */
|
| 21 |
+
#define SOLV_VERSION_0 0
|
| 22 |
+
#define SOLV_VERSION_1 1
|
| 23 |
+
#define SOLV_VERSION_2 2
|
| 24 |
+
#define SOLV_VERSION_3 3
|
| 25 |
+
#define SOLV_VERSION_4 4
|
| 26 |
+
#define SOLV_VERSION_5 5
|
| 27 |
+
#define SOLV_VERSION_6 6
|
| 28 |
+
#define SOLV_VERSION_7 7
|
| 29 |
+
#define SOLV_VERSION_8 8
|
| 30 |
+
#define SOLV_VERSION_9 9
|
| 31 |
+
|
| 32 |
+
#define SOLV_FLAG_PREFIX_POOL 4
|
| 33 |
+
#define SOLV_FLAG_SIZE_BYTES 8
|
| 34 |
+
#define SOLV_FLAG_USERDATA 16
|
| 35 |
+
#define SOLV_FLAG_IDARRAYBLOCK 32
|
| 36 |
+
|
| 37 |
+
struct s_Stringpool;
|
| 38 |
+
typedef struct s_Stringpool Stringpool;
|
| 39 |
+
|
| 40 |
+
struct s_Pool;
|
| 41 |
+
typedef struct s_Pool Pool;
|
| 42 |
+
|
| 43 |
+
struct s_Repo;
|
| 44 |
+
typedef struct s_Repo Repo;
|
| 45 |
+
|
| 46 |
+
struct s_Repodata;
|
| 47 |
+
typedef struct s_Repodata Repodata;
|
| 48 |
+
|
| 49 |
+
struct s_Solvable;
|
| 50 |
+
typedef struct s_Solvable Solvable;
|
| 51 |
+
|
| 52 |
+
/* identifier for string values */
|
| 53 |
+
typedef int Id; /* must be signed!, since negative Id is used in solver rules to denote negation */
|
| 54 |
+
|
| 55 |
+
/* offset value, e.g. used to 'point' into the stringspace */
|
| 56 |
+
typedef unsigned int Offset;
|
| 57 |
+
|
| 58 |
+
#ifdef __cplusplus
|
| 59 |
+
}
|
| 60 |
+
#endif
|
| 61 |
+
|
| 62 |
+
#endif /* LIBSOLV_POOLTYPES_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolvendor.h
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
#ifndef LIBSOLV_POOLVENDOR_H
|
| 9 |
+
#define LIBSOLV_POOLVENDOR_H
|
| 10 |
+
|
| 11 |
+
#include "pool.h"
|
| 12 |
+
|
| 13 |
+
#ifdef __cplusplus
|
| 14 |
+
extern "C" {
|
| 15 |
+
#endif
|
| 16 |
+
|
| 17 |
+
Id pool_vendor2mask(Pool *pool, Id vendor);
|
| 18 |
+
void pool_setvendorclasses(Pool *pool, const char **vendorclasses);
|
| 19 |
+
void pool_addvendorclass(Pool *pool, const char **vendorclass);
|
| 20 |
+
|
| 21 |
+
#ifdef __cplusplus
|
| 22 |
+
}
|
| 23 |
+
#endif
|
| 24 |
+
|
| 25 |
+
#endif /* LIBSOLV_POOLVENDOR_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/problems.h
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007-2009, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* problems.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_PROBLEMS_H
|
| 14 |
+
#define LIBSOLV_PROBLEMS_H
|
| 15 |
+
|
| 16 |
+
#include "rules.h"
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
struct s_Solver;
|
| 24 |
+
|
| 25 |
+
#define SOLVER_SOLUTION_JOB (0)
|
| 26 |
+
#define SOLVER_SOLUTION_DISTUPGRADE (-1)
|
| 27 |
+
#define SOLVER_SOLUTION_INFARCH (-2)
|
| 28 |
+
#define SOLVER_SOLUTION_BEST (-3)
|
| 29 |
+
#define SOLVER_SOLUTION_POOLJOB (-4)
|
| 30 |
+
#define SOLVER_SOLUTION_BLACK (-5)
|
| 31 |
+
#define SOLVER_SOLUTION_STRICTREPOPRIORITY (-6)
|
| 32 |
+
/* replace solution types */
|
| 33 |
+
#define SOLVER_SOLUTION_ERASE (-100)
|
| 34 |
+
#define SOLVER_SOLUTION_REPLACE (-101)
|
| 35 |
+
#define SOLVER_SOLUTION_REPLACE_DOWNGRADE (-102)
|
| 36 |
+
#define SOLVER_SOLUTION_REPLACE_ARCHCHANGE (-103)
|
| 37 |
+
#define SOLVER_SOLUTION_REPLACE_VENDORCHANGE (-104)
|
| 38 |
+
#define SOLVER_SOLUTION_REPLACE_NAMECHANGE (-105)
|
| 39 |
+
|
| 40 |
+
void solver_recordproblem(struct s_Solver *solv, Id rid);
|
| 41 |
+
void solver_fixproblem(struct s_Solver *solv, Id rid);
|
| 42 |
+
Id solver_autouninstall(struct s_Solver *solv, int start);
|
| 43 |
+
void solver_disableproblemset(struct s_Solver *solv, int start);
|
| 44 |
+
|
| 45 |
+
int solver_prepare_solutions(struct s_Solver *solv);
|
| 46 |
+
|
| 47 |
+
unsigned int solver_problem_count(struct s_Solver *solv);
|
| 48 |
+
Id solver_next_problem(struct s_Solver *solv, Id problem);
|
| 49 |
+
unsigned int solver_solution_count(struct s_Solver *solv, Id problem);
|
| 50 |
+
Id solver_next_solution(struct s_Solver *solv, Id problem, Id solution);
|
| 51 |
+
unsigned int solver_solutionelement_count(struct s_Solver *solv, Id problem, Id solution);
|
| 52 |
+
Id solver_solutionelement_internalid(struct s_Solver *solv, Id problem, Id solution);
|
| 53 |
+
Id solver_solutionelement_extrajobflags(struct s_Solver *solv, Id problem, Id solution);
|
| 54 |
+
Id solver_next_solutionelement(struct s_Solver *solv, Id problem, Id solution, Id element, Id *p, Id *rp);
|
| 55 |
+
void solver_all_solutionelements(struct s_Solver *solv, Id problem, Id solution, int expandreplaces, Queue *q);
|
| 56 |
+
|
| 57 |
+
void solver_take_solutionelement(struct s_Solver *solv, Id p, Id rp, Id extrajobflags, Queue *job);
|
| 58 |
+
void solver_take_solution(struct s_Solver *solv, Id problem, Id solution, Queue *job);
|
| 59 |
+
|
| 60 |
+
Id solver_findproblemrule(struct s_Solver *solv, Id problem);
|
| 61 |
+
void solver_findallproblemrules(struct s_Solver *solv, Id problem, Queue *rules);
|
| 62 |
+
|
| 63 |
+
extern const char *solver_problemruleinfo2str(struct s_Solver *solv, SolverRuleinfo type, Id source, Id target, Id dep);
|
| 64 |
+
extern const char *solver_problem2str(struct s_Solver *solv, Id problem);
|
| 65 |
+
extern const char *solver_solutionelement2str(struct s_Solver *solv, Id p, Id rp);
|
| 66 |
+
extern const char *solver_solutionelementtype2str(struct s_Solver *solv, int type, Id p, Id rp);
|
| 67 |
+
|
| 68 |
+
#ifdef __cplusplus
|
| 69 |
+
}
|
| 70 |
+
#endif
|
| 71 |
+
|
| 72 |
+
#endif
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/queue.h
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* queue.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_QUEUE_H
|
| 14 |
+
#define LIBSOLV_QUEUE_H
|
| 15 |
+
|
| 16 |
+
#include "pooltypes.h"
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
typedef struct s_Queue {
|
| 23 |
+
Id *elements; /* pointer to elements */
|
| 24 |
+
int count; /* current number of elements in queue */
|
| 25 |
+
Id *alloc; /* this is whats actually allocated, elements > alloc if shifted */
|
| 26 |
+
int left; /* space left in alloc *after* elements+count */
|
| 27 |
+
} Queue;
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
extern void queue_alloc_one(Queue *q); /* internal */
|
| 31 |
+
extern void queue_alloc_one_head(Queue *q); /* internal */
|
| 32 |
+
|
| 33 |
+
/* clear queue */
|
| 34 |
+
static inline void
|
| 35 |
+
queue_empty(Queue *q)
|
| 36 |
+
{
|
| 37 |
+
if (q->alloc)
|
| 38 |
+
{
|
| 39 |
+
q->left += (q->elements - q->alloc) + q->count;
|
| 40 |
+
q->elements = q->alloc;
|
| 41 |
+
}
|
| 42 |
+
else
|
| 43 |
+
q->left += q->count;
|
| 44 |
+
q->count = 0;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
static inline Id
|
| 48 |
+
queue_shift(Queue *q)
|
| 49 |
+
{
|
| 50 |
+
if (!q->count)
|
| 51 |
+
return 0;
|
| 52 |
+
q->count--;
|
| 53 |
+
return *q->elements++;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
static inline Id
|
| 57 |
+
queue_pop(Queue *q)
|
| 58 |
+
{
|
| 59 |
+
if (!q->count)
|
| 60 |
+
return 0;
|
| 61 |
+
q->left++;
|
| 62 |
+
return q->elements[--q->count];
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
static inline void
|
| 66 |
+
queue_unshift(Queue *q, Id id)
|
| 67 |
+
{
|
| 68 |
+
if (!q->alloc || q->alloc == q->elements)
|
| 69 |
+
queue_alloc_one_head(q);
|
| 70 |
+
*--q->elements = id;
|
| 71 |
+
q->count++;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
static inline void
|
| 75 |
+
queue_push(Queue *q, Id id)
|
| 76 |
+
{
|
| 77 |
+
if (!q->left)
|
| 78 |
+
queue_alloc_one(q);
|
| 79 |
+
q->elements[q->count++] = id;
|
| 80 |
+
q->left--;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
static inline void
|
| 84 |
+
queue_pushunique(Queue *q, Id id)
|
| 85 |
+
{
|
| 86 |
+
int i;
|
| 87 |
+
for (i = q->count; i > 0; )
|
| 88 |
+
if (q->elements[--i] == id)
|
| 89 |
+
return;
|
| 90 |
+
queue_push(q, id);
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
static inline void
|
| 94 |
+
queue_push2(Queue *q, Id id1, Id id2)
|
| 95 |
+
{
|
| 96 |
+
queue_push(q, id1);
|
| 97 |
+
queue_push(q, id2);
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
static inline void
|
| 101 |
+
queue_truncate(Queue *q, int n)
|
| 102 |
+
{
|
| 103 |
+
if (q->count > n)
|
| 104 |
+
{
|
| 105 |
+
q->left += q->count - n;
|
| 106 |
+
q->count = n;
|
| 107 |
+
}
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
extern void queue_init(Queue *q);
|
| 111 |
+
extern void queue_init_buffer(Queue *q, Id *buf, int size);
|
| 112 |
+
extern void queue_init_clone(Queue *target, const Queue *source);
|
| 113 |
+
extern void queue_free(Queue *q);
|
| 114 |
+
|
| 115 |
+
extern void queue_insert(Queue *q, int pos, Id id);
|
| 116 |
+
extern void queue_insert2(Queue *q, int pos, Id id1, Id id2);
|
| 117 |
+
extern void queue_insertn(Queue *q, int pos, int n, const Id *elements);
|
| 118 |
+
extern void queue_delete(Queue *q, int pos);
|
| 119 |
+
extern void queue_delete2(Queue *q, int pos);
|
| 120 |
+
extern void queue_deleten(Queue *q, int pos, int n);
|
| 121 |
+
extern void queue_prealloc(Queue *q, int n);
|
| 122 |
+
|
| 123 |
+
#ifdef __cplusplus
|
| 124 |
+
}
|
| 125 |
+
#endif
|
| 126 |
+
|
| 127 |
+
#endif /* LIBSOLV_QUEUE_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo.h
ADDED
|
@@ -0,0 +1,235 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* repo.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_REPO_H
|
| 14 |
+
#define LIBSOLV_REPO_H
|
| 15 |
+
|
| 16 |
+
#include "pooltypes.h"
|
| 17 |
+
#include "pool.h"
|
| 18 |
+
#include "poolarch.h"
|
| 19 |
+
#include "repodata.h"
|
| 20 |
+
#include "dataiterator.h"
|
| 21 |
+
#include "hash.h"
|
| 22 |
+
|
| 23 |
+
#ifdef __cplusplus
|
| 24 |
+
extern "C" {
|
| 25 |
+
#endif
|
| 26 |
+
|
| 27 |
+
struct s_Repo {
|
| 28 |
+
const char *name; /* name pointer */
|
| 29 |
+
Id repoid; /* our id */
|
| 30 |
+
void *appdata; /* application private pointer */
|
| 31 |
+
|
| 32 |
+
Pool *pool; /* pool containing this repo */
|
| 33 |
+
|
| 34 |
+
int start; /* start of this repo solvables within pool->solvables */
|
| 35 |
+
int end; /* last solvable + 1 of this repo */
|
| 36 |
+
int nsolvables; /* number of solvables repo is contributing to pool */
|
| 37 |
+
|
| 38 |
+
int disabled; /* ignore the solvables? */
|
| 39 |
+
int priority; /* priority of this repo */
|
| 40 |
+
int subpriority; /* sub-priority of this repo, used just for sorting, not pruning */
|
| 41 |
+
|
| 42 |
+
Id *idarraydata; /* array of metadata Ids, solvable dependencies are offsets into this array */
|
| 43 |
+
int idarraysize;
|
| 44 |
+
|
| 45 |
+
int nrepodata; /* number of our stores.. */
|
| 46 |
+
|
| 47 |
+
Id *rpmdbid; /* solvable side data: rpm database id */
|
| 48 |
+
|
| 49 |
+
#ifdef LIBSOLV_INTERNAL
|
| 50 |
+
Repodata *repodata; /* our stores for non-solvable related data */
|
| 51 |
+
Offset lastoff; /* start of last array in idarraydata */
|
| 52 |
+
|
| 53 |
+
Hashtable lastidhash; /* hash to speed up repo_addid_dep */
|
| 54 |
+
Hashval lastidhash_mask;
|
| 55 |
+
int lastidhash_idarraysize;
|
| 56 |
+
int lastmarker;
|
| 57 |
+
Offset lastmarkerpos;
|
| 58 |
+
#endif /* LIBSOLV_INTERNAL */
|
| 59 |
+
};
|
| 60 |
+
|
| 61 |
+
extern Repo *repo_create(Pool *pool, const char *name);
|
| 62 |
+
extern void repo_free(Repo *repo, int reuseids);
|
| 63 |
+
extern void repo_empty(Repo *repo, int reuseids);
|
| 64 |
+
extern void repo_freedata(Repo *repo);
|
| 65 |
+
extern Id repo_add_solvable(Repo *repo);
|
| 66 |
+
extern Id repo_add_solvable_block(Repo *repo, int count);
|
| 67 |
+
extern void repo_free_solvable(Repo *repo, Id p, int reuseids);
|
| 68 |
+
extern void repo_free_solvable_block(Repo *repo, Id start, int count, int reuseids);
|
| 69 |
+
extern void *repo_sidedata_create(Repo *repo, size_t size);
|
| 70 |
+
extern void *repo_sidedata_extend(Repo *repo, void *b, size_t size, Id p, int count);
|
| 71 |
+
extern Id repo_add_solvable_block_before(Repo *repo, int count, Repo *beforerepo);
|
| 72 |
+
|
| 73 |
+
extern Offset repo_addid(Repo *repo, Offset olddeps, Id id);
|
| 74 |
+
extern Offset repo_addid_dep(Repo *repo, Offset olddeps, Id id, Id marker);
|
| 75 |
+
extern Offset repo_reserve_ids(Repo *repo, Offset olddeps, int num);
|
| 76 |
+
|
| 77 |
+
static inline const char *repo_name(const Repo *repo)
|
| 78 |
+
{
|
| 79 |
+
return repo->name;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
/* those two functions are here because they need the Repo definition */
|
| 83 |
+
|
| 84 |
+
static inline Repo *pool_id2repo(Pool *pool, Id repoid)
|
| 85 |
+
{
|
| 86 |
+
return repoid < pool->nrepos ? pool->repos[repoid] : 0;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
static inline int pool_disabled_solvable(const Pool *pool, Solvable *s)
|
| 90 |
+
{
|
| 91 |
+
if (s->repo && s->repo->disabled)
|
| 92 |
+
return 1;
|
| 93 |
+
if (pool->considered)
|
| 94 |
+
{
|
| 95 |
+
Id id = s - pool->solvables;
|
| 96 |
+
if (!MAPTST(pool->considered, id))
|
| 97 |
+
return 1;
|
| 98 |
+
}
|
| 99 |
+
return 0;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
static inline int pool_badarch_solvable(const Pool *pool, Solvable *s)
|
| 103 |
+
{
|
| 104 |
+
if (pool->id2arch && (!s->arch || pool_arch2score(pool, s->arch) == 0))
|
| 105 |
+
return 1;
|
| 106 |
+
return 0;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
static inline int pool_installable(const Pool *pool, Solvable *s)
|
| 110 |
+
{
|
| 111 |
+
if (s->arch == ARCH_SRC || s->arch == ARCH_NOSRC)
|
| 112 |
+
return 0;
|
| 113 |
+
if (s->repo && s->repo->disabled)
|
| 114 |
+
return 0;
|
| 115 |
+
if (pool->id2arch && (!s->arch || pool_arch2score(pool, s->arch) == 0))
|
| 116 |
+
return 0;
|
| 117 |
+
if (pool->considered)
|
| 118 |
+
{
|
| 119 |
+
Id id = s - pool->solvables;
|
| 120 |
+
if (!MAPTST(pool->considered, id))
|
| 121 |
+
return 0;
|
| 122 |
+
}
|
| 123 |
+
return 1;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
#ifdef LIBSOLV_INTERNAL
|
| 127 |
+
static inline int pool_installable_whatprovides(const Pool *pool, Solvable *s)
|
| 128 |
+
{
|
| 129 |
+
/* we always need the installed solvable in the whatprovides data,
|
| 130 |
+
otherwise obsoletes/conflicts on them won't work */
|
| 131 |
+
if (s->repo != pool->installed)
|
| 132 |
+
{
|
| 133 |
+
if (s->arch == ARCH_SRC || s->arch == ARCH_NOSRC || pool_badarch_solvable(pool, s))
|
| 134 |
+
return 0;
|
| 135 |
+
if (pool->considered && !pool->whatprovideswithdisabled)
|
| 136 |
+
{
|
| 137 |
+
Id id = s - pool->solvables;
|
| 138 |
+
if (!MAPTST(pool->considered, id))
|
| 139 |
+
return 0;
|
| 140 |
+
}
|
| 141 |
+
}
|
| 142 |
+
return 1;
|
| 143 |
+
}
|
| 144 |
+
#endif
|
| 145 |
+
|
| 146 |
+
/* not in solvable.h because we need the repo definition */
|
| 147 |
+
static inline Solvable *solvable_free(Solvable *s, int reuseids)
|
| 148 |
+
{
|
| 149 |
+
if (s && s->repo)
|
| 150 |
+
repo_free_solvable(s->repo, s - s->repo->pool->solvables, reuseids);
|
| 151 |
+
return 0;
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
/* search callback values */
|
| 155 |
+
#define SEARCH_NEXT_KEY 1
|
| 156 |
+
#define SEARCH_NEXT_SOLVABLE 2
|
| 157 |
+
#define SEARCH_STOP 3
|
| 158 |
+
#define SEARCH_ENTERSUB -1
|
| 159 |
+
|
| 160 |
+
/* standard flags used in the repo_add functions */
|
| 161 |
+
#define REPO_REUSE_REPODATA (1 << 0)
|
| 162 |
+
#define REPO_NO_INTERNALIZE (1 << 1)
|
| 163 |
+
#define REPO_LOCALPOOL (1 << 2)
|
| 164 |
+
#define REPO_USE_LOADING (1 << 3)
|
| 165 |
+
#define REPO_EXTEND_SOLVABLES (1 << 4)
|
| 166 |
+
#define REPO_USE_ROOTDIR (1 << 5)
|
| 167 |
+
#define REPO_NO_LOCATION (1 << 6)
|
| 168 |
+
|
| 169 |
+
Repodata *repo_add_repodata(Repo *repo, int flags);
|
| 170 |
+
Repodata *repo_id2repodata(Repo *repo, Id id);
|
| 171 |
+
Repodata *repo_last_repodata(Repo *repo);
|
| 172 |
+
|
| 173 |
+
void repo_search(Repo *repo, Id p, Id key, const char *match, int flags, int (*callback)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValue *kv), void *cbdata);
|
| 174 |
+
|
| 175 |
+
/* returns the last repodata that contains the key */
|
| 176 |
+
Repodata *repo_lookup_repodata(Repo *repo, Id entry, Id keyname);
|
| 177 |
+
Repodata *repo_lookup_repodata_opt(Repo *repo, Id entry, Id keyname);
|
| 178 |
+
Repodata *repo_lookup_filelist_repodata(Repo *repo, Id entry, Datamatcher *matcher);
|
| 179 |
+
|
| 180 |
+
/* returns the string value of the attribute, or NULL if not found */
|
| 181 |
+
Id repo_lookup_type(Repo *repo, Id entry, Id keyname);
|
| 182 |
+
const char *repo_lookup_str(Repo *repo, Id entry, Id keyname);
|
| 183 |
+
/* returns the integer value of the attribute, or notfound if not found */
|
| 184 |
+
unsigned long long repo_lookup_num(Repo *repo, Id entry, Id keyname, unsigned long long notfound);
|
| 185 |
+
Id repo_lookup_id(Repo *repo, Id entry, Id keyname);
|
| 186 |
+
int repo_lookup_idarray(Repo *repo, Id entry, Id keyname, Queue *q);
|
| 187 |
+
int repo_lookup_deparray(Repo *repo, Id entry, Id keyname, Queue *q, Id marker);
|
| 188 |
+
int repo_lookup_void(Repo *repo, Id entry, Id keyname);
|
| 189 |
+
const char *repo_lookup_checksum(Repo *repo, Id entry, Id keyname, Id *typep);
|
| 190 |
+
const unsigned char *repo_lookup_bin_checksum(Repo *repo, Id entry, Id keyname, Id *typep);
|
| 191 |
+
const void *repo_lookup_binary(Repo *repo, Id entry, Id keyname, int *lenp);
|
| 192 |
+
unsigned int repo_lookup_count(Repo *repo, Id entry, Id keyname); /* internal */
|
| 193 |
+
Id solv_depmarker(Id keyname, Id marker);
|
| 194 |
+
|
| 195 |
+
void repo_set_id(Repo *repo, Id p, Id keyname, Id id);
|
| 196 |
+
void repo_set_num(Repo *repo, Id p, Id keyname, unsigned long long num);
|
| 197 |
+
void repo_set_str(Repo *repo, Id p, Id keyname, const char *str);
|
| 198 |
+
void repo_set_poolstr(Repo *repo, Id p, Id keyname, const char *str);
|
| 199 |
+
void repo_add_poolstr_array(Repo *repo, Id p, Id keyname, const char *str);
|
| 200 |
+
void repo_add_idarray(Repo *repo, Id p, Id keyname, Id id);
|
| 201 |
+
void repo_add_deparray(Repo *repo, Id p, Id keyname, Id dep, Id marker);
|
| 202 |
+
void repo_set_idarray(Repo *repo, Id p, Id keyname, Queue *q);
|
| 203 |
+
void repo_set_deparray(Repo *repo, Id p, Id keyname, Queue *q, Id marker);
|
| 204 |
+
void repo_unset(Repo *repo, Id p, Id keyname);
|
| 205 |
+
|
| 206 |
+
void repo_internalize(Repo *repo);
|
| 207 |
+
void repo_disable_paging(Repo *repo);
|
| 208 |
+
Id *repo_create_keyskip(Repo *repo, Id entry, Id **oldkeyskip);
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
/* iterator macros */
|
| 212 |
+
#define FOR_REPO_SOLVABLES(r, p, s) \
|
| 213 |
+
for (p = (r)->start, s = (r)->pool->solvables + p; p < (r)->end; p++, s = (r)->pool->solvables + p) \
|
| 214 |
+
if (s->repo != (r)) \
|
| 215 |
+
continue; \
|
| 216 |
+
else
|
| 217 |
+
|
| 218 |
+
#ifdef LIBSOLV_INTERNAL
|
| 219 |
+
#define FOR_REPODATAS(repo, rdid, data) \
|
| 220 |
+
for (rdid = 1, data = repo->repodata + rdid; rdid < repo->nrepodata; rdid++, data++)
|
| 221 |
+
#else
|
| 222 |
+
#define FOR_REPODATAS(repo, rdid, data) \
|
| 223 |
+
for (rdid = 1; rdid < repo->nrepodata && (data = repo_id2repodata(repo, rdid)); rdid++)
|
| 224 |
+
#endif
|
| 225 |
+
|
| 226 |
+
/* weird suse stuff, do not use */
|
| 227 |
+
extern Offset repo_fix_supplements(Repo *repo, Offset provides, Offset supplements, Offset freshens);
|
| 228 |
+
extern Offset repo_fix_conflicts(Repo *repo, Offset conflicts);
|
| 229 |
+
extern void repo_rewrite_suse_deps(Solvable *s, Offset freshens);
|
| 230 |
+
|
| 231 |
+
#ifdef __cplusplus
|
| 232 |
+
}
|
| 233 |
+
#endif
|
| 234 |
+
|
| 235 |
+
#endif /* LIBSOLV_REPO_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_conda.h
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2019, SUSE LLC
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
#ifndef LIBSOLV_REPO_CONDA_H
|
| 9 |
+
#define LIBSOLV_REPO_CONDA_H
|
| 10 |
+
|
| 11 |
+
#include <stdio.h>
|
| 12 |
+
|
| 13 |
+
#include "repo.h"
|
| 14 |
+
|
| 15 |
+
#ifdef __cplusplus
|
| 16 |
+
extern "C" {
|
| 17 |
+
#endif
|
| 18 |
+
|
| 19 |
+
#define CONDA_ADD_USE_ONLY_TAR_BZ2 (1 << 8)
|
| 20 |
+
#define CONDA_ADD_WITH_SIGNATUREDATA (1 << 9)
|
| 21 |
+
|
| 22 |
+
extern int repo_add_conda(Repo *repo, FILE *fp, int flags);
|
| 23 |
+
|
| 24 |
+
#ifdef __cplusplus
|
| 25 |
+
}
|
| 26 |
+
#endif
|
| 27 |
+
|
| 28 |
+
#endif /* LIBSOLV_REPO_CONDA_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_solv.h
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* repo_solv.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_REPO_SOLVE_H
|
| 14 |
+
#define LIBSOLV_REPO_SOLVE_H
|
| 15 |
+
|
| 16 |
+
#include <stdio.h>
|
| 17 |
+
|
| 18 |
+
#include "pool.h"
|
| 19 |
+
#include "repo.h"
|
| 20 |
+
|
| 21 |
+
#ifdef __cplusplus
|
| 22 |
+
extern "C" {
|
| 23 |
+
#endif
|
| 24 |
+
|
| 25 |
+
extern int repo_add_solv(Repo *repo, FILE *fp, int flags);
|
| 26 |
+
extern int solv_read_userdata(FILE *fp, unsigned char **datap, int *lenp);
|
| 27 |
+
|
| 28 |
+
#define SOLV_ADD_NO_STUBS (1 << 8)
|
| 29 |
+
|
| 30 |
+
#ifdef __cplusplus
|
| 31 |
+
}
|
| 32 |
+
#endif
|
| 33 |
+
|
| 34 |
+
#endif /* LIBSOLV_REPO_SOLVE_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_write.h
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* repo_write.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef REPO_WRITE_H
|
| 14 |
+
#define REPO_WRITE_H
|
| 15 |
+
|
| 16 |
+
#include <stdio.h>
|
| 17 |
+
|
| 18 |
+
#include "repo.h"
|
| 19 |
+
#include "queue.h"
|
| 20 |
+
|
| 21 |
+
#ifdef __cplusplus
|
| 22 |
+
extern "C" {
|
| 23 |
+
#endif
|
| 24 |
+
|
| 25 |
+
typedef struct s_Repowriter {
|
| 26 |
+
Repo *repo;
|
| 27 |
+
int flags;
|
| 28 |
+
int repodatastart;
|
| 29 |
+
int repodataend;
|
| 30 |
+
int solvablestart;
|
| 31 |
+
int solvableend;
|
| 32 |
+
int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata);
|
| 33 |
+
void *kfdata;
|
| 34 |
+
Queue *keyq;
|
| 35 |
+
void *userdata;
|
| 36 |
+
int userdatalen;
|
| 37 |
+
} Repowriter;
|
| 38 |
+
|
| 39 |
+
/* repowriter flags */
|
| 40 |
+
#define REPOWRITER_NO_STORAGE_SOLVABLE (1 << 0)
|
| 41 |
+
#define REPOWRITER_KEEP_TYPE_DELETED (1 << 1)
|
| 42 |
+
#define REPOWRITER_LEGACY (1 << 30)
|
| 43 |
+
|
| 44 |
+
Repowriter *repowriter_create(Repo *repo);
|
| 45 |
+
Repowriter *repowriter_free(Repowriter *writer);
|
| 46 |
+
void repowriter_set_flags(Repowriter *writer, int flags);
|
| 47 |
+
void repowriter_set_keyfilter(Repowriter *writer, int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata), void *kfdata);
|
| 48 |
+
void repowriter_set_keyqueue(Repowriter *writer, Queue *keyq);
|
| 49 |
+
void repowriter_set_repodatarange(Repowriter *writer, int repodatastart, int repodataend);
|
| 50 |
+
void repowriter_set_solvablerange(Repowriter *writer, int solvablestart, int solvableend);
|
| 51 |
+
void repowriter_set_userdata(Repowriter *writer, const void *data, int len);
|
| 52 |
+
int repowriter_write(Repowriter *writer, FILE *fp);
|
| 53 |
+
|
| 54 |
+
/* convenience functions */
|
| 55 |
+
extern int repo_write(Repo *repo, FILE *fp);
|
| 56 |
+
extern int repodata_write(Repodata *data , FILE *fp);
|
| 57 |
+
|
| 58 |
+
extern int repo_write_stdkeyfilter(Repo *repo, Repokey *key, void *kfdata);
|
| 59 |
+
|
| 60 |
+
/* deprecated functions, do not use in new code! */
|
| 61 |
+
extern int repo_write_filtered(Repo *repo, FILE *fp, int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata), void *kfdata, Queue *keyq);
|
| 62 |
+
extern int repodata_write_filtered(Repodata *data , FILE *fp, int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata), void *kfdata, Queue *keyq);
|
| 63 |
+
|
| 64 |
+
#ifdef __cplusplus
|
| 65 |
+
}
|
| 66 |
+
#endif
|
| 67 |
+
|
| 68 |
+
#endif
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repodata.h
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* repodata.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_REPODATA_H
|
| 14 |
+
#define LIBSOLV_REPODATA_H
|
| 15 |
+
|
| 16 |
+
#include <stdio.h>
|
| 17 |
+
|
| 18 |
+
#include "pooltypes.h"
|
| 19 |
+
#include "pool.h"
|
| 20 |
+
#include "dirpool.h"
|
| 21 |
+
|
| 22 |
+
#ifdef LIBSOLV_INTERNAL
|
| 23 |
+
#include "repopage.h"
|
| 24 |
+
#endif
|
| 25 |
+
|
| 26 |
+
#ifdef __cplusplus
|
| 27 |
+
extern "C" {
|
| 28 |
+
#endif
|
| 29 |
+
|
| 30 |
+
#define SIZEOF_MD5 16
|
| 31 |
+
#define SIZEOF_SHA1 20
|
| 32 |
+
#define SIZEOF_SHA224 28
|
| 33 |
+
#define SIZEOF_SHA256 32
|
| 34 |
+
#define SIZEOF_SHA384 48
|
| 35 |
+
#define SIZEOF_SHA512 64
|
| 36 |
+
|
| 37 |
+
struct s_KeyValue;
|
| 38 |
+
|
| 39 |
+
typedef struct s_Repokey {
|
| 40 |
+
Id name;
|
| 41 |
+
Id type; /* REPOKEY_TYPE_xxx */
|
| 42 |
+
unsigned int size;
|
| 43 |
+
unsigned int storage; /* KEY_STORAGE_xxx */
|
| 44 |
+
} Repokey;
|
| 45 |
+
|
| 46 |
+
#define KEY_STORAGE_DROPPED 0
|
| 47 |
+
#define KEY_STORAGE_SOLVABLE 1
|
| 48 |
+
#define KEY_STORAGE_INCORE 2
|
| 49 |
+
#define KEY_STORAGE_VERTICAL_OFFSET 3
|
| 50 |
+
#define KEY_STORAGE_IDARRAYBLOCK 4
|
| 51 |
+
|
| 52 |
+
#ifdef LIBSOLV_INTERNAL
|
| 53 |
+
struct dircache;
|
| 54 |
+
#endif
|
| 55 |
+
|
| 56 |
+
/* repodata states */
|
| 57 |
+
#define REPODATA_AVAILABLE 0
|
| 58 |
+
#define REPODATA_STUB 1
|
| 59 |
+
#define REPODATA_ERROR 2
|
| 60 |
+
#define REPODATA_STORE 3
|
| 61 |
+
#define REPODATA_LOADING 4
|
| 62 |
+
|
| 63 |
+
/* repodata filelist types */
|
| 64 |
+
/* note that FILELIST_FILTERED means that the data contains a filtered
|
| 65 |
+
* filelist *AND* that it is authoritative for all included solvables. */
|
| 66 |
+
#define REPODATA_FILELIST_FILTERED 1
|
| 67 |
+
#define REPODATA_FILELIST_EXTENSION 2
|
| 68 |
+
|
| 69 |
+
struct s_Repodata {
|
| 70 |
+
Id repodataid; /* our id */
|
| 71 |
+
Repo *repo; /* back pointer to repo */
|
| 72 |
+
|
| 73 |
+
int state; /* available, stub or error */
|
| 74 |
+
|
| 75 |
+
void (*loadcallback)(Repodata *);
|
| 76 |
+
|
| 77 |
+
int start; /* start of solvables this repodata is valid for */
|
| 78 |
+
int end; /* last solvable + 1 of this repodata */
|
| 79 |
+
|
| 80 |
+
Repokey *keys; /* keys, first entry is always zero */
|
| 81 |
+
int nkeys; /* length of keys array */
|
| 82 |
+
unsigned char keybits[32]; /* keyname hash */
|
| 83 |
+
|
| 84 |
+
Id *schemata; /* schema -> offset into schemadata */
|
| 85 |
+
int nschemata; /* number of schemata */
|
| 86 |
+
Id *schemadata; /* schema storage */
|
| 87 |
+
|
| 88 |
+
Stringpool spool; /* local string pool */
|
| 89 |
+
int localpool; /* is local string pool used */
|
| 90 |
+
|
| 91 |
+
Dirpool dirpool; /* local dir pool */
|
| 92 |
+
|
| 93 |
+
#ifdef LIBSOLV_INTERNAL
|
| 94 |
+
FILE *fp; /* file pointer of solv file */
|
| 95 |
+
int error; /* corrupt solv file */
|
| 96 |
+
|
| 97 |
+
int filelisttype; /* type of filelist */
|
| 98 |
+
Id *filelistfilter; /* filelist filter used */
|
| 99 |
+
char *filelistfilterdata; /* filelist filter string space */
|
| 100 |
+
|
| 101 |
+
unsigned int schemadatalen; /* schema storage size */
|
| 102 |
+
Id *schematahash; /* unification helper */
|
| 103 |
+
|
| 104 |
+
unsigned char *incoredata; /* in-core data */
|
| 105 |
+
unsigned int incoredatalen; /* in-core data used */
|
| 106 |
+
unsigned int incoredatafree; /* free data len */
|
| 107 |
+
|
| 108 |
+
Id mainschema; /* SOLVID_META schema */
|
| 109 |
+
Id *mainschemaoffsets; /* SOLVID_META offsets into incoredata */
|
| 110 |
+
|
| 111 |
+
Id *incoreoffset; /* offset for all entries */
|
| 112 |
+
|
| 113 |
+
Id *verticaloffset; /* offset for all verticals, nkeys elements */
|
| 114 |
+
Id lastverticaloffset; /* end of verticals */
|
| 115 |
+
|
| 116 |
+
Repopagestore store; /* our page store */
|
| 117 |
+
Id storestate; /* incremented every time the store might change */
|
| 118 |
+
|
| 119 |
+
unsigned char *vincore; /* internal vertical data */
|
| 120 |
+
unsigned int vincorelen; /* data size */
|
| 121 |
+
|
| 122 |
+
Id **attrs; /* un-internalized attributes */
|
| 123 |
+
Id **xattrs; /* anonymous handles */
|
| 124 |
+
int nxattrs; /* number of handles */
|
| 125 |
+
|
| 126 |
+
unsigned char *attrdata; /* their string data space */
|
| 127 |
+
unsigned int attrdatalen; /* its len */
|
| 128 |
+
Id *attriddata; /* their id space */
|
| 129 |
+
unsigned int attriddatalen; /* its len */
|
| 130 |
+
unsigned long long *attrnum64data; /* their 64bit num data space */
|
| 131 |
+
unsigned int attrnum64datalen; /* its len */
|
| 132 |
+
|
| 133 |
+
/* array cache to speed up repodata_add functions*/
|
| 134 |
+
Id lasthandle;
|
| 135 |
+
Id lastkey;
|
| 136 |
+
Id lastdatalen;
|
| 137 |
+
|
| 138 |
+
/* directory cache to speed up repodata_str2dir */
|
| 139 |
+
struct dircache *dircache;
|
| 140 |
+
#endif
|
| 141 |
+
|
| 142 |
+
};
|
| 143 |
+
|
| 144 |
+
#define SOLVID_META -1
|
| 145 |
+
#define SOLVID_POS -2
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
/*-----
|
| 149 |
+
* management functions
|
| 150 |
+
*/
|
| 151 |
+
void repodata_initdata(Repodata *data, Repo *repo, int localpool);
|
| 152 |
+
void repodata_freedata(Repodata *data);
|
| 153 |
+
|
| 154 |
+
void repodata_free(Repodata *data);
|
| 155 |
+
void repodata_empty(Repodata *data, int localpool);
|
| 156 |
+
|
| 157 |
+
void repodata_load(Repodata *data);
|
| 158 |
+
|
| 159 |
+
/*
|
| 160 |
+
* key management functions
|
| 161 |
+
*/
|
| 162 |
+
Id repodata_key2id(Repodata *data, Repokey *key, int create);
|
| 163 |
+
|
| 164 |
+
static inline Repokey *
|
| 165 |
+
repodata_id2key(Repodata *data, Id keyid)
|
| 166 |
+
{
|
| 167 |
+
return data->keys + keyid;
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
/*
|
| 171 |
+
* schema management functions
|
| 172 |
+
*/
|
| 173 |
+
Id repodata_schema2id(Repodata *data, Id *schema, int create);
|
| 174 |
+
void repodata_free_schemahash(Repodata *data);
|
| 175 |
+
|
| 176 |
+
static inline Id *
|
| 177 |
+
repodata_id2schema(Repodata *data, Id schemaid)
|
| 178 |
+
{
|
| 179 |
+
return data->schemadata + data->schemata[schemaid];
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
/*
|
| 183 |
+
* data search and access
|
| 184 |
+
*/
|
| 185 |
+
|
| 186 |
+
/* check if there is a chance that the repodata contains data for
|
| 187 |
+
* the specified keyname */
|
| 188 |
+
static inline int
|
| 189 |
+
repodata_precheck_keyname(Repodata *data, Id keyname)
|
| 190 |
+
{
|
| 191 |
+
unsigned char x = data->keybits[(keyname >> 3) & (sizeof(data->keybits) - 1)];
|
| 192 |
+
return x && (x & (1 << (keyname & 7))) ? 1 : 0;
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
/* check if the repodata contains data for the specified keyname */
|
| 196 |
+
static inline int
|
| 197 |
+
repodata_has_keyname(Repodata *data, Id keyname)
|
| 198 |
+
{
|
| 199 |
+
int i;
|
| 200 |
+
if (!repodata_precheck_keyname(data, keyname))
|
| 201 |
+
return 0;
|
| 202 |
+
for (i = 1; i < data->nkeys; i++)
|
| 203 |
+
if (data->keys[i].name == keyname)
|
| 204 |
+
return 1;
|
| 205 |
+
return 0;
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
/* search key <keyname> (all keys, if keyname == 0) for Id <solvid>
|
| 209 |
+
* Call <callback> for each match */
|
| 210 |
+
void repodata_search(Repodata *data, Id solvid, Id keyname, int flags, int (*callback)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, struct s_KeyValue *kv), void *cbdata);
|
| 211 |
+
void repodata_search_keyskip(Repodata *data, Id solvid, Id keyname, int flags, Id *keyskip, int (*callback)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, struct s_KeyValue *kv), void *cbdata);
|
| 212 |
+
void repodata_search_arrayelement(Repodata *data, Id solvid, Id keyname, int flags, struct s_KeyValue *kv, int (*callback)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, struct s_KeyValue *kv), void *cbdata);
|
| 213 |
+
|
| 214 |
+
/* Make sure the found KeyValue has the "str" field set. Return "str"
|
| 215 |
+
* if valid, NULL if not possible */
|
| 216 |
+
const char *repodata_stringify(Pool *pool, Repodata *data, Repokey *key, struct s_KeyValue *kv, int flags);
|
| 217 |
+
|
| 218 |
+
/* filelist filter support */
|
| 219 |
+
void repodata_set_filelisttype(Repodata *data, int filelisttype);
|
| 220 |
+
int repodata_filelistfilter_matches(Repodata *data, const char *str);
|
| 221 |
+
void repodata_free_filelistfilter(Repodata *data);
|
| 222 |
+
|
| 223 |
+
/* lookup functions */
|
| 224 |
+
Id repodata_lookup_type(Repodata *data, Id solvid, Id keyname);
|
| 225 |
+
Id repodata_lookup_id(Repodata *data, Id solvid, Id keyname);
|
| 226 |
+
const char *repodata_lookup_str(Repodata *data, Id solvid, Id keyname);
|
| 227 |
+
unsigned long long repodata_lookup_num(Repodata *data, Id solvid, Id keyname, unsigned long long notfound);
|
| 228 |
+
int repodata_lookup_void(Repodata *data, Id solvid, Id keyname);
|
| 229 |
+
const unsigned char *repodata_lookup_bin_checksum(Repodata *data, Id solvid, Id keyname, Id *typep);
|
| 230 |
+
int repodata_lookup_idarray(Repodata *data, Id solvid, Id keyname, Queue *q);
|
| 231 |
+
const void *repodata_lookup_binary(Repodata *data, Id solvid, Id keyname, int *lenp);
|
| 232 |
+
unsigned int repodata_lookup_count(Repodata *data, Id solvid, Id keyname); /* internal */
|
| 233 |
+
|
| 234 |
+
/* internal, used in fileprovides code */
|
| 235 |
+
const unsigned char *repodata_lookup_packed_dirstrarray(Repodata *data, Id solvid, Id keyname);
|
| 236 |
+
|
| 237 |
+
/* internal, fill keyskip array with data */
|
| 238 |
+
Id *repodata_fill_keyskip(Repodata *data, Id solvid, Id *keyskip);
|
| 239 |
+
|
| 240 |
+
/*-----
|
| 241 |
+
* data assignment functions
|
| 242 |
+
*/
|
| 243 |
+
|
| 244 |
+
/*
|
| 245 |
+
* extend the data so that it contains the specified solvables
|
| 246 |
+
* (no longer needed, as the repodata_set functions autoextend)
|
| 247 |
+
*/
|
| 248 |
+
void repodata_extend(Repodata *data, Id p);
|
| 249 |
+
void repodata_extend_block(Repodata *data, Id p, int num);
|
| 250 |
+
void repodata_shrink(Repodata *data, int end);
|
| 251 |
+
|
| 252 |
+
/* internalize freshly set data, so that it is found by the search
|
| 253 |
+
* functions and written out */
|
| 254 |
+
void repodata_internalize(Repodata *data);
|
| 255 |
+
|
| 256 |
+
/* create an anonymous handle. useful for substructures like
|
| 257 |
+
* fixarray/flexarray */
|
| 258 |
+
Id repodata_new_handle(Repodata *data);
|
| 259 |
+
|
| 260 |
+
/* basic types: void, num, string, Id */
|
| 261 |
+
void repodata_set_void(Repodata *data, Id solvid, Id keyname);
|
| 262 |
+
void repodata_set_num(Repodata *data, Id solvid, Id keyname, unsigned long long num);
|
| 263 |
+
void repodata_set_id(Repodata *data, Id solvid, Id keyname, Id id);
|
| 264 |
+
void repodata_set_str(Repodata *data, Id solvid, Id keyname, const char *str);
|
| 265 |
+
void repodata_set_binary(Repodata *data, Id solvid, Id keyname, void *buf, int len);
|
| 266 |
+
/* create id from string, then set_id */
|
| 267 |
+
void repodata_set_poolstr(Repodata *data, Id solvid, Id keyname, const char *str);
|
| 268 |
+
|
| 269 |
+
/* set numeric constant */
|
| 270 |
+
void repodata_set_constant(Repodata *data, Id solvid, Id keyname, unsigned int constant);
|
| 271 |
+
|
| 272 |
+
/* set Id constant */
|
| 273 |
+
void repodata_set_constantid(Repodata *data, Id solvid, Id keyname, Id id);
|
| 274 |
+
|
| 275 |
+
/* checksum */
|
| 276 |
+
void repodata_set_bin_checksum(Repodata *data, Id solvid, Id keyname, Id type,
|
| 277 |
+
const unsigned char *buf);
|
| 278 |
+
void repodata_set_checksum(Repodata *data, Id solvid, Id keyname, Id type,
|
| 279 |
+
const char *str);
|
| 280 |
+
void repodata_set_idarray(Repodata *data, Id solvid, Id keyname, Queue *q);
|
| 281 |
+
|
| 282 |
+
/* directory (for package file list) */
|
| 283 |
+
void repodata_add_dirnumnum(Repodata *data, Id solvid, Id keyname, Id dir, Id num, Id num2);
|
| 284 |
+
void repodata_add_dirstr(Repodata *data, Id solvid, Id keyname, Id dir, const char *str);
|
| 285 |
+
void repodata_free_dircache(Repodata *data);
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
/* arrays */
|
| 289 |
+
void repodata_add_idarray(Repodata *data, Id solvid, Id keyname, Id id);
|
| 290 |
+
void repodata_add_poolstr_array(Repodata *data, Id solvid, Id keyname, const char *str);
|
| 291 |
+
void repodata_add_fixarray(Repodata *data, Id solvid, Id keyname, Id ghandle);
|
| 292 |
+
void repodata_add_flexarray(Repodata *data, Id solvid, Id keyname, Id ghandle);
|
| 293 |
+
|
| 294 |
+
/* generic */
|
| 295 |
+
void repodata_set_kv(Repodata *data, Id solvid, Id keyname, Id keytype, struct s_KeyValue *kv);
|
| 296 |
+
void repodata_unset(Repodata *data, Id solvid, Id keyname);
|
| 297 |
+
void repodata_unset_uninternalized(Repodata *data, Id solvid, Id keyname);
|
| 298 |
+
|
| 299 |
+
/*
|
| 300 |
+
merge/swap attributes from one solvable to another
|
| 301 |
+
works only if the data is not yet internalized
|
| 302 |
+
*/
|
| 303 |
+
void repodata_merge_attrs(Repodata *data, Id dest, Id src);
|
| 304 |
+
void repodata_merge_some_attrs(Repodata *data, Id dest, Id src, Map *keyidmap, int overwrite);
|
| 305 |
+
void repodata_swap_attrs(Repodata *data, Id dest, Id src);
|
| 306 |
+
|
| 307 |
+
Repodata *repodata_create_stubs(Repodata *data);
|
| 308 |
+
|
| 309 |
+
/*
|
| 310 |
+
* load all paged data, used to speed up copying in repo_rpmdb
|
| 311 |
+
*/
|
| 312 |
+
void repodata_disable_paging(Repodata *data);
|
| 313 |
+
|
| 314 |
+
/* helper functions */
|
| 315 |
+
Id repodata_globalize_id(Repodata *data, Id id, int create);
|
| 316 |
+
Id repodata_localize_id(Repodata *data, Id id, int create);
|
| 317 |
+
Id repodata_translate_id(Repodata *data, Repodata *fromdata, Id id, int create);
|
| 318 |
+
Id repodata_translate_dir_slow(Repodata *data, Repodata *fromdata, Id dir, int create, Id *cache);
|
| 319 |
+
|
| 320 |
+
Id repodata_str2dir(Repodata *data, const char *dir, int create);
|
| 321 |
+
const char *repodata_dir2str(Repodata *data, Id did, const char *suf);
|
| 322 |
+
const char *repodata_chk2str(Repodata *data, Id type, const unsigned char *buf);
|
| 323 |
+
void repodata_set_location(Repodata *data, Id solvid, int medianr, const char *dir, const char *file);
|
| 324 |
+
void repodata_set_deltalocation(Repodata *data, Id handle, int medianr, const char *dir, const char *file);
|
| 325 |
+
void repodata_set_sourcepkg(Repodata *data, Id solvid, const char *sourcepkg);
|
| 326 |
+
|
| 327 |
+
/* uninternalized data lookup / search */
|
| 328 |
+
Repokey *repodata_lookup_kv_uninternalized(Repodata *data, Id solvid, Id keyname, struct s_KeyValue *kv);
|
| 329 |
+
void repodata_search_uninternalized(Repodata *data, Id solvid, Id keyname, int flags, int (*callback)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, struct s_KeyValue *kv), void *cbdata);
|
| 330 |
+
|
| 331 |
+
/* stats */
|
| 332 |
+
unsigned int repodata_memused(Repodata *data);
|
| 333 |
+
|
| 334 |
+
static inline Id
|
| 335 |
+
repodata_translate_dir(Repodata *data, Repodata *fromdata, Id dir, int create, Id *cache)
|
| 336 |
+
{
|
| 337 |
+
if (cache && dir && cache[(dir & 255) * 2] == dir)
|
| 338 |
+
return cache[(dir & 255) * 2 + 1];
|
| 339 |
+
return repodata_translate_dir_slow(data, fromdata, dir, create, cache);
|
| 340 |
+
}
|
| 341 |
+
|
| 342 |
+
static inline Id *
|
| 343 |
+
repodata_create_dirtranscache(Repodata *data)
|
| 344 |
+
{
|
| 345 |
+
return (Id *)solv_calloc(256, sizeof(Id) * 2);
|
| 346 |
+
}
|
| 347 |
+
|
| 348 |
+
static inline Id *
|
| 349 |
+
repodata_free_dirtranscache(Id *cache)
|
| 350 |
+
{
|
| 351 |
+
return (Id *)solv_free(cache);
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
#ifdef __cplusplus
|
| 356 |
+
}
|
| 357 |
+
#endif
|
| 358 |
+
|
| 359 |
+
#endif /* LIBSOLV_REPODATA_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/rules.h
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007-2009, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* rules.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_RULES_H
|
| 14 |
+
#define LIBSOLV_RULES_H
|
| 15 |
+
|
| 16 |
+
#include "pooltypes.h"
|
| 17 |
+
#include "bitmap.h"
|
| 18 |
+
#include "queue.h"
|
| 19 |
+
|
| 20 |
+
#ifdef __cplusplus
|
| 21 |
+
extern "C" {
|
| 22 |
+
#endif
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
/* ----------------------------------------------
|
| 26 |
+
* Rule
|
| 27 |
+
*
|
| 28 |
+
* providerN(B) == Package Id of package providing tag B
|
| 29 |
+
* N = 1, 2, 3, in case of multiple providers
|
| 30 |
+
*
|
| 31 |
+
* A requires B : !A | provider1(B) | provider2(B)
|
| 32 |
+
*
|
| 33 |
+
* A conflicts B : (!A | !provider1(B)) & (!A | !provider2(B)) ...
|
| 34 |
+
*
|
| 35 |
+
* 'not' is encoded as a negative Id
|
| 36 |
+
*
|
| 37 |
+
* Binary rule: p = first literal, d = 0, w2 = second literal, w1 = p
|
| 38 |
+
*
|
| 39 |
+
* There are a lot of rules, so the struct is kept as small as
|
| 40 |
+
* possible. Do not add new members unless there is no other way.
|
| 41 |
+
*/
|
| 42 |
+
|
| 43 |
+
typedef struct s_Rule {
|
| 44 |
+
Id p; /* first literal in rule */
|
| 45 |
+
Id d; /* Id offset into 'list of providers terminated by 0' as used by whatprovides; pool->whatprovides + d */
|
| 46 |
+
/* in case of binary rules, d == 0, w1 == p, w2 == other literal */
|
| 47 |
+
/* in case of disabled rules: ~d, aka -d - 1 */
|
| 48 |
+
Id w1, w2; /* watches, literals not-yet-decided */
|
| 49 |
+
/* if !w2, assertion, not rule */
|
| 50 |
+
Id n1, n2; /* next rules in linked list, corresponding to w1, w2 */
|
| 51 |
+
} Rule;
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
typedef enum {
|
| 55 |
+
SOLVER_RULE_UNKNOWN = 0,
|
| 56 |
+
SOLVER_RULE_PKG = 0x100,
|
| 57 |
+
SOLVER_RULE_PKG_NOT_INSTALLABLE,
|
| 58 |
+
SOLVER_RULE_PKG_NOTHING_PROVIDES_DEP,
|
| 59 |
+
SOLVER_RULE_PKG_REQUIRES,
|
| 60 |
+
SOLVER_RULE_PKG_SELF_CONFLICT,
|
| 61 |
+
SOLVER_RULE_PKG_CONFLICTS,
|
| 62 |
+
SOLVER_RULE_PKG_SAME_NAME,
|
| 63 |
+
SOLVER_RULE_PKG_OBSOLETES,
|
| 64 |
+
SOLVER_RULE_PKG_IMPLICIT_OBSOLETES,
|
| 65 |
+
SOLVER_RULE_PKG_INSTALLED_OBSOLETES,
|
| 66 |
+
SOLVER_RULE_PKG_RECOMMENDS,
|
| 67 |
+
SOLVER_RULE_PKG_CONSTRAINS,
|
| 68 |
+
SOLVER_RULE_PKG_SUPPLEMENTS,
|
| 69 |
+
SOLVER_RULE_UPDATE = 0x200,
|
| 70 |
+
SOLVER_RULE_FEATURE = 0x300,
|
| 71 |
+
SOLVER_RULE_JOB = 0x400,
|
| 72 |
+
SOLVER_RULE_JOB_NOTHING_PROVIDES_DEP,
|
| 73 |
+
SOLVER_RULE_JOB_PROVIDED_BY_SYSTEM,
|
| 74 |
+
SOLVER_RULE_JOB_UNKNOWN_PACKAGE,
|
| 75 |
+
SOLVER_RULE_JOB_UNSUPPORTED,
|
| 76 |
+
SOLVER_RULE_DISTUPGRADE = 0x500,
|
| 77 |
+
SOLVER_RULE_INFARCH = 0x600,
|
| 78 |
+
SOLVER_RULE_CHOICE = 0x700,
|
| 79 |
+
SOLVER_RULE_LEARNT = 0x800,
|
| 80 |
+
SOLVER_RULE_BEST = 0x900,
|
| 81 |
+
SOLVER_RULE_YUMOBS = 0xa00,
|
| 82 |
+
SOLVER_RULE_RECOMMENDS = 0xb00,
|
| 83 |
+
SOLVER_RULE_BLACK = 0xc00,
|
| 84 |
+
SOLVER_RULE_STRICT_REPO_PRIORITY = 0xd00
|
| 85 |
+
} SolverRuleinfo;
|
| 86 |
+
|
| 87 |
+
#define SOLVER_RULE_TYPEMASK 0xff00
|
| 88 |
+
|
| 89 |
+
struct s_Solver;
|
| 90 |
+
|
| 91 |
+
/*-------------------------------------------------------------------
|
| 92 |
+
* disable rule
|
| 93 |
+
*/
|
| 94 |
+
|
| 95 |
+
static inline void
|
| 96 |
+
solver_disablerule(struct s_Solver *solv, Rule *r)
|
| 97 |
+
{
|
| 98 |
+
if (r->d >= 0)
|
| 99 |
+
r->d = -r->d - 1;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
/*-------------------------------------------------------------------
|
| 103 |
+
* enable rule
|
| 104 |
+
*/
|
| 105 |
+
|
| 106 |
+
static inline void
|
| 107 |
+
solver_enablerule(struct s_Solver *solv, Rule *r)
|
| 108 |
+
{
|
| 109 |
+
if (r->d < 0)
|
| 110 |
+
r->d = -r->d - 1;
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
extern Rule *solver_addrule(struct s_Solver *solv, Id p, Id p2, Id d);
|
| 114 |
+
extern void solver_unifyrules(struct s_Solver *solv);
|
| 115 |
+
extern int solver_rulecmp(struct s_Solver *solv, Rule *r1, Rule *r2);
|
| 116 |
+
extern void solver_shrinkrules(struct s_Solver *solv, int nrules);
|
| 117 |
+
|
| 118 |
+
/* pkg rules */
|
| 119 |
+
extern void solver_addpkgrulesforsolvable(struct s_Solver *solv, Solvable *s, Map *m);
|
| 120 |
+
extern void solver_addpkgrulesforweak(struct s_Solver *solv, Map *m);
|
| 121 |
+
extern void solver_addpkgrulesforlinked(struct s_Solver *solv, Map *m);
|
| 122 |
+
extern void solver_addpkgrulesforupdaters(struct s_Solver *solv, Solvable *s, Map *m, int allow_all);
|
| 123 |
+
|
| 124 |
+
/* update/feature rules */
|
| 125 |
+
extern void solver_addfeaturerule(struct s_Solver *solv, Solvable *s);
|
| 126 |
+
extern void solver_addupdaterule(struct s_Solver *solv, Solvable *s);
|
| 127 |
+
|
| 128 |
+
/* infarch rules */
|
| 129 |
+
extern void solver_addinfarchrules(struct s_Solver *solv, Map *addedmap);
|
| 130 |
+
|
| 131 |
+
/* dup rules */
|
| 132 |
+
extern void solver_createdupmaps(struct s_Solver *solv);
|
| 133 |
+
extern void solver_freedupmaps(struct s_Solver *solv);
|
| 134 |
+
extern void solver_addduprules(struct s_Solver *solv, Map *addedmap);
|
| 135 |
+
|
| 136 |
+
/* choice rules */
|
| 137 |
+
extern void solver_addchoicerules(struct s_Solver *solv);
|
| 138 |
+
extern void solver_disablechoicerules(struct s_Solver *solv, Rule *r);
|
| 139 |
+
|
| 140 |
+
/* best rules */
|
| 141 |
+
extern void solver_addbestrules(struct s_Solver *solv, int havebestinstalljobs, int haslockjob);
|
| 142 |
+
|
| 143 |
+
/* yumobs rules */
|
| 144 |
+
extern void solver_addyumobsrules(struct s_Solver *solv);
|
| 145 |
+
|
| 146 |
+
/* black rules */
|
| 147 |
+
extern void solver_addblackrules(struct s_Solver *solv);
|
| 148 |
+
|
| 149 |
+
/* recommends rules */
|
| 150 |
+
extern void solver_addrecommendsrules(struct s_Solver *solv);
|
| 151 |
+
|
| 152 |
+
/* channel priority rules */
|
| 153 |
+
extern void solver_addstrictrepopriorules(struct s_Solver *solv, Map *addedmap);
|
| 154 |
+
|
| 155 |
+
/* policy rule disabling/reenabling */
|
| 156 |
+
extern void solver_disablepolicyrules(struct s_Solver *solv);
|
| 157 |
+
extern void solver_reenablepolicyrules(struct s_Solver *solv, int jobidx);
|
| 158 |
+
extern void solver_reenablepolicyrules_cleandeps(struct s_Solver *solv, Id pkg);
|
| 159 |
+
|
| 160 |
+
/* rule info */
|
| 161 |
+
extern int solver_allruleinfos(struct s_Solver *solv, Id rid, Queue *rq);
|
| 162 |
+
extern SolverRuleinfo solver_ruleinfo(struct s_Solver *solv, Id rid, Id *fromp, Id *top, Id *depp);
|
| 163 |
+
extern SolverRuleinfo solver_ruleclass(struct s_Solver *solv, Id rid);
|
| 164 |
+
extern void solver_ruleliterals(struct s_Solver *solv, Id rid, Queue *q);
|
| 165 |
+
extern int solver_rule2jobidx(struct s_Solver *solv, Id rid);
|
| 166 |
+
extern Id solver_rule2job(struct s_Solver *solv, Id rid, Id *whatp);
|
| 167 |
+
extern Id solver_rule2solvable(struct s_Solver *solv, Id rid);
|
| 168 |
+
extern void solver_rule2rules(struct s_Solver *solv, Id rid, Queue *q, int recursive);
|
| 169 |
+
extern Id solver_rule2pkgrule(struct s_Solver *solv, Id rid);
|
| 170 |
+
extern const char *solver_ruleinfo2str(struct s_Solver *solv, SolverRuleinfo type, Id source, Id target, Id dep);
|
| 171 |
+
|
| 172 |
+
/* rule infos for weakdep decisions */
|
| 173 |
+
extern int solver_allweakdepinfos(struct s_Solver *solv, Id p, Queue *rq);
|
| 174 |
+
extern SolverRuleinfo solver_weakdepinfo(struct s_Solver *solv, Id p, Id *fromp, Id *top, Id *depp);
|
| 175 |
+
|
| 176 |
+
/* orphan handling */
|
| 177 |
+
extern void solver_breakorphans(struct s_Solver *solv);
|
| 178 |
+
extern void solver_check_brokenorphanrules(struct s_Solver *solv, Queue *dq);
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
/* legacy */
|
| 182 |
+
#define SOLVER_RULE_RPM SOLVER_RULE_PKG
|
| 183 |
+
#define SOLVER_RULE_RPM_NOT_INSTALLABLE SOLVER_RULE_PKG_NOT_INSTALLABLE
|
| 184 |
+
#define SOLVER_RULE_RPM_NOTHING_PROVIDES_DEP SOLVER_RULE_PKG_NOTHING_PROVIDES_DEP
|
| 185 |
+
#define SOLVER_RULE_RPM_PACKAGE_REQUIRES SOLVER_RULE_PKG_REQUIRES
|
| 186 |
+
#define SOLVER_RULE_RPM_SELF_CONFLICT SOLVER_RULE_PKG_SELF_CONFLICT
|
| 187 |
+
#define SOLVER_RULE_RPM_PACKAGE_CONFLICT SOLVER_RULE_PKG_CONFLICTS
|
| 188 |
+
#define SOLVER_RULE_RPM_SAME_NAME SOLVER_RULE_PKG_SAME_NAME
|
| 189 |
+
#define SOLVER_RULE_RPM_PACKAGE_OBSOLETES SOLVER_RULE_PKG_OBSOLETES
|
| 190 |
+
#define SOLVER_RULE_RPM_IMPLICIT_OBSOLETES SOLVER_RULE_PKG_IMPLICIT_OBSOLETES
|
| 191 |
+
#define SOLVER_RULE_RPM_INSTALLEDPKG_OBSOLETES SOLVER_RULE_PKG_INSTALLED_OBSOLETES
|
| 192 |
+
|
| 193 |
+
#ifdef __cplusplus
|
| 194 |
+
}
|
| 195 |
+
#endif
|
| 196 |
+
|
| 197 |
+
#endif
|
| 198 |
+
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/selection.h
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2012, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* selection.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_SELECTION_H
|
| 14 |
+
#define LIBSOLV_SELECTION_H
|
| 15 |
+
|
| 16 |
+
#include "pool.h"
|
| 17 |
+
|
| 18 |
+
#ifdef __cplusplus
|
| 19 |
+
extern "C" {
|
| 20 |
+
#endif
|
| 21 |
+
|
| 22 |
+
/* what to match */
|
| 23 |
+
#define SELECTION_NAME (1 << 0)
|
| 24 |
+
#define SELECTION_PROVIDES (1 << 1)
|
| 25 |
+
#define SELECTION_FILELIST (1 << 2)
|
| 26 |
+
#define SELECTION_CANON (1 << 3)
|
| 27 |
+
|
| 28 |
+
/* match extensions */
|
| 29 |
+
#define SELECTION_DOTARCH (1 << 4) /* allow ".arch" suffix */
|
| 30 |
+
#define SELECTION_REL (1 << 5) /* allow "<=> rel" suffix */
|
| 31 |
+
|
| 32 |
+
/* string comparison modifiers */
|
| 33 |
+
#define SELECTION_GLOB (1 << 9)
|
| 34 |
+
#define SELECTION_NOCASE (1 << 11)
|
| 35 |
+
|
| 36 |
+
/* extra flags */
|
| 37 |
+
#define SELECTION_FLAT (1 << 10) /* flatten the resulting selection */
|
| 38 |
+
#define SELECTION_SKIP_KIND (1 << 14) /* remove kind: name prefix in SELECTION_NAME matches */
|
| 39 |
+
#define SELECTION_MATCH_DEPSTR (1 << 15) /* match dep2str result */
|
| 40 |
+
|
| 41 |
+
/* package selection */
|
| 42 |
+
#define SELECTION_INSTALLED_ONLY (1 << 8)
|
| 43 |
+
#define SELECTION_SOURCE_ONLY (1 << 12)
|
| 44 |
+
#define SELECTION_WITH_SOURCE (1 << 13)
|
| 45 |
+
#define SELECTION_WITH_DISABLED (1 << 16)
|
| 46 |
+
#define SELECTION_WITH_BADARCH (1 << 17)
|
| 47 |
+
#define SELECTION_WITH_ALL (SELECTION_WITH_SOURCE | SELECTION_WITH_DISABLED | SELECTION_WITH_BADARCH)
|
| 48 |
+
|
| 49 |
+
/* result operator */
|
| 50 |
+
#define SELECTION_REPLACE (0 << 28)
|
| 51 |
+
#define SELECTION_ADD (1 << 28)
|
| 52 |
+
#define SELECTION_SUBTRACT (2 << 28)
|
| 53 |
+
#define SELECTION_FILTER (3 << 28)
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
/* extra SELECTION_FILTER bits */
|
| 57 |
+
#define SELECTION_FILTER_KEEP_IFEMPTY (1 << 30)
|
| 58 |
+
#define SELECTION_FILTER_SWAPPED (1 << 31)
|
| 59 |
+
|
| 60 |
+
/* internal */
|
| 61 |
+
#define SELECTION_MODEBITS (3 << 28)
|
| 62 |
+
|
| 63 |
+
extern int selection_make(Pool *pool, Queue *selection, const char *name, int flags);
|
| 64 |
+
extern int selection_make_matchdeps(Pool *pool, Queue *selection, const char *name, int flags, int keyname, int marker);
|
| 65 |
+
extern int selection_make_matchdepid(Pool *pool, Queue *selection, Id dep, int flags, int keyname, int marker);
|
| 66 |
+
extern int selection_make_matchsolvable(Pool *pool, Queue *selection, Id solvid, int flags, int keyname, int marker);
|
| 67 |
+
extern int selection_make_matchsolvablelist(Pool *pool, Queue *selection, Queue *solvidq, int flags, int keyname, int marker);
|
| 68 |
+
|
| 69 |
+
extern void selection_filter(Pool *pool, Queue *sel1, Queue *sel2);
|
| 70 |
+
extern void selection_add(Pool *pool, Queue *sel1, Queue *sel2);
|
| 71 |
+
extern void selection_subtract(Pool *pool, Queue *sel1, Queue *sel2);
|
| 72 |
+
|
| 73 |
+
extern void selection_solvables(Pool *pool, Queue *selection, Queue *pkgs);
|
| 74 |
+
|
| 75 |
+
extern const char *pool_selection2str(Pool *pool, Queue *selection, Id flagmask);
|
| 76 |
+
|
| 77 |
+
#ifdef __cplusplus
|
| 78 |
+
}
|
| 79 |
+
#endif
|
| 80 |
+
|
| 81 |
+
#endif
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solv_xfopen.h
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2009-2012, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
#ifndef SOLV_XFOPEN_H
|
| 9 |
+
#define SOLV_XFOPEN_H
|
| 10 |
+
|
| 11 |
+
extern FILE *solv_xfopen(const char *fn, const char *mode);
|
| 12 |
+
extern FILE *solv_xfopen_fd(const char *fn, int fd, const char *mode);
|
| 13 |
+
extern FILE *solv_xfopen_buf(const char *fn, char **bufp, size_t *buflp, const char *mode);
|
| 14 |
+
extern int solv_xfopen_iscompressed(const char *fn);
|
| 15 |
+
extern FILE *solv_fmemopen(const char *buf, size_t bufl, const char *mode);
|
| 16 |
+
|
| 17 |
+
#endif
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solvable.h
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007-2012, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* solvable.h
|
| 10 |
+
*
|
| 11 |
+
* A solvable represents an object with name-epoch:version-release.arch
|
| 12 |
+
* and dependencies
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
#ifndef LIBSOLV_SOLVABLE_H
|
| 16 |
+
#define LIBSOLV_SOLVABLE_H
|
| 17 |
+
|
| 18 |
+
#include "pooltypes.h"
|
| 19 |
+
#include "queue.h"
|
| 20 |
+
#include "bitmap.h"
|
| 21 |
+
|
| 22 |
+
#ifdef __cplusplus
|
| 23 |
+
extern "C" {
|
| 24 |
+
#endif
|
| 25 |
+
|
| 26 |
+
struct s_Repo;
|
| 27 |
+
|
| 28 |
+
typedef struct s_Solvable {
|
| 29 |
+
Id name;
|
| 30 |
+
Id arch;
|
| 31 |
+
Id evr; /* epoch:version-release */
|
| 32 |
+
Id vendor;
|
| 33 |
+
|
| 34 |
+
struct s_Repo *repo; /* repo we belong to */
|
| 35 |
+
|
| 36 |
+
/* dependencies are offsets into repo->idarraydata */
|
| 37 |
+
/* the ifdef resolves "requires" conflicting with a C++20 keyword */
|
| 38 |
+
#ifdef LIBSOLV_SOLVABLE_PREPEND_DEP
|
| 39 |
+
Offset dep_provides; /* terminated with Id 0 */
|
| 40 |
+
Offset dep_obsoletes;
|
| 41 |
+
Offset dep_conflicts;
|
| 42 |
+
|
| 43 |
+
Offset dep_requires;
|
| 44 |
+
Offset dep_recommends;
|
| 45 |
+
Offset dep_suggests;
|
| 46 |
+
|
| 47 |
+
Offset dep_supplements;
|
| 48 |
+
Offset dep_enhances;
|
| 49 |
+
#else
|
| 50 |
+
Offset provides; /* terminated with Id 0 */
|
| 51 |
+
Offset obsoletes;
|
| 52 |
+
Offset conflicts;
|
| 53 |
+
|
| 54 |
+
Offset requires;
|
| 55 |
+
Offset recommends;
|
| 56 |
+
Offset suggests;
|
| 57 |
+
|
| 58 |
+
Offset supplements;
|
| 59 |
+
Offset enhances;
|
| 60 |
+
#endif
|
| 61 |
+
} Solvable;
|
| 62 |
+
|
| 63 |
+
/* lookup functions */
|
| 64 |
+
Id solvable_lookup_type(Solvable *s, Id keyname);
|
| 65 |
+
Id solvable_lookup_id(Solvable *s, Id keyname);
|
| 66 |
+
unsigned long long solvable_lookup_num(Solvable *s, Id keyname, unsigned long long notfound);
|
| 67 |
+
unsigned long long solvable_lookup_sizek(Solvable *s, Id keyname, unsigned long long notfound);
|
| 68 |
+
const char *solvable_lookup_str(Solvable *s, Id keyname);
|
| 69 |
+
const char *solvable_lookup_str_poollang(Solvable *s, Id keyname);
|
| 70 |
+
const char *solvable_lookup_str_lang(Solvable *s, Id keyname, const char *lang, int usebase);
|
| 71 |
+
int solvable_lookup_bool(Solvable *s, Id keyname);
|
| 72 |
+
int solvable_lookup_void(Solvable *s, Id keyname);
|
| 73 |
+
const char *solvable_get_location(Solvable *s, unsigned int *medianrp); /* old name */
|
| 74 |
+
const char *solvable_lookup_location(Solvable *s, unsigned int *medianrp);
|
| 75 |
+
const char *solvable_lookup_sourcepkg(Solvable *s);
|
| 76 |
+
const unsigned char *solvable_lookup_bin_checksum(Solvable *s, Id keyname, Id *typep);
|
| 77 |
+
const char *solvable_lookup_checksum(Solvable *s, Id keyname, Id *typep);
|
| 78 |
+
int solvable_lookup_idarray(Solvable *s, Id keyname, Queue *q);
|
| 79 |
+
int solvable_lookup_deparray(Solvable *s, Id keyname, Queue *q, Id marker);
|
| 80 |
+
unsigned int solvable_lookup_count(Solvable *s, Id keyname); /* internal */
|
| 81 |
+
|
| 82 |
+
/* setter functions */
|
| 83 |
+
void solvable_set_id(Solvable *s, Id keyname, Id id);
|
| 84 |
+
void solvable_set_num(Solvable *s, Id keyname, unsigned long long num);
|
| 85 |
+
void solvable_set_str(Solvable *s, Id keyname, const char *str);
|
| 86 |
+
void solvable_set_poolstr(Solvable *s, Id keyname, const char *str);
|
| 87 |
+
void solvable_add_poolstr_array(Solvable *s, Id keyname, const char *str);
|
| 88 |
+
void solvable_add_idarray(Solvable *s, Id keyname, Id id);
|
| 89 |
+
void solvable_add_deparray(Solvable *s, Id keyname, Id dep, Id marker);
|
| 90 |
+
void solvable_set_idarray(Solvable *s, Id keyname, Queue *q);
|
| 91 |
+
void solvable_set_deparray(Solvable *s, Id keyname, Queue *q, Id marker);
|
| 92 |
+
void solvable_unset(Solvable *s, Id keyname);
|
| 93 |
+
|
| 94 |
+
int solvable_identical(Solvable *s1, Solvable *s2);
|
| 95 |
+
Id solvable_selfprovidedep(Solvable *s);
|
| 96 |
+
|
| 97 |
+
int solvable_matchesdep(Solvable *s, Id keyname, Id dep, int marker);
|
| 98 |
+
int solvable_matchessolvable(Solvable *s, Id keyname, Id solvid, Queue *depq, int marker);
|
| 99 |
+
|
| 100 |
+
/* internal */
|
| 101 |
+
int solvable_matchessolvable_int(Solvable *s, Id keyname, int marker, Id solvid, Map *solvidmap, Queue *depq, Map *missc, int reloff, Queue *outdepq);
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
/* weird suse stuff */
|
| 105 |
+
int solvable_is_irrelevant_patch(Solvable *s, Map *installedmap);
|
| 106 |
+
int solvable_trivial_installable_map(Solvable *s, Map *installedmap, Map *conflictsmap, Map *multiversionmap);
|
| 107 |
+
int solvable_trivial_installable_queue(Solvable *s, Queue *installed, Map *multiversionmap);
|
| 108 |
+
int solvable_trivial_installable_repo(Solvable *s, struct s_Repo *installed, Map *multiversionmap);
|
| 109 |
+
|
| 110 |
+
#ifdef __cplusplus
|
| 111 |
+
}
|
| 112 |
+
#endif
|
| 113 |
+
|
| 114 |
+
#endif /* LIBSOLV_SOLVABLE_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solver.h
ADDED
|
@@ -0,0 +1,450 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* solver.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_SOLVER_H
|
| 14 |
+
#define LIBSOLV_SOLVER_H
|
| 15 |
+
|
| 16 |
+
#include "pooltypes.h"
|
| 17 |
+
#include "pool.h"
|
| 18 |
+
#include "repo.h"
|
| 19 |
+
#include "queue.h"
|
| 20 |
+
#include "bitmap.h"
|
| 21 |
+
#include "transaction.h"
|
| 22 |
+
#include "rules.h"
|
| 23 |
+
#include "problems.h"
|
| 24 |
+
|
| 25 |
+
#ifdef __cplusplus
|
| 26 |
+
extern "C" {
|
| 27 |
+
#endif
|
| 28 |
+
|
| 29 |
+
struct s_Solver {
|
| 30 |
+
Pool *pool; /* back pointer to pool */
|
| 31 |
+
Queue job; /* copy of the job we're solving */
|
| 32 |
+
|
| 33 |
+
int (*solution_callback)(struct s_Solver *solv, void *data);
|
| 34 |
+
void *solution_callback_data;
|
| 35 |
+
|
| 36 |
+
int pooljobcnt; /* number of pooljob entries in job queue */
|
| 37 |
+
|
| 38 |
+
#ifdef LIBSOLV_INTERNAL
|
| 39 |
+
Repo *installed; /* copy of pool->installed */
|
| 40 |
+
|
| 41 |
+
/* list of rules, ordered
|
| 42 |
+
* pkg rules first, then features, updates, jobs, learnt
|
| 43 |
+
* see start/end offsets below
|
| 44 |
+
*/
|
| 45 |
+
Rule *rules; /* all rules */
|
| 46 |
+
Id nrules; /* [Offset] index of the last rule */
|
| 47 |
+
Id lastpkgrule; /* last package rule we added */
|
| 48 |
+
|
| 49 |
+
Queue ruleassertions; /* Queue of all assertion rules */
|
| 50 |
+
|
| 51 |
+
/* start/end offset for rule 'areas' */
|
| 52 |
+
|
| 53 |
+
Id pkgrules_end; /* [Offset] dep rules end */
|
| 54 |
+
|
| 55 |
+
Id featurerules; /* feature rules start/end */
|
| 56 |
+
Id featurerules_end;
|
| 57 |
+
|
| 58 |
+
Id updaterules; /* policy rules, e.g. keep packages installed or update. All literals > 0 */
|
| 59 |
+
Id updaterules_end;
|
| 60 |
+
|
| 61 |
+
Id jobrules; /* user rules */
|
| 62 |
+
Id jobrules_end;
|
| 63 |
+
|
| 64 |
+
Id infarchrules; /* inferior arch rules */
|
| 65 |
+
Id infarchrules_end;
|
| 66 |
+
|
| 67 |
+
Id duprules; /* dist upgrade rules */
|
| 68 |
+
Id duprules_end;
|
| 69 |
+
|
| 70 |
+
Id bestrules; /* rules from SOLVER_FORCEBEST */
|
| 71 |
+
Id bestrules_up; /* update rule part starts here*/
|
| 72 |
+
Id bestrules_end;
|
| 73 |
+
Id *bestrules_info; /* < 0 : install rule, > 0 : pkg that needs to be updated */
|
| 74 |
+
|
| 75 |
+
Id yumobsrules; /* rules from yum obsoletes handling */
|
| 76 |
+
Id yumobsrules_end;
|
| 77 |
+
Id *yumobsrules_info; /* the dependency for each rule */
|
| 78 |
+
|
| 79 |
+
Id blackrules; /* rules from blacklisted packages */
|
| 80 |
+
Id blackrules_end;
|
| 81 |
+
|
| 82 |
+
Id strictrepopriorules; /* rules from strict priority repositories */
|
| 83 |
+
Id strictrepopriorules_end;
|
| 84 |
+
|
| 85 |
+
Id choicerules; /* choice rules (always weak) */
|
| 86 |
+
Id choicerules_end;
|
| 87 |
+
Id *choicerules_info; /* the rule we used to generate the choice rule */
|
| 88 |
+
|
| 89 |
+
Id recommendsrules; /* rules from recommends pkg rules with disfavored literals */
|
| 90 |
+
Id recommendsrules_end;
|
| 91 |
+
Id *recommendsrules_info; /* the original pkg rule rule */
|
| 92 |
+
|
| 93 |
+
Id learntrules; /* learnt rules, (end == nrules) */
|
| 94 |
+
|
| 95 |
+
Map noupdate; /* don't try to update these
|
| 96 |
+
installed solvables */
|
| 97 |
+
Map multiversion; /* ignore obsoletes for these (multiinstall) */
|
| 98 |
+
|
| 99 |
+
Map updatemap; /* bring these installed packages to the newest version */
|
| 100 |
+
int updatemap_all; /* bring all packages to the newest version */
|
| 101 |
+
|
| 102 |
+
Map bestupdatemap; /* create best rule for those packages */
|
| 103 |
+
int bestupdatemap_all; /* bring all packages to the newest version */
|
| 104 |
+
|
| 105 |
+
Map fixmap; /* fix these packages */
|
| 106 |
+
int fixmap_all; /* fix all packages */
|
| 107 |
+
|
| 108 |
+
Queue weakruleq; /* index into 'rules' for weak ones */
|
| 109 |
+
Map weakrulemap; /* map rule# to '1' for weak rules, 1..learntrules */
|
| 110 |
+
|
| 111 |
+
Id *watches; /* Array of rule offsets
|
| 112 |
+
* watches has nsolvables*2 entries and is addressed from the middle
|
| 113 |
+
* middle-solvable : decision to conflict, offset point to linked-list of rules
|
| 114 |
+
* middle+solvable : decision to install: offset point to linked-list of rules
|
| 115 |
+
*/
|
| 116 |
+
|
| 117 |
+
Queue ruletojob; /* index into job queue: jobs for which a rule exits */
|
| 118 |
+
|
| 119 |
+
/* our decisions: */
|
| 120 |
+
Queue decisionq; /* >0:install, <0:remove/conflict */
|
| 121 |
+
Queue decisionq_why; /* index of rule, Offset into rules */
|
| 122 |
+
Queue decisionq_reason; /* reason for decision, indexed by level */
|
| 123 |
+
|
| 124 |
+
Id *decisionmap; /* map for all available solvables,
|
| 125 |
+
* = 0: undecided
|
| 126 |
+
* > 0: level of decision when installed,
|
| 127 |
+
* < 0: level of decision when conflict */
|
| 128 |
+
|
| 129 |
+
/* learnt rule history */
|
| 130 |
+
Queue learnt_why;
|
| 131 |
+
Queue learnt_pool;
|
| 132 |
+
|
| 133 |
+
Queue branches;
|
| 134 |
+
int propagate_index; /* index into decisionq for non-propagated decisions */
|
| 135 |
+
|
| 136 |
+
Queue problems; /* list of lists of conflicting rules, < 0 for job rules */
|
| 137 |
+
Queue solutions; /* refined problem storage space */
|
| 138 |
+
|
| 139 |
+
Queue orphaned; /* orphaned packages (to be removed?) */
|
| 140 |
+
|
| 141 |
+
int stats_learned; /* statistic */
|
| 142 |
+
int stats_unsolvable; /* statistic */
|
| 143 |
+
|
| 144 |
+
Map recommendsmap; /* recommended packages from decisionmap */
|
| 145 |
+
Map suggestsmap; /* suggested packages from decisionmap */
|
| 146 |
+
int recommends_index; /* recommendsmap/suggestsmap is created up to this level */
|
| 147 |
+
Queue *recommendscplxq;
|
| 148 |
+
Queue *suggestscplxq;
|
| 149 |
+
|
| 150 |
+
Id *obsoletes; /* obsoletes for each installed solvable */
|
| 151 |
+
Id *obsoletes_data; /* data area for obsoletes */
|
| 152 |
+
Id *specialupdaters; /* updaters for packages with a limited update rule */
|
| 153 |
+
|
| 154 |
+
/*-------------------------------------------------------------------------------------------------------------
|
| 155 |
+
* Solver configuration
|
| 156 |
+
*-------------------------------------------------------------------------------------------------------------*/
|
| 157 |
+
|
| 158 |
+
int allowdowngrade; /* allow downgrading installed solvable */
|
| 159 |
+
int allownamechange; /* allow changing name of installed solvables */
|
| 160 |
+
int allowarchchange; /* allow changing architecture of installed solvables */
|
| 161 |
+
int allowvendorchange; /* allow changing vendor of installed solvables */
|
| 162 |
+
int allowuninstall; /* allow removal of installed solvables */
|
| 163 |
+
int noupdateprovide; /* true: update packages needs not to provide old package */
|
| 164 |
+
int needupdateprovide; /* true: update packages must provide old package */
|
| 165 |
+
int dosplitprovides; /* true: consider legacy split provides */
|
| 166 |
+
int dontinstallrecommended; /* true: do not install recommended packages */
|
| 167 |
+
int addalreadyrecommended; /* true: also install recommended packages that were already recommended by the installed packages */
|
| 168 |
+
int dontshowinstalledrecommended; /* true: do not show recommended packages that are already installed */
|
| 169 |
+
|
| 170 |
+
int noinfarchcheck; /* true: do not forbid inferior architectures */
|
| 171 |
+
int keepexplicitobsoletes; /* true: honor obsoletes during multiinstall */
|
| 172 |
+
int bestobeypolicy; /* true: stay in policy with the best rules */
|
| 173 |
+
int noautotarget; /* true: do not assume targeted for up/dup jobs that contain no installed solvable */
|
| 174 |
+
int focus_installed; /* true: resolve update rules first */
|
| 175 |
+
int focus_best; /* true: resolve job dependencies first */
|
| 176 |
+
int focus_new; /* true: resolve job dependencies first but ignore dependencies met by installed packages */
|
| 177 |
+
int do_yum_obsoletes; /* true: add special yumobs rules */
|
| 178 |
+
int urpmreorder; /* true: do special urpm package reordering */
|
| 179 |
+
int strongrecommends; /* true: create weak rules for recommends */
|
| 180 |
+
int install_also_updates; /* true: do not prune install job rules to installed packages */
|
| 181 |
+
int only_namespace_recommended; /* true: only install packages recommended by namespace */
|
| 182 |
+
int strict_repo_priority; /* true: only use packages from highest precedence/priority */
|
| 183 |
+
|
| 184 |
+
int process_orphans; /* true: do special orphan processing */
|
| 185 |
+
Map dupmap; /* dup to those packages */
|
| 186 |
+
Map dupinvolvedmap; /* packages involved in dup process */
|
| 187 |
+
int dupinvolvedmap_all; /* all packages are involved */
|
| 188 |
+
int dup_allowdowngrade; /* dup mode: allow to downgrade installed solvable */
|
| 189 |
+
int dup_allownamechange; /* dup mode: allow to change name of installed solvable */
|
| 190 |
+
int dup_allowarchchange; /* dup mode: allow to change architecture of installed solvables */
|
| 191 |
+
int dup_allowvendorchange; /* dup mode: allow to change vendor of installed solvables */
|
| 192 |
+
|
| 193 |
+
Map droporphanedmap; /* packages to drop in dup mode */
|
| 194 |
+
int droporphanedmap_all;
|
| 195 |
+
|
| 196 |
+
Map cleandepsmap; /* try to drop these packages as of cleandeps erases */
|
| 197 |
+
|
| 198 |
+
Queue *ruleinfoq; /* tmp space for solver_ruleinfo() */
|
| 199 |
+
|
| 200 |
+
Queue *cleandeps_updatepkgs; /* packages we update in cleandeps mode */
|
| 201 |
+
Queue *cleandeps_mistakes; /* mistakes we made */
|
| 202 |
+
|
| 203 |
+
Queue *update_targets; /* update to specific packages */
|
| 204 |
+
|
| 205 |
+
Queue *installsuppdepq; /* deps from the install namespace provides hack */
|
| 206 |
+
|
| 207 |
+
Queue addedmap_deduceq; /* deduce addedmap from pkg rules */
|
| 208 |
+
Id *instbuddy; /* buddies of installed packages */
|
| 209 |
+
int keep_orphans; /* how to treat orphans */
|
| 210 |
+
int break_orphans; /* how to treat orphans */
|
| 211 |
+
Queue *brokenorphanrules; /* broken rules of orphaned packages */
|
| 212 |
+
|
| 213 |
+
Map allowuninstallmap; /* ok to uninstall those */
|
| 214 |
+
int allowuninstall_all;
|
| 215 |
+
|
| 216 |
+
Map excludefromweakmap; /* remove them from candidates for supplements and recommends */
|
| 217 |
+
|
| 218 |
+
Id *favormap; /* favor job index, > 0: favored, < 0: disfavored */
|
| 219 |
+
int havedisfavored; /* do we have disfavored packages? */
|
| 220 |
+
|
| 221 |
+
int installedpos; /* for resolve_installed */
|
| 222 |
+
int do_extra_reordering; /* reorder for future installed packages */
|
| 223 |
+
|
| 224 |
+
Queue *recommendsruleq; /* pkg rules comming from recommends */
|
| 225 |
+
#endif /* LIBSOLV_INTERNAL */
|
| 226 |
+
};
|
| 227 |
+
|
| 228 |
+
typedef struct s_Solver Solver;
|
| 229 |
+
|
| 230 |
+
/*
|
| 231 |
+
* queue commands
|
| 232 |
+
*/
|
| 233 |
+
|
| 234 |
+
#define SOLVER_SOLVABLE 0x01
|
| 235 |
+
#define SOLVER_SOLVABLE_NAME 0x02
|
| 236 |
+
#define SOLVER_SOLVABLE_PROVIDES 0x03
|
| 237 |
+
#define SOLVER_SOLVABLE_ONE_OF 0x04
|
| 238 |
+
#define SOLVER_SOLVABLE_REPO 0x05
|
| 239 |
+
#define SOLVER_SOLVABLE_ALL 0x06
|
| 240 |
+
|
| 241 |
+
#define SOLVER_SELECTMASK 0xff
|
| 242 |
+
|
| 243 |
+
#define SOLVER_NOOP 0x0000
|
| 244 |
+
#define SOLVER_INSTALL 0x0100
|
| 245 |
+
#define SOLVER_ERASE 0x0200
|
| 246 |
+
#define SOLVER_UPDATE 0x0300
|
| 247 |
+
#define SOLVER_WEAKENDEPS 0x0400
|
| 248 |
+
#define SOLVER_MULTIVERSION 0x0500
|
| 249 |
+
#define SOLVER_LOCK 0x0600
|
| 250 |
+
#define SOLVER_DISTUPGRADE 0x0700
|
| 251 |
+
#define SOLVER_VERIFY 0x0800
|
| 252 |
+
#define SOLVER_DROP_ORPHANED 0x0900
|
| 253 |
+
#define SOLVER_USERINSTALLED 0x0a00
|
| 254 |
+
#define SOLVER_ALLOWUNINSTALL 0x0b00
|
| 255 |
+
#define SOLVER_FAVOR 0x0c00
|
| 256 |
+
#define SOLVER_DISFAVOR 0x0d00
|
| 257 |
+
#define SOLVER_BLACKLIST 0x0e00
|
| 258 |
+
#define SOLVER_EXCLUDEFROMWEAK 0x1000
|
| 259 |
+
|
| 260 |
+
#define SOLVER_JOBMASK 0xff00
|
| 261 |
+
|
| 262 |
+
#define SOLVER_WEAK 0x010000
|
| 263 |
+
#define SOLVER_ESSENTIAL 0x020000
|
| 264 |
+
#define SOLVER_CLEANDEPS 0x040000
|
| 265 |
+
/* ORUPDATE makes SOLVER_INSTALL not prune to installed
|
| 266 |
+
* packages, thus updating installed packages */
|
| 267 |
+
#define SOLVER_ORUPDATE 0x080000
|
| 268 |
+
/* FORCEBEST makes the solver insist on best packages, so
|
| 269 |
+
* you will get problem reported if the best package is
|
| 270 |
+
* not installable. This can be used with INSTALL, UPDATE
|
| 271 |
+
* and DISTUPGRADE */
|
| 272 |
+
#define SOLVER_FORCEBEST 0x100000
|
| 273 |
+
/* TARGETED is used in up/dup jobs to make the solver
|
| 274 |
+
* treat the specified selection as target packages.
|
| 275 |
+
* It is automatically assumed if the selection does not
|
| 276 |
+
* contain an "installed" package unless the
|
| 277 |
+
* NO_AUTOTARGET solver flag is set */
|
| 278 |
+
#define SOLVER_TARGETED 0x200000
|
| 279 |
+
/* This (SOLVER_INSTALL) job was automatically added
|
| 280 |
+
* and thus does not the add to the userinstalled packages */
|
| 281 |
+
#define SOLVER_NOTBYUSER 0x400000
|
| 282 |
+
|
| 283 |
+
#define SOLVER_SETEV 0x01000000
|
| 284 |
+
#define SOLVER_SETEVR 0x02000000
|
| 285 |
+
#define SOLVER_SETARCH 0x04000000
|
| 286 |
+
#define SOLVER_SETVENDOR 0x08000000
|
| 287 |
+
#define SOLVER_SETREPO 0x10000000
|
| 288 |
+
#define SOLVER_NOAUTOSET 0x20000000
|
| 289 |
+
#define SOLVER_SETNAME 0x40000000
|
| 290 |
+
|
| 291 |
+
#define SOLVER_SETMASK 0x7f000000
|
| 292 |
+
|
| 293 |
+
/* legacy */
|
| 294 |
+
#define SOLVER_NOOBSOLETES SOLVER_MULTIVERSION
|
| 295 |
+
|
| 296 |
+
#define SOLVER_REASON_UNRELATED 0
|
| 297 |
+
#define SOLVER_REASON_UNIT_RULE 1
|
| 298 |
+
#define SOLVER_REASON_KEEP_INSTALLED 2
|
| 299 |
+
#define SOLVER_REASON_RESOLVE_JOB 3
|
| 300 |
+
#define SOLVER_REASON_UPDATE_INSTALLED 4
|
| 301 |
+
#define SOLVER_REASON_CLEANDEPS_ERASE 5
|
| 302 |
+
#define SOLVER_REASON_RESOLVE 6
|
| 303 |
+
#define SOLVER_REASON_WEAKDEP 7
|
| 304 |
+
#define SOLVER_REASON_RESOLVE_ORPHAN 8
|
| 305 |
+
|
| 306 |
+
#define SOLVER_REASON_RECOMMENDED 16 /* deprecated */
|
| 307 |
+
#define SOLVER_REASON_SUPPLEMENTED 17 /* deprecated */
|
| 308 |
+
|
| 309 |
+
#define SOLVER_REASON_UNSOLVABLE 18
|
| 310 |
+
#define SOLVER_REASON_PREMISE 19
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
#define SOLVER_FLAG_ALLOW_DOWNGRADE 1
|
| 314 |
+
#define SOLVER_FLAG_ALLOW_ARCHCHANGE 2
|
| 315 |
+
#define SOLVER_FLAG_ALLOW_VENDORCHANGE 3
|
| 316 |
+
#define SOLVER_FLAG_ALLOW_UNINSTALL 4
|
| 317 |
+
#define SOLVER_FLAG_NO_UPDATEPROVIDE 5
|
| 318 |
+
#define SOLVER_FLAG_SPLITPROVIDES 6
|
| 319 |
+
#define SOLVER_FLAG_IGNORE_RECOMMENDED 7
|
| 320 |
+
#define SOLVER_FLAG_ADD_ALREADY_RECOMMENDED 8
|
| 321 |
+
#define SOLVER_FLAG_NO_INFARCHCHECK 9
|
| 322 |
+
#define SOLVER_FLAG_ALLOW_NAMECHANGE 10
|
| 323 |
+
#define SOLVER_FLAG_KEEP_EXPLICIT_OBSOLETES 11
|
| 324 |
+
#define SOLVER_FLAG_BEST_OBEY_POLICY 12
|
| 325 |
+
#define SOLVER_FLAG_NO_AUTOTARGET 13
|
| 326 |
+
#define SOLVER_FLAG_DUP_ALLOW_DOWNGRADE 14
|
| 327 |
+
#define SOLVER_FLAG_DUP_ALLOW_ARCHCHANGE 15
|
| 328 |
+
#define SOLVER_FLAG_DUP_ALLOW_VENDORCHANGE 16
|
| 329 |
+
#define SOLVER_FLAG_DUP_ALLOW_NAMECHANGE 17
|
| 330 |
+
#define SOLVER_FLAG_KEEP_ORPHANS 18
|
| 331 |
+
#define SOLVER_FLAG_BREAK_ORPHANS 19
|
| 332 |
+
#define SOLVER_FLAG_FOCUS_INSTALLED 20
|
| 333 |
+
#define SOLVER_FLAG_YUM_OBSOLETES 21
|
| 334 |
+
#define SOLVER_FLAG_NEED_UPDATEPROVIDE 22
|
| 335 |
+
#define SOLVER_FLAG_URPM_REORDER 23
|
| 336 |
+
#define SOLVER_FLAG_FOCUS_BEST 24
|
| 337 |
+
#define SOLVER_FLAG_STRONG_RECOMMENDS 25
|
| 338 |
+
#define SOLVER_FLAG_INSTALL_ALSO_UPDATES 26
|
| 339 |
+
#define SOLVER_FLAG_ONLY_NAMESPACE_RECOMMENDED 27
|
| 340 |
+
#define SOLVER_FLAG_STRICT_REPO_PRIORITY 28
|
| 341 |
+
#define SOLVER_FLAG_FOCUS_NEW 29
|
| 342 |
+
|
| 343 |
+
#define GET_USERINSTALLED_NAMES (1 << 0) /* package names instead of ids */
|
| 344 |
+
#define GET_USERINSTALLED_INVERTED (1 << 1) /* autoinstalled */
|
| 345 |
+
#define GET_USERINSTALLED_NAMEARCH (1 << 2) /* package/arch tuples instead of ids */
|
| 346 |
+
|
| 347 |
+
#define SOLVER_ALTERNATIVE_TYPE_RULE 1
|
| 348 |
+
#define SOLVER_ALTERNATIVE_TYPE_RECOMMENDS 2
|
| 349 |
+
#define SOLVER_ALTERNATIVE_TYPE_SUGGESTS 3
|
| 350 |
+
|
| 351 |
+
/* solver_get_decisionlist / solver_get_learnt flags */
|
| 352 |
+
#define SOLVER_DECISIONLIST_SOLVABLE (1 << 1)
|
| 353 |
+
#define SOLVER_DECISIONLIST_PROBLEM (1 << 2)
|
| 354 |
+
#define SOLVER_DECISIONLIST_LEARNTRULE (1 << 3)
|
| 355 |
+
#define SOLVER_DECISIONLIST_WITHINFO (1 << 8)
|
| 356 |
+
#define SOLVER_DECISIONLIST_SORTED (1 << 9)
|
| 357 |
+
#define SOLVER_DECISIONLIST_MERGEDINFO (1 << 10)
|
| 358 |
+
|
| 359 |
+
#define SOLVER_DECISIONLIST_TYPEMASK (0xff)
|
| 360 |
+
|
| 361 |
+
extern Solver *solver_create(Pool *pool);
|
| 362 |
+
extern void solver_free(Solver *solv);
|
| 363 |
+
extern int solver_solve(Solver *solv, Queue *job);
|
| 364 |
+
extern Transaction *solver_create_transaction(Solver *solv);
|
| 365 |
+
extern int solver_set_flag(Solver *solv, int flag, int value);
|
| 366 |
+
extern int solver_get_flag(Solver *solv, int flag);
|
| 367 |
+
|
| 368 |
+
extern int solver_get_decisionlevel(Solver *solv, Id p);
|
| 369 |
+
extern void solver_get_decisionqueue(Solver *solv, Queue *decisionq);
|
| 370 |
+
extern int solver_get_lastdecisionblocklevel(Solver *solv);
|
| 371 |
+
extern void solver_get_decisionblock(Solver *solv, int level, Queue *decisionq);
|
| 372 |
+
|
| 373 |
+
extern void solver_get_orphaned(Solver *solv, Queue *orphanedq);
|
| 374 |
+
extern void solver_get_recommendations(Solver *solv, Queue *recommendationsq, Queue *suggestionsq, int noselected);
|
| 375 |
+
extern void solver_get_unneeded(Solver *solv, Queue *unneededq, int filtered);
|
| 376 |
+
extern void solver_get_userinstalled(Solver *solv, Queue *q, int flags);
|
| 377 |
+
extern void pool_add_userinstalled_jobs(Pool *pool, Queue *q, Queue *job, int flags);
|
| 378 |
+
extern void solver_get_cleandeps(Solver *solv, Queue *cleandepsq);
|
| 379 |
+
|
| 380 |
+
extern int solver_describe_decision(Solver *solv, Id p, Id *infop);
|
| 381 |
+
|
| 382 |
+
extern void solver_get_decisionlist(Solver *solv, Id p, int flags, Queue *decisionlistq);
|
| 383 |
+
extern void solver_get_decisionlist_multiple(Solver *solv, Queue *pq, int flags, Queue *decisionlistq);
|
| 384 |
+
extern void solver_get_learnt(Solver *solv, Id id, int flags, Queue *q);
|
| 385 |
+
extern void solver_decisionlist_solvables(Solver *solv, Queue *decisionlistq, int pos, Queue *q);
|
| 386 |
+
extern int solver_decisionlist_merged(Solver *solv, Queue *decisionlistq, int pos);
|
| 387 |
+
|
| 388 |
+
extern int solver_alternatives_count(Solver *solv);
|
| 389 |
+
extern int solver_get_alternative(Solver *solv, Id alternative, Id *idp, Id *fromp, Id *chosenp, Queue *choices, int *levelp);
|
| 390 |
+
extern int solver_alternativeinfo(Solver *solv, int type, Id id, Id from, Id *fromp, Id *top, Id *depp);
|
| 391 |
+
|
| 392 |
+
extern void solver_calculate_multiversionmap(Pool *pool, Queue *job, Map *multiversionmap);
|
| 393 |
+
extern void solver_calculate_noobsmap(Pool *pool, Queue *job, Map *multiversionmap); /* obsolete */
|
| 394 |
+
extern void solver_create_state_maps(Solver *solv, Map *installedmap, Map *conflictsmap);
|
| 395 |
+
|
| 396 |
+
extern void solver_calc_duchanges(Solver *solv, DUChanges *mps, int nmps);
|
| 397 |
+
extern int solver_calc_installsizechange(Solver *solv);
|
| 398 |
+
|
| 399 |
+
extern void pool_job2solvables(Pool *pool, Queue *pkgs, Id how, Id what);
|
| 400 |
+
extern int pool_isemptyupdatejob(Pool *pool, Id how, Id what);
|
| 401 |
+
|
| 402 |
+
/* decisioninfo merging */
|
| 403 |
+
extern int solver_calc_decisioninfo_bits(Solver *solv, Id decision, int type, Id from, Id to, Id dep);
|
| 404 |
+
extern int solver_merge_decisioninfo_bits(Solver *solv, int state1, int type1, Id from1, Id to1, Id dep1, int state2, int type2, Id from2, Id to2, Id dep2);
|
| 405 |
+
|
| 406 |
+
extern const char *solver_select2str(Pool *pool, Id select, Id what);
|
| 407 |
+
extern const char *pool_job2str(Pool *pool, Id how, Id what, Id flagmask);
|
| 408 |
+
extern const char *solver_alternative2str(Solver *solv, int type, Id id, Id from);
|
| 409 |
+
extern const char *solver_reason2str(Solver *solv, int reason);
|
| 410 |
+
extern const char *solver_decisionreason2str(Solver *solv, Id decision, int reason, Id info);
|
| 411 |
+
extern const char *solver_decisioninfo2str(Solver *solv, int bits, int type, Id from, Id to, Id dep);
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
/* deprecated, use solver_allweakdepinfos/solver_weakdepinfo instead */
|
| 415 |
+
extern void solver_describe_weakdep_decision(Solver *solv, Id p, Queue *whyq);
|
| 416 |
+
|
| 417 |
+
/* iterate over all literals of a rule */
|
| 418 |
+
#define FOR_RULELITERALS(l, pp, r) \
|
| 419 |
+
for (pp = r->d < 0 ? -r->d - 1 : r->d, \
|
| 420 |
+
l = r->p; l; l = (pp <= 0 ? (pp-- ? 0 : r->w2) : \
|
| 421 |
+
pool->whatprovidesdata[pp++]))
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
|
| 425 |
+
|
| 426 |
+
/* XXX: this currently doesn't work correctly for SOLVER_SOLVABLE_REPO and
|
| 427 |
+
SOLVER_SOLVABLE_ALL */
|
| 428 |
+
|
| 429 |
+
/* iterate over all packages selected by a job */
|
| 430 |
+
#define FOR_JOB_SELECT(p, pp, select, what) \
|
| 431 |
+
if (select == SOLVER_SOLVABLE_REPO || select == SOLVER_SOLVABLE_ALL) \
|
| 432 |
+
p = pp = 0; \
|
| 433 |
+
else for (pp = (select == SOLVER_SOLVABLE ? 0 : \
|
| 434 |
+
select == SOLVER_SOLVABLE_ONE_OF ? what : \
|
| 435 |
+
pool_whatprovides(pool, what)), \
|
| 436 |
+
p = (select == SOLVER_SOLVABLE ? what : pool->whatprovidesdata[pp++]); \
|
| 437 |
+
p ; p = pool->whatprovidesdata[pp++]) \
|
| 438 |
+
if (select == SOLVER_SOLVABLE_NAME && \
|
| 439 |
+
pool_match_nevr(pool, pool->solvables + p, what) == 0) \
|
| 440 |
+
continue; \
|
| 441 |
+
else
|
| 442 |
+
|
| 443 |
+
/* weird suse stuff */
|
| 444 |
+
extern void solver_trivial_installable(Solver *solv, Queue *pkgs, Queue *res);
|
| 445 |
+
|
| 446 |
+
#ifdef __cplusplus
|
| 447 |
+
}
|
| 448 |
+
#endif
|
| 449 |
+
|
| 450 |
+
#endif /* LIBSOLV_SOLVER_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solverdebug.h
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2008, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* solverdebug.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_SOLVERDEBUG_H
|
| 14 |
+
#define LIBSOLV_SOLVERDEBUG_H
|
| 15 |
+
|
| 16 |
+
#include "pooltypes.h"
|
| 17 |
+
#include "pool.h"
|
| 18 |
+
#include "solver.h"
|
| 19 |
+
|
| 20 |
+
#ifdef __cplusplus
|
| 21 |
+
extern "C" {
|
| 22 |
+
#endif
|
| 23 |
+
|
| 24 |
+
extern void solver_printruleelement(Solver *solv, int type, Rule *r, Id v);
|
| 25 |
+
extern void solver_printrule(Solver *solv, int type, Rule *r);
|
| 26 |
+
extern void solver_printruleclass(Solver *solv, int type, Rule *r);
|
| 27 |
+
extern void solver_printproblem(Solver *solv, Id v);
|
| 28 |
+
extern void solver_printwatches(Solver *solv, int type);
|
| 29 |
+
extern void solver_printdecisionq(Solver *solv, int type);
|
| 30 |
+
extern void solver_printdecisions(Solver *solv);
|
| 31 |
+
extern void solver_printproblemruleinfo(Solver *solv, Id rule);
|
| 32 |
+
extern void solver_printprobleminfo(Solver *solv, Id problem);
|
| 33 |
+
extern void solver_printcompleteprobleminfo(Solver *solv, Id problem);
|
| 34 |
+
extern void solver_printsolution(Solver *solv, Id problem, Id solution);
|
| 35 |
+
extern void solver_printallsolutions(Solver *solv);
|
| 36 |
+
|
| 37 |
+
extern void transaction_print(Transaction *trans);
|
| 38 |
+
|
| 39 |
+
/* weird suse stuff */
|
| 40 |
+
extern void solver_printtrivial(Solver *solv);
|
| 41 |
+
|
| 42 |
+
#ifdef __cplusplus
|
| 43 |
+
}
|
| 44 |
+
#endif
|
| 45 |
+
|
| 46 |
+
#endif /* LIBSOLV_SOLVERDEBUG_H */
|
| 47 |
+
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solvversion.h
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2016, SUSE LLC
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* solvversion.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_SOLVVERSION_H
|
| 14 |
+
#define LIBSOLV_SOLVVERSION_H
|
| 15 |
+
|
| 16 |
+
#define LIBSOLV_VERSION_STRING "0.7.30"
|
| 17 |
+
#define LIBSOLV_VERSION_MAJOR 0
|
| 18 |
+
#define LIBSOLV_VERSION_MINOR 7
|
| 19 |
+
#define LIBSOLV_VERSION_PATCH 30
|
| 20 |
+
#define LIBSOLV_VERSION (LIBSOLV_VERSION_MAJOR * 10000 + LIBSOLV_VERSION_MINOR * 100 + LIBSOLV_VERSION_PATCH)
|
| 21 |
+
|
| 22 |
+
extern const char solv_version[];
|
| 23 |
+
extern int solv_version_major;
|
| 24 |
+
extern int solv_version_minor;
|
| 25 |
+
extern int solv_version_patch;
|
| 26 |
+
extern const char solv_toolversion[];
|
| 27 |
+
|
| 28 |
+
/* #undef LIBSOLV_FEATURE_LINKED_PKGS */
|
| 29 |
+
/* #undef LIBSOLV_FEATURE_COMPLEX_DEPS */
|
| 30 |
+
#define LIBSOLV_FEATURE_MULTI_SEMANTICS
|
| 31 |
+
#define LIBSOLV_FEATURE_CONDA
|
| 32 |
+
|
| 33 |
+
#define LIBSOLVEXT_FEATURE_PCRE2
|
| 34 |
+
/* #undef LIBSOLVEXT_FEATURE_RPMPKG */
|
| 35 |
+
/* #undef LIBSOLVEXT_FEATURE_RPMDB */
|
| 36 |
+
/* #undef LIBSOLVEXT_FEATURE_RPMDB_BYRPMHEADER */
|
| 37 |
+
/* #undef LIBSOLVEXT_FEATURE_PUBKEY */
|
| 38 |
+
/* #undef LIBSOLVEXT_FEATURE_RPMMD */
|
| 39 |
+
/* #undef LIBSOLVEXT_FEATURE_SUSEREPO */
|
| 40 |
+
/* #undef LIBSOLVEXT_FEATURE_COMPS */
|
| 41 |
+
/* #undef LIBSOLVEXT_FEATURE_HELIXREPO */
|
| 42 |
+
/* #undef LIBSOLVEXT_FEATURE_DEBIAN */
|
| 43 |
+
/* #undef LIBSOLVEXT_FEATURE_ARCHREPO */
|
| 44 |
+
/* #undef LIBSOLVEXT_FEATURE_HAIKU */
|
| 45 |
+
/* #undef LIBSOLVEXT_FEATURE_APPDATA */
|
| 46 |
+
#define LIBSOLVEXT_FEATURE_ZLIB_COMPRESSION
|
| 47 |
+
/* #undef LIBSOLVEXT_FEATURE_LZMA_COMPRESSION */
|
| 48 |
+
/* #undef LIBSOLVEXT_FEATURE_BZIP2_COMPRESSION */
|
| 49 |
+
/* #undef LIBSOLVEXT_FEATURE_ZSTD_COMPRESSION */
|
| 50 |
+
/* #undef LIBSOLVEXT_FEATURE_ZCHUNK_COMPRESSION */
|
| 51 |
+
|
| 52 |
+
/* see tools/common_write.c for toolversion history */
|
| 53 |
+
#define LIBSOLV_TOOLVERSION "1.2"
|
| 54 |
+
|
| 55 |
+
#endif
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/strpool.h
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
#ifndef LIBSOLV_STRINGPOOL_H
|
| 8 |
+
#define LIBSOLV_STRINGPOOL_H
|
| 9 |
+
|
| 10 |
+
#include "pooltypes.h"
|
| 11 |
+
#include "hash.h"
|
| 12 |
+
|
| 13 |
+
#ifdef __cplusplus
|
| 14 |
+
extern "C" {
|
| 15 |
+
#endif
|
| 16 |
+
|
| 17 |
+
#define STRID_NULL 0
|
| 18 |
+
#define STRID_EMPTY 1
|
| 19 |
+
|
| 20 |
+
struct s_Stringpool
|
| 21 |
+
{
|
| 22 |
+
Offset *strings; /* table of offsets into stringspace, indexed by Id: Id -> Offset */
|
| 23 |
+
int nstrings; /* number of ids in strings table */
|
| 24 |
+
char *stringspace; /* space for all unique strings: stringspace + Offset = string */
|
| 25 |
+
Offset sstrings; /* size of used stringspace */
|
| 26 |
+
|
| 27 |
+
Hashtable stringhashtbl; /* hash table: (string ->) Hash -> Id */
|
| 28 |
+
Hashval stringhashmask; /* modulo value for hash table (size of table - 1) */
|
| 29 |
+
};
|
| 30 |
+
|
| 31 |
+
void stringpool_init(Stringpool *ss, const char *strs[]);
|
| 32 |
+
void stringpool_init_empty(Stringpool *ss);
|
| 33 |
+
void stringpool_clone(Stringpool *ss, Stringpool *from);
|
| 34 |
+
void stringpool_free(Stringpool *ss);
|
| 35 |
+
void stringpool_freehash(Stringpool *ss);
|
| 36 |
+
void stringpool_resize_hash(Stringpool *ss, int numnew);
|
| 37 |
+
|
| 38 |
+
Id stringpool_str2id(Stringpool *ss, const char *str, int create);
|
| 39 |
+
Id stringpool_strn2id(Stringpool *ss, const char *str, unsigned int len, int create);
|
| 40 |
+
|
| 41 |
+
void stringpool_shrink(Stringpool *ss);
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
static inline const char *
|
| 45 |
+
stringpool_id2str(Stringpool *ss, Id id)
|
| 46 |
+
{
|
| 47 |
+
return ss->stringspace + ss->strings[id];
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
#ifdef __cplusplus
|
| 51 |
+
}
|
| 52 |
+
#endif
|
| 53 |
+
|
| 54 |
+
#endif
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/testcase.h
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2012, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
#include "pool.h"
|
| 9 |
+
#include "repo.h"
|
| 10 |
+
#include "solver.h"
|
| 11 |
+
|
| 12 |
+
#define TESTCASE_RESULT_TRANSACTION (1 << 0)
|
| 13 |
+
#define TESTCASE_RESULT_PROBLEMS (1 << 1)
|
| 14 |
+
#define TESTCASE_RESULT_ORPHANED (1 << 2)
|
| 15 |
+
#define TESTCASE_RESULT_RECOMMENDED (1 << 3)
|
| 16 |
+
#define TESTCASE_RESULT_UNNEEDED (1 << 4)
|
| 17 |
+
#define TESTCASE_RESULT_ALTERNATIVES (1 << 5)
|
| 18 |
+
#define TESTCASE_RESULT_RULES (1 << 6)
|
| 19 |
+
#define TESTCASE_RESULT_GENID (1 << 7)
|
| 20 |
+
#define TESTCASE_RESULT_REASON (1 << 8)
|
| 21 |
+
#define TESTCASE_RESULT_CLEANDEPS (1 << 9)
|
| 22 |
+
#define TESTCASE_RESULT_JOBS (1 << 10)
|
| 23 |
+
#define TESTCASE_RESULT_USERINSTALLED (1 << 11)
|
| 24 |
+
#define TESTCASE_RESULT_ORDER (1 << 12)
|
| 25 |
+
#define TESTCASE_RESULT_ORDEREDGES (1 << 13)
|
| 26 |
+
#define TESTCASE_RESULT_PROOF (1 << 14)
|
| 27 |
+
|
| 28 |
+
/* reuse solver hack, testsolv use only */
|
| 29 |
+
#define TESTCASE_RESULT_REUSE_SOLVER (1 << 31)
|
| 30 |
+
|
| 31 |
+
extern Id testcase_str2dep(Pool *pool, const char *s);
|
| 32 |
+
extern const char *testcase_dep2str(Pool *pool, Id id);
|
| 33 |
+
extern const char *testcase_repoid2str(Pool *pool, Id repoid);
|
| 34 |
+
extern const char *testcase_solvid2str(Pool *pool, Id p);
|
| 35 |
+
extern Repo *testcase_str2repo(Pool *pool, const char *str);
|
| 36 |
+
extern Id testcase_str2solvid(Pool *pool, const char *str);
|
| 37 |
+
extern const char *testcase_job2str(Pool *pool, Id how, Id what);
|
| 38 |
+
extern Id testcase_str2job(Pool *pool, const char *str, Id *whatp);
|
| 39 |
+
extern int testcase_write_testtags(Repo *repo, FILE *fp);
|
| 40 |
+
extern int testcase_add_testtags(Repo *repo, FILE *fp, int flags);
|
| 41 |
+
extern const char *testcase_getsolverflags(Solver *solv);
|
| 42 |
+
extern int testcase_setsolverflags(Solver *solv, const char *str);
|
| 43 |
+
extern void testcase_resetsolverflags(Solver *solv);
|
| 44 |
+
extern char *testcase_solverresult(Solver *solv, int flags);
|
| 45 |
+
extern int testcase_write(Solver *solv, const char *dir, int resultflags, const char *testcasename, const char *resultname);
|
| 46 |
+
extern Solver *testcase_read(Pool *pool, FILE *fp, const char *testcase, Queue *job, char **resultp, int *resultflagsp);
|
| 47 |
+
extern char *testcase_resultdiff(const char *result1, const char *result2);
|
| 48 |
+
extern const char **testcase_mangle_repo_names(Pool *pool);
|
| 49 |
+
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/tools_util.h
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* util.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_TOOLS_UTIL_H
|
| 14 |
+
#define LIBSOLV_TOOLS_UTIL_H
|
| 15 |
+
|
| 16 |
+
static inline Id
|
| 17 |
+
makeevr(Pool *pool, const char *s)
|
| 18 |
+
{
|
| 19 |
+
if (!strncmp(s, "0:", 2) && s[2])
|
| 20 |
+
s += 2;
|
| 21 |
+
return pool_str2id(pool, s, 1);
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
/**
|
| 25 |
+
* split a string
|
| 26 |
+
*/
|
| 27 |
+
#ifndef DISABLE_SPLIT
|
| 28 |
+
static int
|
| 29 |
+
split(char *l, char **sp, int m)
|
| 30 |
+
{
|
| 31 |
+
int i;
|
| 32 |
+
for (i = 0; i < m;)
|
| 33 |
+
{
|
| 34 |
+
while (*l == ' ')
|
| 35 |
+
l++;
|
| 36 |
+
if (!*l)
|
| 37 |
+
break;
|
| 38 |
+
sp[i++] = l;
|
| 39 |
+
while (*l && *l != ' ')
|
| 40 |
+
l++;
|
| 41 |
+
if (!*l)
|
| 42 |
+
break;
|
| 43 |
+
*l++ = 0;
|
| 44 |
+
}
|
| 45 |
+
return i;
|
| 46 |
+
}
|
| 47 |
+
#endif
|
| 48 |
+
|
| 49 |
+
#ifndef DISABLE_JOIN2
|
| 50 |
+
|
| 51 |
+
struct joindata {
|
| 52 |
+
char *tmp;
|
| 53 |
+
int tmpl;
|
| 54 |
+
};
|
| 55 |
+
|
| 56 |
+
/* this join does not depend on parsedata */
|
| 57 |
+
static char *
|
| 58 |
+
join2(struct joindata *jd, const char *s1, const char *s2, const char *s3)
|
| 59 |
+
{
|
| 60 |
+
int l = 1;
|
| 61 |
+
char *p;
|
| 62 |
+
|
| 63 |
+
if (s1)
|
| 64 |
+
l += strlen(s1);
|
| 65 |
+
if (s2)
|
| 66 |
+
l += strlen(s2);
|
| 67 |
+
if (s3)
|
| 68 |
+
l += strlen(s3);
|
| 69 |
+
if (l > jd->tmpl)
|
| 70 |
+
{
|
| 71 |
+
jd->tmpl = l + 256;
|
| 72 |
+
jd->tmp = solv_realloc(jd->tmp, jd->tmpl);
|
| 73 |
+
}
|
| 74 |
+
p = jd->tmp;
|
| 75 |
+
if (s1)
|
| 76 |
+
{
|
| 77 |
+
strcpy(p, s1);
|
| 78 |
+
p += strlen(s1);
|
| 79 |
+
}
|
| 80 |
+
if (s2)
|
| 81 |
+
{
|
| 82 |
+
strcpy(p, s2);
|
| 83 |
+
p += strlen(s2);
|
| 84 |
+
}
|
| 85 |
+
if (s3)
|
| 86 |
+
{
|
| 87 |
+
strcpy(p, s3);
|
| 88 |
+
p += strlen(s3);
|
| 89 |
+
}
|
| 90 |
+
*p = 0;
|
| 91 |
+
return jd->tmp;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
static inline char *
|
| 95 |
+
join_dup(struct joindata *jd, const char *s)
|
| 96 |
+
{
|
| 97 |
+
return s ? join2(jd, s, 0, 0) : 0;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
static inline void
|
| 101 |
+
join_freemem(struct joindata *jd)
|
| 102 |
+
{
|
| 103 |
+
if (jd->tmp)
|
| 104 |
+
free(jd->tmp);
|
| 105 |
+
jd->tmp = 0;
|
| 106 |
+
jd->tmpl = 0;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
#endif
|
| 110 |
+
|
| 111 |
+
#endif /* LIBSOLV_TOOLS_UTIL_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/transaction.h
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007-2009, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* transaction.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_TRANSACTION_H
|
| 14 |
+
#define LIBSOLV_TRANSACTION_H
|
| 15 |
+
|
| 16 |
+
#include "pooltypes.h"
|
| 17 |
+
#include "queue.h"
|
| 18 |
+
#include "bitmap.h"
|
| 19 |
+
|
| 20 |
+
#ifdef __cplusplus
|
| 21 |
+
extern "C" {
|
| 22 |
+
#endif
|
| 23 |
+
|
| 24 |
+
struct s_DUChanges;
|
| 25 |
+
struct s_TransactionOrderdata;
|
| 26 |
+
|
| 27 |
+
typedef struct s_Transaction {
|
| 28 |
+
Pool *pool; /* back pointer to pool */
|
| 29 |
+
|
| 30 |
+
Queue steps; /* the transaction steps */
|
| 31 |
+
|
| 32 |
+
#ifdef LIBSOLV_INTERNAL
|
| 33 |
+
Queue transaction_info;
|
| 34 |
+
Id *transaction_installed;
|
| 35 |
+
Map transactsmap;
|
| 36 |
+
Map multiversionmap;
|
| 37 |
+
|
| 38 |
+
struct s_TransactionOrderdata *orderdata;
|
| 39 |
+
#endif
|
| 40 |
+
|
| 41 |
+
} Transaction;
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
/* step types */
|
| 45 |
+
#define SOLVER_TRANSACTION_IGNORE 0x00
|
| 46 |
+
|
| 47 |
+
#define SOLVER_TRANSACTION_ERASE 0x10
|
| 48 |
+
#define SOLVER_TRANSACTION_REINSTALLED 0x11
|
| 49 |
+
#define SOLVER_TRANSACTION_DOWNGRADED 0x12
|
| 50 |
+
#define SOLVER_TRANSACTION_CHANGED 0x13
|
| 51 |
+
#define SOLVER_TRANSACTION_UPGRADED 0x14
|
| 52 |
+
#define SOLVER_TRANSACTION_OBSOLETED 0x15
|
| 53 |
+
|
| 54 |
+
#define SOLVER_TRANSACTION_INSTALL 0x20
|
| 55 |
+
#define SOLVER_TRANSACTION_REINSTALL 0x21
|
| 56 |
+
#define SOLVER_TRANSACTION_DOWNGRADE 0x22
|
| 57 |
+
#define SOLVER_TRANSACTION_CHANGE 0x23
|
| 58 |
+
#define SOLVER_TRANSACTION_UPGRADE 0x24
|
| 59 |
+
#define SOLVER_TRANSACTION_OBSOLETES 0x25
|
| 60 |
+
|
| 61 |
+
#define SOLVER_TRANSACTION_MULTIINSTALL 0x30
|
| 62 |
+
#define SOLVER_TRANSACTION_MULTIREINSTALL 0x31
|
| 63 |
+
|
| 64 |
+
#define SOLVER_TRANSACTION_MAXTYPE 0x3f
|
| 65 |
+
|
| 66 |
+
/* modes */
|
| 67 |
+
#define SOLVER_TRANSACTION_SHOW_ACTIVE (1 << 0)
|
| 68 |
+
#define SOLVER_TRANSACTION_SHOW_ALL (1 << 1)
|
| 69 |
+
#define SOLVER_TRANSACTION_SHOW_OBSOLETES (1 << 2)
|
| 70 |
+
#define SOLVER_TRANSACTION_SHOW_MULTIINSTALL (1 << 3)
|
| 71 |
+
#define SOLVER_TRANSACTION_CHANGE_IS_REINSTALL (1 << 4)
|
| 72 |
+
#define SOLVER_TRANSACTION_MERGE_VENDORCHANGES (1 << 5)
|
| 73 |
+
#define SOLVER_TRANSACTION_MERGE_ARCHCHANGES (1 << 6)
|
| 74 |
+
|
| 75 |
+
#define SOLVER_TRANSACTION_RPM_ONLY (1 << 7)
|
| 76 |
+
|
| 77 |
+
#define SOLVER_TRANSACTION_KEEP_PSEUDO (1 << 8)
|
| 78 |
+
|
| 79 |
+
#define SOLVER_TRANSACTION_OBSOLETE_IS_UPGRADE (1 << 9)
|
| 80 |
+
|
| 81 |
+
/* extra classifications */
|
| 82 |
+
#define SOLVER_TRANSACTION_ARCHCHANGE 0x100
|
| 83 |
+
#define SOLVER_TRANSACTION_VENDORCHANGE 0x101
|
| 84 |
+
|
| 85 |
+
/* order flags */
|
| 86 |
+
#define SOLVER_TRANSACTION_KEEP_ORDERDATA (1 << 0)
|
| 87 |
+
#define SOLVER_TRANSACTION_KEEP_ORDERCYCLES (1 << 1)
|
| 88 |
+
#define SOLVER_TRANSACTION_KEEP_ORDEREDGES (1 << 2)
|
| 89 |
+
|
| 90 |
+
/* cycle severities */
|
| 91 |
+
#define SOLVER_ORDERCYCLE_HARMLESS 0
|
| 92 |
+
#define SOLVER_ORDERCYCLE_NORMAL 1
|
| 93 |
+
#define SOLVER_ORDERCYCLE_CRITICAL 2
|
| 94 |
+
|
| 95 |
+
extern Transaction *transaction_create(Pool *pool);
|
| 96 |
+
extern Transaction *transaction_create_decisionq(Pool *pool, Queue *decisionq, Map *multiversionmap);
|
| 97 |
+
extern Transaction *transaction_create_clone(Transaction *srctrans);
|
| 98 |
+
extern void transaction_free(Transaction *trans);
|
| 99 |
+
|
| 100 |
+
/* if p is installed, returns with pkg(s) obsolete p */
|
| 101 |
+
/* if p is not installed, returns with pkg(s) we obsolete */
|
| 102 |
+
extern Id transaction_obs_pkg(Transaction *trans, Id p);
|
| 103 |
+
extern void transaction_all_obs_pkgs(Transaction *trans, Id p, Queue *pkgs);
|
| 104 |
+
|
| 105 |
+
/* return step type of a transaction element */
|
| 106 |
+
extern Id transaction_type(Transaction *trans, Id p, int mode);
|
| 107 |
+
|
| 108 |
+
/* return sorted collection of all step types */
|
| 109 |
+
/* classify_pkgs can be used to return all packages of a type */
|
| 110 |
+
extern void transaction_classify(Transaction *trans, int mode, Queue *classes);
|
| 111 |
+
extern void transaction_classify_pkgs(Transaction *trans, int mode, Id type, Id from, Id to, Queue *pkgs);
|
| 112 |
+
|
| 113 |
+
/* return all packages that will be installed after the transaction is run*/
|
| 114 |
+
/* The new packages are put at the head of the queue, the number of new
|
| 115 |
+
packages is returned */
|
| 116 |
+
extern int transaction_installedresult(Transaction *trans, Queue *installedq);
|
| 117 |
+
|
| 118 |
+
long long transaction_calc_installsizechange(Transaction *trans);
|
| 119 |
+
void transaction_calc_duchanges(Transaction *trans, struct s_DUChanges *mps, int nmps);
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
/* order a transaction */
|
| 124 |
+
extern void transaction_order(Transaction *trans, int flags);
|
| 125 |
+
|
| 126 |
+
/* roll your own order funcion:
|
| 127 |
+
* add pkgs free for installation to queue choices after chosen was
|
| 128 |
+
* installed. start with chosen = 0
|
| 129 |
+
* needs an ordered transaction created with SOLVER_TRANSACTION_KEEP_ORDERDATA */
|
| 130 |
+
extern int transaction_order_add_choices(Transaction *trans, Id chosen, Queue *choices);
|
| 131 |
+
/* add obsoleted packages into transaction steps */
|
| 132 |
+
extern void transaction_add_obsoleted(Transaction *trans);
|
| 133 |
+
|
| 134 |
+
/* debug function, report problems found in the order */
|
| 135 |
+
extern void transaction_check_order(Transaction *trans);
|
| 136 |
+
|
| 137 |
+
/* order cycle introspection */
|
| 138 |
+
extern void transaction_order_get_cycleids(Transaction *trans, Queue *q, int minseverity);
|
| 139 |
+
extern int transaction_order_get_cycle(Transaction *trans, Id cid, Queue *q);
|
| 140 |
+
extern void transaction_order_get_edges(Transaction *trans, Id p, Queue *q, int unbroken);
|
| 141 |
+
|
| 142 |
+
extern void transaction_free_orderdata(Transaction *trans);
|
| 143 |
+
extern void transaction_clone_orderdata(Transaction *trans, Transaction *srctrans);
|
| 144 |
+
|
| 145 |
+
#ifdef __cplusplus
|
| 146 |
+
}
|
| 147 |
+
#endif
|
| 148 |
+
|
| 149 |
+
#endif
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/util.h
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright (c) 2007, Novell Inc.
|
| 3 |
+
*
|
| 4 |
+
* This program is licensed under the BSD license, read LICENSE.BSD
|
| 5 |
+
* for further information
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
/*
|
| 9 |
+
* util.h
|
| 10 |
+
*
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
#ifndef LIBSOLV_UTIL_H
|
| 14 |
+
#define LIBSOLV_UTIL_H
|
| 15 |
+
|
| 16 |
+
#include <stddef.h>
|
| 17 |
+
#include <string.h>
|
| 18 |
+
|
| 19 |
+
#ifdef __cplusplus
|
| 20 |
+
extern "C" {
|
| 21 |
+
#endif
|
| 22 |
+
|
| 23 |
+
/**
|
| 24 |
+
* malloc
|
| 25 |
+
* exits with error message on error
|
| 26 |
+
*/
|
| 27 |
+
extern void *solv_malloc(size_t);
|
| 28 |
+
extern void *solv_malloc2(size_t, size_t);
|
| 29 |
+
extern void *solv_calloc(size_t, size_t);
|
| 30 |
+
extern void *solv_realloc(void *, size_t);
|
| 31 |
+
extern void *solv_realloc2(void *, size_t, size_t);
|
| 32 |
+
extern void *solv_extend_realloc(void *, size_t, size_t, size_t);
|
| 33 |
+
extern void *solv_free(void *);
|
| 34 |
+
extern char *solv_strdup(const char *);
|
| 35 |
+
extern void solv_oom(size_t, size_t);
|
| 36 |
+
extern unsigned int solv_timems(unsigned int subtract);
|
| 37 |
+
extern int solv_setcloexec(int fd, int state);
|
| 38 |
+
extern void solv_sort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *, void *), void *compard);
|
| 39 |
+
extern char *solv_dupjoin(const char *str1, const char *str2, const char *str3);
|
| 40 |
+
extern char *solv_dupappend(const char *str1, const char *str2, const char *str3);
|
| 41 |
+
extern int solv_hex2bin(const char **strp, unsigned char *buf, int bufl);
|
| 42 |
+
extern char *solv_bin2hex(const unsigned char *buf, int l, char *str);
|
| 43 |
+
extern size_t solv_validutf8(const char *buf);
|
| 44 |
+
extern char *solv_latin1toutf8(const char *buf);
|
| 45 |
+
extern char *solv_replacebadutf8(const char *buf, int replchar);
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
static inline void *solv_extend(void *buf, size_t len, size_t nmemb, size_t size, size_t block)
|
| 49 |
+
{
|
| 50 |
+
if (nmemb == 1)
|
| 51 |
+
{
|
| 52 |
+
if ((len & block) == 0)
|
| 53 |
+
buf = solv_extend_realloc(buf, len + 1, size, block);
|
| 54 |
+
}
|
| 55 |
+
else
|
| 56 |
+
{
|
| 57 |
+
if (((len - 1) | block) != ((len + nmemb - 1) | block))
|
| 58 |
+
buf = solv_extend_realloc(buf, len + nmemb, size, block);
|
| 59 |
+
}
|
| 60 |
+
return buf;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
/**
|
| 64 |
+
* extend an array by reallocation and zero's the new section
|
| 65 |
+
* buf old pointer
|
| 66 |
+
* len current size
|
| 67 |
+
* nmbemb number of elements to add
|
| 68 |
+
* size size of each element
|
| 69 |
+
* block block size used to allocate the elements
|
| 70 |
+
*/
|
| 71 |
+
static inline void *solv_zextend(void *buf, size_t len, size_t nmemb, size_t size, size_t block)
|
| 72 |
+
{
|
| 73 |
+
buf = solv_extend(buf, len, nmemb, size, block);
|
| 74 |
+
memset((char *)buf + len * size, 0, nmemb * size);
|
| 75 |
+
return buf;
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
static inline void *solv_extend_resize(void *buf, size_t len, size_t size, size_t block)
|
| 79 |
+
{
|
| 80 |
+
if (len)
|
| 81 |
+
buf = solv_extend_realloc(buf, len, size, block);
|
| 82 |
+
return buf;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
static inline void *solv_calloc_block(size_t len, size_t size, size_t block)
|
| 86 |
+
{
|
| 87 |
+
void *buf;
|
| 88 |
+
if (!len)
|
| 89 |
+
return 0;
|
| 90 |
+
buf = solv_extend_realloc((void *)0, len, size, block);
|
| 91 |
+
memset(buf, 0, ((len + block) & ~block) * size);
|
| 92 |
+
return buf;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
static inline void *solv_memdup(const void *buf, size_t len)
|
| 96 |
+
{
|
| 97 |
+
void *newbuf;
|
| 98 |
+
if (!buf)
|
| 99 |
+
return 0;
|
| 100 |
+
newbuf = solv_malloc(len);
|
| 101 |
+
if (len)
|
| 102 |
+
memcpy(newbuf, buf, len);
|
| 103 |
+
return newbuf;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
static inline void *solv_memdup2(const void *buf, size_t num, size_t len)
|
| 107 |
+
{
|
| 108 |
+
void *newbuf;
|
| 109 |
+
if (!buf)
|
| 110 |
+
return 0;
|
| 111 |
+
newbuf = solv_malloc2(num, len);
|
| 112 |
+
if (num)
|
| 113 |
+
memcpy(newbuf, buf, num * len);
|
| 114 |
+
return newbuf;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
#ifdef __cplusplus
|
| 118 |
+
}
|
| 119 |
+
#endif
|
| 120 |
+
|
| 121 |
+
#endif /* LIBSOLV_UTIL_H */
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/about.json
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"channels": [
|
| 3 |
+
"https://repo.anaconda.com/pkgs/main",
|
| 4 |
+
"https://repo.anaconda.com/pkgs/r",
|
| 5 |
+
"https://repo.anaconda.com/pkgs/r"
|
| 6 |
+
],
|
| 7 |
+
"conda_build_version": "25.1.2",
|
| 8 |
+
"conda_version": "25.1.1",
|
| 9 |
+
"description": "libsolv, a free package dependency solver using a satisfiability algorithm.\n",
|
| 10 |
+
"dev_url": "https://github.com/openSUSE/libsolv",
|
| 11 |
+
"doc_url": "https://github.com/openSUSE/libsolv/tree/master/doc",
|
| 12 |
+
"env_vars": {
|
| 13 |
+
"CIO_TEST": "<not set>"
|
| 14 |
+
},
|
| 15 |
+
"extra": {
|
| 16 |
+
"copy_test_source_files": true,
|
| 17 |
+
"final": true,
|
| 18 |
+
"parent_recipe": {
|
| 19 |
+
"name": "libsolv-suite",
|
| 20 |
+
"path": "/home/task_176035639968744/libsolv-feedstock/recipe",
|
| 21 |
+
"version": "0.7.30"
|
| 22 |
+
},
|
| 23 |
+
"recipe-maintainers": [
|
| 24 |
+
"SylvainCorlay",
|
| 25 |
+
"JohanMabille",
|
| 26 |
+
"wolfv",
|
| 27 |
+
"davidbrochart",
|
| 28 |
+
"adriendelsalle"
|
| 29 |
+
]
|
| 30 |
+
},
|
| 31 |
+
"home": "https://github.com/openSUSE/libsolv",
|
| 32 |
+
"identifiers": [],
|
| 33 |
+
"keywords": [],
|
| 34 |
+
"license": "BSD-3-Clause",
|
| 35 |
+
"license_family": "BSD",
|
| 36 |
+
"license_file": "LICENSE.BSD",
|
| 37 |
+
"root_pkgs": [
|
| 38 |
+
"_libgcc_mutex 0.1 main",
|
| 39 |
+
"ca-certificates 2025.9.9 h06a4308_0",
|
| 40 |
+
"ld_impl_linux-64 2.40 h12ee557_0",
|
| 41 |
+
"libstdcxx-ng 11.2.0 h1234567_1",
|
| 42 |
+
"nlohmann_json 3.11.2 h6a678d5_0",
|
| 43 |
+
"pybind11-abi 5 hd3eb1b0_0",
|
| 44 |
+
"tzdata 2025a h04d1e81_0",
|
| 45 |
+
"libgomp 11.2.0 h1234567_1",
|
| 46 |
+
"_openmp_mutex 5.1 1_gnu",
|
| 47 |
+
"libgcc-ng 11.2.0 h1234567_1",
|
| 48 |
+
"bzip2 1.0.8 h5eee18b_6",
|
| 49 |
+
"c-ares 1.19.1 h5eee18b_0",
|
| 50 |
+
"cpp-expected 1.1.0 hdb19cb5_0",
|
| 51 |
+
"expat 2.6.4 h6a678d5_0",
|
| 52 |
+
"fmt 9.1.0 hdb19cb5_1",
|
| 53 |
+
"icu 73.1 h6a678d5_0",
|
| 54 |
+
"libev 4.33 h7f8727e_1",
|
| 55 |
+
"libffi 3.4.4 h6a678d5_1",
|
| 56 |
+
"libuuid 1.41.5 h5eee18b_0",
|
| 57 |
+
"lz4-c 1.9.4 h6a678d5_1",
|
| 58 |
+
"ncurses 6.4 h6a678d5_0",
|
| 59 |
+
"liblief 0.12.3 h6a678d5_0",
|
| 60 |
+
"reproc 14.2.4 h6a678d5_2",
|
| 61 |
+
"simdjson 3.10.1 hdb19cb5_0",
|
| 62 |
+
"xz 5.4.6 h5eee18b_1",
|
| 63 |
+
"yaml-cpp 0.8.0 h6a678d5_1",
|
| 64 |
+
"zlib 1.2.13 h5eee18b_1",
|
| 65 |
+
"libedit 3.1.20230828 h5eee18b_0",
|
| 66 |
+
"libnghttp2 1.57.0 h2d74bed_0",
|
| 67 |
+
"libssh2 1.11.1 h251f7ec_0",
|
| 68 |
+
"libxml2 2.13.5 hfdd30dd_0",
|
| 69 |
+
"pcre2 10.42 hebb0a14_1",
|
| 70 |
+
"readline 8.2 h5eee18b_0",
|
| 71 |
+
"reproc-cpp 14.2.4 h6a678d5_2",
|
| 72 |
+
"spdlog 1.11.0 hdb19cb5_0",
|
| 73 |
+
"tk 8.6.14 h39e8969_0",
|
| 74 |
+
"zstd 1.5.6 hc292b87_0",
|
| 75 |
+
"krb5 1.20.1 h143b758_1",
|
| 76 |
+
"libarchive 3.7.7 hfab0078_0",
|
| 77 |
+
"libsolv 0.7.30 he621ea3_1",
|
| 78 |
+
"sqlite 3.45.3 h5eee18b_0",
|
| 79 |
+
"libcurl 8.11.1 hc9e6f67_0",
|
| 80 |
+
"python 3.12.9 h5148396_0",
|
| 81 |
+
"libmamba 2.0.5 haf1ee3a_1",
|
| 82 |
+
"menuinst 2.2.0 py312h06a4308_1",
|
| 83 |
+
"anaconda-anon-usage 0.5.0 py312hfc0e8ea_100",
|
| 84 |
+
"annotated-types 0.6.0 py312h06a4308_0",
|
| 85 |
+
"archspec 0.2.3 pyhd3eb1b0_0",
|
| 86 |
+
"boltons 24.1.0 py312h06a4308_0",
|
| 87 |
+
"brotli-python 1.0.9 py312h6a678d5_9",
|
| 88 |
+
"charset-normalizer 3.3.2 pyhd3eb1b0_0",
|
| 89 |
+
"distro 1.9.0 py312h06a4308_0",
|
| 90 |
+
"frozendict 2.4.2 py312h06a4308_0",
|
| 91 |
+
"idna 3.7 py312h06a4308_0",
|
| 92 |
+
"jsonpointer 2.1 pyhd3eb1b0_0",
|
| 93 |
+
"libmambapy 2.0.5 py312hdb19cb5_1",
|
| 94 |
+
"mdurl 0.1.0 py312h06a4308_0",
|
| 95 |
+
"packaging 24.2 py312h06a4308_0",
|
| 96 |
+
"platformdirs 3.10.0 py312h06a4308_0",
|
| 97 |
+
"pluggy 1.5.0 py312h06a4308_0",
|
| 98 |
+
"pycosat 0.6.6 py312h5eee18b_2",
|
| 99 |
+
"pycparser 2.21 pyhd3eb1b0_0",
|
| 100 |
+
"pygments 2.15.1 py312h06a4308_1",
|
| 101 |
+
"pysocks 1.7.1 py312h06a4308_0",
|
| 102 |
+
"ruamel.yaml.clib 0.2.8 py312h5eee18b_0",
|
| 103 |
+
"setuptools 75.8.0 py312h06a4308_0",
|
| 104 |
+
"tqdm 4.67.1 py312he106c6f_0",
|
| 105 |
+
"truststore 0.10.0 py312h06a4308_0",
|
| 106 |
+
"typing_extensions 4.12.2 py312h06a4308_0",
|
| 107 |
+
"wheel 0.45.1 py312h06a4308_0",
|
| 108 |
+
"cffi 1.17.1 py312h1fdaa30_1",
|
| 109 |
+
"jsonpatch 1.33 py312h06a4308_1",
|
| 110 |
+
"markdown-it-py 2.2.0 py312h06a4308_1",
|
| 111 |
+
"pip 25.0 py312h06a4308_0",
|
| 112 |
+
"ruamel.yaml 0.18.6 py312h5eee18b_0",
|
| 113 |
+
"typing-extensions 4.12.2 py312h06a4308_0",
|
| 114 |
+
"urllib3 2.3.0 py312h06a4308_0",
|
| 115 |
+
"cryptography 43.0.3 py312h7825ff9_1",
|
| 116 |
+
"pydantic-core 2.27.1 py312h4aa5aa6_0",
|
| 117 |
+
"requests 2.32.3 py312h06a4308_1",
|
| 118 |
+
"rich 13.9.4 py312h06a4308_0",
|
| 119 |
+
"zstandard 0.23.0 py312h2c38b39_1",
|
| 120 |
+
"conda-content-trust 0.2.0 py312h06a4308_1",
|
| 121 |
+
"conda-package-streaming 0.11.0 py312h06a4308_0",
|
| 122 |
+
"pydantic 2.10.3 py312h06a4308_0",
|
| 123 |
+
"conda-package-handling 2.4.0 py312h06a4308_0",
|
| 124 |
+
"conda 25.1.1 py312h06a4308_0",
|
| 125 |
+
"conda-anaconda-tos 0.1.2 py312h06a4308_0",
|
| 126 |
+
"conda-libmamba-solver 25.1.1 pyhd3eb1b0_0",
|
| 127 |
+
"libsodium 1.0.20 heac8642_0",
|
| 128 |
+
"openssl 3.0.18 hd6dcaed_0",
|
| 129 |
+
"patch 2.8 hb25bd0a_0",
|
| 130 |
+
"patchelf 0.17.2 h6a678d5_0",
|
| 131 |
+
"yaml 0.2.5 h7b6447c_0",
|
| 132 |
+
"argcomplete 3.6.2 py312h06a4308_0",
|
| 133 |
+
"attrs 24.3.0 py312h06a4308_0",
|
| 134 |
+
"certifi 2025.8.3 py312h06a4308_0",
|
| 135 |
+
"chardet 5.2.0 py312h06a4308_0",
|
| 136 |
+
"click 8.2.1 py312h06a4308_0",
|
| 137 |
+
"filelock 3.17.0 py312h06a4308_0",
|
| 138 |
+
"jmespath 1.0.1 py312h06a4308_0",
|
| 139 |
+
"markupsafe 3.0.2 py312h5eee18b_0",
|
| 140 |
+
"more-itertools 10.3.0 py312h06a4308_0",
|
| 141 |
+
"pkginfo 1.12.0 py312h06a4308_0",
|
| 142 |
+
"psutil 7.0.0 py312hee96239_0",
|
| 143 |
+
"py-lief 0.12.3 py312h6a678d5_0",
|
| 144 |
+
"python-libarchive-c 5.1 pyhd3eb1b0_0",
|
| 145 |
+
"pytz 2025.2 py312h06a4308_0",
|
| 146 |
+
"pyyaml 6.0.2 py312h5eee18b_0",
|
| 147 |
+
"rpds-py 0.22.3 py312h4aa5aa6_0",
|
| 148 |
+
"six 1.17.0 py312h06a4308_0",
|
| 149 |
+
"soupsieve 2.5 py312h06a4308_0",
|
| 150 |
+
"tomlkit 0.13.2 py312h06a4308_0",
|
| 151 |
+
"xmltodict 0.14.2 py312h06a4308_0",
|
| 152 |
+
"jinja2 3.1.6 py312h06a4308_0",
|
| 153 |
+
"python-dateutil 2.9.0post0 py312h06a4308_2",
|
| 154 |
+
"referencing 0.30.2 py312h06a4308_0",
|
| 155 |
+
"yq 3.4.3 py312h06a4308_0",
|
| 156 |
+
"beautifulsoup4 4.13.5 py312h06a4308_0",
|
| 157 |
+
"botocore 1.37.10 py312h06a4308_0",
|
| 158 |
+
"jsonschema-specifications 2023.7.1 py312h06a4308_0",
|
| 159 |
+
"pynacl 1.5.0 py312h2630517_2",
|
| 160 |
+
"jsonschema 4.25.0 py312h06a4308_0",
|
| 161 |
+
"s3transfer 0.11.2 py312h06a4308_0",
|
| 162 |
+
"boto3 1.37.10 py312h06a4308_0",
|
| 163 |
+
"conda-anaconda-telemetry 0.3.0 pyhd3eb1b0_1",
|
| 164 |
+
"conda-index 0.5.0 py312h06a4308_0",
|
| 165 |
+
"conda-build 25.1.2 py312h06a4308_0"
|
| 166 |
+
],
|
| 167 |
+
"summary": "Library for solving packages and reading repositories",
|
| 168 |
+
"tags": []
|
| 169 |
+
}
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/files
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
bin/conda2solv
|
| 2 |
+
bin/dumpsolv
|
| 3 |
+
bin/installcheck
|
| 4 |
+
bin/mergesolv
|
| 5 |
+
bin/repo2solv
|
| 6 |
+
bin/testsolv
|
| 7 |
+
include/solv/bitmap.h
|
| 8 |
+
include/solv/chksum.h
|
| 9 |
+
include/solv/conda.h
|
| 10 |
+
include/solv/dataiterator.h
|
| 11 |
+
include/solv/dirpool.h
|
| 12 |
+
include/solv/evr.h
|
| 13 |
+
include/solv/hash.h
|
| 14 |
+
include/solv/knownid.h
|
| 15 |
+
include/solv/policy.h
|
| 16 |
+
include/solv/pool.h
|
| 17 |
+
include/solv/poolarch.h
|
| 18 |
+
include/solv/poolid.h
|
| 19 |
+
include/solv/pooltypes.h
|
| 20 |
+
include/solv/poolvendor.h
|
| 21 |
+
include/solv/problems.h
|
| 22 |
+
include/solv/queue.h
|
| 23 |
+
include/solv/repo.h
|
| 24 |
+
include/solv/repo_conda.h
|
| 25 |
+
include/solv/repo_solv.h
|
| 26 |
+
include/solv/repo_write.h
|
| 27 |
+
include/solv/repodata.h
|
| 28 |
+
include/solv/rules.h
|
| 29 |
+
include/solv/selection.h
|
| 30 |
+
include/solv/solv_xfopen.h
|
| 31 |
+
include/solv/solvable.h
|
| 32 |
+
include/solv/solver.h
|
| 33 |
+
include/solv/solverdebug.h
|
| 34 |
+
include/solv/solvversion.h
|
| 35 |
+
include/solv/strpool.h
|
| 36 |
+
include/solv/testcase.h
|
| 37 |
+
include/solv/tools_util.h
|
| 38 |
+
include/solv/transaction.h
|
| 39 |
+
include/solv/util.h
|
| 40 |
+
lib/libsolv.so
|
| 41 |
+
lib/libsolv.so.1
|
| 42 |
+
lib/libsolvext.so
|
| 43 |
+
lib/libsolvext.so.1
|
| 44 |
+
lib/pkgconfig/libsolv.pc
|
| 45 |
+
lib/pkgconfig/libsolvext.pc
|
| 46 |
+
share/cmake/Modules/FindLibSolv.cmake
|
| 47 |
+
share/man/man1/dumpsolv.1
|
| 48 |
+
share/man/man1/installcheck.1
|
| 49 |
+
share/man/man1/mergesolv.1
|
| 50 |
+
share/man/man1/repo2solv.1
|
| 51 |
+
share/man/man1/solv.1
|
| 52 |
+
share/man/man1/testsolv.1
|
| 53 |
+
share/man/man3/libsolv-bindings.3
|
| 54 |
+
share/man/man3/libsolv-constantids.3
|
| 55 |
+
share/man/man3/libsolv-history.3
|
| 56 |
+
share/man/man3/libsolv-pool.3
|
| 57 |
+
share/man/man3/libsolv.3
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/git
ADDED
|
File without changes
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/has_prefix
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/home/task_176035639968744/conda-bld/libsolv-suite_1760357031527/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla text lib/pkgconfig/libsolv.pc
|
| 2 |
+
/home/task_176035639968744/conda-bld/libsolv-suite_1760357031527/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla text lib/pkgconfig/libsolvext.pc
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/hash_input.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"c_stdlib_version": "2.28",
|
| 3 |
+
"c_compiler_version": "11.2.0",
|
| 4 |
+
"target_platform": "linux-64",
|
| 5 |
+
"c_stdlib": "sysroot",
|
| 6 |
+
"c_compiler": "gcc",
|
| 7 |
+
"channel_targets": "defaults",
|
| 8 |
+
"cxx_compiler_version": "11.2.0",
|
| 9 |
+
"zlib": "1.2",
|
| 10 |
+
"cxx_compiler": "gxx",
|
| 11 |
+
"pcre2": "10.46",
|
| 12 |
+
"__glibc": "__glibc >=2.28,<3.0.a0"
|
| 13 |
+
}
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/index.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"arch": "x86_64",
|
| 3 |
+
"build": "h6f1ccf3_2",
|
| 4 |
+
"build_number": 2,
|
| 5 |
+
"depends": [
|
| 6 |
+
"__glibc >=2.28,<3.0.a0",
|
| 7 |
+
"libgcc-ng >=11.2.0",
|
| 8 |
+
"libstdcxx-ng >=11.2.0",
|
| 9 |
+
"pcre2 >=10.46,<10.47.0a0",
|
| 10 |
+
"zlib >=1.2.13,<2.0a0"
|
| 11 |
+
],
|
| 12 |
+
"license": "BSD-3-Clause",
|
| 13 |
+
"license_family": "BSD",
|
| 14 |
+
"name": "libsolv",
|
| 15 |
+
"platform": "linux",
|
| 16 |
+
"subdir": "linux-64",
|
| 17 |
+
"timestamp": 1760357067289,
|
| 18 |
+
"version": "0.7.30"
|
| 19 |
+
}
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/licenses/LICENSE.BSD
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Redistribution and use in source and binary forms, with or without
|
| 3 |
+
modification, are permitted provided that the following conditions
|
| 4 |
+
are met:
|
| 5 |
+
|
| 6 |
+
1. Redistributions of source code must retain the above copyright
|
| 7 |
+
notice, this list of conditions and the following disclaimer.
|
| 8 |
+
|
| 9 |
+
2. Redistributions in binary form must reproduce the above copyright
|
| 10 |
+
notice, this list of conditions and the following disclaimer in the
|
| 11 |
+
documentation and/or other materials provided with the distribution.
|
| 12 |
+
|
| 13 |
+
3. Neither the name of Novell nor the names of its contributors may
|
| 14 |
+
be used to endorse or promote products derived from this software
|
| 15 |
+
without specific prior written permission.
|
| 16 |
+
|
| 17 |
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
| 18 |
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 19 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 20 |
+
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
|
| 21 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 22 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 23 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
| 24 |
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
| 25 |
+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
| 26 |
+
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/paths.json
ADDED
|
@@ -0,0 +1,351 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"paths": [
|
| 3 |
+
{
|
| 4 |
+
"_path": "bin/conda2solv",
|
| 5 |
+
"path_type": "hardlink",
|
| 6 |
+
"sha256": "0f0ed06ed7da494d6fb4835a4ffc29f1ea325cf8fa527e031522ad2929ee67f8",
|
| 7 |
+
"size_in_bytes": 22776
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"_path": "bin/dumpsolv",
|
| 11 |
+
"path_type": "hardlink",
|
| 12 |
+
"sha256": "e8a509f79ff62676892ac72d801f7647167e8582a16f53426ef1137656f4982e",
|
| 13 |
+
"size_in_bytes": 27448
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"_path": "bin/installcheck",
|
| 17 |
+
"path_type": "hardlink",
|
| 18 |
+
"sha256": "8b1636f147f9c48a36781ed933873d1ceb127f062936985b103953d824b0e27e",
|
| 19 |
+
"size_in_bytes": 27200
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"_path": "bin/mergesolv",
|
| 23 |
+
"path_type": "hardlink",
|
| 24 |
+
"sha256": "bc1607ec14a28e4a8f6f9ac21946ff6adbcadd04994ca989f13811379e630879",
|
| 25 |
+
"size_in_bytes": 22952
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"_path": "bin/repo2solv",
|
| 29 |
+
"path_type": "hardlink",
|
| 30 |
+
"sha256": "7f4811c74a349f7c5ddd5776384a3bb50c7925da9eeac973f3bf745e92d7f395",
|
| 31 |
+
"size_in_bytes": 23568
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"_path": "bin/testsolv",
|
| 35 |
+
"path_type": "hardlink",
|
| 36 |
+
"sha256": "75bc9820851e7a6cd8276fad8b6ca635d11df8ff1f0a9c9f78b4e62b82a47e58",
|
| 37 |
+
"size_in_bytes": 28824
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"_path": "include/solv/bitmap.h",
|
| 41 |
+
"path_type": "hardlink",
|
| 42 |
+
"sha256": "b3fa6d991875e1a2b2800c854697c722580ab6802c9d3840e302382b0fce919e",
|
| 43 |
+
"size_in_bytes": 1555
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"_path": "include/solv/chksum.h",
|
| 47 |
+
"path_type": "hardlink",
|
| 48 |
+
"sha256": "55602f07eb12c868ef3a3b0a580db3255738432a6edd0a47b5c0637a3c8eedd3",
|
| 49 |
+
"size_in_bytes": 1190
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"_path": "include/solv/conda.h",
|
| 53 |
+
"path_type": "hardlink",
|
| 54 |
+
"sha256": "cc65c66cc0f7ca57e878ef5edb52612e02bd08f99daa18d4b5ab9cd5e08acee1",
|
| 55 |
+
"size_in_bytes": 638
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"_path": "include/solv/dataiterator.h",
|
| 59 |
+
"path_type": "hardlink",
|
| 60 |
+
"sha256": "b8c0204b81519f93de8fe9d5720d187ab14d8b216b0ef738fbec5077af4f4b40",
|
| 61 |
+
"size_in_bytes": 5045
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"_path": "include/solv/dirpool.h",
|
| 65 |
+
"path_type": "hardlink",
|
| 66 |
+
"sha256": "ca20c07c0b5e6ccf6b4380463de9f1420251906eed00746c96b95ccaf04dcf8a",
|
| 67 |
+
"size_in_bytes": 1712
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"_path": "include/solv/evr.h",
|
| 71 |
+
"path_type": "hardlink",
|
| 72 |
+
"sha256": "629da0ed74bdc88c0d766843a15f1c21502dc1b62842f3e2067b26fed889bc99",
|
| 73 |
+
"size_in_bytes": 815
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"_path": "include/solv/hash.h",
|
| 77 |
+
"path_type": "hardlink",
|
| 78 |
+
"sha256": "3741802a625392b70befc4c26c4cf314354104dbcda9ef7ae38eabe06512b451",
|
| 79 |
+
"size_in_bytes": 1604
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"_path": "include/solv/knownid.h",
|
| 83 |
+
"path_type": "hardlink",
|
| 84 |
+
"sha256": "6027ad1996cf04e59b6fd68c83233b3d223c1a5ff3a4eeff8c35f0babaaf343a",
|
| 85 |
+
"size_in_bytes": 14014
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"_path": "include/solv/policy.h",
|
| 89 |
+
"path_type": "hardlink",
|
| 90 |
+
"sha256": "d945789cd68d4bafc46fd16564ba6d28affd785ef70bb8d643731501b75cb2a9",
|
| 91 |
+
"size_in_bytes": 1740
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"_path": "include/solv/pool.h",
|
| 95 |
+
"path_type": "hardlink",
|
| 96 |
+
"sha256": "4bdb7fb1c45de706328fafeaff1daee8fbdb2888ff37a95a914d499c4ed07f0c",
|
| 97 |
+
"size_in_bytes": 13918
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"_path": "include/solv/poolarch.h",
|
| 101 |
+
"path_type": "hardlink",
|
| 102 |
+
"sha256": "9849f634990237148e37b5c6daa8b82421bbfe0bc9de383e562133b8c26bd751",
|
| 103 |
+
"size_in_bytes": 1242
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"_path": "include/solv/poolid.h",
|
| 107 |
+
"path_type": "hardlink",
|
| 108 |
+
"sha256": "c7c111d28e711e67cf93a756b886207418c09e7ddd6b475c28c9a122a93c97f9",
|
| 109 |
+
"size_in_bytes": 1188
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"_path": "include/solv/pooltypes.h",
|
| 113 |
+
"path_type": "hardlink",
|
| 114 |
+
"sha256": "d20150c0daee45b66ea5a9d7fa383816ef97abd4b219b764b298e1fe901da27d",
|
| 115 |
+
"size_in_bytes": 1240
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"_path": "include/solv/poolvendor.h",
|
| 119 |
+
"path_type": "hardlink",
|
| 120 |
+
"sha256": "041cc351042f17c1d94bec538492f06e877d21720eb1da3f570a987849d35658",
|
| 121 |
+
"size_in_bytes": 499
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"_path": "include/solv/problems.h",
|
| 125 |
+
"path_type": "hardlink",
|
| 126 |
+
"sha256": "4097418558bccc9021609528e4b4f2d715774ddcfdea345e3bd9a3cb625cd4ed",
|
| 127 |
+
"size_in_bytes": 2718
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"_path": "include/solv/queue.h",
|
| 131 |
+
"path_type": "hardlink",
|
| 132 |
+
"sha256": "3b9d3e41ae15c3643a5c45de1498b9c719eba36cb5377ef94d2d211fdc9ddca6",
|
| 133 |
+
"size_in_bytes": 2469
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"_path": "include/solv/repo.h",
|
| 137 |
+
"path_type": "hardlink",
|
| 138 |
+
"sha256": "fe9ba801129a4ac67fe8dc83846a46c355f865d0c4cff932b3d7aa8877f0346d",
|
| 139 |
+
"size_in_bytes": 8026
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"_path": "include/solv/repo_conda.h",
|
| 143 |
+
"path_type": "hardlink",
|
| 144 |
+
"sha256": "15ff4614add5dbeebbf318f35b75f3ff091459136e1c354fc91dcfd3c153c9a2",
|
| 145 |
+
"size_in_bytes": 491
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"_path": "include/solv/repo_solv.h",
|
| 149 |
+
"path_type": "hardlink",
|
| 150 |
+
"sha256": "f80c429f1b3f1fbc6d0c7a8068d7746dbad1c327c6290e1a03f1234bc18a4a46",
|
| 151 |
+
"size_in_bytes": 557
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"_path": "include/solv/repo_write.h",
|
| 155 |
+
"path_type": "hardlink",
|
| 156 |
+
"sha256": "c6c5cf3ee8c8cb9361fd3e76d52da2f9117c61c70a8c3b9535656749620d0bc7",
|
| 157 |
+
"size_in_bytes": 1973
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"_path": "include/solv/repodata.h",
|
| 161 |
+
"path_type": "hardlink",
|
| 162 |
+
"sha256": "40ab4c97e19d04c8c8c2fe45a9bbabf40ede8df1fa3be932ff00fc840d69b6ac",
|
| 163 |
+
"size_in_bytes": 12155
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"_path": "include/solv/rules.h",
|
| 167 |
+
"path_type": "hardlink",
|
| 168 |
+
"sha256": "69704bfc9aeafcd1cd9f56ff1a8c6184d90b53fa0505067a211a44c337f3a50e",
|
| 169 |
+
"size_in_bytes": 6650
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"_path": "include/solv/selection.h",
|
| 173 |
+
"path_type": "hardlink",
|
| 174 |
+
"sha256": "2aab66c59706f46bc1575c32d0163f838abf71b895248eb1eb3f862d4ccc4a88",
|
| 175 |
+
"size_in_bytes": 2612
|
| 176 |
+
},
|
| 177 |
+
{
|
| 178 |
+
"_path": "include/solv/solv_xfopen.h",
|
| 179 |
+
"path_type": "hardlink",
|
| 180 |
+
"sha256": "60c1fb8f156934540598405645269f6c92969b98c121276cda12a9696a5e4b8b",
|
| 181 |
+
"size_in_bytes": 553
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"_path": "include/solv/solvable.h",
|
| 185 |
+
"path_type": "hardlink",
|
| 186 |
+
"sha256": "1cf167edad462ca37aa0f93ea5f7cbbd265ca0cd66a846e2ecdf474eab0d5f5c",
|
| 187 |
+
"size_in_bytes": 3964
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"_path": "include/solv/solver.h",
|
| 191 |
+
"path_type": "hardlink",
|
| 192 |
+
"sha256": "1cfe3b80ed02fae25c99f96672a6b205bd7ba28dedf8cb91b895525d0919b1a8",
|
| 193 |
+
"size_in_bytes": 18230
|
| 194 |
+
},
|
| 195 |
+
{
|
| 196 |
+
"_path": "include/solv/solverdebug.h",
|
| 197 |
+
"path_type": "hardlink",
|
| 198 |
+
"sha256": "5637cc7d15d39a5b17321c766fb52946d9c4fe9c0201f5ffec314272bd67e56b",
|
| 199 |
+
"size_in_bytes": 1269
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"_path": "include/solv/solvversion.h",
|
| 203 |
+
"path_type": "hardlink",
|
| 204 |
+
"sha256": "7232d66fd4b35eccbab993197c063666b391f9ef1e4dfe16fc696e3c6c2e732f",
|
| 205 |
+
"size_in_bytes": 1653
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"_path": "include/solv/strpool.h",
|
| 209 |
+
"path_type": "hardlink",
|
| 210 |
+
"sha256": "7ff36f90d02702132563f4b56dbe1742ca5b638da28d9b1c80a138ed162d4e4a",
|
| 211 |
+
"size_in_bytes": 1477
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"_path": "include/solv/testcase.h",
|
| 215 |
+
"path_type": "hardlink",
|
| 216 |
+
"sha256": "54440605f766cb6ca33fa89ab33cc04a1ae6648e6ce7452c307f2ad31b802111",
|
| 217 |
+
"size_in_bytes": 2165
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"_path": "include/solv/tools_util.h",
|
| 221 |
+
"path_type": "hardlink",
|
| 222 |
+
"sha256": "40f18645bd32235a42d0247a088c17428172f423473931e58638dc16e51e0d79",
|
| 223 |
+
"size_in_bytes": 1642
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"_path": "include/solv/transaction.h",
|
| 227 |
+
"path_type": "hardlink",
|
| 228 |
+
"sha256": "ae79cb88058e429202a47a65f37c851187f7cb97c353043267aae853dfdf4721",
|
| 229 |
+
"size_in_bytes": 4826
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"_path": "include/solv/util.h",
|
| 233 |
+
"path_type": "hardlink",
|
| 234 |
+
"sha256": "7d6a53f5dd6e00ee916dc5cd7fce0477f8dc8b4bde71081c713df56341f14617",
|
| 235 |
+
"size_in_bytes": 3141
|
| 236 |
+
},
|
| 237 |
+
{
|
| 238 |
+
"_path": "lib/libsolv.so",
|
| 239 |
+
"path_type": "softlink",
|
| 240 |
+
"sha256": "29a82dc332f12e8abb2ec70570894886589cd0dc6df2c231575f54684829de99",
|
| 241 |
+
"size_in_bytes": 706280
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"_path": "lib/libsolv.so.1",
|
| 245 |
+
"path_type": "hardlink",
|
| 246 |
+
"sha256": "29a82dc332f12e8abb2ec70570894886589cd0dc6df2c231575f54684829de99",
|
| 247 |
+
"size_in_bytes": 706280
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"_path": "lib/libsolvext.so",
|
| 251 |
+
"path_type": "softlink",
|
| 252 |
+
"sha256": "6b89c5730bd9e12ef50fb354e0ff719256f402f0df88a3f0c9cc2fea523ea978",
|
| 253 |
+
"size_in_bytes": 112720
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"_path": "lib/libsolvext.so.1",
|
| 257 |
+
"path_type": "hardlink",
|
| 258 |
+
"sha256": "6b89c5730bd9e12ef50fb354e0ff719256f402f0df88a3f0c9cc2fea523ea978",
|
| 259 |
+
"size_in_bytes": 112720
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"_path": "lib/pkgconfig/libsolv.pc",
|
| 263 |
+
"file_mode": "text",
|
| 264 |
+
"path_type": "hardlink",
|
| 265 |
+
"prefix_placeholder": "/home/task_176035639968744/conda-bld/libsolv-suite_1760357031527/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla",
|
| 266 |
+
"sha256": "4f6350c04a41333ac69e6e6f21ddf0ab3cbac67a6c72d41b3bf9f92499a14c62",
|
| 267 |
+
"size_in_bytes": 664
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"_path": "lib/pkgconfig/libsolvext.pc",
|
| 271 |
+
"file_mode": "text",
|
| 272 |
+
"path_type": "hardlink",
|
| 273 |
+
"prefix_placeholder": "/home/task_176035639968744/conda-bld/libsolv-suite_1760357031527/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_pla",
|
| 274 |
+
"sha256": "74affa4f2df80d6944b16acb8d6f206ea053ab00d80b3423d3f481dfe1d49e28",
|
| 275 |
+
"size_in_bytes": 692
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"_path": "share/cmake/Modules/FindLibSolv.cmake",
|
| 279 |
+
"path_type": "hardlink",
|
| 280 |
+
"sha256": "2f81f106b402b02fb6486878eed2481db01c61075b725d59e5f65dc301f72802",
|
| 281 |
+
"size_in_bytes": 3182
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"_path": "share/man/man1/dumpsolv.1",
|
| 285 |
+
"path_type": "hardlink",
|
| 286 |
+
"sha256": "5c4181b65d0b35f82845035cc53dbd15b20e1020e499fcce3c8ae6b68c2ffa2e",
|
| 287 |
+
"size_in_bytes": 1618
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"_path": "share/man/man1/installcheck.1",
|
| 291 |
+
"path_type": "hardlink",
|
| 292 |
+
"sha256": "a96dcb2fdec31c87dd9c8b9f24e66fce9233939bdfee2a08c1b5247a190152e2",
|
| 293 |
+
"size_in_bytes": 2024
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"_path": "share/man/man1/mergesolv.1",
|
| 297 |
+
"path_type": "hardlink",
|
| 298 |
+
"sha256": "a391bdb50abab0a1448707ef5597bb33252b4e1d8b512f7e69a98eddf1992b4d",
|
| 299 |
+
"size_in_bytes": 1645
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"_path": "share/man/man1/repo2solv.1",
|
| 303 |
+
"path_type": "hardlink",
|
| 304 |
+
"sha256": "17a11568cc36a863433bf080729669b33d573ac44f1c0e06217bc574fd050995",
|
| 305 |
+
"size_in_bytes": 2448
|
| 306 |
+
},
|
| 307 |
+
{
|
| 308 |
+
"_path": "share/man/man1/solv.1",
|
| 309 |
+
"path_type": "hardlink",
|
| 310 |
+
"sha256": "1092a5fe6d1408eab08e98a7974f3d4c6b315a97cadbd2915d0ccff67208fb32",
|
| 311 |
+
"size_in_bytes": 2900
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"_path": "share/man/man1/testsolv.1",
|
| 315 |
+
"path_type": "hardlink",
|
| 316 |
+
"sha256": "b4baea939f14f06d6008c4361aacd71c95dee812d27bac1ce92f23d44f490a00",
|
| 317 |
+
"size_in_bytes": 2297
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"_path": "share/man/man3/libsolv-bindings.3",
|
| 321 |
+
"path_type": "hardlink",
|
| 322 |
+
"sha256": "6441110b909093377847529e4e3650ea7434726645e3f439a18ce699fb25eb0e",
|
| 323 |
+
"size_in_bytes": 192227
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"_path": "share/man/man3/libsolv-constantids.3",
|
| 327 |
+
"path_type": "hardlink",
|
| 328 |
+
"sha256": "217f140750416a9c4c6b72fb5fa86fd29770feadae3633f02b25f692eb89fe7f",
|
| 329 |
+
"size_in_bytes": 27211
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"_path": "share/man/man3/libsolv-history.3",
|
| 333 |
+
"path_type": "hardlink",
|
| 334 |
+
"sha256": "0723ea962c38f4778ce27d83df0c4b076b81f9327594eee2d8c9e19d3a230b07",
|
| 335 |
+
"size_in_bytes": 7170
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"_path": "share/man/man3/libsolv-pool.3",
|
| 339 |
+
"path_type": "hardlink",
|
| 340 |
+
"sha256": "207b3c604e516be736baba833010436a25563165a046ac5fcf00a2d10491f0f5",
|
| 341 |
+
"size_in_bytes": 44348
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"_path": "share/man/man3/libsolv.3",
|
| 345 |
+
"path_type": "hardlink",
|
| 346 |
+
"sha256": "58403e02a12b1084ab17cf114bf6482815a3f3eaaea56a5ab85ffc10399c90bb",
|
| 347 |
+
"size_in_bytes": 3103
|
| 348 |
+
}
|
| 349 |
+
],
|
| 350 |
+
"paths_version": 1
|
| 351 |
+
}
|
data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/conda_build_config.yaml
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
c_compiler: gcc
|
| 2 |
+
c_compiler_version: 11.2.0
|
| 3 |
+
c_stdlib: sysroot
|
| 4 |
+
c_stdlib_version: '2.28'
|
| 5 |
+
channel_targets: defaults
|
| 6 |
+
cpu_optimization_target: nocona
|
| 7 |
+
cran_mirror: https://cran.r-project.org
|
| 8 |
+
cxx_compiler: gxx
|
| 9 |
+
cxx_compiler_version: 11.2.0
|
| 10 |
+
extend_keys:
|
| 11 |
+
- extend_keys
|
| 12 |
+
- pin_run_as_build
|
| 13 |
+
- ignore_version
|
| 14 |
+
- ignore_build_only_deps
|
| 15 |
+
fortran_compiler: gfortran
|
| 16 |
+
ignore_build_only_deps:
|
| 17 |
+
- python
|
| 18 |
+
- numpy
|
| 19 |
+
lua: '5'
|
| 20 |
+
numpy: '1.26'
|
| 21 |
+
pcre2: '10.46'
|
| 22 |
+
perl: 5.26.2
|
| 23 |
+
pin_run_as_build:
|
| 24 |
+
python:
|
| 25 |
+
max_pin: x.x
|
| 26 |
+
min_pin: x.x
|
| 27 |
+
r-base:
|
| 28 |
+
max_pin: x.x
|
| 29 |
+
min_pin: x.x
|
| 30 |
+
platform: linux-64
|
| 31 |
+
python: '3.12'
|
| 32 |
+
r_base: '3.5'
|
| 33 |
+
target_platform: linux-64
|
| 34 |
+
zlib: '1.2'
|