diff --git a/data/miniconda3/pkgs/libpng-1.6.55-h421ea60_0/info/recipe/patches/0001-Include-pkg-config-files-in-the-Windows-packages-too.patch b/data/miniconda3/pkgs/libpng-1.6.55-h421ea60_0/info/recipe/patches/0001-Include-pkg-config-files-in-the-Windows-packages-too.patch new file mode 100644 index 0000000000000000000000000000000000000000..d4826cae4ca554c580d3071b1de4ec5efc95aed3 --- /dev/null +++ b/data/miniconda3/pkgs/libpng-1.6.55-h421ea60_0/info/recipe/patches/0001-Include-pkg-config-files-in-the-Windows-packages-too.patch @@ -0,0 +1,29 @@ +--- libpng-1.6.49.orig/CMakeLists.txt 2025-06-12 14:05:46.000000000 -0300 ++++ libpng-1.6.49/CMakeLists.txt 2025-06-16 13:45:00.743415714 -0300 +@@ -1017,7 +1017,7 @@ + # We use the same files like ./configure, so we have to set its vars. + # Only do this on Windows for Cygwin - the files don't make much sense + # outside of a UNIX look-alike. +-if(NOT WIN32 OR CYGWIN OR MINGW) ++if(1) + set(prefix "${CMAKE_INSTALL_PREFIX}") + set(exec_prefix "${CMAKE_INSTALL_PREFIX}") + set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}") +@@ -1087,13 +1087,13 @@ + install(FILES png.5 + DESTINATION "${CMAKE_INSTALL_MANDIR}/man5") + # Install the pkg-config files. ++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng.pc ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) ++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}.pc ++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + if(NOT CMAKE_HOST_WIN32 OR CYGWIN OR MINGW) +- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libpng.pc" +- DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") + install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/libpng-config" + DESTINATION "${CMAKE_INSTALL_BINDIR}") +- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}.pc" +- DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") + install(PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}-config" + DESTINATION "${CMAKE_INSTALL_BINDIR}") + endif() diff --git a/data/miniconda3/pkgs/libpng-1.6.55-h421ea60_0/info/recipe/patches/0002-Ensure-that-lm-is-not-included-in-Windows-pkg-config.patch b/data/miniconda3/pkgs/libpng-1.6.55-h421ea60_0/info/recipe/patches/0002-Ensure-that-lm-is-not-included-in-Windows-pkg-config.patch new file mode 100644 index 0000000000000000000000000000000000000000..ff94b263a1e4b28bb29ad2070915305949dd851b --- /dev/null +++ b/data/miniconda3/pkgs/libpng-1.6.55-h421ea60_0/info/recipe/patches/0002-Ensure-that-lm-is-not-included-in-Windows-pkg-config.patch @@ -0,0 +1,15 @@ +--- libpng-1.6.49.orig/CMakeLists.txt 2025-06-12 14:05:46.000000000 -0300 ++++ libpng-1.6.49/CMakeLists.txt 2025-06-16 13:40:19.280938475 -0300 +@@ -1022,7 +1022,11 @@ + set(exec_prefix "${CMAKE_INSTALL_PREFIX}") + set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}") + set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}") +- set(LIBS "-lz -lm") ++ if(NOT "${M_LIBRARY}" STREQUAL "") ++ set(LIBS "-lz -lm") ++ else() ++ set(LIBS "-lz") ++ endif() + configure_file("${CMAKE_CURRENT_SOURCE_DIR}/libpng.pc.in" + "${CMAKE_CURRENT_BINARY_DIR}/libpng${PNGLIB_ABI_VERSION}.pc" + @ONLY) diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/conda2solv b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/conda2solv new file mode 100644 index 0000000000000000000000000000000000000000..772105c2b173d9946fe2e7b2ebf9d4127d3cdb47 Binary files /dev/null and b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/conda2solv differ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/dumpsolv b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/dumpsolv new file mode 100644 index 0000000000000000000000000000000000000000..a528e9544049c0133881ec3ff5d62a8b0ef2ca89 Binary files /dev/null and b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/dumpsolv differ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/installcheck b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/installcheck new file mode 100644 index 0000000000000000000000000000000000000000..9f11f4aa9e496f0f84ec56a866dacb4b9738f0da Binary files /dev/null and b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/installcheck differ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/mergesolv b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/mergesolv new file mode 100644 index 0000000000000000000000000000000000000000..20ea6c4f2284430da88e754ee8fa700fbdb926d4 Binary files /dev/null and b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/mergesolv differ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/repo2solv b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/repo2solv new file mode 100644 index 0000000000000000000000000000000000000000..d96af3baa5b641501036d2045317d5e83cfc884e Binary files /dev/null and b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/repo2solv differ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/testsolv b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/testsolv new file mode 100644 index 0000000000000000000000000000000000000000..c7acff942991359cebacfb737f80f6c870796d91 Binary files /dev/null and b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/bin/testsolv differ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/bitmap.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/bitmap.h new file mode 100644 index 0000000000000000000000000000000000000000..6609678f7a3d6575c0364c2b9af70f9283de1b4d --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/bitmap.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2007-2011, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * bitmap.h + * + */ + +#ifndef LIBSOLV_BITMAP_H +#define LIBSOLV_BITMAP_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct s_Map { + unsigned char *map; + int size; +} Map; + +#define MAPZERO(m) (memset((m)->map, 0, (m)->size)) +/* set all bits */ +#define MAPSETALL(m) (memset((m)->map, 0xff, (m)->size)) +/* set bit */ +#define MAPSET(m, n) ((m)->map[(n) >> 3] |= 1 << ((n) & 7)) +/* clear bit */ +#define MAPCLR(m, n) ((m)->map[(n) >> 3] &= ~(1 << ((n) & 7))) +/* test bit */ +#define MAPTST(m, n) ((m)->map[(n) >> 3] & (1 << ((n) & 7))) +/* clear some bits at a position */ +#define MAPCLR_AT(m, n) ((m)->map[(n) >> 3] = 0) + +extern void map_init(Map *m, int n); +extern void map_init_clone(Map *target, const Map *source); +extern void map_grow(Map *m, int n); +extern void map_free(Map *m); +extern void map_and(Map *t, const Map *s); +extern void map_or(Map *t, const Map *s); +extern void map_subtract(Map *t, const Map *s); +extern void map_invertall(Map *m); + +static inline void map_empty(Map *m) +{ + MAPZERO(m); +} +static inline void map_set(Map *m, int n) +{ + MAPSET(m, n); +} +static inline void map_setall(Map *m) +{ + MAPSETALL(m); +} +static inline void map_clr(Map *m, int n) +{ + MAPCLR(m, n); +} +static inline int map_tst(Map *m, int n) +{ + return MAPTST(m, n); +} +static inline void map_clr_at(Map *m, int n) +{ + MAPCLR_AT(m, n); +} + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_BITMAP_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/chksum.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/chksum.h new file mode 100644 index 0000000000000000000000000000000000000000..65b775bcb412a12c8bd86622c82f852d076cfa51 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/chksum.h @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2007-2012, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +#ifndef LIBSOLV_CHKSUM_H +#define LIBSOLV_CHKSUM_H + +#include "pool.h" + +#ifdef __cplusplus +extern "C" { +#endif + +struct s_Chksum; +typedef struct s_Chksum Chksum; + +Chksum *solv_chksum_create(Id type); +Chksum *solv_chksum_create_clone(Chksum *chk); +Chksum *solv_chksum_create_from_bin(Id type, const unsigned char *buf); +void solv_chksum_add(Chksum *chk, const void *data, int len); +Id solv_chksum_get_type(Chksum *chk); +int solv_chksum_isfinished(Chksum *chk); +const unsigned char *solv_chksum_get(Chksum *chk, int *lenp); +void *solv_chksum_free(Chksum *chk, unsigned char *cp); +const char *solv_chksum_type2str(Id type); +Id solv_chksum_str2type(const char *str); +int solv_chksum_len(Id type); +int solv_chksum_cmp(Chksum *chk, Chksum *chk2); + +#ifdef LIBSOLV_INTERNAL + +#define case_CHKSUM_TYPES \ + case REPOKEY_TYPE_MD5: \ + case REPOKEY_TYPE_SHA1: \ + case REPOKEY_TYPE_SHA224: \ + case REPOKEY_TYPE_SHA256: \ + case REPOKEY_TYPE_SHA384: \ + case REPOKEY_TYPE_SHA512 + +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_CHKSUM_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/conda.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/conda.h new file mode 100644 index 0000000000000000000000000000000000000000..07703be8e12e7299359d09e390b9bd73ffaab873 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/conda.h @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2019, SUSE LLC + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * conda.h + * + */ + +#ifndef LIBSOLV_CONDA_H +#define LIBSOLV_CONDA_H + +#include "pooltypes.h" +#include "solvable.h" + +#ifdef __cplusplus +extern "C" { +#endif + +int pool_evrcmp_conda(const Pool *pool, const char *evr1, const char *evr2, int mode); +int solvable_conda_matchversion(Solvable *s, const char *version); +Id pool_addrelproviders_conda(Pool *pool, Id name, Id evr, Queue *plist); +Id pool_conda_matchspec(Pool *pool, const char *name); + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_CONDA_H */ + diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/dataiterator.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/dataiterator.h new file mode 100644 index 0000000000000000000000000000000000000000..357ae5989f68e636d1c32f20282a286d6a749313 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/dataiterator.h @@ -0,0 +1,197 @@ +/* + * Copyright (c) 2007-2012, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * dataiterator.h + * + */ + +#ifndef LIBSOLV_DATAITERATOR_H +#define LIBSOLV_DATAITERATOR_H + +#include "pooltypes.h" +#include "pool.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct s_KeyValue { + Id id; + const char *str; + unsigned int num; + unsigned int num2; + + int entry; /* array entry, starts with 0 */ + int eof; /* last entry reached */ + + struct s_KeyValue *parent; +} KeyValue; + +#define SOLV_KV_NUM64(kv) (((unsigned long long)((kv)->num2)) << 32 | (kv)->num) + +/* search matcher flags */ +#define SEARCH_STRINGMASK 15 +#define SEARCH_STRING 1 +#define SEARCH_STRINGSTART 2 +#define SEARCH_STRINGEND 3 +#define SEARCH_SUBSTRING 4 +#define SEARCH_GLOB 5 +#define SEARCH_REGEX 6 +#define SEARCH_ERROR 15 +#define SEARCH_NOCASE (1<<7) + +/* iterator control */ +#define SEARCH_NO_STORAGE_SOLVABLE (1<<8) +#define SEARCH_SUB (1<<9) +#define SEARCH_ARRAYSENTINEL (1<<10) +#define SEARCH_DISABLED_REPOS (1<<11) +#define SEARCH_KEEP_TYPE_DELETED (1<<12) /* only has effect if no keyname is given */ + +/* stringification flags */ +#define SEARCH_SKIP_KIND (1<<16) +/* By default we stringify just to the basename of a file because + the construction of the full filename is costly. Specify this + flag if you want to match full filenames */ +#define SEARCH_FILES (1<<17) +#define SEARCH_CHECKSUMS (1<<18) + +/* internal */ +#define SEARCH_SUBSCHEMA (1<<30) +#define SEARCH_THISSOLVID (1<<31) + +/* obsolete */ +#define SEARCH_COMPLETE_FILELIST 0 /* ignored, this is the default */ + +/* + * Datamatcher: match a string against a query + */ +typedef struct s_Datamatcher { + int flags; /* see matcher flags above */ + const char *match; /* the query string */ + void *matchdata; /* e.g. compiled regexp */ + int error; +} Datamatcher; + +int datamatcher_init(Datamatcher *ma, const char *match, int flags); +void datamatcher_free(Datamatcher *ma); +int datamatcher_match(Datamatcher *ma, const char *str); +int datamatcher_checkbasename(Datamatcher *ma, const char *str); + + +/* + * Dataiterator + * + * Iterator like interface to 'search' functionality + * + * Dataiterator is per-pool, additional filters can be applied + * to limit the search domain. See dataiterator_init below. + * + * Use these like: + * Dataiterator di; + * dataiterator_init(&di, repo->pool, repo, 0, 0, "bla", SEARCH_SUBSTRING); + * while (dataiterator_step(&di)) + * dosomething(di.solvid, di.key, di.kv); + * dataiterator_free(&di); + */ +typedef struct s_Dataiterator +{ + int state; + int flags; + + Pool *pool; + Repo *repo; + Repodata *data; + + /* data pointers */ + unsigned char *dp; + unsigned char *ddp; + Id *idp; + Id *keyp; + + /* the result */ + struct s_Repokey *key; + KeyValue kv; + + /* our matcher */ + Datamatcher matcher; + + /* iterators/filters */ + Id keyname; + Id repodataid; + Id solvid; + Id repoid; + + Id keynames[3 + 1]; + int nkeynames; + int rootlevel; + + /* recursion data */ + struct di_parent { + KeyValue kv; + unsigned char *dp; + Id *keyp; + } parents[3]; + int nparents; + + /* vertical data */ + unsigned char *vert_ddp; + Id vert_off; + Id vert_len; + Id vert_storestate; + + /* strdup data */ + char *dupstr; + int dupstrn; + + Id *keyskip; + Id *oldkeyskip; +} Dataiterator; + + +/* + * Initialize dataiterator + * + * di: Pointer to Dataiterator to be initialized + * pool: Search domain for the iterator + * repo: if non-null, limit search to this repo + * solvid: if non-null, limit search to this solvable + * keyname: if non-null, limit search to this keyname + * match: if non-null, limit search to this match + */ +int dataiterator_init(Dataiterator *di, Pool *pool, Repo *repo, Id p, Id keyname, const char *match, int flags); +void dataiterator_init_clone(Dataiterator *di, Dataiterator *from); +void dataiterator_set_search(Dataiterator *di, Repo *repo, Id p); +void dataiterator_set_keyname(Dataiterator *di, Id keyname); +int dataiterator_set_match(Dataiterator *di, const char *match, int flags); + +void dataiterator_prepend_keyname(Dataiterator *di, Id keyname); +void dataiterator_free(Dataiterator *di); +int dataiterator_step(Dataiterator *di); +void dataiterator_setpos(Dataiterator *di); +void dataiterator_setpos_parent(Dataiterator *di); +int dataiterator_match(Dataiterator *di, Datamatcher *ma); +void dataiterator_skip_attribute(Dataiterator *di); +void dataiterator_skip_solvable(Dataiterator *di); +void dataiterator_skip_repo(Dataiterator *di); +void dataiterator_jump_to_solvid(Dataiterator *di, Id solvid); +void dataiterator_jump_to_repo(Dataiterator *di, Repo *repo); +void dataiterator_entersub(Dataiterator *di); +void dataiterator_clonepos(Dataiterator *di, Dataiterator *from); +void dataiterator_seek(Dataiterator *di, int whence); +void dataiterator_strdup(Dataiterator *di); + +#define DI_SEEK_STAY (1 << 16) +#define DI_SEEK_CHILD 1 +#define DI_SEEK_PARENT 2 +#define DI_SEEK_REWIND 3 + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_DATAITERATOR_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/dirpool.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/dirpool.h new file mode 100644 index 0000000000000000000000000000000000000000..ca929548829cfe0b4caecee3be82636b139004a6 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/dirpool.h @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ +#ifndef LIBSOLV_DIRPOOL_H +#define LIBSOLV_DIRPOOL_H + + +#include "pooltypes.h" +#include "util.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct s_Dirpool { + Id *dirs; + int ndirs; + Id *dirtraverse; +} Dirpool; + +void dirpool_init(Dirpool *dp); +void dirpool_free(Dirpool *dp); + +void dirpool_make_dirtraverse(Dirpool *dp); +Id dirpool_add_dir(Dirpool *dp, Id parent, Id comp, int create); + +/* return the parent directory of child did */ +static inline Id dirpool_parent(Dirpool *dp, Id did) +{ + if (!did) + return 0; + while (dp->dirs[--did] > 0) + ; + return -dp->dirs[did]; +} + +/* return the next child entry of child did */ +static inline Id +dirpool_sibling(Dirpool *dp, Id did) +{ + /* if this block contains another entry, simply return it */ + if (did + 1 < dp->ndirs && dp->dirs[did + 1] > 0) + return did + 1; + /* end of block reached, rewind to get to the block's + * dirtraverse entry */ + while (dp->dirs[--did] > 0) + ; + /* need to special case did == 0 to prevent looping */ + if (!did) + return 0; + if (!dp->dirtraverse) + dirpool_make_dirtraverse(dp); + return dp->dirtraverse[did]; +} + +/* return the first child entry of directory did */ +static inline Id +dirpool_child(Dirpool *dp, Id did) +{ + if (!dp->dirtraverse) + dirpool_make_dirtraverse(dp); + return dp->dirtraverse[did]; +} + +static inline void +dirpool_free_dirtraverse(Dirpool *dp) +{ + solv_free(dp->dirtraverse); + dp->dirtraverse = 0; +} + +static inline Id +dirpool_compid(Dirpool *dp, Id did) +{ + return dp->dirs[did]; +} + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_DIRPOOL_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/evr.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/evr.h new file mode 100644 index 0000000000000000000000000000000000000000..d18cc52a68a30f749ba1ac9acc4b8d5396eae3a8 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/evr.h @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * evr.h + * + */ + +#ifndef LIBSOLV_EVR_H +#define LIBSOLV_EVR_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include "pooltypes.h" + +#define EVRCMP_COMPARE 0 +#define EVRCMP_MATCH_RELEASE 1 +#define EVRCMP_MATCH 2 +#define EVRCMP_COMPARE_EVONLY 3 + +extern int solv_vercmp(const char *s1, const char *q1, const char *s2, const char *q2); + +extern int pool_evrcmp_str(const Pool *pool, const char *evr1, const char *evr2, int mode); +extern int pool_evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode); +extern int pool_evrmatch(const Pool *pool, Id evrid, const char *epoch, const char *version, const char *release); + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_EVR_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/hash.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/hash.h new file mode 100644 index 0000000000000000000000000000000000000000..4f595bbb17e9417142c4e2e97be271e7767d16f3 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/hash.h @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * hash.h + * generic hash functions + */ + +#ifndef LIBSOLV_HASH_H +#define LIBSOLV_HASH_H + +#include "pooltypes.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* value of a hash */ +typedef unsigned int Hashval; + +/* inside the hash table, Ids are stored. Hash maps: string -> hash -> Id */ +typedef Id *Hashtable; + +/* hash chain */ +#define HASHCHAIN_START 7 +#define HASHCHAIN_NEXT(h, hh, mask) (((h) + (hh)++) & (mask)) + +/* very simple hash function + * string -> hash + */ +static inline Hashval +strhash(const char *str) +{ + Hashval r = 0; + unsigned int c; + while ((c = *(const unsigned char *)str++) != 0) + r += (r << 3) + c; + return r; +} + +static inline Hashval +strnhash(const char *str, unsigned len) +{ + Hashval r = 0; + unsigned int c; + while (len-- && (c = *(const unsigned char *)str++) != 0) + r += (r << 3) + c; + return r; +} + +static inline Hashval +strhash_cont(const char *str, Hashval r) +{ + unsigned int c; + while ((c = *(const unsigned char *)str++) != 0) + r += (r << 3) + c; + return r; +} + + +/* hash for rel + * rel -> hash + */ +static inline Hashval +relhash(Id name, Id evr, int flags) +{ + return name + 7 * evr + 13 * flags; +} + + +/* compute bitmask for value + * returns smallest (2^n-1) > 2 * num + 3 + * + * used for Hashtable 'modulo' operation + */ +static inline Hashval +mkmask(unsigned int num) +{ + num = num * 2 + 3; + while (num & (num - 1)) + num &= num - 1; + return num * 2 - 1; +} + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_HASH_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/knownid.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/knownid.h new file mode 100644 index 0000000000000000000000000000000000000000..19f67aef273b714318330599612d1ad1919564a5 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/knownid.h @@ -0,0 +1,289 @@ +/* + * Copyright (c) 2007-2014, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * knownid.h + * + */ + +/* + * Warning: you're free to append new entries, but insert/delete breaks + * the ABI! + */ + +#ifndef LIBSOLV_KNOWNID_H +#define LIBSOLV_KNOWNID_H + +#undef KNOWNID +#ifdef KNOWNID_INITIALIZE +# define KNOWNID(a, b) b +static const char *initpool_data[] = { +#else +# define KNOWNID(a, b) a +enum solv_knownid { +#endif + +KNOWNID(ID_NULL, ""), +KNOWNID(ID_EMPTY, ""), + +/* The following Ids are stored in the solvable and must + * come in one block */ +KNOWNID(SOLVABLE_NAME, "solvable:name"), +KNOWNID(SOLVABLE_ARCH, "solvable:arch"), +KNOWNID(SOLVABLE_EVR, "solvable:evr"), +KNOWNID(SOLVABLE_VENDOR, "solvable:vendor"), +KNOWNID(SOLVABLE_PROVIDES, "solvable:provides"), +KNOWNID(SOLVABLE_OBSOLETES, "solvable:obsoletes"), +KNOWNID(SOLVABLE_CONFLICTS, "solvable:conflicts"), +KNOWNID(SOLVABLE_REQUIRES, "solvable:requires"), +KNOWNID(SOLVABLE_RECOMMENDS, "solvable:recommends"), +KNOWNID(SOLVABLE_SUGGESTS, "solvable:suggests"), +KNOWNID(SOLVABLE_SUPPLEMENTS, "solvable:supplements"), +KNOWNID(SOLVABLE_ENHANCES, "solvable:enhances"), +KNOWNID(RPM_RPMDBID, "rpm:dbid"), + +/* normal requires before this, prereqs after this */ +KNOWNID(SOLVABLE_PREREQMARKER, "solvable:prereqmarker"), +/* normal provides before this, generated file provides after this */ +KNOWNID(SOLVABLE_FILEMARKER, "solvable:filemarker"), + +KNOWNID(NAMESPACE_INSTALLED, "namespace:installed"), +KNOWNID(NAMESPACE_MODALIAS, "namespace:modalias"), +KNOWNID(NAMESPACE_SPLITPROVIDES, "namespace:splitprovides"), +KNOWNID(NAMESPACE_LANGUAGE, "namespace:language"), +KNOWNID(NAMESPACE_FILESYSTEM, "namespace:filesystem"), +KNOWNID(NAMESPACE_OTHERPROVIDERS, "namespace:otherproviders"), + +KNOWNID(SYSTEM_SYSTEM, "system:system"), + +/* special solvable architectures */ +KNOWNID(ARCH_SRC, "src"), +KNOWNID(ARCH_NOSRC, "nosrc"), +KNOWNID(ARCH_NOARCH, "noarch"), +KNOWNID(ARCH_ALL, "all"), +KNOWNID(ARCH_ANY, "any"), + +/* the meta tags used in solv file storage */ +KNOWNID(REPOSITORY_SOLVABLES, "repository:solvables"), +KNOWNID(REPOSITORY_DELTAINFO, "repository:deltainfo"), + +/* sub-repository information, they will get loaded on demand */ +KNOWNID(REPOSITORY_EXTERNAL, "repository:external"), +KNOWNID(REPOSITORY_KEYS, "repository:keys"), +KNOWNID(REPOSITORY_LOCATION, "repository:location"), + +/* the known data types */ +KNOWNID(REPOKEY_TYPE_VOID, "repokey:type:void"), +KNOWNID(REPOKEY_TYPE_CONSTANT, "repokey:type:constant"), +KNOWNID(REPOKEY_TYPE_CONSTANTID, "repokey:type:constantid"), +KNOWNID(REPOKEY_TYPE_ID, "repokey:type:id"), +KNOWNID(REPOKEY_TYPE_NUM, "repokey:type:num"), +KNOWNID(REPOKEY_TYPE_DIR, "repokey:type:dir"), +KNOWNID(REPOKEY_TYPE_STR, "repokey:type:str"), +KNOWNID(REPOKEY_TYPE_BINARY, "repokey:type:binary"), +KNOWNID(REPOKEY_TYPE_IDARRAY, "repokey:type:idarray"), +KNOWNID(REPOKEY_TYPE_REL_IDARRAY, "repokey:type:relidarray"), +KNOWNID(REPOKEY_TYPE_DIRSTRARRAY, "repokey:type:dirstrarray"), +KNOWNID(REPOKEY_TYPE_DIRNUMNUMARRAY, "repokey:type:dirnumnumarray"), +KNOWNID(REPOKEY_TYPE_MD5, "repokey:type:md5"), +KNOWNID(REPOKEY_TYPE_SHA1, "repokey:type:sha1"), +KNOWNID(REPOKEY_TYPE_SHA224, "repokey:type:sha224"), +KNOWNID(REPOKEY_TYPE_SHA256, "repokey:type:sha256"), +KNOWNID(REPOKEY_TYPE_SHA384, "repokey:type:sha384"), +KNOWNID(REPOKEY_TYPE_SHA512, "repokey:type:sha512"), +KNOWNID(REPOKEY_TYPE_FIXARRAY, "repokey:type:fixarray"), +KNOWNID(REPOKEY_TYPE_FLEXARRAY, "repokey:type:flexarray"), +KNOWNID(REPOKEY_TYPE_DELETED, "repokey:type:deleted"), /* internal only */ + +KNOWNID(SOLVABLE_SUMMARY, "solvable:summary"), +KNOWNID(SOLVABLE_DESCRIPTION, "solvable:description"), +KNOWNID(SOLVABLE_DISTRIBUTION, "solvable:distribution"), +KNOWNID(SOLVABLE_AUTHORS, "solvable:authors"), +KNOWNID(SOLVABLE_PACKAGER, "solvable:packager"), +KNOWNID(SOLVABLE_GROUP, "solvable:group"), +KNOWNID(SOLVABLE_URL, "solvable:url"), +KNOWNID(SOLVABLE_KEYWORDS, "solvable:keywords"), +KNOWNID(SOLVABLE_LICENSE, "solvable:license"), +KNOWNID(SOLVABLE_BUILDTIME, "solvable:buildtime"), +KNOWNID(SOLVABLE_BUILDHOST, "solvable:buildhost"), +KNOWNID(SOLVABLE_EULA, "solvable:eula"), +KNOWNID(SOLVABLE_CPEID, "solvable:cpeid"), +KNOWNID(SOLVABLE_MESSAGEINS, "solvable:messageins"), +KNOWNID(SOLVABLE_MESSAGEDEL, "solvable:messagedel"), +KNOWNID(SOLVABLE_INSTALLSIZE, "solvable:installsize"), +KNOWNID(SOLVABLE_DISKUSAGE, "solvable:diskusage"), +KNOWNID(SOLVABLE_FILELIST, "solvable:filelist"), +KNOWNID(SOLVABLE_INSTALLTIME, "solvable:installtime"), +KNOWNID(SOLVABLE_MEDIADIR, "solvable:mediadir"), +KNOWNID(SOLVABLE_MEDIAFILE, "solvable:mediafile"), +KNOWNID(SOLVABLE_MEDIANR, "solvable:medianr"), +KNOWNID(SOLVABLE_MEDIABASE, "solvable:mediabase"), /* */ +KNOWNID(SOLVABLE_DOWNLOADSIZE, "solvable:downloadsize"), +KNOWNID(SOLVABLE_SOURCEARCH, "solvable:sourcearch"), +KNOWNID(SOLVABLE_SOURCENAME, "solvable:sourcename"), +KNOWNID(SOLVABLE_SOURCEEVR, "solvable:sourceevr"), +KNOWNID(SOLVABLE_ISVISIBLE, "solvable:isvisible"), +KNOWNID(SOLVABLE_TRIGGERS, "solvable:triggers"), +KNOWNID(SOLVABLE_CHECKSUM, "solvable:checksum"), +KNOWNID(SOLVABLE_PKGID, "solvable:pkgid"), /* pkgid: md5sum over header + payload */ +KNOWNID(SOLVABLE_HDRID, "solvable:hdrid"), /* hdrid: sha1sum over header only */ +KNOWNID(SOLVABLE_LEADSIGID, "solvable:leadsigid"), /* leadsigid: md5sum over lead + sigheader */ + +KNOWNID(SOLVABLE_PATCHCATEGORY, "solvable:patchcategory"), +KNOWNID(SOLVABLE_HEADEREND, "solvable:headerend"), +KNOWNID(SOLVABLE_CHANGELOG, "solvable:changelog"), +KNOWNID(SOLVABLE_CHANGELOG_AUTHOR, "solvable:changelog:author"), +KNOWNID(SOLVABLE_CHANGELOG_TIME, "solvable:changelog:time"), +KNOWNID(SOLVABLE_CHANGELOG_TEXT, "solvable:changelog:text"), +KNOWNID(SOLVABLE_INSTALLSTATUS, "solvable:installstatus"), /* debian install status */ +KNOWNID(SOLVABLE_PREREQ_IGNOREINST, "solvable:prereq_ignoreinst"), /* ignore these pre-requires for installed packages */ + +/* stuff for solvables of type pattern */ +KNOWNID(SOLVABLE_CATEGORY, "solvable:category"), +KNOWNID(SOLVABLE_INCLUDES, "solvable:includes"), +KNOWNID(SOLVABLE_EXTENDS, "solvable:extends"), +KNOWNID(SOLVABLE_ICON, "solvable:icon"), +KNOWNID(SOLVABLE_ORDER, "solvable:order"), + +/* extra definitions for updates (i.e. patch: solvables) */ +KNOWNID(UPDATE_REBOOT, "update:reboot"), /* reboot suggested (kernel update) */ +KNOWNID(UPDATE_RESTART, "update:restart"), /* restart suggested (update stack update) */ +KNOWNID(UPDATE_RELOGIN, "update:relogin"), /* relogin suggested */ + +KNOWNID(UPDATE_MESSAGE, "update:message"), /* informative message */ +KNOWNID(UPDATE_SEVERITY, "update:severity"), /* "Important", ...*/ +KNOWNID(UPDATE_RIGHTS, "update:rights"), /* copyright */ + +/* 'content' of patch, usually list of packages */ +KNOWNID(UPDATE_COLLECTION, "update:collection"), /* "name evr arch" */ +KNOWNID(UPDATE_COLLECTION_NAME, "update:collection:name"), /* name */ +KNOWNID(UPDATE_COLLECTION_EVR, "update:collection:evr"), /* epoch:version-release */ +KNOWNID(UPDATE_COLLECTION_ARCH, "update:collection:arch"), /* architecture */ +KNOWNID(UPDATE_COLLECTION_FILENAME, "update:collection:filename"), /* filename (of rpm) */ +KNOWNID(UPDATE_COLLECTION_FLAGS, "update:collection:flags"), /* reboot(1)/restart(2) suggested if this rpm gets updated */ + +KNOWNID(UPDATE_REFERENCE, "update:reference"), /* external references for the update */ +KNOWNID(UPDATE_REFERENCE_TYPE, "update:reference:type"), /* type, e.g. 'bugzilla' or 'cve' */ +KNOWNID(UPDATE_REFERENCE_HREF, "update:reference:href"), /* href, e.g. 'http://bugzilla...' */ +KNOWNID(UPDATE_REFERENCE_ID, "update:reference:id"), /* id, e.g. bug number */ +KNOWNID(UPDATE_REFERENCE_TITLE, "update:reference:title"), /* title, e.g. "the bla forz scribs on fuggle" */ + +/* extra definitions for products */ +KNOWNID(PRODUCT_REFERENCEFILE, "product:referencefile"), /* installed product only */ +KNOWNID(PRODUCT_SHORTLABEL, "product:shortlabel"), /* not in repomd? */ +KNOWNID(PRODUCT_DISTPRODUCT, "product:distproduct"), /* obsolete */ +KNOWNID(PRODUCT_DISTVERSION, "product:distversion"), /* obsolete */ +KNOWNID(PRODUCT_TYPE, "product:type"), /* e.g. 'base' */ +KNOWNID(PRODUCT_URL, "product:url"), +KNOWNID(PRODUCT_URL_TYPE, "product:url:type"), +KNOWNID(PRODUCT_FLAGS, "product:flags"), /* e.g. 'update', 'no_you' */ +KNOWNID(PRODUCT_PRODUCTLINE, "product:productline"), /* installed product only */ +KNOWNID(PRODUCT_REGISTER_TARGET, "product:regtarget"), /* installed and available product */ +KNOWNID(PRODUCT_REGISTER_FLAVOR, "product:regflavor"), /* installed and available product */ +KNOWNID(PRODUCT_REGISTER_RELEASE, "product:regrelease"), /* installed product only */ +KNOWNID(PRODUCT_UPDATES_REPOID, "product:updates:repoid"), +KNOWNID(PRODUCT_UPDATES, "product:updates"), +KNOWNID(PRODUCT_ENDOFLIFE, "product:endoflife"), + +/* argh, should rename to repository and unify with REPOMD */ +KNOWNID(SUSETAGS_DATADIR, "susetags:datadir"), +KNOWNID(SUSETAGS_DESCRDIR, "susetags:descrdir"), +KNOWNID(SUSETAGS_DEFAULTVENDOR, "susetags:defaultvendor"), +KNOWNID(SUSETAGS_FILE, "susetags:file"), +KNOWNID(SUSETAGS_FILE_NAME, "susetags:file:name"), +KNOWNID(SUSETAGS_FILE_TYPE, "susetags:file:type"), +KNOWNID(SUSETAGS_FILE_CHECKSUM, "susetags:file:checksum"), +KNOWNID(SUSETAGS_SHARE_NAME, "susetags:share:name"), +KNOWNID(SUSETAGS_SHARE_EVR, "susetags:share:evr"), +KNOWNID(SUSETAGS_SHARE_ARCH, "susetags:share:arch"), + +KNOWNID(REPOSITORY_ADDEDFILEPROVIDES, "repository:addedfileprovides"), /* file provides already added to our solvables */ +KNOWNID(REPOSITORY_RPMDBCOOKIE, "repository:rpmdbcookie"), /* inode of the rpm database for rpm --rebuilddb detection */ +KNOWNID(REPOSITORY_FILTEREDFILELIST, "repository:filteredfilelist"), /* filelist in repository is filtered */ +KNOWNID(REPOSITORY_TIMESTAMP, "repository:timestamp"), /* timestamp then the repository was generated */ +KNOWNID(REPOSITORY_EXPIRE, "repository:expire"), /* hint when the metadata could be outdated w/respect to generated timestamp */ +KNOWNID(REPOSITORY_UPDATES, "repository:updates"), /* which things does this repo provides updates for, if it does (array) (obsolete?) */ +KNOWNID(REPOSITORY_DISTROS, "repository:distros"), /* which products this repository is supposed to be for (array) */ +KNOWNID(REPOSITORY_PRODUCT_LABEL, "repository:product:label"), +KNOWNID(REPOSITORY_PRODUCT_CPEID, "repository:product:cpeid"), +KNOWNID(REPOSITORY_REPOID, "repository:repoid"), /* obsolete? */ +KNOWNID(REPOSITORY_KEYWORDS, "repository:keywords"), /* keyword (tags) for this repository */ +KNOWNID(REPOSITORY_REVISION, "repository:revision"), /* revision of the repository. arbitrary string */ +KNOWNID(REPOSITORY_TOOLVERSION, "repository:toolversion"), + +KNOWNID(DELTA_PACKAGE_NAME, "delta:pkgname"), +KNOWNID(DELTA_PACKAGE_EVR, "delta:pkgevr"), +KNOWNID(DELTA_PACKAGE_ARCH, "delta:pkgarch"), +KNOWNID(DELTA_LOCATION_DIR, "delta:locdir"), +KNOWNID(DELTA_LOCATION_NAME, "delta:locname"), +KNOWNID(DELTA_LOCATION_EVR, "delta:locevr"), +KNOWNID(DELTA_LOCATION_SUFFIX, "delta:locsuffix"), +KNOWNID(DELTA_DOWNLOADSIZE, "delta:downloadsize"), +KNOWNID(DELTA_CHECKSUM, "delta:checksum"), +KNOWNID(DELTA_BASE_EVR, "delta:baseevr"), +KNOWNID(DELTA_SEQ_NAME, "delta:seqname"), +KNOWNID(DELTA_SEQ_EVR, "delta:seqevr"), +KNOWNID(DELTA_SEQ_NUM, "delta:seqnum"), +KNOWNID(DELTA_LOCATION_BASE, "delta:locbase"), /* */ + +KNOWNID(REPOSITORY_REPOMD, "repository:repomd"), +KNOWNID(REPOSITORY_REPOMD_TYPE, "repository:repomd:type"), +KNOWNID(REPOSITORY_REPOMD_LOCATION, "repository:repomd:location"), +KNOWNID(REPOSITORY_REPOMD_TIMESTAMP, "repository:repomd:timestamp"), +KNOWNID(REPOSITORY_REPOMD_CHECKSUM, "repository:repomd:checksum"), +KNOWNID(REPOSITORY_REPOMD_OPENCHECKSUM, "repository:repomd:openchecksum"), +KNOWNID(REPOSITORY_REPOMD_SIZE, "repository:repomd:size"), + +KNOWNID(PUBKEY_KEYID, "pubkey:keyid"), +KNOWNID(PUBKEY_FINGERPRINT, "pubkey:fingerprint"), +KNOWNID(PUBKEY_EXPIRES, "pubkey:expires"), +KNOWNID(PUBKEY_SIGNATURES, "pubkey:signatures"), +KNOWNID(PUBKEY_DATA, "pubkey:data"), +KNOWNID(PUBKEY_SUBKEYOF, "pubkey:subkeyof"), + +KNOWNID(SIGNATURE_ISSUER, "signature:issuer"), +KNOWNID(SIGNATURE_TIME, "signature:time"), +KNOWNID(SIGNATURE_EXPIRES, "signature:expires"), +KNOWNID(SIGNATURE_DATA, "signature:data"), + +/* 'content' of patch, usually list of modules */ +KNOWNID(UPDATE_MODULE, "update:module"), /* "name stream version context arch" */ +KNOWNID(UPDATE_MODULE_NAME, "update:module:name"), /* name */ +KNOWNID(UPDATE_MODULE_STREAM, "update:module:stream"), /* stream */ +KNOWNID(UPDATE_MODULE_VERSION, "update:module:version"), /* version */ +KNOWNID(UPDATE_MODULE_CONTEXT, "update:module:context"), /* context */ +KNOWNID(UPDATE_MODULE_ARCH, "update:module:arch"), /* architecture */ + +KNOWNID(SOLVABLE_BUILDVERSION, "solvable:buildversion"), /* conda */ +KNOWNID(SOLVABLE_BUILDFLAVOR, "solvable:buildflavor"), /* conda */ + +KNOWNID(UPDATE_STATUS, "update:status"), /* "stable", "testing", ...*/ + +KNOWNID(LIBSOLV_SELF_DESTRUCT_PKG, "libsolv-self-destruct-pkg()"), /* this package will self-destruct on installation */ + +KNOWNID(SOLVABLE_CONSTRAINS, "solvable:constrains"), /* conda */ +KNOWNID(SOLVABLE_TRACK_FEATURES, "solvable:track_features"), /* conda */ +KNOWNID(SOLVABLE_ISDEFAULT, "solvable:isdefault"), +KNOWNID(SOLVABLE_LANGONLY, "solvable:langonly"), + +KNOWNID(UPDATE_COLLECTIONLIST, "update:collectionlist"), /* list of UPDATE_COLLECTION (actually packages) and UPDATE_MODULE */ +KNOWNID(SOLVABLE_MULTIARCH, "solvable:multiarch"), /* debian multi-arch field */ +KNOWNID(SOLVABLE_SIGNATUREDATA, "solvable:signaturedata"), /* conda */ + +KNOWNID(ID_NUM_INTERNAL, 0) + +#ifdef KNOWNID_INITIALIZE +}; +#else +}; +#endif + +#undef KNOWNID + +#endif + + diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/policy.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/policy.h new file mode 100644 index 0000000000000000000000000000000000000000..a79483a403e0d884d85aa3f99d2311f41b7b5b25 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/policy.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * Generic policy interface for SAT solver + * The policy* function can be "overloaded" by defining a callback in the solver struct. + */ + +#include "solver.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define POLICY_MODE_CHOOSE 0 +#define POLICY_MODE_RECOMMEND 1 +#define POLICY_MODE_SUGGEST 2 +#define POLICY_MODE_CHOOSE_NOREORDER 3 /* internal, do not use */ +#define POLICY_MODE_SUPPLEMENT 4 /* internal, do not use */ +#define POLICY_MODE_FAVOR_REC (1 << 30) /* internal, do not use */ + + +#define POLICY_ILLEGAL_DOWNGRADE 1 +#define POLICY_ILLEGAL_ARCHCHANGE 2 +#define POLICY_ILLEGAL_VENDORCHANGE 4 +#define POLICY_ILLEGAL_NAMECHANGE 8 + +extern void policy_filter_unwanted(Solver *solv, Queue *plist, int mode); +extern int policy_illegal_archchange(Solver *solv, Solvable *s1, Solvable *s2); +extern int policy_illegal_vendorchange(Solver *solv, Solvable *s1, Solvable *s2); +extern int policy_is_illegal(Solver *solv, Solvable *s1, Solvable *s2, int ignore); +extern void policy_findupdatepackages(Solver *solv, Solvable *s, Queue *qs, int allowall); +extern const char *policy_illegal2str(Solver *solv, int illegal, Solvable *s, Solvable *rs); +extern void policy_update_recommendsmap(Solver *solv); + +extern void policy_create_obsolete_index(Solver *solv); + +extern void pool_best_solvables(Pool *pool, Queue *plist, int flags); + +/* internal, do not use */ +extern void prune_to_best_version(Pool *pool, Queue *plist); +extern void policy_prefer_favored(Solver *solv, Queue *plist); + +#ifdef ENABLE_CONDA +extern void prune_to_best_version_conda(Pool *pool, Queue *plist); +#endif + +#ifdef __cplusplus +} +#endif diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/pool.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/pool.h new file mode 100644 index 0000000000000000000000000000000000000000..08cf1d06a813d83a6ddf7a7c173e00e3d97ea704 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/pool.h @@ -0,0 +1,426 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * pool.h + * + */ + +#ifndef LIBSOLV_POOL_H +#define LIBSOLV_POOL_H + +#include + +#include "solvversion.h" +#include "pooltypes.h" +#include "poolid.h" +#include "solvable.h" +#include "bitmap.h" +#include "queue.h" +#include "strpool.h" + +/* well known ids */ +#include "knownid.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* well known solvable */ +#define SYSTEMSOLVABLE 1 + + +/*----------------------------------------------- */ + +struct s_Repokey; +struct s_KeyValue; + +typedef struct s_Datapos { + Repo *repo; + Id solvid; + Id repodataid; + Id schema; + Id dp; +} Datapos; + + +#ifdef LIBSOLV_INTERNAL + +/* how many strings to maintain (round robin) */ +#define POOL_TMPSPACEBUF 16 + +struct s_Pool_tmpspace { + char *buf[POOL_TMPSPACEBUF]; + int len[POOL_TMPSPACEBUF]; + int n; +}; + +#endif + +struct s_Pool { + void *appdata; /* application private pointer */ + + Stringpool ss; + + Reldep *rels; /* table of rels: Id -> Reldep */ + int nrels; /* number of unique rels */ + + Repo **repos; + int nrepos; /* repos allocated */ + int urepos; /* repos in use */ + + Repo *installed; /* packages considered installed */ + + Solvable *solvables; + int nsolvables; /* solvables allocated */ + + const char **languages; + int nlanguages; + + /* package manager type, deb/rpm */ + int disttype; + + Id *id2arch; /* map arch ids to scores */ + unsigned char *id2color; /* map arch ids to colors */ + Id lastarch; /* size of the id2arch/id2color arrays */ + + Queue vendormap; /* map vendor to vendorclasses mask */ + const char **vendorclasses; /* vendor equivalence classes */ + + /* providers data, as two-step indirect list + * whatprovides[Id] -> Offset into whatprovidesdata for name + * whatprovidesdata[Offset] -> 0-terminated list of solvables providing Id + */ + Offset *whatprovides; /* Offset to providers of a specific name, Id -> Offset */ + Offset *whatprovides_rel; /* Offset to providers of a specific relation, Id -> Offset */ + + Id *whatprovidesdata; /* Ids of solvable providing Id */ + Offset whatprovidesdataoff; /* next free slot within whatprovidesdata */ + int whatprovidesdataleft; /* number of 'free slots' within whatprovidesdata */ + + /* If nonzero, then consider only the solvables with Ids set in this + bitmap for solving. If zero, consider all solvables. */ + Map *considered; + + /* callback for REL_NAMESPACE dependencies handled by the application */ + Id (*nscallback)(Pool *, void *data, Id name, Id evr); + void *nscallbackdata; + + /* debug mask and callback */ + int debugmask; + void (*debugcallback)(Pool *, void *data, int type, const char *str); + void *debugcallbackdata; + + /* load callback */ + int (*loadcallback)(Pool *, Repodata *, void *); + void *loadcallbackdata; + + /* search position */ + Datapos pos; + + Queue pooljobs; /* fixed jobs, like USERINSTALLED/MULTIVERSION */ + +#ifdef LIBSOLV_INTERNAL + /* flags to tell the library how the installed package manager works */ + int promoteepoch; /* true: missing epoch is replaced by epoch of dependency */ + int havedistepoch; /* true: thr release part in the evr may contain a distepoch suffix */ + int obsoleteusesprovides; /* true: obsoletes are matched against provides, not names */ + int implicitobsoleteusesprovides; /* true: implicit obsoletes due to same name are matched against provides, not names */ + int obsoleteusescolors; /* true: obsoletes check arch color */ + int implicitobsoleteusescolors; /* true: implicit obsoletes check arch color */ + int noinstalledobsoletes; /* true: ignore obsoletes of installed packages */ + int forbidselfconflicts; /* true: packages which conflict with itself are not installable */ + int noobsoletesmultiversion; /* true: obsoletes are ignored for multiversion installs */ + + Id noarchid; /* ARCH_NOARCH, ARCH_ALL, ARCH_ANY, ... */ + + /* hash for rel unification */ + Hashtable relhashtbl; /* hashtable: (name,evr,op)Hash -> Id */ + Hashval relhashmask; + + Id *languagecache; + int languagecacheother; + + /* our tmp space string space */ + struct s_Pool_tmpspace tmpspace; + + char *errstr; /* last error string */ + int errstra; /* allocated space for errstr */ + + char *rootdir; + + int (*custom_vendorcheck)(Pool *, Solvable *, Solvable *); + + int addfileprovidesfiltered; /* 1: only use filtered file list for addfileprovides */ + int addedfileprovides; /* true: application called addfileprovides */ + Queue lazywhatprovidesq; /* queue to store old whatprovides offsets */ + int nowhatprovidesaux; /* don't allocate and use the whatprovides aux helper */ + Offset *whatprovidesaux; + Offset whatprovidesauxoff; + Id *whatprovidesauxdata; + Offset whatprovidesauxdataoff; + + int whatprovideswithdisabled; +#endif +}; + +#define DISTTYPE_RPM 0 +#define DISTTYPE_DEB 1 +#define DISTTYPE_ARCH 2 +#define DISTTYPE_HAIKU 3 +#define DISTTYPE_CONDA 4 + +#define SOLV_FATAL (1<<0) +#define SOLV_ERROR (1<<1) +#define SOLV_WARN (1<<2) +#define SOLV_DEBUG_STATS (1<<3) +#define SOLV_DEBUG_RULE_CREATION (1<<4) +#define SOLV_DEBUG_PROPAGATE (1<<5) +#define SOLV_DEBUG_ANALYZE (1<<6) +#define SOLV_DEBUG_UNSOLVABLE (1<<7) +#define SOLV_DEBUG_SOLUTIONS (1<<8) +#define SOLV_DEBUG_POLICY (1<<9) +#define SOLV_DEBUG_RESULT (1<<10) +#define SOLV_DEBUG_JOB (1<<11) +#define SOLV_DEBUG_SOLVER (1<<12) +#define SOLV_DEBUG_TRANSACTION (1<<13) +#define SOLV_DEBUG_WATCHES (1<<14) + +#define SOLV_DEBUG_TO_STDERR (1<<30) + +#define POOL_FLAG_PROMOTEEPOCH 1 +#define POOL_FLAG_FORBIDSELFCONFLICTS 2 +#define POOL_FLAG_OBSOLETEUSESPROVIDES 3 +#define POOL_FLAG_IMPLICITOBSOLETEUSESPROVIDES 4 +#define POOL_FLAG_OBSOLETEUSESCOLORS 5 +#define POOL_FLAG_NOINSTALLEDOBSOLETES 6 +#define POOL_FLAG_HAVEDISTEPOCH 7 +#define POOL_FLAG_NOOBSOLETESMULTIVERSION 8 +#define POOL_FLAG_ADDFILEPROVIDESFILTERED 9 +#define POOL_FLAG_IMPLICITOBSOLETEUSESCOLORS 10 +#define POOL_FLAG_NOWHATPROVIDESAUX 11 +#define POOL_FLAG_WHATPROVIDESWITHDISABLED 12 + +/* ----------------------------------------------- */ + + +/* mark dependencies with relation by setting bit31 */ + +#define MAKERELDEP(id) ((id) | 0x80000000) +#define ISRELDEP(id) (((id) & 0x80000000) != 0) +#define GETRELID(id) ((id) ^ 0x80000000) /* returns Id */ +#define GETRELDEP(pool, id) ((pool)->rels + ((id) ^ 0x80000000)) /* returns Reldep* */ + +#define REL_GT 1 +#define REL_EQ 2 +#define REL_LT 4 + +#define REL_AND 16 +#define REL_OR 17 +#define REL_WITH 18 +#define REL_NAMESPACE 19 +#define REL_ARCH 20 +#define REL_FILECONFLICT 21 +#define REL_COND 22 /* OR_NOT */ +#define REL_COMPAT 23 +#define REL_KIND 24 /* for filters only */ +#define REL_MULTIARCH 25 /* debian multiarch annotation */ +#define REL_ELSE 26 /* only as evr part of REL_COND/REL_UNLESS */ +#define REL_ERROR 27 /* parse errors and the like */ +#define REL_WITHOUT 28 +#define REL_UNLESS 29 /* AND_NOT */ +#define REL_CONDA 30 + +#if !defined(__GNUC__) && !defined(__attribute__) +# define __attribute__(x) +#endif + +extern Pool *pool_create(void); +extern void pool_free(Pool *pool); +extern void pool_freeallrepos(Pool *pool, int reuseids); + +extern void pool_setdebuglevel(Pool *pool, int level); +extern int pool_setdisttype(Pool *pool, int disttype); +extern int pool_set_flag(Pool *pool, int flag, int value); +extern int pool_get_flag(Pool *pool, int flag); + +extern void pool_debug(Pool *pool, int type, const char *format, ...) __attribute__((format(printf, 3, 4))); +extern void pool_setdebugcallback(Pool *pool, void (*debugcallback)(Pool *pool, void *data, int type, const char *str), void *debugcallbackdata); +extern void pool_setdebugmask(Pool *pool, int mask); +extern void pool_setloadcallback(Pool *pool, int (*cb)(Pool *, Repodata *, void *), void *loadcbdata); +extern void pool_setnamespacecallback(Pool *pool, Id (*cb)(Pool *, void *, Id, Id), void *nscbdata); +extern void pool_flush_namespaceproviders(Pool *pool, Id ns, Id evr); + +extern void pool_set_custom_vendorcheck(Pool *pool, int (*vendorcheck)(Pool *, Solvable *, Solvable *)); +extern int (*pool_get_custom_vendorcheck(Pool *pool))(Pool *, Solvable *, Solvable *); + +extern char *pool_alloctmpspace(Pool *pool, int len); +extern void pool_freetmpspace(Pool *pool, const char *space); +extern char *pool_tmpjoin(Pool *pool, const char *str1, const char *str2, const char *str3); +extern char *pool_tmpappend(Pool *pool, const char *str1, const char *str2, const char *str3); +extern const char *pool_bin2hex(Pool *pool, const unsigned char *buf, int len); + +extern void pool_set_installed(Pool *pool, Repo *repo); + +extern int pool_error(Pool *pool, int ret, const char *format, ...) __attribute__((format(printf, 3, 4))); +extern char *pool_errstr(Pool *pool); + +extern void pool_set_rootdir(Pool *pool, const char *rootdir); +extern const char *pool_get_rootdir(Pool *pool); +extern char *pool_prepend_rootdir(Pool *pool, const char *dir); +extern const char *pool_prepend_rootdir_tmp(Pool *pool, const char *dir); + +/** + * Solvable management + */ +extern Id pool_add_solvable(Pool *pool); +extern Id pool_add_solvable_block(Pool *pool, int count); + +extern void pool_free_solvable_block(Pool *pool, Id start, int count, int reuseids); +static inline Solvable *pool_id2solvable(const Pool *pool, Id p) +{ + return pool->solvables + p; +} +static inline Id pool_solvable2id(const Pool *pool, Solvable *s) +{ + return s - pool->solvables; +} + +extern const char *pool_solvable2str(Pool *pool, Solvable *s); +static inline const char *pool_solvid2str(Pool *pool, Id p) +{ + return pool_solvable2str(pool, pool->solvables + p); +} +extern const char *pool_solvidset2str(Pool *pool, Queue *q); + +void pool_set_languages(Pool *pool, const char **languages, int nlanguages); +Id pool_id2langid(Pool *pool, Id id, const char *lang, int create); + +int pool_intersect_evrs(Pool *pool, int pflags, Id pevr, int flags, Id evr); +int pool_match_dep(Pool *pool, Id d1, Id d2); + +/* semi private, used in pool_match_nevr */ +int pool_match_nevr_rel(Pool *pool, Solvable *s, Id d); + +static inline int pool_match_nevr(Pool *pool, Solvable *s, Id d) +{ + if (!ISRELDEP(d)) + return d == s->name; + else + return pool_match_nevr_rel(pool, s, d); +} + + +/** + * Prepares a pool for solving + */ +extern void pool_createwhatprovides(Pool *pool); +extern void pool_addfileprovides(Pool *pool); +extern void pool_addfileprovides_queue(Pool *pool, Queue *idq, Queue *idqinst); +extern void pool_freewhatprovides(Pool *pool); +extern Id pool_queuetowhatprovides(Pool *pool, Queue *q); +extern Id pool_ids2whatprovides(Pool *pool, Id *ids, int count); +extern Id pool_searchlazywhatprovidesq(Pool *pool, Id d); + +extern Id pool_addrelproviders(Pool *pool, Id d); + +static inline Id pool_whatprovides(Pool *pool, Id d) +{ + if (!ISRELDEP(d)) + { + if (pool->whatprovides[d]) + return pool->whatprovides[d]; + } + else + { + Id v = GETRELID(d); + if (pool->whatprovides_rel[v]) + return pool->whatprovides_rel[v]; + } + return pool_addrelproviders(pool, d); +} + +static inline Id *pool_whatprovides_ptr(Pool *pool, Id d) +{ + Id off = pool_whatprovides(pool, d); + return pool->whatprovidesdata + off; +} + +void pool_whatmatchesdep(Pool *pool, Id keyname, Id dep, Queue *q, int marker); +void pool_whatcontainsdep(Pool *pool, Id keyname, Id dep, Queue *q, int marker); +void pool_whatmatchessolvable(Pool *pool, Id keyname, Id solvid, Queue *q, int marker); +void pool_set_whatprovides(Pool *pool, Id id, Id providers); + + +/* search the pool. the following filters are available: + * p - search just this solvable + * key - search only this key + * match - key must match this string + */ +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); + +void pool_clear_pos(Pool *pool); + +/* lookup functions */ +const char *pool_lookup_str(Pool *pool, Id entry, Id keyname); +Id pool_lookup_id(Pool *pool, Id entry, Id keyname); +unsigned long long pool_lookup_num(Pool *pool, Id entry, Id keyname, unsigned long long notfound); +int pool_lookup_void(Pool *pool, Id entry, Id keyname); +const unsigned char *pool_lookup_bin_checksum(Pool *pool, Id entry, Id keyname, Id *typep); +int pool_lookup_idarray(Pool *pool, Id entry, Id keyname, Queue *q); +const char *pool_lookup_checksum(Pool *pool, Id entry, Id keyname, Id *typep); +const char *pool_lookup_deltalocation(Pool *pool, Id entry, unsigned int *medianrp); + + +#define DUCHANGES_ONLYADD 1 + +typedef struct s_DUChanges { + const char *path; + long long kbytes; + long long files; + int flags; +} DUChanges; + + +void pool_create_state_maps(Pool *pool, Queue *installed, Map *installedmap, Map *conflictsmap); +void pool_calc_duchanges(Pool *pool, Map *installedmap, DUChanges *mps, int nmps); +long long pool_calc_installsizechange(Pool *pool, Map *installedmap); + +void pool_add_fileconflicts_deps(Pool *pool, Queue *conflicts); + + + +/* loop over all providers of d */ +#define FOR_PROVIDES(v, vp, d) \ + for (vp = pool_whatprovides(pool, d) ; (v = pool->whatprovidesdata[vp++]) != 0; ) + +/* loop over all repositories */ +#define FOR_REPOS(repoid, r) \ + for (repoid = 1; repoid < pool->nrepos; repoid++) \ + if ((r = pool->repos[repoid]) == 0) \ + continue; \ + else + +#define FOR_POOL_SOLVABLES(p) \ + for (p = 2; p < pool->nsolvables; p++) \ + if (pool->solvables[p].repo == 0) \ + continue; \ + else + +#define POOL_DEBUG(type, ...) do {if ((pool->debugmask & (type)) != 0) pool_debug(pool, (type), __VA_ARGS__);} while (0) +#define IF_POOLDEBUG(type) if ((pool->debugmask & (type)) != 0) + +/* weird suse stuff */ +void pool_trivial_installable_multiversionmap(Pool *pool, Map *installedmap, Queue *pkgs, Queue *res, Map *multiversionmap); +void pool_trivial_installable(Pool *pool, Map *installedmap, Queue *pkgs, Queue *res); + +#ifdef __cplusplus +} +#endif + + +#endif /* LIBSOLV_POOL_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolarch.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolarch.h new file mode 100644 index 0000000000000000000000000000000000000000..787883b05d3c53d45a165f69aedb7d4470c153e0 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolarch.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +#ifndef LIBSOLV_POOLARCH_H +#define LIBSOLV_POOLARCH_H + +#include "pool.h" + +#ifdef __cplusplus +extern "C" { +#endif + +extern void pool_setarch(Pool *, const char *); +extern void pool_setarchpolicy(Pool *, const char *); +extern unsigned char pool_arch2color_slow(Pool *pool, Id arch); + +#define ARCHCOLOR_32 1 +#define ARCHCOLOR_64 2 +#define ARCHCOLOR_ALL 255 + +static inline unsigned char pool_arch2color(Pool *pool, Id arch) +{ + if ((unsigned int)arch >= (unsigned int)pool->lastarch) + return ARCHCOLOR_ALL; + if (pool->id2color && pool->id2color[arch]) + return pool->id2color[arch]; + return pool_arch2color_slow(pool, arch); +} + +static inline int pool_colormatch(Pool *pool, Solvable *s1, Solvable *s2) +{ + if (s1->arch == s2->arch) + return 1; + if ((pool_arch2color(pool, s1->arch) & pool_arch2color(pool, s2->arch)) != 0) + return 1; + return 0; +} + +static inline unsigned int pool_arch2score(const Pool *pool, Id arch) { + return (unsigned int)arch < (unsigned int)pool->lastarch ? (unsigned int)pool->id2arch[arch] : 0; +} + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_POOLARCH_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolid.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolid.h new file mode 100644 index 0000000000000000000000000000000000000000..f832ff4b3002a17b37e01acc8c6346b299799257 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolid.h @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * poolid.h + * + */ + +#ifndef LIBSOLV_POOLID_H +#define LIBSOLV_POOLID_H + +#include "pooltypes.h" +#include "hash.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/*----------------------------------------------- + * Ids with relation + */ + +typedef struct s_Reldep { + Id name; /* "package" */ + Id evr; /* "0:42-3" */ + int flags; /* operation/relation, see REL_x in pool.h */ +} Reldep; + +extern Id pool_str2id(Pool *pool, const char *, int); +extern Id pool_strn2id(Pool *pool, const char *, unsigned int, int); +extern Id pool_rel2id(Pool *pool, Id, Id, int, int); +extern const char *pool_id2str(const Pool *pool, Id); +extern const char *pool_id2rel(const Pool *pool, Id); +extern const char *pool_id2evr(const Pool *pool, Id); +extern const char *pool_dep2str(Pool *pool, Id); /* might alloc tmpspace */ + +extern void pool_shrink_strings(Pool *pool); +extern void pool_shrink_rels(Pool *pool); +extern void pool_freeidhashes(Pool *pool); +extern void pool_resize_rels_hash(Pool *pool, int numnew); + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_POOLID_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/pooltypes.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/pooltypes.h new file mode 100644 index 0000000000000000000000000000000000000000..bccdfc1235181c2ba4a82444178f154bd02596f2 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/pooltypes.h @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * pooltypes.h + * + */ + +#ifndef LIBSOLV_POOLTYPES_H +#define LIBSOLV_POOLTYPES_H + +#ifdef __cplusplus +extern "C" { +#endif + +/* format version number for .solv files */ +#define SOLV_VERSION_0 0 +#define SOLV_VERSION_1 1 +#define SOLV_VERSION_2 2 +#define SOLV_VERSION_3 3 +#define SOLV_VERSION_4 4 +#define SOLV_VERSION_5 5 +#define SOLV_VERSION_6 6 +#define SOLV_VERSION_7 7 +#define SOLV_VERSION_8 8 +#define SOLV_VERSION_9 9 + +#define SOLV_FLAG_PREFIX_POOL 4 +#define SOLV_FLAG_SIZE_BYTES 8 +#define SOLV_FLAG_USERDATA 16 +#define SOLV_FLAG_IDARRAYBLOCK 32 + +struct s_Stringpool; +typedef struct s_Stringpool Stringpool; + +struct s_Pool; +typedef struct s_Pool Pool; + +struct s_Repo; +typedef struct s_Repo Repo; + +struct s_Repodata; +typedef struct s_Repodata Repodata; + +struct s_Solvable; +typedef struct s_Solvable Solvable; + +/* identifier for string values */ +typedef int Id; /* must be signed!, since negative Id is used in solver rules to denote negation */ + +/* offset value, e.g. used to 'point' into the stringspace */ +typedef unsigned int Offset; + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_POOLTYPES_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolvendor.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolvendor.h new file mode 100644 index 0000000000000000000000000000000000000000..873e0904745b13dfb70e7504d1dce8eb51dd56a7 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/poolvendor.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +#ifndef LIBSOLV_POOLVENDOR_H +#define LIBSOLV_POOLVENDOR_H + +#include "pool.h" + +#ifdef __cplusplus +extern "C" { +#endif + +Id pool_vendor2mask(Pool *pool, Id vendor); +void pool_setvendorclasses(Pool *pool, const char **vendorclasses); +void pool_addvendorclass(Pool *pool, const char **vendorclass); + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_POOLVENDOR_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/problems.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/problems.h new file mode 100644 index 0000000000000000000000000000000000000000..9e4ad1ffead8054c774ac72756fc1d512fd68eca --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/problems.h @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2007-2009, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * problems.h + * + */ + +#ifndef LIBSOLV_PROBLEMS_H +#define LIBSOLV_PROBLEMS_H + +#include "rules.h" + +#ifdef __cplusplus +extern "C" { +#endif + + +struct s_Solver; + +#define SOLVER_SOLUTION_JOB (0) +#define SOLVER_SOLUTION_DISTUPGRADE (-1) +#define SOLVER_SOLUTION_INFARCH (-2) +#define SOLVER_SOLUTION_BEST (-3) +#define SOLVER_SOLUTION_POOLJOB (-4) +#define SOLVER_SOLUTION_BLACK (-5) +#define SOLVER_SOLUTION_STRICTREPOPRIORITY (-6) +/* replace solution types */ +#define SOLVER_SOLUTION_ERASE (-100) +#define SOLVER_SOLUTION_REPLACE (-101) +#define SOLVER_SOLUTION_REPLACE_DOWNGRADE (-102) +#define SOLVER_SOLUTION_REPLACE_ARCHCHANGE (-103) +#define SOLVER_SOLUTION_REPLACE_VENDORCHANGE (-104) +#define SOLVER_SOLUTION_REPLACE_NAMECHANGE (-105) + +void solver_recordproblem(struct s_Solver *solv, Id rid); +void solver_fixproblem(struct s_Solver *solv, Id rid); +Id solver_autouninstall(struct s_Solver *solv, int start); +void solver_disableproblemset(struct s_Solver *solv, int start); + +int solver_prepare_solutions(struct s_Solver *solv); + +unsigned int solver_problem_count(struct s_Solver *solv); +Id solver_next_problem(struct s_Solver *solv, Id problem); +unsigned int solver_solution_count(struct s_Solver *solv, Id problem); +Id solver_next_solution(struct s_Solver *solv, Id problem, Id solution); +unsigned int solver_solutionelement_count(struct s_Solver *solv, Id problem, Id solution); +Id solver_solutionelement_internalid(struct s_Solver *solv, Id problem, Id solution); +Id solver_solutionelement_extrajobflags(struct s_Solver *solv, Id problem, Id solution); +Id solver_next_solutionelement(struct s_Solver *solv, Id problem, Id solution, Id element, Id *p, Id *rp); +void solver_all_solutionelements(struct s_Solver *solv, Id problem, Id solution, int expandreplaces, Queue *q); + +void solver_take_solutionelement(struct s_Solver *solv, Id p, Id rp, Id extrajobflags, Queue *job); +void solver_take_solution(struct s_Solver *solv, Id problem, Id solution, Queue *job); + +Id solver_findproblemrule(struct s_Solver *solv, Id problem); +void solver_findallproblemrules(struct s_Solver *solv, Id problem, Queue *rules); + +extern const char *solver_problemruleinfo2str(struct s_Solver *solv, SolverRuleinfo type, Id source, Id target, Id dep); +extern const char *solver_problem2str(struct s_Solver *solv, Id problem); +extern const char *solver_solutionelement2str(struct s_Solver *solv, Id p, Id rp); +extern const char *solver_solutionelementtype2str(struct s_Solver *solv, int type, Id p, Id rp); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/queue.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/queue.h new file mode 100644 index 0000000000000000000000000000000000000000..8b1ef08ff6448df05a53914c1bed1466a79c137b --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/queue.h @@ -0,0 +1,127 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * queue.h + * + */ + +#ifndef LIBSOLV_QUEUE_H +#define LIBSOLV_QUEUE_H + +#include "pooltypes.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct s_Queue { + Id *elements; /* pointer to elements */ + int count; /* current number of elements in queue */ + Id *alloc; /* this is whats actually allocated, elements > alloc if shifted */ + int left; /* space left in alloc *after* elements+count */ +} Queue; + + +extern void queue_alloc_one(Queue *q); /* internal */ +extern void queue_alloc_one_head(Queue *q); /* internal */ + +/* clear queue */ +static inline void +queue_empty(Queue *q) +{ + if (q->alloc) + { + q->left += (q->elements - q->alloc) + q->count; + q->elements = q->alloc; + } + else + q->left += q->count; + q->count = 0; +} + +static inline Id +queue_shift(Queue *q) +{ + if (!q->count) + return 0; + q->count--; + return *q->elements++; +} + +static inline Id +queue_pop(Queue *q) +{ + if (!q->count) + return 0; + q->left++; + return q->elements[--q->count]; +} + +static inline void +queue_unshift(Queue *q, Id id) +{ + if (!q->alloc || q->alloc == q->elements) + queue_alloc_one_head(q); + *--q->elements = id; + q->count++; +} + +static inline void +queue_push(Queue *q, Id id) +{ + if (!q->left) + queue_alloc_one(q); + q->elements[q->count++] = id; + q->left--; +} + +static inline void +queue_pushunique(Queue *q, Id id) +{ + int i; + for (i = q->count; i > 0; ) + if (q->elements[--i] == id) + return; + queue_push(q, id); +} + +static inline void +queue_push2(Queue *q, Id id1, Id id2) +{ + queue_push(q, id1); + queue_push(q, id2); +} + +static inline void +queue_truncate(Queue *q, int n) +{ + if (q->count > n) + { + q->left += q->count - n; + q->count = n; + } +} + +extern void queue_init(Queue *q); +extern void queue_init_buffer(Queue *q, Id *buf, int size); +extern void queue_init_clone(Queue *target, const Queue *source); +extern void queue_free(Queue *q); + +extern void queue_insert(Queue *q, int pos, Id id); +extern void queue_insert2(Queue *q, int pos, Id id1, Id id2); +extern void queue_insertn(Queue *q, int pos, int n, const Id *elements); +extern void queue_delete(Queue *q, int pos); +extern void queue_delete2(Queue *q, int pos); +extern void queue_deleten(Queue *q, int pos, int n); +extern void queue_prealloc(Queue *q, int n); + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_QUEUE_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo.h new file mode 100644 index 0000000000000000000000000000000000000000..1f270d723f77484f8a213e2b80121844dc0f6dad --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo.h @@ -0,0 +1,235 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * repo.h + * + */ + +#ifndef LIBSOLV_REPO_H +#define LIBSOLV_REPO_H + +#include "pooltypes.h" +#include "pool.h" +#include "poolarch.h" +#include "repodata.h" +#include "dataiterator.h" +#include "hash.h" + +#ifdef __cplusplus +extern "C" { +#endif + +struct s_Repo { + const char *name; /* name pointer */ + Id repoid; /* our id */ + void *appdata; /* application private pointer */ + + Pool *pool; /* pool containing this repo */ + + int start; /* start of this repo solvables within pool->solvables */ + int end; /* last solvable + 1 of this repo */ + int nsolvables; /* number of solvables repo is contributing to pool */ + + int disabled; /* ignore the solvables? */ + int priority; /* priority of this repo */ + int subpriority; /* sub-priority of this repo, used just for sorting, not pruning */ + + Id *idarraydata; /* array of metadata Ids, solvable dependencies are offsets into this array */ + int idarraysize; + + int nrepodata; /* number of our stores.. */ + + Id *rpmdbid; /* solvable side data: rpm database id */ + +#ifdef LIBSOLV_INTERNAL + Repodata *repodata; /* our stores for non-solvable related data */ + Offset lastoff; /* start of last array in idarraydata */ + + Hashtable lastidhash; /* hash to speed up repo_addid_dep */ + Hashval lastidhash_mask; + int lastidhash_idarraysize; + int lastmarker; + Offset lastmarkerpos; +#endif /* LIBSOLV_INTERNAL */ +}; + +extern Repo *repo_create(Pool *pool, const char *name); +extern void repo_free(Repo *repo, int reuseids); +extern void repo_empty(Repo *repo, int reuseids); +extern void repo_freedata(Repo *repo); +extern Id repo_add_solvable(Repo *repo); +extern Id repo_add_solvable_block(Repo *repo, int count); +extern void repo_free_solvable(Repo *repo, Id p, int reuseids); +extern void repo_free_solvable_block(Repo *repo, Id start, int count, int reuseids); +extern void *repo_sidedata_create(Repo *repo, size_t size); +extern void *repo_sidedata_extend(Repo *repo, void *b, size_t size, Id p, int count); +extern Id repo_add_solvable_block_before(Repo *repo, int count, Repo *beforerepo); + +extern Offset repo_addid(Repo *repo, Offset olddeps, Id id); +extern Offset repo_addid_dep(Repo *repo, Offset olddeps, Id id, Id marker); +extern Offset repo_reserve_ids(Repo *repo, Offset olddeps, int num); + +static inline const char *repo_name(const Repo *repo) +{ + return repo->name; +} + +/* those two functions are here because they need the Repo definition */ + +static inline Repo *pool_id2repo(Pool *pool, Id repoid) +{ + return repoid < pool->nrepos ? pool->repos[repoid] : 0; +} + +static inline int pool_disabled_solvable(const Pool *pool, Solvable *s) +{ + if (s->repo && s->repo->disabled) + return 1; + if (pool->considered) + { + Id id = s - pool->solvables; + if (!MAPTST(pool->considered, id)) + return 1; + } + return 0; +} + +static inline int pool_badarch_solvable(const Pool *pool, Solvable *s) +{ + if (pool->id2arch && (!s->arch || pool_arch2score(pool, s->arch) == 0)) + return 1; + return 0; +} + +static inline int pool_installable(const Pool *pool, Solvable *s) +{ + if (s->arch == ARCH_SRC || s->arch == ARCH_NOSRC) + return 0; + if (s->repo && s->repo->disabled) + return 0; + if (pool->id2arch && (!s->arch || pool_arch2score(pool, s->arch) == 0)) + return 0; + if (pool->considered) + { + Id id = s - pool->solvables; + if (!MAPTST(pool->considered, id)) + return 0; + } + return 1; +} + +#ifdef LIBSOLV_INTERNAL +static inline int pool_installable_whatprovides(const Pool *pool, Solvable *s) +{ + /* we always need the installed solvable in the whatprovides data, + otherwise obsoletes/conflicts on them won't work */ + if (s->repo != pool->installed) + { + if (s->arch == ARCH_SRC || s->arch == ARCH_NOSRC || pool_badarch_solvable(pool, s)) + return 0; + if (pool->considered && !pool->whatprovideswithdisabled) + { + Id id = s - pool->solvables; + if (!MAPTST(pool->considered, id)) + return 0; + } + } + return 1; +} +#endif + +/* not in solvable.h because we need the repo definition */ +static inline Solvable *solvable_free(Solvable *s, int reuseids) +{ + if (s && s->repo) + repo_free_solvable(s->repo, s - s->repo->pool->solvables, reuseids); + return 0; +} + +/* search callback values */ +#define SEARCH_NEXT_KEY 1 +#define SEARCH_NEXT_SOLVABLE 2 +#define SEARCH_STOP 3 +#define SEARCH_ENTERSUB -1 + +/* standard flags used in the repo_add functions */ +#define REPO_REUSE_REPODATA (1 << 0) +#define REPO_NO_INTERNALIZE (1 << 1) +#define REPO_LOCALPOOL (1 << 2) +#define REPO_USE_LOADING (1 << 3) +#define REPO_EXTEND_SOLVABLES (1 << 4) +#define REPO_USE_ROOTDIR (1 << 5) +#define REPO_NO_LOCATION (1 << 6) + +Repodata *repo_add_repodata(Repo *repo, int flags); +Repodata *repo_id2repodata(Repo *repo, Id id); +Repodata *repo_last_repodata(Repo *repo); + +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); + +/* returns the last repodata that contains the key */ +Repodata *repo_lookup_repodata(Repo *repo, Id entry, Id keyname); +Repodata *repo_lookup_repodata_opt(Repo *repo, Id entry, Id keyname); +Repodata *repo_lookup_filelist_repodata(Repo *repo, Id entry, Datamatcher *matcher); + +/* returns the string value of the attribute, or NULL if not found */ +Id repo_lookup_type(Repo *repo, Id entry, Id keyname); +const char *repo_lookup_str(Repo *repo, Id entry, Id keyname); +/* returns the integer value of the attribute, or notfound if not found */ +unsigned long long repo_lookup_num(Repo *repo, Id entry, Id keyname, unsigned long long notfound); +Id repo_lookup_id(Repo *repo, Id entry, Id keyname); +int repo_lookup_idarray(Repo *repo, Id entry, Id keyname, Queue *q); +int repo_lookup_deparray(Repo *repo, Id entry, Id keyname, Queue *q, Id marker); +int repo_lookup_void(Repo *repo, Id entry, Id keyname); +const char *repo_lookup_checksum(Repo *repo, Id entry, Id keyname, Id *typep); +const unsigned char *repo_lookup_bin_checksum(Repo *repo, Id entry, Id keyname, Id *typep); +const void *repo_lookup_binary(Repo *repo, Id entry, Id keyname, int *lenp); +unsigned int repo_lookup_count(Repo *repo, Id entry, Id keyname); /* internal */ +Id solv_depmarker(Id keyname, Id marker); + +void repo_set_id(Repo *repo, Id p, Id keyname, Id id); +void repo_set_num(Repo *repo, Id p, Id keyname, unsigned long long num); +void repo_set_str(Repo *repo, Id p, Id keyname, const char *str); +void repo_set_poolstr(Repo *repo, Id p, Id keyname, const char *str); +void repo_add_poolstr_array(Repo *repo, Id p, Id keyname, const char *str); +void repo_add_idarray(Repo *repo, Id p, Id keyname, Id id); +void repo_add_deparray(Repo *repo, Id p, Id keyname, Id dep, Id marker); +void repo_set_idarray(Repo *repo, Id p, Id keyname, Queue *q); +void repo_set_deparray(Repo *repo, Id p, Id keyname, Queue *q, Id marker); +void repo_unset(Repo *repo, Id p, Id keyname); + +void repo_internalize(Repo *repo); +void repo_disable_paging(Repo *repo); +Id *repo_create_keyskip(Repo *repo, Id entry, Id **oldkeyskip); + + +/* iterator macros */ +#define FOR_REPO_SOLVABLES(r, p, s) \ + for (p = (r)->start, s = (r)->pool->solvables + p; p < (r)->end; p++, s = (r)->pool->solvables + p) \ + if (s->repo != (r)) \ + continue; \ + else + +#ifdef LIBSOLV_INTERNAL +#define FOR_REPODATAS(repo, rdid, data) \ + for (rdid = 1, data = repo->repodata + rdid; rdid < repo->nrepodata; rdid++, data++) +#else +#define FOR_REPODATAS(repo, rdid, data) \ + for (rdid = 1; rdid < repo->nrepodata && (data = repo_id2repodata(repo, rdid)); rdid++) +#endif + +/* weird suse stuff, do not use */ +extern Offset repo_fix_supplements(Repo *repo, Offset provides, Offset supplements, Offset freshens); +extern Offset repo_fix_conflicts(Repo *repo, Offset conflicts); +extern void repo_rewrite_suse_deps(Solvable *s, Offset freshens); + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_REPO_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_conda.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_conda.h new file mode 100644 index 0000000000000000000000000000000000000000..39911eb0bbb5f3dd0daa40ef39ab931cac40f9c9 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_conda.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2019, SUSE LLC + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +#ifndef LIBSOLV_REPO_CONDA_H +#define LIBSOLV_REPO_CONDA_H + +#include + +#include "repo.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define CONDA_ADD_USE_ONLY_TAR_BZ2 (1 << 8) +#define CONDA_ADD_WITH_SIGNATUREDATA (1 << 9) + +extern int repo_add_conda(Repo *repo, FILE *fp, int flags); + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_REPO_CONDA_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_solv.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_solv.h new file mode 100644 index 0000000000000000000000000000000000000000..57bf177262221c03a51e56d1655b28525f8c5f44 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_solv.h @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * repo_solv.h + * + */ + +#ifndef LIBSOLV_REPO_SOLVE_H +#define LIBSOLV_REPO_SOLVE_H + +#include + +#include "pool.h" +#include "repo.h" + +#ifdef __cplusplus +extern "C" { +#endif + +extern int repo_add_solv(Repo *repo, FILE *fp, int flags); +extern int solv_read_userdata(FILE *fp, unsigned char **datap, int *lenp); + +#define SOLV_ADD_NO_STUBS (1 << 8) + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_REPO_SOLVE_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_write.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_write.h new file mode 100644 index 0000000000000000000000000000000000000000..7734b0130c47c6f17771e600e8059f4006614ff4 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repo_write.h @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * repo_write.h + * + */ + +#ifndef REPO_WRITE_H +#define REPO_WRITE_H + +#include + +#include "repo.h" +#include "queue.h" + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct s_Repowriter { + Repo *repo; + int flags; + int repodatastart; + int repodataend; + int solvablestart; + int solvableend; + int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata); + void *kfdata; + Queue *keyq; + void *userdata; + int userdatalen; +} Repowriter; + +/* repowriter flags */ +#define REPOWRITER_NO_STORAGE_SOLVABLE (1 << 0) +#define REPOWRITER_KEEP_TYPE_DELETED (1 << 1) +#define REPOWRITER_LEGACY (1 << 30) + +Repowriter *repowriter_create(Repo *repo); +Repowriter *repowriter_free(Repowriter *writer); +void repowriter_set_flags(Repowriter *writer, int flags); +void repowriter_set_keyfilter(Repowriter *writer, int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata), void *kfdata); +void repowriter_set_keyqueue(Repowriter *writer, Queue *keyq); +void repowriter_set_repodatarange(Repowriter *writer, int repodatastart, int repodataend); +void repowriter_set_solvablerange(Repowriter *writer, int solvablestart, int solvableend); +void repowriter_set_userdata(Repowriter *writer, const void *data, int len); +int repowriter_write(Repowriter *writer, FILE *fp); + +/* convenience functions */ +extern int repo_write(Repo *repo, FILE *fp); +extern int repodata_write(Repodata *data , FILE *fp); + +extern int repo_write_stdkeyfilter(Repo *repo, Repokey *key, void *kfdata); + +/* deprecated functions, do not use in new code! */ +extern int repo_write_filtered(Repo *repo, FILE *fp, int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata), void *kfdata, Queue *keyq); +extern int repodata_write_filtered(Repodata *data , FILE *fp, int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata), void *kfdata, Queue *keyq); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repodata.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repodata.h new file mode 100644 index 0000000000000000000000000000000000000000..fda463e7fb386c2d2d665ab5e6062c5b20236c0e --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/repodata.h @@ -0,0 +1,359 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * repodata.h + * + */ + +#ifndef LIBSOLV_REPODATA_H +#define LIBSOLV_REPODATA_H + +#include + +#include "pooltypes.h" +#include "pool.h" +#include "dirpool.h" + +#ifdef LIBSOLV_INTERNAL +#include "repopage.h" +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#define SIZEOF_MD5 16 +#define SIZEOF_SHA1 20 +#define SIZEOF_SHA224 28 +#define SIZEOF_SHA256 32 +#define SIZEOF_SHA384 48 +#define SIZEOF_SHA512 64 + +struct s_KeyValue; + +typedef struct s_Repokey { + Id name; + Id type; /* REPOKEY_TYPE_xxx */ + unsigned int size; + unsigned int storage; /* KEY_STORAGE_xxx */ +} Repokey; + +#define KEY_STORAGE_DROPPED 0 +#define KEY_STORAGE_SOLVABLE 1 +#define KEY_STORAGE_INCORE 2 +#define KEY_STORAGE_VERTICAL_OFFSET 3 +#define KEY_STORAGE_IDARRAYBLOCK 4 + +#ifdef LIBSOLV_INTERNAL +struct dircache; +#endif + +/* repodata states */ +#define REPODATA_AVAILABLE 0 +#define REPODATA_STUB 1 +#define REPODATA_ERROR 2 +#define REPODATA_STORE 3 +#define REPODATA_LOADING 4 + +/* repodata filelist types */ +/* note that FILELIST_FILTERED means that the data contains a filtered + * filelist *AND* that it is authoritative for all included solvables. */ +#define REPODATA_FILELIST_FILTERED 1 +#define REPODATA_FILELIST_EXTENSION 2 + +struct s_Repodata { + Id repodataid; /* our id */ + Repo *repo; /* back pointer to repo */ + + int state; /* available, stub or error */ + + void (*loadcallback)(Repodata *); + + int start; /* start of solvables this repodata is valid for */ + int end; /* last solvable + 1 of this repodata */ + + Repokey *keys; /* keys, first entry is always zero */ + int nkeys; /* length of keys array */ + unsigned char keybits[32]; /* keyname hash */ + + Id *schemata; /* schema -> offset into schemadata */ + int nschemata; /* number of schemata */ + Id *schemadata; /* schema storage */ + + Stringpool spool; /* local string pool */ + int localpool; /* is local string pool used */ + + Dirpool dirpool; /* local dir pool */ + +#ifdef LIBSOLV_INTERNAL + FILE *fp; /* file pointer of solv file */ + int error; /* corrupt solv file */ + + int filelisttype; /* type of filelist */ + Id *filelistfilter; /* filelist filter used */ + char *filelistfilterdata; /* filelist filter string space */ + + unsigned int schemadatalen; /* schema storage size */ + Id *schematahash; /* unification helper */ + + unsigned char *incoredata; /* in-core data */ + unsigned int incoredatalen; /* in-core data used */ + unsigned int incoredatafree; /* free data len */ + + Id mainschema; /* SOLVID_META schema */ + Id *mainschemaoffsets; /* SOLVID_META offsets into incoredata */ + + Id *incoreoffset; /* offset for all entries */ + + Id *verticaloffset; /* offset for all verticals, nkeys elements */ + Id lastverticaloffset; /* end of verticals */ + + Repopagestore store; /* our page store */ + Id storestate; /* incremented every time the store might change */ + + unsigned char *vincore; /* internal vertical data */ + unsigned int vincorelen; /* data size */ + + Id **attrs; /* un-internalized attributes */ + Id **xattrs; /* anonymous handles */ + int nxattrs; /* number of handles */ + + unsigned char *attrdata; /* their string data space */ + unsigned int attrdatalen; /* its len */ + Id *attriddata; /* their id space */ + unsigned int attriddatalen; /* its len */ + unsigned long long *attrnum64data; /* their 64bit num data space */ + unsigned int attrnum64datalen; /* its len */ + + /* array cache to speed up repodata_add functions*/ + Id lasthandle; + Id lastkey; + Id lastdatalen; + + /* directory cache to speed up repodata_str2dir */ + struct dircache *dircache; +#endif + +}; + +#define SOLVID_META -1 +#define SOLVID_POS -2 + + +/*----- + * management functions + */ +void repodata_initdata(Repodata *data, Repo *repo, int localpool); +void repodata_freedata(Repodata *data); + +void repodata_free(Repodata *data); +void repodata_empty(Repodata *data, int localpool); + +void repodata_load(Repodata *data); + +/* + * key management functions + */ +Id repodata_key2id(Repodata *data, Repokey *key, int create); + +static inline Repokey * +repodata_id2key(Repodata *data, Id keyid) +{ + return data->keys + keyid; +} + +/* + * schema management functions + */ +Id repodata_schema2id(Repodata *data, Id *schema, int create); +void repodata_free_schemahash(Repodata *data); + +static inline Id * +repodata_id2schema(Repodata *data, Id schemaid) +{ + return data->schemadata + data->schemata[schemaid]; +} + +/* + * data search and access + */ + +/* check if there is a chance that the repodata contains data for + * the specified keyname */ +static inline int +repodata_precheck_keyname(Repodata *data, Id keyname) +{ + unsigned char x = data->keybits[(keyname >> 3) & (sizeof(data->keybits) - 1)]; + return x && (x & (1 << (keyname & 7))) ? 1 : 0; +} + +/* check if the repodata contains data for the specified keyname */ +static inline int +repodata_has_keyname(Repodata *data, Id keyname) +{ + int i; + if (!repodata_precheck_keyname(data, keyname)) + return 0; + for (i = 1; i < data->nkeys; i++) + if (data->keys[i].name == keyname) + return 1; + return 0; +} + +/* search key (all keys, if keyname == 0) for Id + * Call for each match */ +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); +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); +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); + +/* Make sure the found KeyValue has the "str" field set. Return "str" + * if valid, NULL if not possible */ +const char *repodata_stringify(Pool *pool, Repodata *data, Repokey *key, struct s_KeyValue *kv, int flags); + +/* filelist filter support */ +void repodata_set_filelisttype(Repodata *data, int filelisttype); +int repodata_filelistfilter_matches(Repodata *data, const char *str); +void repodata_free_filelistfilter(Repodata *data); + +/* lookup functions */ +Id repodata_lookup_type(Repodata *data, Id solvid, Id keyname); +Id repodata_lookup_id(Repodata *data, Id solvid, Id keyname); +const char *repodata_lookup_str(Repodata *data, Id solvid, Id keyname); +unsigned long long repodata_lookup_num(Repodata *data, Id solvid, Id keyname, unsigned long long notfound); +int repodata_lookup_void(Repodata *data, Id solvid, Id keyname); +const unsigned char *repodata_lookup_bin_checksum(Repodata *data, Id solvid, Id keyname, Id *typep); +int repodata_lookup_idarray(Repodata *data, Id solvid, Id keyname, Queue *q); +const void *repodata_lookup_binary(Repodata *data, Id solvid, Id keyname, int *lenp); +unsigned int repodata_lookup_count(Repodata *data, Id solvid, Id keyname); /* internal */ + +/* internal, used in fileprovides code */ +const unsigned char *repodata_lookup_packed_dirstrarray(Repodata *data, Id solvid, Id keyname); + +/* internal, fill keyskip array with data */ +Id *repodata_fill_keyskip(Repodata *data, Id solvid, Id *keyskip); + +/*----- + * data assignment functions + */ + +/* + * extend the data so that it contains the specified solvables + * (no longer needed, as the repodata_set functions autoextend) + */ +void repodata_extend(Repodata *data, Id p); +void repodata_extend_block(Repodata *data, Id p, int num); +void repodata_shrink(Repodata *data, int end); + +/* internalize freshly set data, so that it is found by the search + * functions and written out */ +void repodata_internalize(Repodata *data); + +/* create an anonymous handle. useful for substructures like + * fixarray/flexarray */ +Id repodata_new_handle(Repodata *data); + +/* basic types: void, num, string, Id */ +void repodata_set_void(Repodata *data, Id solvid, Id keyname); +void repodata_set_num(Repodata *data, Id solvid, Id keyname, unsigned long long num); +void repodata_set_id(Repodata *data, Id solvid, Id keyname, Id id); +void repodata_set_str(Repodata *data, Id solvid, Id keyname, const char *str); +void repodata_set_binary(Repodata *data, Id solvid, Id keyname, void *buf, int len); +/* create id from string, then set_id */ +void repodata_set_poolstr(Repodata *data, Id solvid, Id keyname, const char *str); + +/* set numeric constant */ +void repodata_set_constant(Repodata *data, Id solvid, Id keyname, unsigned int constant); + +/* set Id constant */ +void repodata_set_constantid(Repodata *data, Id solvid, Id keyname, Id id); + +/* checksum */ +void repodata_set_bin_checksum(Repodata *data, Id solvid, Id keyname, Id type, + const unsigned char *buf); +void repodata_set_checksum(Repodata *data, Id solvid, Id keyname, Id type, + const char *str); +void repodata_set_idarray(Repodata *data, Id solvid, Id keyname, Queue *q); + +/* directory (for package file list) */ +void repodata_add_dirnumnum(Repodata *data, Id solvid, Id keyname, Id dir, Id num, Id num2); +void repodata_add_dirstr(Repodata *data, Id solvid, Id keyname, Id dir, const char *str); +void repodata_free_dircache(Repodata *data); + + +/* arrays */ +void repodata_add_idarray(Repodata *data, Id solvid, Id keyname, Id id); +void repodata_add_poolstr_array(Repodata *data, Id solvid, Id keyname, const char *str); +void repodata_add_fixarray(Repodata *data, Id solvid, Id keyname, Id ghandle); +void repodata_add_flexarray(Repodata *data, Id solvid, Id keyname, Id ghandle); + +/* generic */ +void repodata_set_kv(Repodata *data, Id solvid, Id keyname, Id keytype, struct s_KeyValue *kv); +void repodata_unset(Repodata *data, Id solvid, Id keyname); +void repodata_unset_uninternalized(Repodata *data, Id solvid, Id keyname); + +/* + merge/swap attributes from one solvable to another + works only if the data is not yet internalized +*/ +void repodata_merge_attrs(Repodata *data, Id dest, Id src); +void repodata_merge_some_attrs(Repodata *data, Id dest, Id src, Map *keyidmap, int overwrite); +void repodata_swap_attrs(Repodata *data, Id dest, Id src); + +Repodata *repodata_create_stubs(Repodata *data); + +/* + * load all paged data, used to speed up copying in repo_rpmdb + */ +void repodata_disable_paging(Repodata *data); + +/* helper functions */ +Id repodata_globalize_id(Repodata *data, Id id, int create); +Id repodata_localize_id(Repodata *data, Id id, int create); +Id repodata_translate_id(Repodata *data, Repodata *fromdata, Id id, int create); +Id repodata_translate_dir_slow(Repodata *data, Repodata *fromdata, Id dir, int create, Id *cache); + +Id repodata_str2dir(Repodata *data, const char *dir, int create); +const char *repodata_dir2str(Repodata *data, Id did, const char *suf); +const char *repodata_chk2str(Repodata *data, Id type, const unsigned char *buf); +void repodata_set_location(Repodata *data, Id solvid, int medianr, const char *dir, const char *file); +void repodata_set_deltalocation(Repodata *data, Id handle, int medianr, const char *dir, const char *file); +void repodata_set_sourcepkg(Repodata *data, Id solvid, const char *sourcepkg); + +/* uninternalized data lookup / search */ +Repokey *repodata_lookup_kv_uninternalized(Repodata *data, Id solvid, Id keyname, struct s_KeyValue *kv); +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); + +/* stats */ +unsigned int repodata_memused(Repodata *data); + +static inline Id +repodata_translate_dir(Repodata *data, Repodata *fromdata, Id dir, int create, Id *cache) +{ + if (cache && dir && cache[(dir & 255) * 2] == dir) + return cache[(dir & 255) * 2 + 1]; + return repodata_translate_dir_slow(data, fromdata, dir, create, cache); +} + +static inline Id * +repodata_create_dirtranscache(Repodata *data) +{ + return (Id *)solv_calloc(256, sizeof(Id) * 2); +} + +static inline Id * +repodata_free_dirtranscache(Id *cache) +{ + return (Id *)solv_free(cache); +} + + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_REPODATA_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/rules.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/rules.h new file mode 100644 index 0000000000000000000000000000000000000000..17af2dfc9dbd8dcb1857f57482d679659f29d893 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/rules.h @@ -0,0 +1,198 @@ +/* + * Copyright (c) 2007-2009, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * rules.h + * + */ + +#ifndef LIBSOLV_RULES_H +#define LIBSOLV_RULES_H + +#include "pooltypes.h" +#include "bitmap.h" +#include "queue.h" + +#ifdef __cplusplus +extern "C" { +#endif + + +/* ---------------------------------------------- + * Rule + * + * providerN(B) == Package Id of package providing tag B + * N = 1, 2, 3, in case of multiple providers + * + * A requires B : !A | provider1(B) | provider2(B) + * + * A conflicts B : (!A | !provider1(B)) & (!A | !provider2(B)) ... + * + * 'not' is encoded as a negative Id + * + * Binary rule: p = first literal, d = 0, w2 = second literal, w1 = p + * + * There are a lot of rules, so the struct is kept as small as + * possible. Do not add new members unless there is no other way. + */ + +typedef struct s_Rule { + Id p; /* first literal in rule */ + Id d; /* Id offset into 'list of providers terminated by 0' as used by whatprovides; pool->whatprovides + d */ + /* in case of binary rules, d == 0, w1 == p, w2 == other literal */ + /* in case of disabled rules: ~d, aka -d - 1 */ + Id w1, w2; /* watches, literals not-yet-decided */ + /* if !w2, assertion, not rule */ + Id n1, n2; /* next rules in linked list, corresponding to w1, w2 */ +} Rule; + + +typedef enum { + SOLVER_RULE_UNKNOWN = 0, + SOLVER_RULE_PKG = 0x100, + SOLVER_RULE_PKG_NOT_INSTALLABLE, + SOLVER_RULE_PKG_NOTHING_PROVIDES_DEP, + SOLVER_RULE_PKG_REQUIRES, + SOLVER_RULE_PKG_SELF_CONFLICT, + SOLVER_RULE_PKG_CONFLICTS, + SOLVER_RULE_PKG_SAME_NAME, + SOLVER_RULE_PKG_OBSOLETES, + SOLVER_RULE_PKG_IMPLICIT_OBSOLETES, + SOLVER_RULE_PKG_INSTALLED_OBSOLETES, + SOLVER_RULE_PKG_RECOMMENDS, + SOLVER_RULE_PKG_CONSTRAINS, + SOLVER_RULE_PKG_SUPPLEMENTS, + SOLVER_RULE_UPDATE = 0x200, + SOLVER_RULE_FEATURE = 0x300, + SOLVER_RULE_JOB = 0x400, + SOLVER_RULE_JOB_NOTHING_PROVIDES_DEP, + SOLVER_RULE_JOB_PROVIDED_BY_SYSTEM, + SOLVER_RULE_JOB_UNKNOWN_PACKAGE, + SOLVER_RULE_JOB_UNSUPPORTED, + SOLVER_RULE_DISTUPGRADE = 0x500, + SOLVER_RULE_INFARCH = 0x600, + SOLVER_RULE_CHOICE = 0x700, + SOLVER_RULE_LEARNT = 0x800, + SOLVER_RULE_BEST = 0x900, + SOLVER_RULE_YUMOBS = 0xa00, + SOLVER_RULE_RECOMMENDS = 0xb00, + SOLVER_RULE_BLACK = 0xc00, + SOLVER_RULE_STRICT_REPO_PRIORITY = 0xd00 +} SolverRuleinfo; + +#define SOLVER_RULE_TYPEMASK 0xff00 + +struct s_Solver; + +/*------------------------------------------------------------------- + * disable rule + */ + +static inline void +solver_disablerule(struct s_Solver *solv, Rule *r) +{ + if (r->d >= 0) + r->d = -r->d - 1; +} + +/*------------------------------------------------------------------- + * enable rule + */ + +static inline void +solver_enablerule(struct s_Solver *solv, Rule *r) +{ + if (r->d < 0) + r->d = -r->d - 1; +} + +extern Rule *solver_addrule(struct s_Solver *solv, Id p, Id p2, Id d); +extern void solver_unifyrules(struct s_Solver *solv); +extern int solver_rulecmp(struct s_Solver *solv, Rule *r1, Rule *r2); +extern void solver_shrinkrules(struct s_Solver *solv, int nrules); + +/* pkg rules */ +extern void solver_addpkgrulesforsolvable(struct s_Solver *solv, Solvable *s, Map *m); +extern void solver_addpkgrulesforweak(struct s_Solver *solv, Map *m); +extern void solver_addpkgrulesforlinked(struct s_Solver *solv, Map *m); +extern void solver_addpkgrulesforupdaters(struct s_Solver *solv, Solvable *s, Map *m, int allow_all); + +/* update/feature rules */ +extern void solver_addfeaturerule(struct s_Solver *solv, Solvable *s); +extern void solver_addupdaterule(struct s_Solver *solv, Solvable *s); + +/* infarch rules */ +extern void solver_addinfarchrules(struct s_Solver *solv, Map *addedmap); + +/* dup rules */ +extern void solver_createdupmaps(struct s_Solver *solv); +extern void solver_freedupmaps(struct s_Solver *solv); +extern void solver_addduprules(struct s_Solver *solv, Map *addedmap); + +/* choice rules */ +extern void solver_addchoicerules(struct s_Solver *solv); +extern void solver_disablechoicerules(struct s_Solver *solv, Rule *r); + +/* best rules */ +extern void solver_addbestrules(struct s_Solver *solv, int havebestinstalljobs, int haslockjob); + +/* yumobs rules */ +extern void solver_addyumobsrules(struct s_Solver *solv); + +/* black rules */ +extern void solver_addblackrules(struct s_Solver *solv); + +/* recommends rules */ +extern void solver_addrecommendsrules(struct s_Solver *solv); + +/* channel priority rules */ +extern void solver_addstrictrepopriorules(struct s_Solver *solv, Map *addedmap); + +/* policy rule disabling/reenabling */ +extern void solver_disablepolicyrules(struct s_Solver *solv); +extern void solver_reenablepolicyrules(struct s_Solver *solv, int jobidx); +extern void solver_reenablepolicyrules_cleandeps(struct s_Solver *solv, Id pkg); + +/* rule info */ +extern int solver_allruleinfos(struct s_Solver *solv, Id rid, Queue *rq); +extern SolverRuleinfo solver_ruleinfo(struct s_Solver *solv, Id rid, Id *fromp, Id *top, Id *depp); +extern SolverRuleinfo solver_ruleclass(struct s_Solver *solv, Id rid); +extern void solver_ruleliterals(struct s_Solver *solv, Id rid, Queue *q); +extern int solver_rule2jobidx(struct s_Solver *solv, Id rid); +extern Id solver_rule2job(struct s_Solver *solv, Id rid, Id *whatp); +extern Id solver_rule2solvable(struct s_Solver *solv, Id rid); +extern void solver_rule2rules(struct s_Solver *solv, Id rid, Queue *q, int recursive); +extern Id solver_rule2pkgrule(struct s_Solver *solv, Id rid); +extern const char *solver_ruleinfo2str(struct s_Solver *solv, SolverRuleinfo type, Id source, Id target, Id dep); + +/* rule infos for weakdep decisions */ +extern int solver_allweakdepinfos(struct s_Solver *solv, Id p, Queue *rq); +extern SolverRuleinfo solver_weakdepinfo(struct s_Solver *solv, Id p, Id *fromp, Id *top, Id *depp); + +/* orphan handling */ +extern void solver_breakorphans(struct s_Solver *solv); +extern void solver_check_brokenorphanrules(struct s_Solver *solv, Queue *dq); + + +/* legacy */ +#define SOLVER_RULE_RPM SOLVER_RULE_PKG +#define SOLVER_RULE_RPM_NOT_INSTALLABLE SOLVER_RULE_PKG_NOT_INSTALLABLE +#define SOLVER_RULE_RPM_NOTHING_PROVIDES_DEP SOLVER_RULE_PKG_NOTHING_PROVIDES_DEP +#define SOLVER_RULE_RPM_PACKAGE_REQUIRES SOLVER_RULE_PKG_REQUIRES +#define SOLVER_RULE_RPM_SELF_CONFLICT SOLVER_RULE_PKG_SELF_CONFLICT +#define SOLVER_RULE_RPM_PACKAGE_CONFLICT SOLVER_RULE_PKG_CONFLICTS +#define SOLVER_RULE_RPM_SAME_NAME SOLVER_RULE_PKG_SAME_NAME +#define SOLVER_RULE_RPM_PACKAGE_OBSOLETES SOLVER_RULE_PKG_OBSOLETES +#define SOLVER_RULE_RPM_IMPLICIT_OBSOLETES SOLVER_RULE_PKG_IMPLICIT_OBSOLETES +#define SOLVER_RULE_RPM_INSTALLEDPKG_OBSOLETES SOLVER_RULE_PKG_INSTALLED_OBSOLETES + +#ifdef __cplusplus +} +#endif + +#endif + diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/selection.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/selection.h new file mode 100644 index 0000000000000000000000000000000000000000..8e60a27b0651838b0b159140565d62b1e97dbe24 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/selection.h @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2012, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * selection.h + * + */ + +#ifndef LIBSOLV_SELECTION_H +#define LIBSOLV_SELECTION_H + +#include "pool.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* what to match */ +#define SELECTION_NAME (1 << 0) +#define SELECTION_PROVIDES (1 << 1) +#define SELECTION_FILELIST (1 << 2) +#define SELECTION_CANON (1 << 3) + +/* match extensions */ +#define SELECTION_DOTARCH (1 << 4) /* allow ".arch" suffix */ +#define SELECTION_REL (1 << 5) /* allow "<=> rel" suffix */ + +/* string comparison modifiers */ +#define SELECTION_GLOB (1 << 9) +#define SELECTION_NOCASE (1 << 11) + +/* extra flags */ +#define SELECTION_FLAT (1 << 10) /* flatten the resulting selection */ +#define SELECTION_SKIP_KIND (1 << 14) /* remove kind: name prefix in SELECTION_NAME matches */ +#define SELECTION_MATCH_DEPSTR (1 << 15) /* match dep2str result */ + +/* package selection */ +#define SELECTION_INSTALLED_ONLY (1 << 8) +#define SELECTION_SOURCE_ONLY (1 << 12) +#define SELECTION_WITH_SOURCE (1 << 13) +#define SELECTION_WITH_DISABLED (1 << 16) +#define SELECTION_WITH_BADARCH (1 << 17) +#define SELECTION_WITH_ALL (SELECTION_WITH_SOURCE | SELECTION_WITH_DISABLED | SELECTION_WITH_BADARCH) + +/* result operator */ +#define SELECTION_REPLACE (0 << 28) +#define SELECTION_ADD (1 << 28) +#define SELECTION_SUBTRACT (2 << 28) +#define SELECTION_FILTER (3 << 28) + + +/* extra SELECTION_FILTER bits */ +#define SELECTION_FILTER_KEEP_IFEMPTY (1 << 30) +#define SELECTION_FILTER_SWAPPED (1 << 31) + +/* internal */ +#define SELECTION_MODEBITS (3 << 28) + +extern int selection_make(Pool *pool, Queue *selection, const char *name, int flags); +extern int selection_make_matchdeps(Pool *pool, Queue *selection, const char *name, int flags, int keyname, int marker); +extern int selection_make_matchdepid(Pool *pool, Queue *selection, Id dep, int flags, int keyname, int marker); +extern int selection_make_matchsolvable(Pool *pool, Queue *selection, Id solvid, int flags, int keyname, int marker); +extern int selection_make_matchsolvablelist(Pool *pool, Queue *selection, Queue *solvidq, int flags, int keyname, int marker); + +extern void selection_filter(Pool *pool, Queue *sel1, Queue *sel2); +extern void selection_add(Pool *pool, Queue *sel1, Queue *sel2); +extern void selection_subtract(Pool *pool, Queue *sel1, Queue *sel2); + +extern void selection_solvables(Pool *pool, Queue *selection, Queue *pkgs); + +extern const char *pool_selection2str(Pool *pool, Queue *selection, Id flagmask); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solv_xfopen.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solv_xfopen.h new file mode 100644 index 0000000000000000000000000000000000000000..613f33178f14079fd7c79c91a943f3a11f095a75 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solv_xfopen.h @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2009-2012, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +#ifndef SOLV_XFOPEN_H +#define SOLV_XFOPEN_H + +extern FILE *solv_xfopen(const char *fn, const char *mode); +extern FILE *solv_xfopen_fd(const char *fn, int fd, const char *mode); +extern FILE *solv_xfopen_buf(const char *fn, char **bufp, size_t *buflp, const char *mode); +extern int solv_xfopen_iscompressed(const char *fn); +extern FILE *solv_fmemopen(const char *buf, size_t bufl, const char *mode); + +#endif diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solvable.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solvable.h new file mode 100644 index 0000000000000000000000000000000000000000..4b26661acea507649743c460a75b22259052b741 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solvable.h @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2007-2012, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * solvable.h + * + * A solvable represents an object with name-epoch:version-release.arch + * and dependencies + */ + +#ifndef LIBSOLV_SOLVABLE_H +#define LIBSOLV_SOLVABLE_H + +#include "pooltypes.h" +#include "queue.h" +#include "bitmap.h" + +#ifdef __cplusplus +extern "C" { +#endif + +struct s_Repo; + +typedef struct s_Solvable { + Id name; + Id arch; + Id evr; /* epoch:version-release */ + Id vendor; + + struct s_Repo *repo; /* repo we belong to */ + + /* dependencies are offsets into repo->idarraydata */ + /* the ifdef resolves "requires" conflicting with a C++20 keyword */ +#ifdef LIBSOLV_SOLVABLE_PREPEND_DEP + Offset dep_provides; /* terminated with Id 0 */ + Offset dep_obsoletes; + Offset dep_conflicts; + + Offset dep_requires; + Offset dep_recommends; + Offset dep_suggests; + + Offset dep_supplements; + Offset dep_enhances; +#else + Offset provides; /* terminated with Id 0 */ + Offset obsoletes; + Offset conflicts; + + Offset requires; + Offset recommends; + Offset suggests; + + Offset supplements; + Offset enhances; +#endif +} Solvable; + +/* lookup functions */ +Id solvable_lookup_type(Solvable *s, Id keyname); +Id solvable_lookup_id(Solvable *s, Id keyname); +unsigned long long solvable_lookup_num(Solvable *s, Id keyname, unsigned long long notfound); +unsigned long long solvable_lookup_sizek(Solvable *s, Id keyname, unsigned long long notfound); +const char *solvable_lookup_str(Solvable *s, Id keyname); +const char *solvable_lookup_str_poollang(Solvable *s, Id keyname); +const char *solvable_lookup_str_lang(Solvable *s, Id keyname, const char *lang, int usebase); +int solvable_lookup_bool(Solvable *s, Id keyname); +int solvable_lookup_void(Solvable *s, Id keyname); +const char *solvable_get_location(Solvable *s, unsigned int *medianrp); /* old name */ +const char *solvable_lookup_location(Solvable *s, unsigned int *medianrp); +const char *solvable_lookup_sourcepkg(Solvable *s); +const unsigned char *solvable_lookup_bin_checksum(Solvable *s, Id keyname, Id *typep); +const char *solvable_lookup_checksum(Solvable *s, Id keyname, Id *typep); +int solvable_lookup_idarray(Solvable *s, Id keyname, Queue *q); +int solvable_lookup_deparray(Solvable *s, Id keyname, Queue *q, Id marker); +unsigned int solvable_lookup_count(Solvable *s, Id keyname); /* internal */ + +/* setter functions */ +void solvable_set_id(Solvable *s, Id keyname, Id id); +void solvable_set_num(Solvable *s, Id keyname, unsigned long long num); +void solvable_set_str(Solvable *s, Id keyname, const char *str); +void solvable_set_poolstr(Solvable *s, Id keyname, const char *str); +void solvable_add_poolstr_array(Solvable *s, Id keyname, const char *str); +void solvable_add_idarray(Solvable *s, Id keyname, Id id); +void solvable_add_deparray(Solvable *s, Id keyname, Id dep, Id marker); +void solvable_set_idarray(Solvable *s, Id keyname, Queue *q); +void solvable_set_deparray(Solvable *s, Id keyname, Queue *q, Id marker); +void solvable_unset(Solvable *s, Id keyname); + +int solvable_identical(Solvable *s1, Solvable *s2); +Id solvable_selfprovidedep(Solvable *s); + +int solvable_matchesdep(Solvable *s, Id keyname, Id dep, int marker); +int solvable_matchessolvable(Solvable *s, Id keyname, Id solvid, Queue *depq, int marker); + +/* internal */ +int solvable_matchessolvable_int(Solvable *s, Id keyname, int marker, Id solvid, Map *solvidmap, Queue *depq, Map *missc, int reloff, Queue *outdepq); + + +/* weird suse stuff */ +int solvable_is_irrelevant_patch(Solvable *s, Map *installedmap); +int solvable_trivial_installable_map(Solvable *s, Map *installedmap, Map *conflictsmap, Map *multiversionmap); +int solvable_trivial_installable_queue(Solvable *s, Queue *installed, Map *multiversionmap); +int solvable_trivial_installable_repo(Solvable *s, struct s_Repo *installed, Map *multiversionmap); + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_SOLVABLE_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solver.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solver.h new file mode 100644 index 0000000000000000000000000000000000000000..05256503494a8642e799e40be286cccb0671d076 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solver.h @@ -0,0 +1,450 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * solver.h + * + */ + +#ifndef LIBSOLV_SOLVER_H +#define LIBSOLV_SOLVER_H + +#include "pooltypes.h" +#include "pool.h" +#include "repo.h" +#include "queue.h" +#include "bitmap.h" +#include "transaction.h" +#include "rules.h" +#include "problems.h" + +#ifdef __cplusplus +extern "C" { +#endif + +struct s_Solver { + Pool *pool; /* back pointer to pool */ + Queue job; /* copy of the job we're solving */ + + int (*solution_callback)(struct s_Solver *solv, void *data); + void *solution_callback_data; + + int pooljobcnt; /* number of pooljob entries in job queue */ + +#ifdef LIBSOLV_INTERNAL + Repo *installed; /* copy of pool->installed */ + + /* list of rules, ordered + * pkg rules first, then features, updates, jobs, learnt + * see start/end offsets below + */ + Rule *rules; /* all rules */ + Id nrules; /* [Offset] index of the last rule */ + Id lastpkgrule; /* last package rule we added */ + + Queue ruleassertions; /* Queue of all assertion rules */ + + /* start/end offset for rule 'areas' */ + + Id pkgrules_end; /* [Offset] dep rules end */ + + Id featurerules; /* feature rules start/end */ + Id featurerules_end; + + Id updaterules; /* policy rules, e.g. keep packages installed or update. All literals > 0 */ + Id updaterules_end; + + Id jobrules; /* user rules */ + Id jobrules_end; + + Id infarchrules; /* inferior arch rules */ + Id infarchrules_end; + + Id duprules; /* dist upgrade rules */ + Id duprules_end; + + Id bestrules; /* rules from SOLVER_FORCEBEST */ + Id bestrules_up; /* update rule part starts here*/ + Id bestrules_end; + Id *bestrules_info; /* < 0 : install rule, > 0 : pkg that needs to be updated */ + + Id yumobsrules; /* rules from yum obsoletes handling */ + Id yumobsrules_end; + Id *yumobsrules_info; /* the dependency for each rule */ + + Id blackrules; /* rules from blacklisted packages */ + Id blackrules_end; + + Id strictrepopriorules; /* rules from strict priority repositories */ + Id strictrepopriorules_end; + + Id choicerules; /* choice rules (always weak) */ + Id choicerules_end; + Id *choicerules_info; /* the rule we used to generate the choice rule */ + + Id recommendsrules; /* rules from recommends pkg rules with disfavored literals */ + Id recommendsrules_end; + Id *recommendsrules_info; /* the original pkg rule rule */ + + Id learntrules; /* learnt rules, (end == nrules) */ + + Map noupdate; /* don't try to update these + installed solvables */ + Map multiversion; /* ignore obsoletes for these (multiinstall) */ + + Map updatemap; /* bring these installed packages to the newest version */ + int updatemap_all; /* bring all packages to the newest version */ + + Map bestupdatemap; /* create best rule for those packages */ + int bestupdatemap_all; /* bring all packages to the newest version */ + + Map fixmap; /* fix these packages */ + int fixmap_all; /* fix all packages */ + + Queue weakruleq; /* index into 'rules' for weak ones */ + Map weakrulemap; /* map rule# to '1' for weak rules, 1..learntrules */ + + Id *watches; /* Array of rule offsets + * watches has nsolvables*2 entries and is addressed from the middle + * middle-solvable : decision to conflict, offset point to linked-list of rules + * middle+solvable : decision to install: offset point to linked-list of rules + */ + + Queue ruletojob; /* index into job queue: jobs for which a rule exits */ + + /* our decisions: */ + Queue decisionq; /* >0:install, <0:remove/conflict */ + Queue decisionq_why; /* index of rule, Offset into rules */ + Queue decisionq_reason; /* reason for decision, indexed by level */ + + Id *decisionmap; /* map for all available solvables, + * = 0: undecided + * > 0: level of decision when installed, + * < 0: level of decision when conflict */ + + /* learnt rule history */ + Queue learnt_why; + Queue learnt_pool; + + Queue branches; + int propagate_index; /* index into decisionq for non-propagated decisions */ + + Queue problems; /* list of lists of conflicting rules, < 0 for job rules */ + Queue solutions; /* refined problem storage space */ + + Queue orphaned; /* orphaned packages (to be removed?) */ + + int stats_learned; /* statistic */ + int stats_unsolvable; /* statistic */ + + Map recommendsmap; /* recommended packages from decisionmap */ + Map suggestsmap; /* suggested packages from decisionmap */ + int recommends_index; /* recommendsmap/suggestsmap is created up to this level */ + Queue *recommendscplxq; + Queue *suggestscplxq; + + Id *obsoletes; /* obsoletes for each installed solvable */ + Id *obsoletes_data; /* data area for obsoletes */ + Id *specialupdaters; /* updaters for packages with a limited update rule */ + + /*------------------------------------------------------------------------------------------------------------- + * Solver configuration + *-------------------------------------------------------------------------------------------------------------*/ + + int allowdowngrade; /* allow downgrading installed solvable */ + int allownamechange; /* allow changing name of installed solvables */ + int allowarchchange; /* allow changing architecture of installed solvables */ + int allowvendorchange; /* allow changing vendor of installed solvables */ + int allowuninstall; /* allow removal of installed solvables */ + int noupdateprovide; /* true: update packages needs not to provide old package */ + int needupdateprovide; /* true: update packages must provide old package */ + int dosplitprovides; /* true: consider legacy split provides */ + int dontinstallrecommended; /* true: do not install recommended packages */ + int addalreadyrecommended; /* true: also install recommended packages that were already recommended by the installed packages */ + int dontshowinstalledrecommended; /* true: do not show recommended packages that are already installed */ + + int noinfarchcheck; /* true: do not forbid inferior architectures */ + int keepexplicitobsoletes; /* true: honor obsoletes during multiinstall */ + int bestobeypolicy; /* true: stay in policy with the best rules */ + int noautotarget; /* true: do not assume targeted for up/dup jobs that contain no installed solvable */ + int focus_installed; /* true: resolve update rules first */ + int focus_best; /* true: resolve job dependencies first */ + int focus_new; /* true: resolve job dependencies first but ignore dependencies met by installed packages */ + int do_yum_obsoletes; /* true: add special yumobs rules */ + int urpmreorder; /* true: do special urpm package reordering */ + int strongrecommends; /* true: create weak rules for recommends */ + int install_also_updates; /* true: do not prune install job rules to installed packages */ + int only_namespace_recommended; /* true: only install packages recommended by namespace */ + int strict_repo_priority; /* true: only use packages from highest precedence/priority */ + + int process_orphans; /* true: do special orphan processing */ + Map dupmap; /* dup to those packages */ + Map dupinvolvedmap; /* packages involved in dup process */ + int dupinvolvedmap_all; /* all packages are involved */ + int dup_allowdowngrade; /* dup mode: allow to downgrade installed solvable */ + int dup_allownamechange; /* dup mode: allow to change name of installed solvable */ + int dup_allowarchchange; /* dup mode: allow to change architecture of installed solvables */ + int dup_allowvendorchange; /* dup mode: allow to change vendor of installed solvables */ + + Map droporphanedmap; /* packages to drop in dup mode */ + int droporphanedmap_all; + + Map cleandepsmap; /* try to drop these packages as of cleandeps erases */ + + Queue *ruleinfoq; /* tmp space for solver_ruleinfo() */ + + Queue *cleandeps_updatepkgs; /* packages we update in cleandeps mode */ + Queue *cleandeps_mistakes; /* mistakes we made */ + + Queue *update_targets; /* update to specific packages */ + + Queue *installsuppdepq; /* deps from the install namespace provides hack */ + + Queue addedmap_deduceq; /* deduce addedmap from pkg rules */ + Id *instbuddy; /* buddies of installed packages */ + int keep_orphans; /* how to treat orphans */ + int break_orphans; /* how to treat orphans */ + Queue *brokenorphanrules; /* broken rules of orphaned packages */ + + Map allowuninstallmap; /* ok to uninstall those */ + int allowuninstall_all; + + Map excludefromweakmap; /* remove them from candidates for supplements and recommends */ + + Id *favormap; /* favor job index, > 0: favored, < 0: disfavored */ + int havedisfavored; /* do we have disfavored packages? */ + + int installedpos; /* for resolve_installed */ + int do_extra_reordering; /* reorder for future installed packages */ + + Queue *recommendsruleq; /* pkg rules comming from recommends */ +#endif /* LIBSOLV_INTERNAL */ +}; + +typedef struct s_Solver Solver; + +/* + * queue commands + */ + +#define SOLVER_SOLVABLE 0x01 +#define SOLVER_SOLVABLE_NAME 0x02 +#define SOLVER_SOLVABLE_PROVIDES 0x03 +#define SOLVER_SOLVABLE_ONE_OF 0x04 +#define SOLVER_SOLVABLE_REPO 0x05 +#define SOLVER_SOLVABLE_ALL 0x06 + +#define SOLVER_SELECTMASK 0xff + +#define SOLVER_NOOP 0x0000 +#define SOLVER_INSTALL 0x0100 +#define SOLVER_ERASE 0x0200 +#define SOLVER_UPDATE 0x0300 +#define SOLVER_WEAKENDEPS 0x0400 +#define SOLVER_MULTIVERSION 0x0500 +#define SOLVER_LOCK 0x0600 +#define SOLVER_DISTUPGRADE 0x0700 +#define SOLVER_VERIFY 0x0800 +#define SOLVER_DROP_ORPHANED 0x0900 +#define SOLVER_USERINSTALLED 0x0a00 +#define SOLVER_ALLOWUNINSTALL 0x0b00 +#define SOLVER_FAVOR 0x0c00 +#define SOLVER_DISFAVOR 0x0d00 +#define SOLVER_BLACKLIST 0x0e00 +#define SOLVER_EXCLUDEFROMWEAK 0x1000 + +#define SOLVER_JOBMASK 0xff00 + +#define SOLVER_WEAK 0x010000 +#define SOLVER_ESSENTIAL 0x020000 +#define SOLVER_CLEANDEPS 0x040000 +/* ORUPDATE makes SOLVER_INSTALL not prune to installed + * packages, thus updating installed packages */ +#define SOLVER_ORUPDATE 0x080000 +/* FORCEBEST makes the solver insist on best packages, so + * you will get problem reported if the best package is + * not installable. This can be used with INSTALL, UPDATE + * and DISTUPGRADE */ +#define SOLVER_FORCEBEST 0x100000 +/* TARGETED is used in up/dup jobs to make the solver + * treat the specified selection as target packages. + * It is automatically assumed if the selection does not + * contain an "installed" package unless the + * NO_AUTOTARGET solver flag is set */ +#define SOLVER_TARGETED 0x200000 +/* This (SOLVER_INSTALL) job was automatically added + * and thus does not the add to the userinstalled packages */ +#define SOLVER_NOTBYUSER 0x400000 + +#define SOLVER_SETEV 0x01000000 +#define SOLVER_SETEVR 0x02000000 +#define SOLVER_SETARCH 0x04000000 +#define SOLVER_SETVENDOR 0x08000000 +#define SOLVER_SETREPO 0x10000000 +#define SOLVER_NOAUTOSET 0x20000000 +#define SOLVER_SETNAME 0x40000000 + +#define SOLVER_SETMASK 0x7f000000 + +/* legacy */ +#define SOLVER_NOOBSOLETES SOLVER_MULTIVERSION + +#define SOLVER_REASON_UNRELATED 0 +#define SOLVER_REASON_UNIT_RULE 1 +#define SOLVER_REASON_KEEP_INSTALLED 2 +#define SOLVER_REASON_RESOLVE_JOB 3 +#define SOLVER_REASON_UPDATE_INSTALLED 4 +#define SOLVER_REASON_CLEANDEPS_ERASE 5 +#define SOLVER_REASON_RESOLVE 6 +#define SOLVER_REASON_WEAKDEP 7 +#define SOLVER_REASON_RESOLVE_ORPHAN 8 + +#define SOLVER_REASON_RECOMMENDED 16 /* deprecated */ +#define SOLVER_REASON_SUPPLEMENTED 17 /* deprecated */ + +#define SOLVER_REASON_UNSOLVABLE 18 +#define SOLVER_REASON_PREMISE 19 + + +#define SOLVER_FLAG_ALLOW_DOWNGRADE 1 +#define SOLVER_FLAG_ALLOW_ARCHCHANGE 2 +#define SOLVER_FLAG_ALLOW_VENDORCHANGE 3 +#define SOLVER_FLAG_ALLOW_UNINSTALL 4 +#define SOLVER_FLAG_NO_UPDATEPROVIDE 5 +#define SOLVER_FLAG_SPLITPROVIDES 6 +#define SOLVER_FLAG_IGNORE_RECOMMENDED 7 +#define SOLVER_FLAG_ADD_ALREADY_RECOMMENDED 8 +#define SOLVER_FLAG_NO_INFARCHCHECK 9 +#define SOLVER_FLAG_ALLOW_NAMECHANGE 10 +#define SOLVER_FLAG_KEEP_EXPLICIT_OBSOLETES 11 +#define SOLVER_FLAG_BEST_OBEY_POLICY 12 +#define SOLVER_FLAG_NO_AUTOTARGET 13 +#define SOLVER_FLAG_DUP_ALLOW_DOWNGRADE 14 +#define SOLVER_FLAG_DUP_ALLOW_ARCHCHANGE 15 +#define SOLVER_FLAG_DUP_ALLOW_VENDORCHANGE 16 +#define SOLVER_FLAG_DUP_ALLOW_NAMECHANGE 17 +#define SOLVER_FLAG_KEEP_ORPHANS 18 +#define SOLVER_FLAG_BREAK_ORPHANS 19 +#define SOLVER_FLAG_FOCUS_INSTALLED 20 +#define SOLVER_FLAG_YUM_OBSOLETES 21 +#define SOLVER_FLAG_NEED_UPDATEPROVIDE 22 +#define SOLVER_FLAG_URPM_REORDER 23 +#define SOLVER_FLAG_FOCUS_BEST 24 +#define SOLVER_FLAG_STRONG_RECOMMENDS 25 +#define SOLVER_FLAG_INSTALL_ALSO_UPDATES 26 +#define SOLVER_FLAG_ONLY_NAMESPACE_RECOMMENDED 27 +#define SOLVER_FLAG_STRICT_REPO_PRIORITY 28 +#define SOLVER_FLAG_FOCUS_NEW 29 + +#define GET_USERINSTALLED_NAMES (1 << 0) /* package names instead of ids */ +#define GET_USERINSTALLED_INVERTED (1 << 1) /* autoinstalled */ +#define GET_USERINSTALLED_NAMEARCH (1 << 2) /* package/arch tuples instead of ids */ + +#define SOLVER_ALTERNATIVE_TYPE_RULE 1 +#define SOLVER_ALTERNATIVE_TYPE_RECOMMENDS 2 +#define SOLVER_ALTERNATIVE_TYPE_SUGGESTS 3 + +/* solver_get_decisionlist / solver_get_learnt flags */ +#define SOLVER_DECISIONLIST_SOLVABLE (1 << 1) +#define SOLVER_DECISIONLIST_PROBLEM (1 << 2) +#define SOLVER_DECISIONLIST_LEARNTRULE (1 << 3) +#define SOLVER_DECISIONLIST_WITHINFO (1 << 8) +#define SOLVER_DECISIONLIST_SORTED (1 << 9) +#define SOLVER_DECISIONLIST_MERGEDINFO (1 << 10) + +#define SOLVER_DECISIONLIST_TYPEMASK (0xff) + +extern Solver *solver_create(Pool *pool); +extern void solver_free(Solver *solv); +extern int solver_solve(Solver *solv, Queue *job); +extern Transaction *solver_create_transaction(Solver *solv); +extern int solver_set_flag(Solver *solv, int flag, int value); +extern int solver_get_flag(Solver *solv, int flag); + +extern int solver_get_decisionlevel(Solver *solv, Id p); +extern void solver_get_decisionqueue(Solver *solv, Queue *decisionq); +extern int solver_get_lastdecisionblocklevel(Solver *solv); +extern void solver_get_decisionblock(Solver *solv, int level, Queue *decisionq); + +extern void solver_get_orphaned(Solver *solv, Queue *orphanedq); +extern void solver_get_recommendations(Solver *solv, Queue *recommendationsq, Queue *suggestionsq, int noselected); +extern void solver_get_unneeded(Solver *solv, Queue *unneededq, int filtered); +extern void solver_get_userinstalled(Solver *solv, Queue *q, int flags); +extern void pool_add_userinstalled_jobs(Pool *pool, Queue *q, Queue *job, int flags); +extern void solver_get_cleandeps(Solver *solv, Queue *cleandepsq); + +extern int solver_describe_decision(Solver *solv, Id p, Id *infop); + +extern void solver_get_decisionlist(Solver *solv, Id p, int flags, Queue *decisionlistq); +extern void solver_get_decisionlist_multiple(Solver *solv, Queue *pq, int flags, Queue *decisionlistq); +extern void solver_get_learnt(Solver *solv, Id id, int flags, Queue *q); +extern void solver_decisionlist_solvables(Solver *solv, Queue *decisionlistq, int pos, Queue *q); +extern int solver_decisionlist_merged(Solver *solv, Queue *decisionlistq, int pos); + +extern int solver_alternatives_count(Solver *solv); +extern int solver_get_alternative(Solver *solv, Id alternative, Id *idp, Id *fromp, Id *chosenp, Queue *choices, int *levelp); +extern int solver_alternativeinfo(Solver *solv, int type, Id id, Id from, Id *fromp, Id *top, Id *depp); + +extern void solver_calculate_multiversionmap(Pool *pool, Queue *job, Map *multiversionmap); +extern void solver_calculate_noobsmap(Pool *pool, Queue *job, Map *multiversionmap); /* obsolete */ +extern void solver_create_state_maps(Solver *solv, Map *installedmap, Map *conflictsmap); + +extern void solver_calc_duchanges(Solver *solv, DUChanges *mps, int nmps); +extern int solver_calc_installsizechange(Solver *solv); + +extern void pool_job2solvables(Pool *pool, Queue *pkgs, Id how, Id what); +extern int pool_isemptyupdatejob(Pool *pool, Id how, Id what); + +/* decisioninfo merging */ +extern int solver_calc_decisioninfo_bits(Solver *solv, Id decision, int type, Id from, Id to, Id dep); +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); + +extern const char *solver_select2str(Pool *pool, Id select, Id what); +extern const char *pool_job2str(Pool *pool, Id how, Id what, Id flagmask); +extern const char *solver_alternative2str(Solver *solv, int type, Id id, Id from); +extern const char *solver_reason2str(Solver *solv, int reason); +extern const char *solver_decisionreason2str(Solver *solv, Id decision, int reason, Id info); +extern const char *solver_decisioninfo2str(Solver *solv, int bits, int type, Id from, Id to, Id dep); + + +/* deprecated, use solver_allweakdepinfos/solver_weakdepinfo instead */ +extern void solver_describe_weakdep_decision(Solver *solv, Id p, Queue *whyq); + +/* iterate over all literals of a rule */ +#define FOR_RULELITERALS(l, pp, r) \ + for (pp = r->d < 0 ? -r->d - 1 : r->d, \ + l = r->p; l; l = (pp <= 0 ? (pp-- ? 0 : r->w2) : \ + pool->whatprovidesdata[pp++])) + + + + +/* XXX: this currently doesn't work correctly for SOLVER_SOLVABLE_REPO and + SOLVER_SOLVABLE_ALL */ + +/* iterate over all packages selected by a job */ +#define FOR_JOB_SELECT(p, pp, select, what) \ + if (select == SOLVER_SOLVABLE_REPO || select == SOLVER_SOLVABLE_ALL) \ + p = pp = 0; \ + else for (pp = (select == SOLVER_SOLVABLE ? 0 : \ + select == SOLVER_SOLVABLE_ONE_OF ? what : \ + pool_whatprovides(pool, what)), \ + p = (select == SOLVER_SOLVABLE ? what : pool->whatprovidesdata[pp++]); \ + p ; p = pool->whatprovidesdata[pp++]) \ + if (select == SOLVER_SOLVABLE_NAME && \ + pool_match_nevr(pool, pool->solvables + p, what) == 0) \ + continue; \ + else + +/* weird suse stuff */ +extern void solver_trivial_installable(Solver *solv, Queue *pkgs, Queue *res); + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_SOLVER_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solverdebug.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solverdebug.h new file mode 100644 index 0000000000000000000000000000000000000000..b6923b46d471649b58219e26f526192767536ae9 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solverdebug.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2008, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * solverdebug.h + * + */ + +#ifndef LIBSOLV_SOLVERDEBUG_H +#define LIBSOLV_SOLVERDEBUG_H + +#include "pooltypes.h" +#include "pool.h" +#include "solver.h" + +#ifdef __cplusplus +extern "C" { +#endif + +extern void solver_printruleelement(Solver *solv, int type, Rule *r, Id v); +extern void solver_printrule(Solver *solv, int type, Rule *r); +extern void solver_printruleclass(Solver *solv, int type, Rule *r); +extern void solver_printproblem(Solver *solv, Id v); +extern void solver_printwatches(Solver *solv, int type); +extern void solver_printdecisionq(Solver *solv, int type); +extern void solver_printdecisions(Solver *solv); +extern void solver_printproblemruleinfo(Solver *solv, Id rule); +extern void solver_printprobleminfo(Solver *solv, Id problem); +extern void solver_printcompleteprobleminfo(Solver *solv, Id problem); +extern void solver_printsolution(Solver *solv, Id problem, Id solution); +extern void solver_printallsolutions(Solver *solv); + +extern void transaction_print(Transaction *trans); + +/* weird suse stuff */ +extern void solver_printtrivial(Solver *solv); + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_SOLVERDEBUG_H */ + diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solvversion.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solvversion.h new file mode 100644 index 0000000000000000000000000000000000000000..f7041fa1cbee65994c4140da423902a082efdf2a --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/solvversion.h @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2016, SUSE LLC + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * solvversion.h + * + */ + +#ifndef LIBSOLV_SOLVVERSION_H +#define LIBSOLV_SOLVVERSION_H + +#define LIBSOLV_VERSION_STRING "0.7.30" +#define LIBSOLV_VERSION_MAJOR 0 +#define LIBSOLV_VERSION_MINOR 7 +#define LIBSOLV_VERSION_PATCH 30 +#define LIBSOLV_VERSION (LIBSOLV_VERSION_MAJOR * 10000 + LIBSOLV_VERSION_MINOR * 100 + LIBSOLV_VERSION_PATCH) + +extern const char solv_version[]; +extern int solv_version_major; +extern int solv_version_minor; +extern int solv_version_patch; +extern const char solv_toolversion[]; + +/* #undef LIBSOLV_FEATURE_LINKED_PKGS */ +/* #undef LIBSOLV_FEATURE_COMPLEX_DEPS */ +#define LIBSOLV_FEATURE_MULTI_SEMANTICS +#define LIBSOLV_FEATURE_CONDA + +#define LIBSOLVEXT_FEATURE_PCRE2 +/* #undef LIBSOLVEXT_FEATURE_RPMPKG */ +/* #undef LIBSOLVEXT_FEATURE_RPMDB */ +/* #undef LIBSOLVEXT_FEATURE_RPMDB_BYRPMHEADER */ +/* #undef LIBSOLVEXT_FEATURE_PUBKEY */ +/* #undef LIBSOLVEXT_FEATURE_RPMMD */ +/* #undef LIBSOLVEXT_FEATURE_SUSEREPO */ +/* #undef LIBSOLVEXT_FEATURE_COMPS */ +/* #undef LIBSOLVEXT_FEATURE_HELIXREPO */ +/* #undef LIBSOLVEXT_FEATURE_DEBIAN */ +/* #undef LIBSOLVEXT_FEATURE_ARCHREPO */ +/* #undef LIBSOLVEXT_FEATURE_HAIKU */ +/* #undef LIBSOLVEXT_FEATURE_APPDATA */ +#define LIBSOLVEXT_FEATURE_ZLIB_COMPRESSION +/* #undef LIBSOLVEXT_FEATURE_LZMA_COMPRESSION */ +/* #undef LIBSOLVEXT_FEATURE_BZIP2_COMPRESSION */ +/* #undef LIBSOLVEXT_FEATURE_ZSTD_COMPRESSION */ +/* #undef LIBSOLVEXT_FEATURE_ZCHUNK_COMPRESSION */ + +/* see tools/common_write.c for toolversion history */ +#define LIBSOLV_TOOLVERSION "1.2" + +#endif diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/strpool.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/strpool.h new file mode 100644 index 0000000000000000000000000000000000000000..fd13bdb71bc0cd98cce86073f94297e0605f57b0 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/strpool.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ +#ifndef LIBSOLV_STRINGPOOL_H +#define LIBSOLV_STRINGPOOL_H + +#include "pooltypes.h" +#include "hash.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#define STRID_NULL 0 +#define STRID_EMPTY 1 + +struct s_Stringpool +{ + Offset *strings; /* table of offsets into stringspace, indexed by Id: Id -> Offset */ + int nstrings; /* number of ids in strings table */ + char *stringspace; /* space for all unique strings: stringspace + Offset = string */ + Offset sstrings; /* size of used stringspace */ + + Hashtable stringhashtbl; /* hash table: (string ->) Hash -> Id */ + Hashval stringhashmask; /* modulo value for hash table (size of table - 1) */ +}; + +void stringpool_init(Stringpool *ss, const char *strs[]); +void stringpool_init_empty(Stringpool *ss); +void stringpool_clone(Stringpool *ss, Stringpool *from); +void stringpool_free(Stringpool *ss); +void stringpool_freehash(Stringpool *ss); +void stringpool_resize_hash(Stringpool *ss, int numnew); + +Id stringpool_str2id(Stringpool *ss, const char *str, int create); +Id stringpool_strn2id(Stringpool *ss, const char *str, unsigned int len, int create); + +void stringpool_shrink(Stringpool *ss); + + +static inline const char * +stringpool_id2str(Stringpool *ss, Id id) +{ + return ss->stringspace + ss->strings[id]; +} + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/testcase.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/testcase.h new file mode 100644 index 0000000000000000000000000000000000000000..fae63798f35cc1bca3bc14d7709f9b7e247f80e9 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/testcase.h @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2012, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +#include "pool.h" +#include "repo.h" +#include "solver.h" + +#define TESTCASE_RESULT_TRANSACTION (1 << 0) +#define TESTCASE_RESULT_PROBLEMS (1 << 1) +#define TESTCASE_RESULT_ORPHANED (1 << 2) +#define TESTCASE_RESULT_RECOMMENDED (1 << 3) +#define TESTCASE_RESULT_UNNEEDED (1 << 4) +#define TESTCASE_RESULT_ALTERNATIVES (1 << 5) +#define TESTCASE_RESULT_RULES (1 << 6) +#define TESTCASE_RESULT_GENID (1 << 7) +#define TESTCASE_RESULT_REASON (1 << 8) +#define TESTCASE_RESULT_CLEANDEPS (1 << 9) +#define TESTCASE_RESULT_JOBS (1 << 10) +#define TESTCASE_RESULT_USERINSTALLED (1 << 11) +#define TESTCASE_RESULT_ORDER (1 << 12) +#define TESTCASE_RESULT_ORDEREDGES (1 << 13) +#define TESTCASE_RESULT_PROOF (1 << 14) + +/* reuse solver hack, testsolv use only */ +#define TESTCASE_RESULT_REUSE_SOLVER (1 << 31) + +extern Id testcase_str2dep(Pool *pool, const char *s); +extern const char *testcase_dep2str(Pool *pool, Id id); +extern const char *testcase_repoid2str(Pool *pool, Id repoid); +extern const char *testcase_solvid2str(Pool *pool, Id p); +extern Repo *testcase_str2repo(Pool *pool, const char *str); +extern Id testcase_str2solvid(Pool *pool, const char *str); +extern const char *testcase_job2str(Pool *pool, Id how, Id what); +extern Id testcase_str2job(Pool *pool, const char *str, Id *whatp); +extern int testcase_write_testtags(Repo *repo, FILE *fp); +extern int testcase_add_testtags(Repo *repo, FILE *fp, int flags); +extern const char *testcase_getsolverflags(Solver *solv); +extern int testcase_setsolverflags(Solver *solv, const char *str); +extern void testcase_resetsolverflags(Solver *solv); +extern char *testcase_solverresult(Solver *solv, int flags); +extern int testcase_write(Solver *solv, const char *dir, int resultflags, const char *testcasename, const char *resultname); +extern Solver *testcase_read(Pool *pool, FILE *fp, const char *testcase, Queue *job, char **resultp, int *resultflagsp); +extern char *testcase_resultdiff(const char *result1, const char *result2); +extern const char **testcase_mangle_repo_names(Pool *pool); + diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/tools_util.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/tools_util.h new file mode 100644 index 0000000000000000000000000000000000000000..cc6489289e9cf630310eb28579bea7a80b4cfd03 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/tools_util.h @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * util.h + * + */ + +#ifndef LIBSOLV_TOOLS_UTIL_H +#define LIBSOLV_TOOLS_UTIL_H + +static inline Id +makeevr(Pool *pool, const char *s) +{ + if (!strncmp(s, "0:", 2) && s[2]) + s += 2; + return pool_str2id(pool, s, 1); +} + +/** + * split a string + */ +#ifndef DISABLE_SPLIT +static int +split(char *l, char **sp, int m) +{ + int i; + for (i = 0; i < m;) + { + while (*l == ' ') + l++; + if (!*l) + break; + sp[i++] = l; + while (*l && *l != ' ') + l++; + if (!*l) + break; + *l++ = 0; + } + return i; +} +#endif + +#ifndef DISABLE_JOIN2 + +struct joindata { + char *tmp; + int tmpl; +}; + +/* this join does not depend on parsedata */ +static char * +join2(struct joindata *jd, const char *s1, const char *s2, const char *s3) +{ + int l = 1; + char *p; + + if (s1) + l += strlen(s1); + if (s2) + l += strlen(s2); + if (s3) + l += strlen(s3); + if (l > jd->tmpl) + { + jd->tmpl = l + 256; + jd->tmp = solv_realloc(jd->tmp, jd->tmpl); + } + p = jd->tmp; + if (s1) + { + strcpy(p, s1); + p += strlen(s1); + } + if (s2) + { + strcpy(p, s2); + p += strlen(s2); + } + if (s3) + { + strcpy(p, s3); + p += strlen(s3); + } + *p = 0; + return jd->tmp; +} + +static inline char * +join_dup(struct joindata *jd, const char *s) +{ + return s ? join2(jd, s, 0, 0) : 0; +} + +static inline void +join_freemem(struct joindata *jd) +{ + if (jd->tmp) + free(jd->tmp); + jd->tmp = 0; + jd->tmpl = 0; +} + +#endif + +#endif /* LIBSOLV_TOOLS_UTIL_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/transaction.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/transaction.h new file mode 100644 index 0000000000000000000000000000000000000000..8b8fe6de0fe2b49fd9f9f9624bb76a4d6ca21584 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/transaction.h @@ -0,0 +1,149 @@ +/* + * Copyright (c) 2007-2009, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * transaction.h + * + */ + +#ifndef LIBSOLV_TRANSACTION_H +#define LIBSOLV_TRANSACTION_H + +#include "pooltypes.h" +#include "queue.h" +#include "bitmap.h" + +#ifdef __cplusplus +extern "C" { +#endif + +struct s_DUChanges; +struct s_TransactionOrderdata; + +typedef struct s_Transaction { + Pool *pool; /* back pointer to pool */ + + Queue steps; /* the transaction steps */ + +#ifdef LIBSOLV_INTERNAL + Queue transaction_info; + Id *transaction_installed; + Map transactsmap; + Map multiversionmap; + + struct s_TransactionOrderdata *orderdata; +#endif + +} Transaction; + + +/* step types */ +#define SOLVER_TRANSACTION_IGNORE 0x00 + +#define SOLVER_TRANSACTION_ERASE 0x10 +#define SOLVER_TRANSACTION_REINSTALLED 0x11 +#define SOLVER_TRANSACTION_DOWNGRADED 0x12 +#define SOLVER_TRANSACTION_CHANGED 0x13 +#define SOLVER_TRANSACTION_UPGRADED 0x14 +#define SOLVER_TRANSACTION_OBSOLETED 0x15 + +#define SOLVER_TRANSACTION_INSTALL 0x20 +#define SOLVER_TRANSACTION_REINSTALL 0x21 +#define SOLVER_TRANSACTION_DOWNGRADE 0x22 +#define SOLVER_TRANSACTION_CHANGE 0x23 +#define SOLVER_TRANSACTION_UPGRADE 0x24 +#define SOLVER_TRANSACTION_OBSOLETES 0x25 + +#define SOLVER_TRANSACTION_MULTIINSTALL 0x30 +#define SOLVER_TRANSACTION_MULTIREINSTALL 0x31 + +#define SOLVER_TRANSACTION_MAXTYPE 0x3f + +/* modes */ +#define SOLVER_TRANSACTION_SHOW_ACTIVE (1 << 0) +#define SOLVER_TRANSACTION_SHOW_ALL (1 << 1) +#define SOLVER_TRANSACTION_SHOW_OBSOLETES (1 << 2) +#define SOLVER_TRANSACTION_SHOW_MULTIINSTALL (1 << 3) +#define SOLVER_TRANSACTION_CHANGE_IS_REINSTALL (1 << 4) +#define SOLVER_TRANSACTION_MERGE_VENDORCHANGES (1 << 5) +#define SOLVER_TRANSACTION_MERGE_ARCHCHANGES (1 << 6) + +#define SOLVER_TRANSACTION_RPM_ONLY (1 << 7) + +#define SOLVER_TRANSACTION_KEEP_PSEUDO (1 << 8) + +#define SOLVER_TRANSACTION_OBSOLETE_IS_UPGRADE (1 << 9) + +/* extra classifications */ +#define SOLVER_TRANSACTION_ARCHCHANGE 0x100 +#define SOLVER_TRANSACTION_VENDORCHANGE 0x101 + +/* order flags */ +#define SOLVER_TRANSACTION_KEEP_ORDERDATA (1 << 0) +#define SOLVER_TRANSACTION_KEEP_ORDERCYCLES (1 << 1) +#define SOLVER_TRANSACTION_KEEP_ORDEREDGES (1 << 2) + +/* cycle severities */ +#define SOLVER_ORDERCYCLE_HARMLESS 0 +#define SOLVER_ORDERCYCLE_NORMAL 1 +#define SOLVER_ORDERCYCLE_CRITICAL 2 + +extern Transaction *transaction_create(Pool *pool); +extern Transaction *transaction_create_decisionq(Pool *pool, Queue *decisionq, Map *multiversionmap); +extern Transaction *transaction_create_clone(Transaction *srctrans); +extern void transaction_free(Transaction *trans); + +/* if p is installed, returns with pkg(s) obsolete p */ +/* if p is not installed, returns with pkg(s) we obsolete */ +extern Id transaction_obs_pkg(Transaction *trans, Id p); +extern void transaction_all_obs_pkgs(Transaction *trans, Id p, Queue *pkgs); + +/* return step type of a transaction element */ +extern Id transaction_type(Transaction *trans, Id p, int mode); + +/* return sorted collection of all step types */ +/* classify_pkgs can be used to return all packages of a type */ +extern void transaction_classify(Transaction *trans, int mode, Queue *classes); +extern void transaction_classify_pkgs(Transaction *trans, int mode, Id type, Id from, Id to, Queue *pkgs); + +/* return all packages that will be installed after the transaction is run*/ +/* The new packages are put at the head of the queue, the number of new + packages is returned */ +extern int transaction_installedresult(Transaction *trans, Queue *installedq); + +long long transaction_calc_installsizechange(Transaction *trans); +void transaction_calc_duchanges(Transaction *trans, struct s_DUChanges *mps, int nmps); + + + +/* order a transaction */ +extern void transaction_order(Transaction *trans, int flags); + +/* roll your own order funcion: + * add pkgs free for installation to queue choices after chosen was + * installed. start with chosen = 0 + * needs an ordered transaction created with SOLVER_TRANSACTION_KEEP_ORDERDATA */ +extern int transaction_order_add_choices(Transaction *trans, Id chosen, Queue *choices); +/* add obsoleted packages into transaction steps */ +extern void transaction_add_obsoleted(Transaction *trans); + +/* debug function, report problems found in the order */ +extern void transaction_check_order(Transaction *trans); + +/* order cycle introspection */ +extern void transaction_order_get_cycleids(Transaction *trans, Queue *q, int minseverity); +extern int transaction_order_get_cycle(Transaction *trans, Id cid, Queue *q); +extern void transaction_order_get_edges(Transaction *trans, Id p, Queue *q, int unbroken); + +extern void transaction_free_orderdata(Transaction *trans); +extern void transaction_clone_orderdata(Transaction *trans, Transaction *srctrans); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/util.h b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/util.h new file mode 100644 index 0000000000000000000000000000000000000000..9c2b8249755b9ec4bfbb2911d0fc0e41a4c052ab --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/include/solv/util.h @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* + * util.h + * + */ + +#ifndef LIBSOLV_UTIL_H +#define LIBSOLV_UTIL_H + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * malloc + * exits with error message on error + */ +extern void *solv_malloc(size_t); +extern void *solv_malloc2(size_t, size_t); +extern void *solv_calloc(size_t, size_t); +extern void *solv_realloc(void *, size_t); +extern void *solv_realloc2(void *, size_t, size_t); +extern void *solv_extend_realloc(void *, size_t, size_t, size_t); +extern void *solv_free(void *); +extern char *solv_strdup(const char *); +extern void solv_oom(size_t, size_t); +extern unsigned int solv_timems(unsigned int subtract); +extern int solv_setcloexec(int fd, int state); +extern void solv_sort(void *base, size_t nmemb, size_t size, int (*compar)(const void *, const void *, void *), void *compard); +extern char *solv_dupjoin(const char *str1, const char *str2, const char *str3); +extern char *solv_dupappend(const char *str1, const char *str2, const char *str3); +extern int solv_hex2bin(const char **strp, unsigned char *buf, int bufl); +extern char *solv_bin2hex(const unsigned char *buf, int l, char *str); +extern size_t solv_validutf8(const char *buf); +extern char *solv_latin1toutf8(const char *buf); +extern char *solv_replacebadutf8(const char *buf, int replchar); + + +static inline void *solv_extend(void *buf, size_t len, size_t nmemb, size_t size, size_t block) +{ + if (nmemb == 1) + { + if ((len & block) == 0) + buf = solv_extend_realloc(buf, len + 1, size, block); + } + else + { + if (((len - 1) | block) != ((len + nmemb - 1) | block)) + buf = solv_extend_realloc(buf, len + nmemb, size, block); + } + return buf; +} + +/** + * extend an array by reallocation and zero's the new section + * buf old pointer + * len current size + * nmbemb number of elements to add + * size size of each element + * block block size used to allocate the elements + */ +static inline void *solv_zextend(void *buf, size_t len, size_t nmemb, size_t size, size_t block) +{ + buf = solv_extend(buf, len, nmemb, size, block); + memset((char *)buf + len * size, 0, nmemb * size); + return buf; +} + +static inline void *solv_extend_resize(void *buf, size_t len, size_t size, size_t block) +{ + if (len) + buf = solv_extend_realloc(buf, len, size, block); + return buf; +} + +static inline void *solv_calloc_block(size_t len, size_t size, size_t block) +{ + void *buf; + if (!len) + return 0; + buf = solv_extend_realloc((void *)0, len, size, block); + memset(buf, 0, ((len + block) & ~block) * size); + return buf; +} + +static inline void *solv_memdup(const void *buf, size_t len) +{ + void *newbuf; + if (!buf) + return 0; + newbuf = solv_malloc(len); + if (len) + memcpy(newbuf, buf, len); + return newbuf; +} + +static inline void *solv_memdup2(const void *buf, size_t num, size_t len) +{ + void *newbuf; + if (!buf) + return 0; + newbuf = solv_malloc2(num, len); + if (num) + memcpy(newbuf, buf, num * len); + return newbuf; +} + +#ifdef __cplusplus +} +#endif + +#endif /* LIBSOLV_UTIL_H */ diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/about.json b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..b91c8c18dfd0a63829ab1a418920baf1a6a7c6e8 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/about.json @@ -0,0 +1,169 @@ +{ + "channels": [ + "https://repo.anaconda.com/pkgs/main", + "https://repo.anaconda.com/pkgs/r", + "https://repo.anaconda.com/pkgs/r" + ], + "conda_build_version": "25.1.2", + "conda_version": "25.1.1", + "description": "libsolv, a free package dependency solver using a satisfiability algorithm.\n", + "dev_url": "https://github.com/openSUSE/libsolv", + "doc_url": "https://github.com/openSUSE/libsolv/tree/master/doc", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "parent_recipe": { + "name": "libsolv-suite", + "path": "/home/task_176035639968744/libsolv-feedstock/recipe", + "version": "0.7.30" + }, + "recipe-maintainers": [ + "SylvainCorlay", + "JohanMabille", + "wolfv", + "davidbrochart", + "adriendelsalle" + ] + }, + "home": "https://github.com/openSUSE/libsolv", + "identifiers": [], + "keywords": [], + "license": "BSD-3-Clause", + "license_family": "BSD", + "license_file": "LICENSE.BSD", + "root_pkgs": [ + "_libgcc_mutex 0.1 main", + "ca-certificates 2025.9.9 h06a4308_0", + "ld_impl_linux-64 2.40 h12ee557_0", + "libstdcxx-ng 11.2.0 h1234567_1", + "nlohmann_json 3.11.2 h6a678d5_0", + "pybind11-abi 5 hd3eb1b0_0", + "tzdata 2025a h04d1e81_0", + "libgomp 11.2.0 h1234567_1", + "_openmp_mutex 5.1 1_gnu", + "libgcc-ng 11.2.0 h1234567_1", + "bzip2 1.0.8 h5eee18b_6", + "c-ares 1.19.1 h5eee18b_0", + "cpp-expected 1.1.0 hdb19cb5_0", + "expat 2.6.4 h6a678d5_0", + "fmt 9.1.0 hdb19cb5_1", + "icu 73.1 h6a678d5_0", + "libev 4.33 h7f8727e_1", + "libffi 3.4.4 h6a678d5_1", + "libuuid 1.41.5 h5eee18b_0", + "lz4-c 1.9.4 h6a678d5_1", + "ncurses 6.4 h6a678d5_0", + "liblief 0.12.3 h6a678d5_0", + "reproc 14.2.4 h6a678d5_2", + "simdjson 3.10.1 hdb19cb5_0", + "xz 5.4.6 h5eee18b_1", + "yaml-cpp 0.8.0 h6a678d5_1", + "zlib 1.2.13 h5eee18b_1", + "libedit 3.1.20230828 h5eee18b_0", + "libnghttp2 1.57.0 h2d74bed_0", + "libssh2 1.11.1 h251f7ec_0", + "libxml2 2.13.5 hfdd30dd_0", + "pcre2 10.42 hebb0a14_1", + "readline 8.2 h5eee18b_0", + "reproc-cpp 14.2.4 h6a678d5_2", + "spdlog 1.11.0 hdb19cb5_0", + "tk 8.6.14 h39e8969_0", + "zstd 1.5.6 hc292b87_0", + "krb5 1.20.1 h143b758_1", + "libarchive 3.7.7 hfab0078_0", + "libsolv 0.7.30 he621ea3_1", + "sqlite 3.45.3 h5eee18b_0", + "libcurl 8.11.1 hc9e6f67_0", + "python 3.12.9 h5148396_0", + "libmamba 2.0.5 haf1ee3a_1", + "menuinst 2.2.0 py312h06a4308_1", + "anaconda-anon-usage 0.5.0 py312hfc0e8ea_100", + "annotated-types 0.6.0 py312h06a4308_0", + "archspec 0.2.3 pyhd3eb1b0_0", + "boltons 24.1.0 py312h06a4308_0", + "brotli-python 1.0.9 py312h6a678d5_9", + "charset-normalizer 3.3.2 pyhd3eb1b0_0", + "distro 1.9.0 py312h06a4308_0", + "frozendict 2.4.2 py312h06a4308_0", + "idna 3.7 py312h06a4308_0", + "jsonpointer 2.1 pyhd3eb1b0_0", + "libmambapy 2.0.5 py312hdb19cb5_1", + "mdurl 0.1.0 py312h06a4308_0", + "packaging 24.2 py312h06a4308_0", + "platformdirs 3.10.0 py312h06a4308_0", + "pluggy 1.5.0 py312h06a4308_0", + "pycosat 0.6.6 py312h5eee18b_2", + "pycparser 2.21 pyhd3eb1b0_0", + "pygments 2.15.1 py312h06a4308_1", + "pysocks 1.7.1 py312h06a4308_0", + "ruamel.yaml.clib 0.2.8 py312h5eee18b_0", + "setuptools 75.8.0 py312h06a4308_0", + "tqdm 4.67.1 py312he106c6f_0", + "truststore 0.10.0 py312h06a4308_0", + "typing_extensions 4.12.2 py312h06a4308_0", + "wheel 0.45.1 py312h06a4308_0", + "cffi 1.17.1 py312h1fdaa30_1", + "jsonpatch 1.33 py312h06a4308_1", + "markdown-it-py 2.2.0 py312h06a4308_1", + "pip 25.0 py312h06a4308_0", + "ruamel.yaml 0.18.6 py312h5eee18b_0", + "typing-extensions 4.12.2 py312h06a4308_0", + "urllib3 2.3.0 py312h06a4308_0", + "cryptography 43.0.3 py312h7825ff9_1", + "pydantic-core 2.27.1 py312h4aa5aa6_0", + "requests 2.32.3 py312h06a4308_1", + "rich 13.9.4 py312h06a4308_0", + "zstandard 0.23.0 py312h2c38b39_1", + "conda-content-trust 0.2.0 py312h06a4308_1", + "conda-package-streaming 0.11.0 py312h06a4308_0", + "pydantic 2.10.3 py312h06a4308_0", + "conda-package-handling 2.4.0 py312h06a4308_0", + "conda 25.1.1 py312h06a4308_0", + "conda-anaconda-tos 0.1.2 py312h06a4308_0", + "conda-libmamba-solver 25.1.1 pyhd3eb1b0_0", + "libsodium 1.0.20 heac8642_0", + "openssl 3.0.18 hd6dcaed_0", + "patch 2.8 hb25bd0a_0", + "patchelf 0.17.2 h6a678d5_0", + "yaml 0.2.5 h7b6447c_0", + "argcomplete 3.6.2 py312h06a4308_0", + "attrs 24.3.0 py312h06a4308_0", + "certifi 2025.8.3 py312h06a4308_0", + "chardet 5.2.0 py312h06a4308_0", + "click 8.2.1 py312h06a4308_0", + "filelock 3.17.0 py312h06a4308_0", + "jmespath 1.0.1 py312h06a4308_0", + "markupsafe 3.0.2 py312h5eee18b_0", + "more-itertools 10.3.0 py312h06a4308_0", + "pkginfo 1.12.0 py312h06a4308_0", + "psutil 7.0.0 py312hee96239_0", + "py-lief 0.12.3 py312h6a678d5_0", + "python-libarchive-c 5.1 pyhd3eb1b0_0", + "pytz 2025.2 py312h06a4308_0", + "pyyaml 6.0.2 py312h5eee18b_0", + "rpds-py 0.22.3 py312h4aa5aa6_0", + "six 1.17.0 py312h06a4308_0", + "soupsieve 2.5 py312h06a4308_0", + "tomlkit 0.13.2 py312h06a4308_0", + "xmltodict 0.14.2 py312h06a4308_0", + "jinja2 3.1.6 py312h06a4308_0", + "python-dateutil 2.9.0post0 py312h06a4308_2", + "referencing 0.30.2 py312h06a4308_0", + "yq 3.4.3 py312h06a4308_0", + "beautifulsoup4 4.13.5 py312h06a4308_0", + "botocore 1.37.10 py312h06a4308_0", + "jsonschema-specifications 2023.7.1 py312h06a4308_0", + "pynacl 1.5.0 py312h2630517_2", + "jsonschema 4.25.0 py312h06a4308_0", + "s3transfer 0.11.2 py312h06a4308_0", + "boto3 1.37.10 py312h06a4308_0", + "conda-anaconda-telemetry 0.3.0 pyhd3eb1b0_1", + "conda-index 0.5.0 py312h06a4308_0", + "conda-build 25.1.2 py312h06a4308_0" + ], + "summary": "Library for solving packages and reading repositories", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/files b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/files new file mode 100644 index 0000000000000000000000000000000000000000..5ee92a10bdabb3ca10f3c6e8502014778b196bba --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/files @@ -0,0 +1,57 @@ +bin/conda2solv +bin/dumpsolv +bin/installcheck +bin/mergesolv +bin/repo2solv +bin/testsolv +include/solv/bitmap.h +include/solv/chksum.h +include/solv/conda.h +include/solv/dataiterator.h +include/solv/dirpool.h +include/solv/evr.h +include/solv/hash.h +include/solv/knownid.h +include/solv/policy.h +include/solv/pool.h +include/solv/poolarch.h +include/solv/poolid.h +include/solv/pooltypes.h +include/solv/poolvendor.h +include/solv/problems.h +include/solv/queue.h +include/solv/repo.h +include/solv/repo_conda.h +include/solv/repo_solv.h +include/solv/repo_write.h +include/solv/repodata.h +include/solv/rules.h +include/solv/selection.h +include/solv/solv_xfopen.h +include/solv/solvable.h +include/solv/solver.h +include/solv/solverdebug.h +include/solv/solvversion.h +include/solv/strpool.h +include/solv/testcase.h +include/solv/tools_util.h +include/solv/transaction.h +include/solv/util.h +lib/libsolv.so +lib/libsolv.so.1 +lib/libsolvext.so +lib/libsolvext.so.1 +lib/pkgconfig/libsolv.pc +lib/pkgconfig/libsolvext.pc +share/cmake/Modules/FindLibSolv.cmake +share/man/man1/dumpsolv.1 +share/man/man1/installcheck.1 +share/man/man1/mergesolv.1 +share/man/man1/repo2solv.1 +share/man/man1/solv.1 +share/man/man1/testsolv.1 +share/man/man3/libsolv-bindings.3 +share/man/man3/libsolv-constantids.3 +share/man/man3/libsolv-history.3 +share/man/man3/libsolv-pool.3 +share/man/man3/libsolv.3 diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/git b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/has_prefix b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/has_prefix new file mode 100644 index 0000000000000000000000000000000000000000..adf84928b2602d5cb949ecb8de6938a058910288 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/has_prefix @@ -0,0 +1,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/libsolv.pc +/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 diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/hash_input.json b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..c329357cd1bc0ef60b5ec1ba00e279bf1a080087 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/hash_input.json @@ -0,0 +1,13 @@ +{ + "c_stdlib_version": "2.28", + "c_compiler_version": "11.2.0", + "target_platform": "linux-64", + "c_stdlib": "sysroot", + "c_compiler": "gcc", + "channel_targets": "defaults", + "cxx_compiler_version": "11.2.0", + "zlib": "1.2", + "cxx_compiler": "gxx", + "pcre2": "10.46", + "__glibc": "__glibc >=2.28,<3.0.a0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/index.json b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..cff150f112361844f63748ab29bcbcff60a3ec60 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/index.json @@ -0,0 +1,19 @@ +{ + "arch": "x86_64", + "build": "h6f1ccf3_2", + "build_number": 2, + "depends": [ + "__glibc >=2.28,<3.0.a0", + "libgcc-ng >=11.2.0", + "libstdcxx-ng >=11.2.0", + "pcre2 >=10.46,<10.47.0a0", + "zlib >=1.2.13,<2.0a0" + ], + "license": "BSD-3-Clause", + "license_family": "BSD", + "name": "libsolv", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1760357067289, + "version": "0.7.30" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/licenses/LICENSE.BSD b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/licenses/LICENSE.BSD new file mode 100644 index 0000000000000000000000000000000000000000..79c9f2d5fbc33fb33da993cdc281293eba6c6efc --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/licenses/LICENSE.BSD @@ -0,0 +1,28 @@ + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +3. Neither the name of Novell nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING +IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/paths.json b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..9d4739183065f74d3525eb0d2c60c11be9258ac3 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/paths.json @@ -0,0 +1,351 @@ +{ + "paths": [ + { + "_path": "bin/conda2solv", + "path_type": "hardlink", + "sha256": "0f0ed06ed7da494d6fb4835a4ffc29f1ea325cf8fa527e031522ad2929ee67f8", + "size_in_bytes": 22776 + }, + { + "_path": "bin/dumpsolv", + "path_type": "hardlink", + "sha256": "e8a509f79ff62676892ac72d801f7647167e8582a16f53426ef1137656f4982e", + "size_in_bytes": 27448 + }, + { + "_path": "bin/installcheck", + "path_type": "hardlink", + "sha256": "8b1636f147f9c48a36781ed933873d1ceb127f062936985b103953d824b0e27e", + "size_in_bytes": 27200 + }, + { + "_path": "bin/mergesolv", + "path_type": "hardlink", + "sha256": "bc1607ec14a28e4a8f6f9ac21946ff6adbcadd04994ca989f13811379e630879", + "size_in_bytes": 22952 + }, + { + "_path": "bin/repo2solv", + "path_type": "hardlink", + "sha256": "7f4811c74a349f7c5ddd5776384a3bb50c7925da9eeac973f3bf745e92d7f395", + "size_in_bytes": 23568 + }, + { + "_path": "bin/testsolv", + "path_type": "hardlink", + "sha256": "75bc9820851e7a6cd8276fad8b6ca635d11df8ff1f0a9c9f78b4e62b82a47e58", + "size_in_bytes": 28824 + }, + { + "_path": "include/solv/bitmap.h", + "path_type": "hardlink", + "sha256": "b3fa6d991875e1a2b2800c854697c722580ab6802c9d3840e302382b0fce919e", + "size_in_bytes": 1555 + }, + { + "_path": "include/solv/chksum.h", + "path_type": "hardlink", + "sha256": "55602f07eb12c868ef3a3b0a580db3255738432a6edd0a47b5c0637a3c8eedd3", + "size_in_bytes": 1190 + }, + { + "_path": "include/solv/conda.h", + "path_type": "hardlink", + "sha256": "cc65c66cc0f7ca57e878ef5edb52612e02bd08f99daa18d4b5ab9cd5e08acee1", + "size_in_bytes": 638 + }, + { + "_path": "include/solv/dataiterator.h", + "path_type": "hardlink", + "sha256": "b8c0204b81519f93de8fe9d5720d187ab14d8b216b0ef738fbec5077af4f4b40", + "size_in_bytes": 5045 + }, + { + "_path": "include/solv/dirpool.h", + "path_type": "hardlink", + "sha256": "ca20c07c0b5e6ccf6b4380463de9f1420251906eed00746c96b95ccaf04dcf8a", + "size_in_bytes": 1712 + }, + { + "_path": "include/solv/evr.h", + "path_type": "hardlink", + "sha256": "629da0ed74bdc88c0d766843a15f1c21502dc1b62842f3e2067b26fed889bc99", + "size_in_bytes": 815 + }, + { + "_path": "include/solv/hash.h", + "path_type": "hardlink", + "sha256": "3741802a625392b70befc4c26c4cf314354104dbcda9ef7ae38eabe06512b451", + "size_in_bytes": 1604 + }, + { + "_path": "include/solv/knownid.h", + "path_type": "hardlink", + "sha256": "6027ad1996cf04e59b6fd68c83233b3d223c1a5ff3a4eeff8c35f0babaaf343a", + "size_in_bytes": 14014 + }, + { + "_path": "include/solv/policy.h", + "path_type": "hardlink", + "sha256": "d945789cd68d4bafc46fd16564ba6d28affd785ef70bb8d643731501b75cb2a9", + "size_in_bytes": 1740 + }, + { + "_path": "include/solv/pool.h", + "path_type": "hardlink", + "sha256": "4bdb7fb1c45de706328fafeaff1daee8fbdb2888ff37a95a914d499c4ed07f0c", + "size_in_bytes": 13918 + }, + { + "_path": "include/solv/poolarch.h", + "path_type": "hardlink", + "sha256": "9849f634990237148e37b5c6daa8b82421bbfe0bc9de383e562133b8c26bd751", + "size_in_bytes": 1242 + }, + { + "_path": "include/solv/poolid.h", + "path_type": "hardlink", + "sha256": "c7c111d28e711e67cf93a756b886207418c09e7ddd6b475c28c9a122a93c97f9", + "size_in_bytes": 1188 + }, + { + "_path": "include/solv/pooltypes.h", + "path_type": "hardlink", + "sha256": "d20150c0daee45b66ea5a9d7fa383816ef97abd4b219b764b298e1fe901da27d", + "size_in_bytes": 1240 + }, + { + "_path": "include/solv/poolvendor.h", + "path_type": "hardlink", + "sha256": "041cc351042f17c1d94bec538492f06e877d21720eb1da3f570a987849d35658", + "size_in_bytes": 499 + }, + { + "_path": "include/solv/problems.h", + "path_type": "hardlink", + "sha256": "4097418558bccc9021609528e4b4f2d715774ddcfdea345e3bd9a3cb625cd4ed", + "size_in_bytes": 2718 + }, + { + "_path": "include/solv/queue.h", + "path_type": "hardlink", + "sha256": "3b9d3e41ae15c3643a5c45de1498b9c719eba36cb5377ef94d2d211fdc9ddca6", + "size_in_bytes": 2469 + }, + { + "_path": "include/solv/repo.h", + "path_type": "hardlink", + "sha256": "fe9ba801129a4ac67fe8dc83846a46c355f865d0c4cff932b3d7aa8877f0346d", + "size_in_bytes": 8026 + }, + { + "_path": "include/solv/repo_conda.h", + "path_type": "hardlink", + "sha256": "15ff4614add5dbeebbf318f35b75f3ff091459136e1c354fc91dcfd3c153c9a2", + "size_in_bytes": 491 + }, + { + "_path": "include/solv/repo_solv.h", + "path_type": "hardlink", + "sha256": "f80c429f1b3f1fbc6d0c7a8068d7746dbad1c327c6290e1a03f1234bc18a4a46", + "size_in_bytes": 557 + }, + { + "_path": "include/solv/repo_write.h", + "path_type": "hardlink", + "sha256": "c6c5cf3ee8c8cb9361fd3e76d52da2f9117c61c70a8c3b9535656749620d0bc7", + "size_in_bytes": 1973 + }, + { + "_path": "include/solv/repodata.h", + "path_type": "hardlink", + "sha256": "40ab4c97e19d04c8c8c2fe45a9bbabf40ede8df1fa3be932ff00fc840d69b6ac", + "size_in_bytes": 12155 + }, + { + "_path": "include/solv/rules.h", + "path_type": "hardlink", + "sha256": "69704bfc9aeafcd1cd9f56ff1a8c6184d90b53fa0505067a211a44c337f3a50e", + "size_in_bytes": 6650 + }, + { + "_path": "include/solv/selection.h", + "path_type": "hardlink", + "sha256": "2aab66c59706f46bc1575c32d0163f838abf71b895248eb1eb3f862d4ccc4a88", + "size_in_bytes": 2612 + }, + { + "_path": "include/solv/solv_xfopen.h", + "path_type": "hardlink", + "sha256": "60c1fb8f156934540598405645269f6c92969b98c121276cda12a9696a5e4b8b", + "size_in_bytes": 553 + }, + { + "_path": "include/solv/solvable.h", + "path_type": "hardlink", + "sha256": "1cf167edad462ca37aa0f93ea5f7cbbd265ca0cd66a846e2ecdf474eab0d5f5c", + "size_in_bytes": 3964 + }, + { + "_path": "include/solv/solver.h", + "path_type": "hardlink", + "sha256": "1cfe3b80ed02fae25c99f96672a6b205bd7ba28dedf8cb91b895525d0919b1a8", + "size_in_bytes": 18230 + }, + { + "_path": "include/solv/solverdebug.h", + "path_type": "hardlink", + "sha256": "5637cc7d15d39a5b17321c766fb52946d9c4fe9c0201f5ffec314272bd67e56b", + "size_in_bytes": 1269 + }, + { + "_path": "include/solv/solvversion.h", + "path_type": "hardlink", + "sha256": "7232d66fd4b35eccbab993197c063666b391f9ef1e4dfe16fc696e3c6c2e732f", + "size_in_bytes": 1653 + }, + { + "_path": "include/solv/strpool.h", + "path_type": "hardlink", + "sha256": "7ff36f90d02702132563f4b56dbe1742ca5b638da28d9b1c80a138ed162d4e4a", + "size_in_bytes": 1477 + }, + { + "_path": "include/solv/testcase.h", + "path_type": "hardlink", + "sha256": "54440605f766cb6ca33fa89ab33cc04a1ae6648e6ce7452c307f2ad31b802111", + "size_in_bytes": 2165 + }, + { + "_path": "include/solv/tools_util.h", + "path_type": "hardlink", + "sha256": "40f18645bd32235a42d0247a088c17428172f423473931e58638dc16e51e0d79", + "size_in_bytes": 1642 + }, + { + "_path": "include/solv/transaction.h", + "path_type": "hardlink", + "sha256": "ae79cb88058e429202a47a65f37c851187f7cb97c353043267aae853dfdf4721", + "size_in_bytes": 4826 + }, + { + "_path": "include/solv/util.h", + "path_type": "hardlink", + "sha256": "7d6a53f5dd6e00ee916dc5cd7fce0477f8dc8b4bde71081c713df56341f14617", + "size_in_bytes": 3141 + }, + { + "_path": "lib/libsolv.so", + "path_type": "softlink", + "sha256": "29a82dc332f12e8abb2ec70570894886589cd0dc6df2c231575f54684829de99", + "size_in_bytes": 706280 + }, + { + "_path": "lib/libsolv.so.1", + "path_type": "hardlink", + "sha256": "29a82dc332f12e8abb2ec70570894886589cd0dc6df2c231575f54684829de99", + "size_in_bytes": 706280 + }, + { + "_path": "lib/libsolvext.so", + "path_type": "softlink", + "sha256": "6b89c5730bd9e12ef50fb354e0ff719256f402f0df88a3f0c9cc2fea523ea978", + "size_in_bytes": 112720 + }, + { + "_path": "lib/libsolvext.so.1", + "path_type": "hardlink", + "sha256": "6b89c5730bd9e12ef50fb354e0ff719256f402f0df88a3f0c9cc2fea523ea978", + "size_in_bytes": 112720 + }, + { + "_path": "lib/pkgconfig/libsolv.pc", + "file_mode": "text", + "path_type": "hardlink", + "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", + "sha256": "4f6350c04a41333ac69e6e6f21ddf0ab3cbac67a6c72d41b3bf9f92499a14c62", + "size_in_bytes": 664 + }, + { + "_path": "lib/pkgconfig/libsolvext.pc", + "file_mode": "text", + "path_type": "hardlink", + "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", + "sha256": "74affa4f2df80d6944b16acb8d6f206ea053ab00d80b3423d3f481dfe1d49e28", + "size_in_bytes": 692 + }, + { + "_path": "share/cmake/Modules/FindLibSolv.cmake", + "path_type": "hardlink", + "sha256": "2f81f106b402b02fb6486878eed2481db01c61075b725d59e5f65dc301f72802", + "size_in_bytes": 3182 + }, + { + "_path": "share/man/man1/dumpsolv.1", + "path_type": "hardlink", + "sha256": "5c4181b65d0b35f82845035cc53dbd15b20e1020e499fcce3c8ae6b68c2ffa2e", + "size_in_bytes": 1618 + }, + { + "_path": "share/man/man1/installcheck.1", + "path_type": "hardlink", + "sha256": "a96dcb2fdec31c87dd9c8b9f24e66fce9233939bdfee2a08c1b5247a190152e2", + "size_in_bytes": 2024 + }, + { + "_path": "share/man/man1/mergesolv.1", + "path_type": "hardlink", + "sha256": "a391bdb50abab0a1448707ef5597bb33252b4e1d8b512f7e69a98eddf1992b4d", + "size_in_bytes": 1645 + }, + { + "_path": "share/man/man1/repo2solv.1", + "path_type": "hardlink", + "sha256": "17a11568cc36a863433bf080729669b33d573ac44f1c0e06217bc574fd050995", + "size_in_bytes": 2448 + }, + { + "_path": "share/man/man1/solv.1", + "path_type": "hardlink", + "sha256": "1092a5fe6d1408eab08e98a7974f3d4c6b315a97cadbd2915d0ccff67208fb32", + "size_in_bytes": 2900 + }, + { + "_path": "share/man/man1/testsolv.1", + "path_type": "hardlink", + "sha256": "b4baea939f14f06d6008c4361aacd71c95dee812d27bac1ce92f23d44f490a00", + "size_in_bytes": 2297 + }, + { + "_path": "share/man/man3/libsolv-bindings.3", + "path_type": "hardlink", + "sha256": "6441110b909093377847529e4e3650ea7434726645e3f439a18ce699fb25eb0e", + "size_in_bytes": 192227 + }, + { + "_path": "share/man/man3/libsolv-constantids.3", + "path_type": "hardlink", + "sha256": "217f140750416a9c4c6b72fb5fa86fd29770feadae3633f02b25f692eb89fe7f", + "size_in_bytes": 27211 + }, + { + "_path": "share/man/man3/libsolv-history.3", + "path_type": "hardlink", + "sha256": "0723ea962c38f4778ce27d83df0c4b076b81f9327594eee2d8c9e19d3a230b07", + "size_in_bytes": 7170 + }, + { + "_path": "share/man/man3/libsolv-pool.3", + "path_type": "hardlink", + "sha256": "207b3c604e516be736baba833010436a25563165a046ac5fcf00a2d10491f0f5", + "size_in_bytes": 44348 + }, + { + "_path": "share/man/man3/libsolv.3", + "path_type": "hardlink", + "sha256": "58403e02a12b1084ab17cf114bf6482815a3f3eaaea56a5ab85ffc10399c90bb", + "size_in_bytes": 3103 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5081003c134bb13b01f78409ba9c1bd9af8c5bed --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/conda_build_config.yaml @@ -0,0 +1,34 @@ +c_compiler: gcc +c_compiler_version: 11.2.0 +c_stdlib: sysroot +c_stdlib_version: '2.28' +channel_targets: defaults +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cxx_compiler: gxx +cxx_compiler_version: 11.2.0 +extend_keys: +- extend_keys +- pin_run_as_build +- ignore_version +- ignore_build_only_deps +fortran_compiler: gfortran +ignore_build_only_deps: +- python +- numpy +lua: '5' +numpy: '1.26' +pcre2: '10.46' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +platform: linux-64 +python: '3.12' +r_base: '3.5' +target_platform: linux-64 +zlib: '1.2' diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/install.sh b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/install.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bce0abbccd816a6be2bd6e6cf0ca0a158ad65f5 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/install.sh @@ -0,0 +1,16 @@ +#!/bin/bash +echo "Building ${PKG_NAME}." + +cd build + +# Installing +echo "Installing..." +ninja install || exit 1 + +if [[ "$PKG_NAME" == *static ]] +then + # relying on conda to dedup package + echo "Doing nothing" +else + rm -rf ${PREFIX}/lib/*a +fi diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/meta.yaml b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ebbf536ad62ad845454345116fe6440e1d4bad4c --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/meta.yaml @@ -0,0 +1,115 @@ +# This file created by conda-build 25.1.2 +# ------------------------------------------------ + +package: + name: libsolv + version: 0.7.30 +source: + patches: + - patches/conda_variant_priorization.patch + - patches/no_error_subdir_mismatch.patch + - patches/pcre2-compat.patch + sha256: ce4aa2f0e3c5c9ab99dced6a1810af3f670f1b98892394edc68ccabe7b272133 + url: https://github.com/openSUSE/libsolv/archive/0.7.30.tar.gz +build: + noarch: false + noarch_python: false + number: '2' + script: install.sh + string: h6f1ccf3_2 +requirements: + build: + - _libgcc_mutex 0.1 main + - _openmp_mutex 5.1 1_gnu + - binutils_impl_linux-64 2.40 h5293946_0 + - binutils_linux-64 2.40.0 hc2dff05_2 + - bzip2 1.0.8 h5eee18b_6 + - c-ares 1.34.5 hef5626c_0 + - ca-certificates 2025.9.9 h06a4308_0 + - cmake 3.31.2 h27e300b_0 + - expat 2.7.1 h6a678d5_0 + - gcc_impl_linux-64 11.2.0 h1234567_1 + - gcc_linux-64 11.2.0 h5c386dc_2 + - gxx_impl_linux-64 11.2.0 h1234567_1 + - gxx_linux-64 11.2.0 hc2dff05_2 + - kernel-headers_linux-64 4.18.0 h528b178_0 + - ld_impl_linux-64 2.40 h12ee557_0 + - libcurl 8.15.0 hc1efc7f_0 + - libev 4.33 h7f8727e_1 + - libffi 3.4.4 h6a678d5_1 + - libgcc-devel_linux-64 11.2.0 h1234567_1 + - libgcc-ng 11.2.0 h1234567_1 + - libgomp 11.2.0 h1234567_1 + - libmpdec 4.0.0 h5eee18b_0 + - libnghttp2 1.57.0 h2d74bed_0 + - libssh2 1.11.1 h251f7ec_0 + - libstdcxx-devel_linux-64 11.2.0 h1234567_1 + - libstdcxx-ng 11.2.0 h1234567_1 + - libuuid 1.41.5 h5eee18b_0 + - libuv 1.48.0 h5eee18b_0 + - libxcb 1.17.0 h9b100fa_0 + - libzlib 1.3.1 hb25bd0a_0 + - lz4-c 1.9.4 h6a678d5_1 + - ncurses 6.5 h7934f7d_0 + - ninja 1.12.1 h06a4308_0 + - ninja-base 1.12.1 hdb19cb5_0 + - openssl 3.0.18 hd6dcaed_0 + - pkg-config 0.29.2 h1bed415_8 + - pthread-stubs 0.3 h0ce48e5_1 + - python 3.14.0 h3fc5862_100_cp314 + - python_abi 3.14 1_cp314 + - readline 8.3 hc2a1206_0 + - rhash 1.4.3 hdbd6064_0 + - sqlite 3.50.2 hb25bd0a_1 + - sysroot_linux-64 2.28 h528b178_0 + - tk 8.6.15 h54e0aa7_0 + - tzdata 2025b h04d1e81_0 + - xorg-libx11 1.8.12 h9b100fa_1 + - xorg-libxau 1.0.12 h9b100fa_0 + - xorg-libxdmcp 1.1.5 h9b100fa_0 + - xorg-xorgproto 2024.1 h5eee18b_1 + - xz 5.6.4 h5eee18b_1 + - zlib 1.3.1 hb25bd0a_0 + - zstd 1.5.7 h11fc155_0 + host: + - _libgcc_mutex 0.1 main + - _openmp_mutex 5.1 1_gnu + - bzip2 1.0.8 h5eee18b_6 + - libgcc-ng 11.2.0 h1234567_1 + - libgomp 11.2.0 h1234567_1 + - libstdcxx-ng 11.2.0 h1234567_1 + - pcre2 10.46 hf426167_0 + - zlib 1.2.13 hd233ad5_2 + run: + - __glibc >=2.28,<3.0.a0 + - libgcc-ng >=11.2.0 + - libstdcxx-ng >=11.2.0 + - pcre2 >=10.46,<10.47.0a0 + - zlib >=1.2.13,<2.0a0 +test: + commands: + - test -f ${PREFIX}/lib/libsolv${SHLIB_EXT} + - test -f ${PREFIX}/lib/libsolvext${SHLIB_EXT} + - test -f ${PREFIX}/lib/libsolv.so.1 + - test -f ${PREFIX}/include/solv/repo.h + - dumpsolv -h +about: + description: 'libsolv, a free package dependency solver using a satisfiability algorithm. + + ' + dev_url: https://github.com/openSUSE/libsolv + doc_url: https://github.com/openSUSE/libsolv/tree/master/doc + home: https://github.com/openSUSE/libsolv + license: BSD-3-Clause + license_family: BSD + license_file: LICENSE.BSD + summary: Library for solving packages and reading repositories +extra: + copy_test_source_files: true + final: true + recipe-maintainers: + - JohanMabille + - SylvainCorlay + - adriendelsalle + - davidbrochart + - wolfv diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/bld.bat b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/bld.bat new file mode 100644 index 0000000000000000000000000000000000000000..93e1db5954bae8c6bd0e488a0efcaf0eb3308534 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/bld.bat @@ -0,0 +1,44 @@ +mkdir build +cd build + +cmake -G "Ninja" ^ + -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ + -D CMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ + -D CMAKE_VERBOSE_MAKEFILE=ON ^ + -D ENABLE_CONDA=ON ^ + -D MULTI_SEMANTICS=ON ^ + -D WITHOUT_COOKIEOPEN=ON ^ + -D CMAKE_BUILD_TYPE=Release ^ + -D CMAKE_MSVC_RUNTIME_LIBRARY="MultiThreadedDLL" ^ + -D DISABLE_SHARED=OFF ^ + -D ENABLE_STATIC=OFF ^ + -D ENABLE_PCRE2=ON ^ + .. +if errorlevel 1 exit 1 + +ninja +if errorlevel 1 exit 1 + +cd .. +mkdir static_build +cd static_build + +cmake -G "Ninja" ^ + -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ + -D CMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ + -D CMAKE_VERBOSE_MAKEFILE=ON ^ + -D ENABLE_CONDA=ON ^ + -D MULTI_SEMANTICS=ON ^ + -D WITHOUT_COOKIEOPEN=ON ^ + -D CMAKE_BUILD_TYPE=Release ^ + -D CMAKE_MSVC_RUNTIME_LIBRARY="MultiThreadedDLL" ^ + -D ENABLE_STATIC=ON ^ + -D DISABLE_SHARED=ON ^ + -D ENABLE_PCRE2=ON ^ + -D CMAKE_RELEASE_POSTFIX="_static" ^ + .. + +if errorlevel 1 exit 1 + +ninja +if errorlevel 1 exit 1 diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/build.sh b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..89742507a35cb6fdf5a54a4a6a569638b0bae6b1 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/build.sh @@ -0,0 +1,37 @@ +#!/bin/bash +echo "Building ${PKG_NAME}." + +# Isolate the build. +mkdir -p build +cd build || exit 1 + +# Generate the build files. +echo "Generating the build files..." +cmake .. ${CMAKE_ARGS} \ +-GNinja \ +-DCMAKE_PREFIX_PATH=$PREFIX \ +-DCMAKE_INSTALL_PREFIX=$PREFIX \ +-DCMAKE_BUILD_TYPE=Release \ +-DCMAKE_INSTALL_LIBDIR=lib \ +-DENABLE_CONDA=ON \ +-DMULTI_SEMANTICS=ON \ +-DENABLE_PCRE2=ON \ +-DENABLE_STATIC=ON + +# Build. +echo "Building..." +ninja || exit 1 + +# Perform tests. +# echo "Testing..." +# ninja test || exit 1 +# path_to/test || exit 1 +# ctest -VV --output-on-failure || exit 1 + +# Installing +#echo "Installing..." +#ninja install || exit 1 + +# Error free exit! +echo "Error free exit!" +exit 0 diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/install.sh b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/install.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bce0abbccd816a6be2bd6e6cf0ca0a158ad65f5 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/install.sh @@ -0,0 +1,16 @@ +#!/bin/bash +echo "Building ${PKG_NAME}." + +cd build + +# Installing +echo "Installing..." +ninja install || exit 1 + +if [[ "$PKG_NAME" == *static ]] +then + # relying on conda to dedup package + echo "Doing nothing" +else + rm -rf ${PREFIX}/lib/*a +fi diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/install_dynamic.bat b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/install_dynamic.bat new file mode 100644 index 0000000000000000000000000000000000000000..087829880580717c58813969be41ede517fa669e --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/install_dynamic.bat @@ -0,0 +1,6 @@ +:: cmd + +cd build +ninja install + +if errorlevel 1 exit 1 diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/install_static.bat b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/install_static.bat new file mode 100644 index 0000000000000000000000000000000000000000..5de4cd0d0df2ee78a9caa93ee592d462b75b98b4 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/install_static.bat @@ -0,0 +1,11 @@ +set "CFLAGS= -MD" +echo %CFLAGS% + +set "CXXFLAGS= -MD" +echo %CXXFLAGS% + +cd static_build +COPY src\solv_static.lib %LIBRARY_PREFIX%\lib\solv_static.lib +COPY ext\solvext_static.lib %LIBRARY_PREFIX%\lib\solvext_static.lib + +if errorlevel 1 exit 1 diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/meta.yaml b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..54aa9610fa4ff48fdeb3e7811a748f1bb6f9b6fd --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/meta.yaml @@ -0,0 +1,109 @@ +{% set name = "libsolv" %} +{% set version = "0.7.30" %} + +package: + name: {{ name|lower }}-suite + version: {{ version }} + +source: + url: https://github.com/openSUSE/{{ name }}/archive/{{ version }}.tar.gz + sha256: ce4aa2f0e3c5c9ab99dced6a1810af3f670f1b98892394edc68ccabe7b272133 + patches: + - patches/win_export_and_static_build.patch # [win] + - patches/conda_variant_priorization.patch + - patches/no_error_subdir_mismatch.patch + - patches/pcre2-compat.patch + +build: + number: 2 + run_exports: + - {{ pin_subpackage('libsolv', max_pin='x.x') }} + ignore_run_exports: # [win] + - zlib # [win] + +requirements: + build: + - {{ stdlib('c') }} + - {{ compiler('c') }} + - {{ compiler('cxx') }} + - pkg-config + - ninja + - cmake + host: + - zlib {{ zlib }} + - pcre2 {{ pcre2 }} + +outputs: + - name: libsolv + script: install.sh # [unix] + script: install_dynamic.bat # [win] + requirements: + build: + - {{ stdlib('c') }} + - {{ compiler('c') }} + - {{ compiler('cxx') }} + - pkg-config + - ninja + - cmake + host: + - zlib {{ zlib }} + - pcre2 {{ pcre2 }} + test: + commands: + - test -f ${PREFIX}/lib/libsolv${SHLIB_EXT} # [unix] + - test -f ${PREFIX}/lib/libsolvext${SHLIB_EXT} # [unix] + - test -f ${PREFIX}/lib/libsolv.so.1 # [linux] + - test -f ${PREFIX}/include/solv/repo.h # [unix] + - if not exist %LIBRARY_INC%\solv\repo.h (exit 1) # [win] + - if not exist %LIBRARY_BIN%\solv.dll (exit 1) # [win] + - if not exist %LIBRARY_LIB%\solv.lib (exit 1) # [win] + - if not exist %LIBRARY_BIN%\solvext.dll (exit 1) # [win] + - if not exist %LIBRARY_LIB%\solvext.lib (exit 1) # [win] + - if exist %LIBRARY_LIB%\solv_static.lib (exit 1) # [win] + - if exist %LIBRARY_LIB%\solvext_static.lib (exit 1) # [win] + # Running the executables + - dumpsolv.exe -h # [win] + - dumpsolv -h # [unix] + + - name: libsolv-static + script: install.sh # [unix] + script: install_static.bat # [win] + requirements: + build: + - {{ stdlib('c') }} + - {{ compiler('c') }} + - {{ compiler('cxx') }} + - pkg-config + - ninja + - cmake + host: + - zlib {{ zlib }} + - pcre2 {{ pcre2 }} + - {{ pin_subpackage("libsolv", exact=True) }} + run: + - {{ pin_subpackage("libsolv", exact=True) }} + test: + commands: + - test -f "${PREFIX}/lib/libsolv.a" # [unix] + - test -f "${PREFIX}/lib/libsolvext.a" # [unix] + - if not exist %LIBRARY_LIB%\solv_static.lib (exit 1) # [win] + - if not exist %LIBRARY_LIB%\solvext_static.lib (exit 1) # [win] + +about: + home: https://github.com/openSUSE/libsolv + license: BSD-3-Clause + license_family: BSD + license_file: LICENSE.BSD + summary: Library for solving packages and reading repositories + description: | + libsolv, a free package dependency solver using a satisfiability algorithm. + dev_url: https://github.com/openSUSE/libsolv + doc_url: https://github.com/openSUSE/libsolv/tree/master/doc + +extra: + recipe-maintainers: + - SylvainCorlay + - JohanMabille + - wolfv + - davidbrochart + - adriendelsalle diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/patches/conda_variant_priorization.patch b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/patches/conda_variant_priorization.patch new file mode 100644 index 0000000000000000000000000000000000000000..cd1edd6e5987a37540019c8314b028a431ddd835 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/recipe/parent/patches/conda_variant_priorization.patch @@ -0,0 +1,438 @@ +diff --git a/src/conda.c b/src/conda.c +index 21ad6bfb..408a236a 100644 +--- a/src/conda.c ++++ b/src/conda.c +@@ -134,7 +134,7 @@ solv_vercmp_conda(const char *s1, const char *q1, const char *s2, const char *q2 + return -1; + if (s1p - s1 > s2p - s2) + return 1; +- r = s1p - s1 ? strncmp(s1, s2, s1p - s1) : 0; ++ r = (s1p - s1) ? strncmp(s1, s2, s1p - s1) : 0; + if (r) + return r; + } +diff --git a/src/policy.c b/src/policy.c +index c02d2373..d6354cd2 100644 +--- a/src/policy.c ++++ b/src/policy.c +@@ -833,6 +833,79 @@ move_installed_to_front(Pool *pool, Queue *plist) + } + } + ++/* ++ * prune_to_best_version ++ * ++ * sort list of packages (given through plist) by name and evr ++ * return result through plist ++ */ ++void ++prune_to_best_version(Pool *pool, Queue *plist) ++{ ++#ifdef ENABLE_CONDA ++ if (pool->disttype == DISTTYPE_CONDA) ++ return prune_to_best_version_conda(pool, plist); ++#endif ++ ++ int i, j, r; ++ Solvable *s, *best; ++ ++ if (plist->count < 2) /* no need to prune for a single entry */ ++ return; ++ POOL_DEBUG(SOLV_DEBUG_POLICY, "prune_to_best_version %d\n", plist->count); ++ ++ /* sort by name first, prefer installed */ ++ solv_sort(plist->elements, plist->count, sizeof(Id), prune_to_best_version_sortcmp, pool); ++ ++ /* now find best 'per name' */ ++ best = 0; ++ for (i = j = 0; i < plist->count; i++) ++ { ++ s = pool->solvables + plist->elements[i]; ++ ++ POOL_DEBUG(SOLV_DEBUG_POLICY, "- %s [%d]%s\n", ++ pool_solvable2str(pool, s), plist->elements[i], ++ (pool->installed && s->repo == pool->installed) ? "I" : ""); ++ ++ if (!best) /* if no best yet, the current is best */ ++ { ++ best = s; ++ continue; ++ } ++ ++ /* name switch: finish group, re-init */ ++ if (best->name != s->name) /* new name */ ++ { ++ plist->elements[j++] = best - pool->solvables; /* move old best to front */ ++ best = s; /* take current as new best */ ++ continue; ++ } ++ ++ r = 0; ++ if (r == 0) ++ r = best->evr != s->evr ? pool_evrcmp(pool, best->evr, s->evr, EVRCMP_COMPARE) : 0; ++#ifdef ENABLE_LINKED_PKGS ++ if (r == 0 && has_package_link(pool, s)) ++ r = pool_link_evrcmp(pool, best, s); ++#endif ++ if (r < 0) ++ best = s; ++ } ++ ++ plist->elements[j++] = best - pool->solvables; /* finish last group */ ++ plist->count = j; ++ ++ /* we reduced the list to one package per name, now look at ++ * package obsoletes */ ++ if (plist->count > 1) ++ { ++ if (plist->count == 2) ++ prune_obsoleted_2(pool, plist); ++ else ++ prune_obsoleted(pool, plist); ++ } ++} ++ + #ifdef ENABLE_CONDA + static int + pool_featurecountcmp(Pool *pool, Solvable *s1, Solvable *s2) +@@ -863,23 +936,221 @@ pool_buildflavorcmp(Pool *pool, Solvable *s1, Solvable *s2) + return 0; + return pool_evrcmp_str(pool, f1 ? f1 : "" , f2 ? f2 : "", EVRCMP_COMPARE); + } +-#endif ++ ++void intersect_selection(Pool* pool, Id dep, Queue* prev) ++{ ++ Queue tmp; ++ int i = 0, j = 0, isectidx = 0; ++ ++ queue_init(&tmp); ++ ++ Id* pp, p; ++ pp = pool_whatprovides_ptr(pool, dep); ++ while ((p = *pp++) != 0) ++ queue_push(&tmp, p); ++ ++ // set intersection, assuming sorted arrays ++ while (i < prev->count && j < tmp.count) ++ if (prev->elements[i] < tmp.elements[j]) ++ i++; ++ else if (tmp.elements[j] < prev->elements[i]) ++ j++; ++ else ++ { ++ if (isectidx != i) ++ prev->elements[isectidx] = prev->elements[i]; ++ i++, j++, isectidx++; ++ } ++ ++ prev->count = isectidx; ++ queue_free(&tmp); ++} ++ ++int check_deps_unequal(Pool* pool, Queue* q1, Queue* q2, Id name) ++{ ++ Id dep; ++ int i, j; ++ int found = 0; ++ for (i = 0; i < q1->count; ++i) ++ { ++ dep = q1->elements[i]; ++ if (ISRELDEP(dep) && GETRELDEP(pool, dep)->name == name) ++ { ++ for (j = 0; j < q2->count; ++j) ++ { ++ if (q2->elements[j] == dep) ++ { ++ found = 1; ++ break; ++ } ++ } ++ if (!found) ++ return 1; ++ ++ found = 0; ++ } ++ } ++ return 0; ++} ++ ++Id best_matching(Pool* pool, Queue* q, Id name, int* all_have_trackfeatures) ++{ ++ int first = 1; ++ Id dep, p, *pp; ++ ++ Queue selection; ++ queue_init(&selection); ++ ++ for (int i = 0; i < q->count; ++i) ++ { ++ dep = q->elements[i]; ++ if (!ISRELDEP(dep) || GETRELDEP(pool, dep)->name != name) continue; ++ ++ if (first) ++ { ++ pp = pool_whatprovides_ptr(pool, dep); ++ while ((p = *pp++) != 0) ++ queue_push(&selection, p); ++ first = 0; ++ } ++ else ++ intersect_selection(pool, dep, &selection); ++ } ++ ++ if (selection.count == 0) ++ return 0; ++ ++ Solvable *stmp, *best = pool_id2solvable(pool, selection.elements[0]); ++ int cmp; ++ ++ *all_have_trackfeatures = 1; ++ for (int i = 0; i < selection.count; ++i) ++ if (solvable_lookup_count(pool_id2solvable(pool, selection.elements[i]), ++ SOLVABLE_TRACK_FEATURES) == 0) ++ { ++ *all_have_trackfeatures = 0; ++ break; ++ } ++ ++ for (int i = 0; i < selection.count; ++i) ++ { ++ stmp = pool_id2solvable(pool, selection.elements[i]); ++ cmp = pool_evrcmp(pool, best->evr, stmp->evr, 0); ++ if (cmp < 0) best = stmp; ++ } ++ ++ return best->evr; ++} ++ ++int conda_compare_dependencies(Pool *pool, Solvable *s1, Solvable *s2) ++{ ++ int i, j, has_seen; ++ Queue q1, q2, seen; ++ ++ queue_init(&q1); ++ queue_init(&q2); ++ queue_init(&seen); ++ ++ solvable_lookup_deparray(s1, SOLVABLE_REQUIRES, &q1, -1); ++ solvable_lookup_deparray(s2, SOLVABLE_REQUIRES, &q2, -1); ++ ++ int comparison_result = 0; ++ ++ for (i = 0; i < q1.count; ++i) ++ { ++ Id x1 = q1.elements[i]; ++ has_seen = 0; ++ ++ if (!ISRELDEP(x1)) ++ continue; ++ ++ Reldep* rd1 = GETRELDEP(pool, x1); ++ for (j = 0; j < seen.count && has_seen == 0; ++j) ++ if (seen.elements[j] == rd1->name) ++ has_seen = 1; ++ ++ if (has_seen) ++ continue; ++ ++ // first make sure that deps are different between a & b ++ int deps_unequal = check_deps_unequal(pool, &q1, &q2, rd1->name); ++ if (!deps_unequal) ++ { ++ queue_push(&seen, rd1->name); ++ continue; ++ } ++ ++ int aht_1, aht_2; // all have track features check ++ Id b1 = best_matching(pool, &q1, rd1->name, &aht_1); ++ Id b2 = best_matching(pool, &q2, rd1->name, &aht_2); ++ ++ // one of both or both is not solvable... ++ // ignoring this case for now ++ if (b1 == 0 || b2 == 0) ++ continue; ++ ++ // if one has deps with track features, and the other does not, ++ // downweight the one with track features ++ if (aht_1 != aht_2) ++ comparison_result += (aht_1 - aht_2) * 100; ++ ++ comparison_result += pool_evrcmp(pool, b2, b1, 0); ++ } ++ ++ queue_free(&q1); ++ queue_free(&q2); ++ queue_free(&seen); ++ ++ return comparison_result; ++} ++ ++static int ++sort_by_best_dependencies(const void *ap, const void *bp, void *dp) ++{ ++ Pool* pool = (Pool*) dp; ++ ++ Id a = *(Id *)ap; ++ Id b = *(Id *)bp; ++ Solvable *sa, *sb; ++ ++ sa = pool->solvables + a; ++ sb = pool->solvables + b; ++ ++ int res = conda_compare_dependencies(pool, sa, sb); ++ if (res == 0) ++ { ++ // no differences, select later build ++ Repodata* ra = repo_last_repodata(sa->repo); ++ Repodata* rb = repo_last_repodata(sb->repo); ++ ++ unsigned long long bta = repodata_lookup_num(ra, a, SOLVABLE_BUILDTIME, 0ull); ++ unsigned long long btb = repodata_lookup_num(rb, b, SOLVABLE_BUILDTIME, 0ull); ++ ++ res = (btb > bta) ? 1 : -1; ++ POOL_DEBUG(SOLV_DEBUG_POLICY, "Fallback to timestamp comparison: %llu vs %llu: [%d]\n", bta, btb, res); ++ } ++ ++ POOL_DEBUG(SOLV_DEBUG_POLICY, "Selecting variant [%c] of (a) %s vs (b) %s (score: %d)\n", ++ (res < 0 ? 'a' : 'b'), pool_solvable2str(pool, sa), pool_solvable2str(pool, sb), res); ++ ++ return res; ++} + + /* +- * prune_to_best_version ++ * prune_to_best_version_conda + * + * sort list of packages (given through plist) by name and evr + * return result through plist + */ + void +-prune_to_best_version(Pool *pool, Queue *plist) ++prune_to_best_version_conda(Pool *pool, Queue *plist) + { + int i, j, r; + Solvable *s, *best; + +- if (plist->count < 2) /* no need to prune for a single entry */ ++ if (plist->count < 2) /* no need to prune for a single entry */ + return; +- POOL_DEBUG(SOLV_DEBUG_POLICY, "prune_to_best_version %d\n", plist->count); ++ POOL_DEBUG(SOLV_DEBUG_POLICY, "prune_to_best_version_conda %d\n", plist->count); + + /* sort by name first, prefer installed */ + solv_sort(plist->elements, plist->count, sizeof(Id), prune_to_best_version_sortcmp, pool); +@@ -891,10 +1162,10 @@ prune_to_best_version(Pool *pool, Queue *plist) + s = pool->solvables + plist->elements[i]; + + POOL_DEBUG(SOLV_DEBUG_POLICY, "- %s [%d]%s\n", +- pool_solvable2str(pool, s), plist->elements[i], +- (pool->installed && s->repo == pool->installed) ? "I" : ""); ++ pool_solvable2str(pool, s), plist->elements[i], ++ (pool->installed && s->repo == pool->installed) ? "I" : ""); + +- if (!best) /* if no best yet, the current is best */ ++ if (!best) /* if no best yet, the current is best */ + { + best = s; + continue; +@@ -904,49 +1175,54 @@ prune_to_best_version(Pool *pool, Queue *plist) + if (best->name != s->name) /* new name */ + { + plist->elements[j++] = best - pool->solvables; /* move old best to front */ +- best = s; /* take current as new best */ ++ best = s; /* take current as new best */ + continue; + } + + r = 0; +-#ifdef ENABLE_CONDA +- if (pool->disttype == DISTTYPE_CONDA) +- r = pool_featurecountcmp(pool, best, s); +-#endif ++ r = pool_featurecountcmp(pool, best, s); + if (r == 0) + r = best->evr != s->evr ? pool_evrcmp(pool, best->evr, s->evr, EVRCMP_COMPARE) : 0; +-#ifdef ENABLE_LINKED_PKGS +- if (r == 0 && has_package_link(pool, s)) +- r = pool_link_evrcmp(pool, best, s); +-#endif +-#ifdef ENABLE_CONDA +- if (pool->disttype == DISTTYPE_CONDA) +- { +- if (r == 0) +- r = (best->repo ? best->repo->subpriority : 0) - (s->repo ? s->repo->subpriority : 0); +- if (r == 0) +- r = pool_buildversioncmp(pool, best, s); +- if (r == 0) +- r = pool_buildflavorcmp(pool, best, s); +- } +-#endif ++ if (r == 0) ++ r = (best->repo ? best->repo->subpriority : 0) - (s->repo ? s->repo->subpriority : 0); ++ if (r == 0) ++ r = pool_buildversioncmp(pool, best, s); ++ // this can be removed as this comparison doesn't effect anything ++ if (r == 0) ++ r = pool_buildflavorcmp(pool, best, s); + if (r < 0) +- best = s; ++ best = s; + } +- plist->elements[j++] = best - pool->solvables; /* finish last group */ +- plist->count = j; + +- /* we reduced the list to one package per name, now look at +- * package obsoletes */ +- if (plist->count > 1) ++ Queue q; ++ queue_init(&q); ++ for (i = 0; i < plist->count; i++) + { +- if (plist->count == 2) +- prune_obsoleted_2(pool, plist); +- else +- prune_obsoleted(pool, plist); ++ s = pool->solvables + plist->elements[i]; ++ r = pool_featurecountcmp(pool, best, s); ++ if (r == 0) ++ r = best->evr != s->evr ? pool_evrcmp(pool, best->evr, s->evr, EVRCMP_COMPARE) : 0; ++ if (r == 0) ++ r = (best->repo ? best->repo->subpriority : 0) - (s->repo ? s->repo->subpriority : 0); ++ if (r == 0) ++ r = pool_buildversioncmp(pool, best, s); ++ if (r == 0) ++ queue_push(&q, s - pool->solvables); + } +-} + ++ if (q.count > 1) ++ { ++ // order by first-level deps ++ solv_sort(q.elements, q.count, sizeof(Id), sort_by_best_dependencies, pool); ++ } ++ ++ for (i = 0; i < q.count; ++i) ++ plist->elements[i] = q.elements[i]; ++ plist->count = q.count; ++ ++ queue_free(&q); ++} ++#endif // ENABLE_CONDA + + static int + sort_by_name_evr_sortcmp(const void *ap, const void *bp, void *dp) +diff --git a/src/policy.h b/src/policy.h +index 3ae1005a..a79483a4 100644 +--- a/src/policy.h ++++ b/src/policy.h +@@ -45,6 +45,9 @@ extern void pool_best_solvables(Pool *pool, Queue *plist, int flags); + extern void prune_to_best_version(Pool *pool, Queue *plist); + extern void policy_prefer_favored(Solver *solv, Queue *plist); + ++#ifdef ENABLE_CONDA ++extern void prune_to_best_version_conda(Pool *pool, Queue *plist); ++#endif + + #ifdef __cplusplus + } diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/repodata_record.json b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..f41338c5791da479e395d2323322b3a4ecf2ca2f --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/repodata_record.json @@ -0,0 +1,26 @@ +{ + "arch": "x86_64", + "build": "h6f1ccf3_2", + "build_number": 2, + "channel": "https://repo.anaconda.com/pkgs/main/linux-64/", + "constrains": [], + "depends": [ + "__glibc >=2.28,<3.0.a0", + "libgcc-ng >=11.2.0", + "libstdcxx-ng >=11.2.0", + "pcre2 >=10.46,<10.47.0a0", + "zlib >=1.2.13,<2.0a0" + ], + "fn": "libsolv-0.7.30-h6f1ccf3_2.conda", + "license": "BSD-3-Clause", + "license_family": "BSD", + "md5": "0d547d53349f3fcf4a20c9a207c08a3b", + "name": "libsolv", + "platform": "linux", + "sha256": "7a04f79942f6d2ab8004fc61fa663a9fbc020bec723a45db19d56b81e4bedcf5", + "size": 465860, + "subdir": "linux-64", + "timestamp": 1760357067000, + "url": "https://repo.anaconda.com/pkgs/main/linux-64/libsolv-0.7.30-h6f1ccf3_2.conda", + "version": "0.7.30" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/test/run_test.sh b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..97031db6a7df8535be2265ffe48204047d70fd5a --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/info/test/run_test.sh @@ -0,0 +1,12 @@ + + +set -ex + + + +test -f ${PREFIX}/lib/libsolv${SHLIB_EXT} +test -f ${PREFIX}/lib/libsolvext${SHLIB_EXT} +test -f ${PREFIX}/lib/libsolv.so.1 +test -f ${PREFIX}/include/solv/repo.h +dumpsolv -h +exit 0 diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/lib/pkgconfig/libsolv.pc b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/lib/pkgconfig/libsolv.pc new file mode 100644 index 0000000000000000000000000000000000000000..0e1d657ead888623b2a9f22d7d8a7e1ba3fc09df --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/lib/pkgconfig/libsolv.pc @@ -0,0 +1,8 @@ +libdir=/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/lib +includedir=/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/include + +Name: libsolv +Description: Library for solving packages +Version: 0.7.30 +Libs: -L${libdir} -lsolv +Cflags: -I${includedir} diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/lib/pkgconfig/libsolvext.pc b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/lib/pkgconfig/libsolvext.pc new file mode 100644 index 0000000000000000000000000000000000000000..86ad20acd0589b4fff7994b45512c2270528b7db --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/lib/pkgconfig/libsolvext.pc @@ -0,0 +1,9 @@ +libdir=/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/lib +includedir=/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/include + +Name: libsolvext +Description: Library for reading repositories +Version: 0.7.30 +Requires: libsolv +Libs: -L${libdir} -lsolvext +Cflags: -I${includedir} diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/cmake/Modules/FindLibSolv.cmake b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/cmake/Modules/FindLibSolv.cmake new file mode 100644 index 0000000000000000000000000000000000000000..166e79dcd16202c369013027a81e6d47b4df481a --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/cmake/Modules/FindLibSolv.cmake @@ -0,0 +1,95 @@ +# FindLibSolv - Find libsolv headers and libraries. +# +# Sample: +# +# SET( LibSolv_USE_STATIC_LIBS OFF ) +# FIND_PACKAGE( LibSolv REQUIRED ext ) +# IF( LibSolv_FOUND ) +# INCLUDE_DIRECTORIES( ${LibSolv_INCLUDE_DIRS} ) +# TARGET_LINK_LIBRARIES( ... ${LibSolv_LIBRARIES} ) +# ENDIF() +# +# Variables used by this module need to be set before calling find_package +# (not that they are cmale cased like the modiulemane itself): +# +# LibSolv_USE_STATIC_LIBS Can be set to ON to force the use of the static +# libsolv libraries. Defaults to OFF. +# +# Supported components: +# +# ext Also include libsolvext +# +# Variables provided by this module: +# +# LibSolv_FOUND Include dir, libsolv and all extra libraries +# specified in the COMPONENTS list were found. +# +# LibSolv_LIBRARIES Link to these to use all the libraries you specified. +# +# LibSolv_INCLUDE_DIRS Include directories. +# +# For each component you specify in find_package(), the following (UPPER-CASE) +# variables are set to pick and choose components instead of just using LibSolv_LIBRARIES: +# +# LIBSOLV_FOUND TRUE if libsolv was found +# LIBSOLV_LIBRARY libsolv libraries +# +# LIBSOLV_${COMPONENT}_FOUND TRUE if the library component was found +# LIBSOLV_${COMPONENT}_LIBRARY The libraries for the specified component +# + +# Support preference of static libs by adjusting CMAKE_FIND_LIBRARY_SUFFIXES +IF(LibSolv_USE_STATIC_LIBS) + SET( _ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) + SET(CMAKE_FIND_LIBRARY_SUFFIXES .a ) +ENDIF() + +# Look for the header files +UNSET(LibSolv_INCLUDE_DIRS CACHE) +FIND_PATH(LibSolv_INCLUDE_DIRS NAMES solv/solvable.h) + +# Look for the core library +UNSET(LIBSOLV_LIBRARY CACHE) +FIND_LIBRARY(LIBSOLV_LIBRARY NAMES solv) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibSolv DEFAULT_MSG LIBSOLV_LIBRARY LibSolv_INCLUDE_DIRS) +MARK_AS_ADVANCED( + LIBSOLV_FOUND + LIBSOLV_LIBRARY +) + +# Prepare return values and collectiong more components +SET(LibSolv_FOUND ${LIBSOLV_FOUND}) +SET(LibSolv_LIBRARIES ${LIBSOLV_LIBRARY}) +MARK_AS_ADVANCED( + LibSolv_FOUND + LibSolv_LIBRARIES + LibSolv_INCLUDE_DIRS +) + +# Look for components +FOREACH(COMPONENT ${LibSolv_FIND_COMPONENTS}) + STRING(TOUPPER ${COMPONENT} _UPPERCOMPONENT) + UNSET(LIBSOLV_${_UPPERCOMPONENT}_LIBRARY CACHE) + FIND_LIBRARY(LIBSOLV_${_UPPERCOMPONENT}_LIBRARY NAMES solv${COMPONENT}) + SET(LibSolv_${COMPONENT}_FIND_REQUIRED ${LibSolv_FIND_REQUIRED}) + SET(LibSolv_${COMPONENT}_FIND_QUIETLY ${LibSolv_FIND_QUIETLY}) + FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibSolv_${COMPONENT} DEFAULT_MSG LIBSOLV_${_UPPERCOMPONENT}_LIBRARY) + MARK_AS_ADVANCED( + LIBSOLV_${_UPPERCOMPONENT}_FOUND + LIBSOLV_${_UPPERCOMPONENT}_LIBRARY + ) + IF(LIBSOLV_${_UPPERCOMPONENT}_FOUND) + SET(LibSolv_LIBRARIES ${LibSolv_LIBRARIES} ${LIBSOLV_${_UPPERCOMPONENT}_LIBRARY}) + ELSE() + SET(LibSolv_FOUND FALSE) + ENDIF() +ENDFOREACH() + +# restore CMAKE_FIND_LIBRARY_SUFFIXES +IF(Solv_USE_STATIC_LIBS) + SET(CMAKE_FIND_LIBRARY_SUFFIXES ${_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES} ) +ENDIF() + +IF(LibSolv_FOUND AND NOT LibSolv_FIND_QUIETLY) + MESSAGE(STATUS "Found LibSolv: ${LibSolv_INCLUDE_DIRS} ${LibSolv_LIBRARIES}") +ENDIF() diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/dumpsolv.1 b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/dumpsolv.1 new file mode 100644 index 0000000000000000000000000000000000000000..eed45fef954f8489cdceab74bf80e1f34d48814c --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/dumpsolv.1 @@ -0,0 +1,45 @@ +'\" t +.\" Title: dumpsolv +.\" Author: [see the "Author" section] +.\" Generator: DocBook XSL Stylesheets v1.78.1 +.\" Date: 07/25/2017 +.\" Manual: LIBSOLV +.\" Source: libsolv +.\" Language: English +.\" +.TH "DUMPSOLV" "1" "07/25/2017" "libsolv" "LIBSOLV" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +dumpsolv \- print a solv file into a human readable format +.SH "SYNOPSIS" +.sp +\fBdumpsolv\fR [\fIOPTIONS\fR] [\fIFILE\&.solv\fR] +.SH "DESCRIPTION" +.sp +The dumpsolv tool reads a solv files and writes its contents to standard output\&. If no input file is given, it reads the solv file from standard input\&. +.PP +\fB\-j\fR +.RS 4 +Write the contents in JSON format\&. +.RE +.SH "AUTHOR" +.sp +Michael Schroeder diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/installcheck.1 b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/installcheck.1 new file mode 100644 index 0000000000000000000000000000000000000000..492bd801ee1ebba3b6df0d8fb555416a4160b7bc --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/installcheck.1 @@ -0,0 +1,42 @@ +'\" t +.\" Title: installcheck +.\" Author: [see the "Author" section] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" Date: 09/14/2018 +.\" Manual: LIBSOLV +.\" Source: libsolv +.\" Language: English +.\" +.TH "INSTALLCHECK" "1" "09/14/2018" "libsolv" "LIBSOLV" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +installcheck \- find out which packages cannot be installed +.SH "SYNOPSIS" +.sp +\fBinstallcheck\fR \fIARCH\fR \fIREPO1\fR \fIREPO2\fR\&... \fB\-\-nocheck\fR \fINREPO1\fR \fINREPO2\fR\&... +.SH "DESCRIPTION" +.sp +The installcheck tool checks if all packages in \fIREPO1\fR\&...\fIREPON\fR are installable\&. A package is installable if there is a set of packages from the repositories that satisfies its dependencies\&. The repositories after the \fB\-\-nocheck\fR option are only used for dependency resolving, but the tool does not check if the packages in them are installable\&. +.sp +A Repository can be a solv file, a rpmmd \fBprimary\&.xml\&.gz\fR file, a SUSE \fBpackages\fR or \fBpackages\&.gz\fR file, or a Debian \fBPackages\fR or \fBPackages\&.gz\fR file\&. +.SH "AUTHOR" +.sp +Michael Schroeder diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/mergesolv.1 b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/mergesolv.1 new file mode 100644 index 0000000000000000000000000000000000000000..65fd7562a53dd4a684cb6147d72413d0ac0c72ed --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/mergesolv.1 @@ -0,0 +1,45 @@ +'\" t +.\" Title: mergesolv +.\" Author: [see the "Author" section] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" Date: 09/14/2018 +.\" Manual: LIBSOLV +.\" Source: libsolv +.\" Language: English +.\" +.TH "MERGESOLV" "1" "09/14/2018" "libsolv" "LIBSOLV" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +mergesolv \- merge multiple files in solv format into a single one +.SH "SYNOPSIS" +.sp +\fBmergesolv\fR [\fIOPTIONS\fR] \fIFILE1\&.solv\fR \fIFILE2\&.solv\fR \&... +.SH "DESCRIPTION" +.sp +The mergesolv tool reads all solv files specified on the command line, and writes a merged version to standard output\&. +.PP +\fB\-X\fR +.RS 4 +Autoexpand SUSE pattern and product provides into packages\&. +.RE +.SH "AUTHOR" +.sp +Michael Schroeder diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/repo2solv.1 b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/repo2solv.1 new file mode 100644 index 0000000000000000000000000000000000000000..0a8c3cf1dac019fb497cb372b989c2b6ad74d12b --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/repo2solv.1 @@ -0,0 +1,79 @@ +'\" t +.\" Title: repo2solv +.\" Author: [see the "Author" section] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" Date: 10/22/2018 +.\" Manual: LIBSOLV +.\" Source: libsolv +.\" Language: English +.\" +.TH "REPO2SOLV" "1" "10/22/2018" "libsolv" "LIBSOLV" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +repo2solv \- convert repository metadata into a solv file +.SH "SYNOPSIS" +.sp +\fBrepo2solv\fR [\fIOPTIONS\fR] \fIDIR\fR +.SH "DESCRIPTION" +.sp +The repo2solv tool converts repository metadata in the directory \fIDIR\fR into a solv file written to standard output\&. +.sp +Note that repo2solv does not verify signatures or checksum, it is expected that this is done by the tool that downloads the metadata\&. +.sp +If no metadata is detected, repo2solv assumes the "plaindir" format and generates the solv file from all rpm files it finds\&. +.PP +\fB\-o\fR \fIOUTFILE\fR +.RS 4 +Write the solv file to +\fIOUTFILE\fR +instead of stdout\&. +.RE +.PP +\fB\-R\fR +.RS 4 +Also recurse into subdirectories in "plaindir" mode\&. +.RE +.PP +\fB\-F\fR +.RS 4 +Put the complete filelist in the output\&. The default is to just include the "importent" parts of the file list, except for "plaindir" mode, which always includes all files\&. +.RE +.PP +\fB\-C\fR +.RS 4 +Add changelog entires to the output\&. +.RE +.PP +\fB\-A\fR +.RS 4 +Add appdata pseudo packages to the output\&. This is an experimental feature\&. +.RE +.PP +\fB\-X\fR +.RS 4 +Autoexpand SUSE pattern and product provides into packages\&. +.RE +.SH "SEE ALSO" +.sp +dumpsolv(1) +.SH "AUTHOR" +.sp +Michael Schroeder diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/solv.1 b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/solv.1 new file mode 100644 index 0000000000000000000000000000000000000000..aae1c6d50e9d997d8f5b08affee405fbdb2f890e --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/solv.1 @@ -0,0 +1,102 @@ +'\" t +.\" Title: solv +.\" Author: [see the "Author" section] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" Date: 10/22/2018 +.\" Manual: LIBSOLV +.\" Source: libsolv +.\" Language: English +.\" +.TH "SOLV" "1" "10/22/2018" "libsolv" "LIBSOLV" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +solv \- example package manager based on libsolv +.SH "SYNOPSIS" +.sp +\fBsolv\fR install [OPTIONS] PKG\&... +.sp +\fBsolv\fR erase [OPTIONS] PKG\&... +.sp +\fBsolv\fR list [OPTIONS] PKG\&... +.sp +\fBsolv\fR info [OPTIONS] PKG\&... +.sp +\fBsolv\fR search [OPTIONS] STRING\&... +.sp +\fBsolv\fR verify [OPTIONS] PKG\&... +.sp +\fBsolv\fR update [OPTIONS] PKG\&... +.sp +\fBsolv\fR dist\-upgrade [OPTIONS] PKG\&... +.sp +\fBsolv\fR repolist [OPTIONS] +.SH "DESCRIPTION" +.sp +The solv tool demos some features of the libsolv library\&. It is not meant to replace a real package manager, for example it does not cache downloaded packages\&. +.PP +\fB\-\-root\fR \fIROOTDIR\fR +.RS 4 +Install packages using +\fIROOTDIR\fR +as root of the filesystem\&. This also means that the package database of +\fIROOTDIR\fR +will be used\&. +.RE +.PP +\fB\-\-clean\fR +.RS 4 +Also get rid of no longer needed packages when erasing, like libraries that have been used by the erased packages\&. +.RE +.PP +\fB\-\-best\fR +.RS 4 +Force usage of the best package (normally the one with the highest version) for install and update operations\&. +.RE +.PP +\fB\-\-testcase\fR +.RS 4 +Write a testcase after dependency solving\&. +.RE +.sp +The following options can be used to filter the packages\&. If the same option is used multiple times, the result is ORed together\&. +.PP +\fB\-i\fR +.RS 4 +Limit the packages to installed ones\&. +.RE +.PP +\fB\-r\fR \fIREPO\fR +.RS 4 +Limit the packages to the specified repository\&. +.RE +.PP +\fB\-\-arch\fR \fIARCHITECTURE\fR +.RS 4 +Limit the packages to the specified package architecture\&. +.RE +.PP +\fB\-\-type\fR \fITYPE\fR +.RS 4 +Limit the packages to the specified package type\&. +.RE +.SH "AUTHOR" +.sp +Michael Schroeder diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/testsolv.1 b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/testsolv.1 new file mode 100644 index 0000000000000000000000000000000000000000..b487f27cb108e09a061fc53ac5322461efdf5ef6 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man1/testsolv.1 @@ -0,0 +1,62 @@ +'\" t +.\" Title: testsolv +.\" Author: [see the "Author" section] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" Date: 03/25/2024 +.\" Manual: LIBSOLV +.\" Source: libsolv +.\" Language: English +.\" +.TH "TESTSOLV" "1" "03/25/2024" "libsolv" "LIBSOLV" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +testsolv \- run a libsolv testcase through the solver +.SH "SYNOPSIS" +.sp +\fBtestsolv\fR [\fIOPTIONS\fR] \fITESTCASE\fR +.SH "DESCRIPTION" +.sp +The testsolv tools can be used to run a testcase\&. Testcases can either be manually created to test specific features, or they can be written by libsolv\(cqs testcase_write function\&. This is useful to evaluate bug reports about the solver\&. +.PP +\fB\-v\fR +.RS 4 +Increase the debug level of the solver\&. This option can be specified multiple times to further increase the amount of debug data\&. +.RE +.PP +\fB\-r\fR +.RS 4 +Write the output in testcase format instead of human readable text\&. The output can then be used in the result section of the test case\&. If the +\fB\-r\fR +option is given twice, the output is formatted for verbatim inclusion\&. +.RE +.PP +\fB\-l\fR \fIPKGSPEC\fR +.RS 4 +Instead of running the solver, list packages in the repositories\&. +.RE +.PP +\fB\-s\fR \fISOLUTIONSPEC\fR +.RS 4 +This is used in the solver test suite to test the calculated solutions to encountered problems\&. +.RE +.SH "AUTHOR" +.sp +Michael Schroeder diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-bindings.3 b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-bindings.3 new file mode 100644 index 0000000000000000000000000000000000000000..d5533d0d922d5c1bc40562f92b9b06bf78224688 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-bindings.3 @@ -0,0 +1,7084 @@ +'\" t +.\" Title: Libsolv-Bindings +.\" Author: [see the "Author" section] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" Date: 07/09/2024 +.\" Manual: LIBSOLV +.\" Source: libsolv +.\" Language: English +.\" +.TH "LIBSOLV\-BINDINGS" "3" "07/09/2024" "libsolv" "LIBSOLV" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +libsolv-bindings \- access libsolv from perl/python/ruby +.SH "DESCRIPTION" +.sp +Libsolv\(cqs language bindings offer an abstract, object orientated interface to the library\&. The supported languages are currently perl, python, ruby and tcl\&. All example code (except in the specifics sections, of course) lists first the \(lqC\-ish\(rq interface, then the syntax for perl, python, and ruby (in that order)\&. +.SH "PERL SPECIFICS" +.sp +Libsolv\(cqs perl bindings can be loaded with the following statement: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBuse solv\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Objects are either created by calling the new() method on a class or they are returned by calling methods on other objects\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +my \fI$pool\fR \fB= solv::Pool\->new()\fR; +my \fI$repo\fR \fB=\fR \fI$pool\fR\fB\->add_repo("my_first_repo")\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Swig encapsulates all objects as tied hashes, thus the attributes can be accessed by treating the object as standard hash reference: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fI$pool\fR\fB\->{appdata} = 42\fR; +\fBprintf "appdata is %d\en",\fR \fI$pool\fR\fB\->{appdata}\fR; +.fi +.if n \{\ +.RE +.\} +.sp +A special exception to this are iterator objects, they are encapsulated as tied arrays so that it is possible to iterate with a for() statement: +.sp +.if n \{\ +.RS 4 +.\} +.nf +my \fI$iter\fR \fB=\fR \fI$pool\fR\fB\->solvables_iter()\fR; +\fBfor my\fR \fI$solvable\fR \fB(\fR\fI@$iter\fR\fB) { \&.\&.\&. }\fR; +.fi +.if n \{\ +.RE +.\} +.sp +As a downside of this approach, iterator objects cannot have attributes\&. +.sp +If an array needs to be passed to a method it is usually done by reference, if a method returns an array it returns it on the perl stack: +.sp +.if n \{\ +.RS 4 +.\} +.nf +my \fI@problems\fR \fB=\fR \fI$solver\fR\fB\->solve(\e\fR\fI@jobs\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Due to a bug in swig, stringification does not work for libsolv\(cqs objects\&. Instead, you have to call the object\(cqs str() method\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBprint\fR \fI$dep\fR\fB\->str() \&. "\e\fR\fIn\fR\fB"\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Swig implements all constants as numeric variables (instead of the more natural constant subs), so don\(cqt forget the leading \(lq$\(rq when accessing a constant\&. Also do not forget to prepend the namespace of the constant: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fI$pool\fR\fB\->set_flag($solv::Pool::POOL_FLAG_OBSOLETEUSESCOLORS, 1)\fR; +.fi +.if n \{\ +.RE +.\} +.SH "PYTHON SPECIFICS" +.sp +The python bindings can be loaded with: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBimport solv\fR +.fi +.if n \{\ +.RE +.\} +.sp +Objects are either created by calling the constructor method for a class or they are returned by calling methods on other objects\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIpool\fR \fB= solv\&.Pool()\fR +\fIrepo\fR \fB=\fR \fIpool\fR\fB\&.add_repo("my_first_repo")\fR +.fi +.if n \{\ +.RE +.\} +.sp +Attributes can be accessed as usual: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIpool\fR\fB\&.appdata = 42\fR +\fBprint "appdata is %d" % (\fR\fIpool\fR\fB\&.appdata)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Iterators also work as expected: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBfor\fR \fIsolvable\fR \fBin\fR \fIpool\fR\fB\&.solvables_iter():\fR +.fi +.if n \{\ +.RE +.\} +.sp +Arrays are passed and returned as list objects: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIjobs\fR \fB= []\fR +\fIproblems\fR \fB=\fR \fIsolver\fR\fB\&.solve(\fR\fIjobs\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +The bindings define stringification for many classes, some also have a \fIrepr\fR method to ease debugging\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBprint\fR \fIdep\fR +\fBprint repr(\fR\fIrepo\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Constants are attributes of the corresponding classes: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIpool\fR\fB\&.set_flag(solv\&.Pool\&.POOL_FLAG_OBSOLETEUSESCOLORS, 1)\fR; +.fi +.if n \{\ +.RE +.\} +.SH "RUBY SPECIFICS" +.sp +The ruby bindings can be loaded with: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBrequire \*(Aqsolv\*(Aq\fR +.fi +.if n \{\ +.RE +.\} +.sp +Objects are either created by calling the new method on a class or they are returned by calling methods on other objects\&. Note that all classes start with an uppercase letter in ruby, so the class is called \(lqSolv\(rq\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIpool\fR \fB= Solv::Pool\&.new\fR +\fIrepo\fR \fB=\fR \fIpool\fR\fB\&.add_repo("my_first_repo")\fR +.fi +.if n \{\ +.RE +.\} +.sp +Attributes can be accessed as usual: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIpool\fR\fB\&.appdata = 42\fR +\fBputs "appdata is #{\fR\fIpool\fR\fB\&.appdata}"\fR +.fi +.if n \{\ +.RE +.\} +.sp +Iterators also work as expected: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBfor\fR \fIsolvable\fR \fBin\fR \fIpool\fR\fB\&.solvables_iter() do \&.\&.\&.\fR +.fi +.if n \{\ +.RE +.\} +.sp +Arrays are passed and returned as array objects: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIjobs\fR \fB= []\fR +\fIproblems\fR \fB=\fR \fIsolver\fR\fB\&.solve(\fR\fIjobs\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Most classes define a to_s method, so objects can be easily stringified\&. Many also define an inspect() method\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBputs\fR \fIdep\fR +\fBputs\fR \fIrepo\fR\fB\&.inspect\fR +.fi +.if n \{\ +.RE +.\} +.sp +Constants live in the namespace of the class they belong to: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIpool\fR\fB\&.set_flag(Solv::Pool::POOL_FLAG_OBSOLETEUSESCOLORS, 1)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Note that boolean methods have an added trailing \(lq?\(rq, to be consistent with other ruby modules: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBputs "empty" if\fR \fIrepo\fR\fB\&.isempty?\fR +.fi +.if n \{\ +.RE +.\} +.SH "TCL SPECIFICS" +.sp +Libsolv\(cqs tcl bindings can be loaded with the following statement: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBpackage require solv\fR +.fi +.if n \{\ +.RE +.\} +.sp +Objects are either created by calling class name prefixed with \(lqnew_\(rq, or they are returned by calling methods on other objects\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBset pool [solv::new_Pool]\fR +\fBset repo [\fR\fI$pool\fR \fBadd_repo "my_first_repo"]\fR +.fi +.if n \{\ +.RE +.\} +.sp +Swig provides a \(lqcget\(rq method to read object attributes, and a \(lqconfigure\(rq method to write them: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fI$pool\fR \fBconfigure \-appdata 42\fR +\fBputs "appdata is [\fR\fI$pool\fR \fBcget \-appdata]"\fR +.fi +.if n \{\ +.RE +.\} +.sp +The tcl bindings provide a little helper to work with iterators in a foreach style: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBset iter [\fR\fI$pool\fR \fBsolvables_iter]\fR +\fBsolv::iter s\fR \fI$iter\fR \fB{ \&.\&.\&. }\fR +.fi +.if n \{\ +.RE +.\} +.sp +libsolv\(cqs arrays are mapped to tcl\(cqs lists: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBset jobs [list\fR \fI$job1 $job2\fR\fB]\fR +\fBset problems [\fR\fI$solver\fR \fBsolve\fR \fI$jobs\fR\fB]\fR +\fBputs "We have [llength\fR \fI$problems\fR\fB] problems\&.\&.\&."\fR +.fi +.if n \{\ +.RE +.\} +.sp +Stringification is done by calling the object\(cqs \(lqstr\(rq method\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBputs [\fR\fI$dep\fR \fBstr]\fR +.fi +.if n \{\ +.RE +.\} +.sp +There is one exception: you have to use \(lqstringify\(rq for Datamatch objects, as swig reports a clash with the \(lqstr\(rq attribute\&. +.sp +Some classes also support a \(lq==\(rq method for equality tests, and a \(lq!=\(rq method\&. +.sp +Swig implements all constants as numeric variables, constants belonging to a libsolv class are prefixed with the class name: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fI$pool\fR \fBset_flag\fR \fI$solv::Pool_POOL_FLAG_OBSOLETEUSESCOLORS\fR \fB1\fR +\fBputs [\fR\fI$solvable\fR \fBlookup_str\fR \fI$solv::SOLVABLE_SUMMARY\fR\fB]\fR +.fi +.if n \{\ +.RE +.\} +.SH "LUA SPECIFICS" +.sp +Libsolv\(cqs lua bindings can be loaded with the following statement: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBrequire("solv")\fR +.fi +.if n \{\ +.RE +.\} +.sp +Objects are either created by calling the constructor method for a class or they are returned by calling methods on other objects\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIpool\fR \fB= solv\&.Pool()\fR +\fIrepo\fR \fB=\fR \fIpool\fR\fB:add_repo("my_first_repo")\fR +.fi +.if n \{\ +.RE +.\} +.sp +Note the \(lq:method\(rq syntax that makes lua add the object as first argument\&. +.sp +Attributes can be accessed as usual: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIpool\fR\fB\&.appdata = 42\fR +\fBprint("appdata is "\&.\&.pool\&.appdata)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Iterators also work as expected: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBfor\fR \fIsolvable\fR \fBin\fR \fIpool\fR\fB\&.solvables do \&.\&.\&.\fR +.fi +.if n \{\ +.RE +.\} +.sp +Note that some functions return a table instead of an iterator, so you need to use \(lqipairs\(rq for iteration: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBfor\fR \fI_\fR\fB,solvable\fR \fBin ipairs(\fR\fIjob\fR\fB\&.solvables()) do \&.\&.\&.\fR +.fi +.if n \{\ +.RE +.\} +.sp +Arrays are passed and returned as tables: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIjobs\fR \fB= {}\fR +\fIproblems\fR \fB=\fR \fIsolver\fR\fB\&.solve(\fR\fIjobs\fR\fB)\fR +\fBif #problems != 0 then \&.\&.\&.\fR +.fi +.if n \{\ +.RE +.\} +.sp +The bindings define a \(lq__tostring\(rq method for many classes: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBprint(\fR\fIdep\fR\fB)\fR +\fBprint(("Package: %\fR\fIs\fR\fB"):format(\fR\fIsolvable\fR\fB))\fR +.fi +.if n \{\ +.RE +.\} +.sp +Constants live in the namespace of the class they belong to: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIpool\fR\fB:set_flag(Solv\&.Pool\&.POOL_FLAG_OBSOLETEUSESCOLORS, 1)\fR; +.fi +.if n \{\ +.RE +.\} +.SH "THE SOLV CLASS" +.sp +This is the main namespace of the library, you cannot create objects of this type but it contains some useful constants\&. +.SS "CONSTANTS" +.sp +Relational flag constants, the first three can be or\-ed together +.PP +\fBREL_LT\fR +.RS 4 +the \(lqless than\(rq bit +.RE +.PP +\fBREL_EQ\fR +.RS 4 +the \(lqequals to\(rq bit +.RE +.PP +\fBREL_GT\fR +.RS 4 +the \(lqgreater than\(rq bit +.RE +.PP +\fBREL_ARCH\fR +.RS 4 +used for relations that describe an extra architecture filter, the version part of the relation is interpreted as architecture\&. +.RE +.sp +Special Solvable Ids +.PP +\fBSOLVID_META\fR +.RS 4 +Access the meta section of a repository or repodata area\&. This is like an extra Solvable that has the Id SOLVID_META\&. +.RE +.PP +\fBSOLVID_POS\fR +.RS 4 +Use the data position stored inside of the pool instead of accessing some solvable by Id\&. The bindings have the Datapos objects as an abstraction mechanism, so you most likely do not need this constant\&. +.RE +.sp +Constant string Ids +.PP +\fBID_NULL\fR +.RS 4 +Always zero +.RE +.PP +\fBID_EMPTY\fR +.RS 4 +Always one, describes the empty string +.RE +.PP +\fBSOLVABLE_NAME\fR +.RS 4 +The keyname Id of the name of the solvable\&. +.RE +.PP +\fB\&...\fR +.RS 4 +see the libsolv\-constantids manpage for a list of fixed Ids\&. +.RE +.SH "THE POOL CLASS" +.sp +The pool is libsolv\(cqs central resource manager\&. A pool consists of Solvables, Repositories, Dependencies, each indexed by Ids\&. +.SS "CLASS METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBPool *Pool()\fR +my \fI$pool\fR \fB= solv::Pool\->new()\fR; +\fIpool\fR \fB= solv\&.Pool()\fR +\fIpool\fR \fB= Solv::Pool\&.new()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a new pool instance\&. In most cases you just need one pool\&. Note that the returned object "owns" the pool, i\&.e\&. if the object is freed, the pool is also freed\&. You can use the disown method to break this ownership relation\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid *appdata;\fR /* read/write */ +\fI$pool\fR\fB\->{appdata}\fR +\fIpool\fR\fB\&.appdata\fR +\fIpool\fR\fB\&.appdata\fR +.fi +.if n \{\ +.RE +.\} +.sp +Application specific data that may be used in any way by the code using the pool\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable solvables[];\fR /* read only */ +my \fI$solvable\fR \fB=\fR \fI$pool\fR\fB\->{solvables}\->[\fR\fI$solvid\fR\fB]\fR; +\fIsolvable\fR \fB=\fR \fIpool\fR\fB\&.solvables[\fR\fIsolvid\fR\fB]\fR +\fIsolvable\fR \fB=\fR \fIpool\fR\fB\&.solvables[\fR\fIsolvid\fR\fB]\fR +.fi +.if n \{\ +.RE +.\} +.sp +Look up a Solvable by its id\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRepo repos[];\fR /* read only */ +my \fI$repo\fR \fB=\fR \fI$pool\fR\fB\->{repos}\->[\fR\fI$repoid\fR\fB]\fR; +\fIrepo\fR \fB=\fR \fIpool\fR\fB\&.repos[\fR\fIrepoid\fR\fB]\fR +\fIrepo\fR \fB=\fR \fIpool\fR\fB\&.repos[\fR\fIrepoid\fR\fB]\fR +.fi +.if n \{\ +.RE +.\} +.sp +Look up a Repository by its id\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRepo *installed;\fR /* read/write */ +\fI$pool\fR\fB\->{installed} =\fR \fI$repo\fR; +\fIpool\fR\fB\&.installed =\fR \fIrepo\fR +\fIpool\fR\fB\&.installed =\fR \fIrepo\fR +.fi +.if n \{\ +.RE +.\} +.sp +Define which repository contains all the installed packages\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *errstr;\fR /* read only */ +my \fI$err\fR \fB=\fR \fI$pool\fR\fB\->{errstr}\fR; +\fIerr\fR \fB=\fR \fIpool\fR\fB\&.errstr\fR +\fIerr\fR \fB=\fR \fIpool\fR\fB\&.errstr\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the last error string that was stored in the pool\&. +.SS "CONSTANTS" +.PP +\fBPOOL_FLAG_PROMOTEEPOCH\fR +.RS 4 +Promote the epoch of the providing dependency to the requesting dependency if it does not contain an epoch\&. Used at some time in old rpm versions, modern systems should never need this\&. +.RE +.PP +\fBPOOL_FLAG_FORBIDSELFCONFLICTS\fR +.RS 4 +Disallow the installation of packages that conflict with themselves\&. Debian always allows self\-conflicting packages, rpm used to forbid them but switched to also allowing them since rpm\-4\&.9\&.0\&. +.RE +.PP +\fBPOOL_FLAG_OBSOLETEUSESPROVIDES\fR +.RS 4 +Make obsolete type dependency match against provides instead of just the name and version of packages\&. Very old versions of rpm used the name/version, then it got switched to provides and later switched back again to just name/version\&. +.RE +.PP +\fBPOOL_FLAG_IMPLICITOBSOLETEUSESPROVIDES\fR +.RS 4 +An implicit obsoletes is the internal mechanism to remove the old package on an update\&. The default is to remove all packages with the same name, rpm\-5 switched to also removing packages providing the same name\&. +.RE +.PP +\fBPOOL_FLAG_OBSOLETEUSESCOLORS\fR +.RS 4 +Rpm\(cqs multilib implementation distinguishes between 32bit and 64bit packages (the terminology is that they have a different color)\&. If obsoleteusescolors is set, packages with different colors will not obsolete each other\&. +.RE +.PP +\fBPOOL_FLAG_IMPLICITOBSOLETEUSESCOLORS\fR +.RS 4 +Same as POOL_FLAG_OBSOLETEUSESCOLORS, but used to find out if packages of the same name can be installed in parallel\&. For current Fedora systems, POOL_FLAG_OBSOLETEUSESCOLORS should be false and POOL_FLAG_IMPLICITOBSOLETEUSESCOLORS should be true (this is the default if FEDORA is defined when libsolv is compiled)\&. +.RE +.PP +\fBPOOL_FLAG_NOINSTALLEDOBSOLETES\fR +.RS 4 +Since version 4\&.9\&.0 rpm considers the obsoletes of installed packages when checking for dependency conflicts, thus you may not install a package that is obsoleted by some other installed package unless you also erase the other package\&. +.RE +.PP +\fBPOOL_FLAG_HAVEDISTEPOCH\fR +.RS 4 +Mandriva added a new field called distepoch that gets checked in version comparison if the epoch/version/release of two packages are the same\&. +.RE +.PP +\fBPOOL_FLAG_NOOBSOLETESMULTIVERSION\fR +.RS 4 +If a package is installed in multiversion mode, rpm used to ignore both the implicit obsoletes and the obsolete dependency of a package\&. This was changed to ignoring just the implicit obsoletes, thus you may install multiple versions of the same name, but obsoleted packages still get removed\&. +.RE +.PP +\fBPOOL_FLAG_ADDFILEPROVIDESFILTERED\fR +.RS 4 +Make the addfileprovides method only add files from the standard locations (i\&.e\&. the \(lqbin\(rq and \(lqetc\(rq directories)\&. This is useful if you have only few packages that use non\-standard file dependencies, but you still want the fast speed that addfileprovides() generates\&. +.RE +.PP +\fBPOOL_FLAG_NOWHATPROVIDESAUX\fR +.RS 4 +Disable the creation of the auxiliary whatprovides index\&. This saves a bit of memory but also makes the whatprovides lookups a bit slower\&. +.RE +.PP +\fBPOOL_FLAG_WHATPROVIDESWITHDISABLED\fR +.RS 4 +Make the whatprovides index also contain disabled packages\&. This means that you do not need to recreate the index if a package is enabled/disabled, i\&.e\&. the pool→considered bitmap is changed\&. +.RE +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid free()\fR +\fI$pool\fR\fB\->free()\fR; +\fIpool\fR\fB\&.free()\fR +\fIpool\fR\fB\&.free()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Force a free of the pool\&. After this call, you must not access any object that still references the pool\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid disown()\fR +\fI$pool\fR\fB\->disown()\fR; +\fIpool\fR\fB\&.disown()\fR +\fIpool\fR\fB\&.disown()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Break the ownership relation between the binding object and the pool\&. After this call, the pool will not get freed even if the object goes out of scope\&. This also means that you must manually call the free method to free the pool data\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid setdebuglevel(int\fR \fIlevel\fR\fB)\fR +\fI$pool\fR\fB\->setdebuglevel(\fR\fI$level\fR\fB)\fR; +\fIpool\fR\fB\&.setdebuglevel(\fR\fIlevel\fR\fB)\fR +\fIpool\fR\fB\&.setdebuglevel(\fR\fIlevel\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Set the debug level\&. A value of zero means no debug output, the higher the value, the more output is generated\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint set_flag(int\fR \fIflag\fR\fB, int\fR \fIvalue\fR\fB)\fR +my \fI$oldvalue\fR \fB=\fR \fI$pool\fR\fB\->set_flag(\fR\fI$flag\fR\fB,\fR \fI$value\fR\fB)\fR; +\fIoldvalue\fR \fB=\fR \fIpool\fR\fB\&.set_flag(\fR\fIflag\fR\fB,\fR \fIvalue\fR\fB)\fR +\fIoldvalue\fR \fB=\fR \fIpool\fR\fB\&.set_flag(\fR\fIflag\fR\fB,\fR \fIvalue\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint get_flag(int\fR \fIflag\fR\fB)\fR +my \fI$value\fR \fB=\fR \fI$pool\fR\fB\->get_flag(\fR\fI$flag\fR\fB)\fR; +\fIvalue\fR \fB=\fR \fIpool\fR\fB\&.get_flag(\fR\fIflag\fR\fB)\fR +\fIvalue\fR \fB=\fR \fIpool\fR\fB\&.get_flag(\fR\fIflag\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Set/get a pool specific flag\&. The flags define how the system works, e\&.g\&. how the package manager treats obsoletes\&. The default flags should be sane for most applications, but in some cases you may want to tweak a flag, for example if you want to solve package dependencies for some other system\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_rootdir(const char *\fR\fIrootdir\fR\fB)\fR +\fI$pool\fR\fB\->set_rootdir(\fR\fIrootdir\fR\fB)\fR; +\fIpool\fR\fB\&.set_rootdir(\fR\fIrootdir\fR\fB)\fR +\fIpool\fR\fB\&.set_rootdir(\fR\fIrootdir\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *get_rootdir()\fR +my \fI$rootdir\fR \fB=\fR \fI$pool\fR\fB\->get_rootdir()\fR; +\fIrootdir\fR \fB=\fR \fIpool\fR\fB\&.get_rootdir()\fR +\fIrootdir\fR \fB=\fR \fIpool\fR\fB\&.get_rootdir()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Set/get the rootdir to use\&. This is useful if you want package management to work only in some directory, for example if you want to setup a chroot jail\&. Note that the rootdir will only be prepended to file paths if the \fBREPO_USE_ROOTDIR\fR flag is used\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid setarch(const char *\fR\fIarch\fR \fB= 0)\fR +\fI$pool\fR\fB\->setarch()\fR; +\fIpool\fR\fB\&.setarch()\fR +\fIpool\fR\fB\&.setarch()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Set the architecture for your system\&. The architecture is used to determine which packages are installable\&. It defaults to the result of \(lquname \-m\(rq\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRepo add_repo(const char *\fR\fIname\fR\fB)\fR +\fI$repo\fR \fB=\fR \fI$pool\fR\fB\->add_repo(\fR\fI$name\fR\fB)\fR; +\fIrepo\fR \fB=\fR \fIpool\fR\fB\&.add_repo(\fR\fIname\fR\fB)\fR +\fIrepo\fR \fB=\fR \fIpool\fR\fB\&.add_repo(\fR\fIname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add a Repository with the specified name to the pool\&. The repository is empty on creation, use the repository methods to populate it with packages\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRepoiterator repos_iter()\fR +\fBfor my\fR \fI$repo\fR \fB(\fR\fI@\fR\fB{\fR\fI$pool\fR\fB\->repos_iter()})\fR +\fBfor\fR \fIrepo\fR \fBin\fR \fIpool\fR\fB\&.repos_iter():\fR +\fBfor\fR \fIrepo\fR \fBin\fR \fIpool\fR\fB\&.repos_iter()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Iterate over the existing repositories\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvableiterator solvables_iter()\fR +\fBfor my\fR \fI$solvable\fR \fB(\fR\fI@\fR\fB{\fR\fI$pool\fR\fB\->solvables_iter()})\fR +\fBfor\fR \fIsolvable\fR \fBin\fR \fIpool\fR\fB\&.solvables_iter():\fR +\fBfor\fR \fIsolvable\fR \fBin\fR \fIpool\fR\fB\&.solvables_iter()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Iterate over the existing solvables\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDep Dep(const char *\fR\fIstr\fR\fB, bool\fR \fIcreate\fR \fB= 1)\fR +my \fI$dep\fR \fB=\fR \fI$pool\fR\fB\->Dep(\fR\fI$string\fR\fB)\fR; +\fIdep\fR \fB=\fR \fIpool\fR\fB\&.Dep(\fR\fIstring\fR\fB)\fR +\fIdep\fR \fB=\fR \fIpool\fR\fB\&.Dep(\fR\fIstring\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create an object describing a string or dependency\&. If the string is currently not in the pool and \fIcreate\fR is false, \fBundef\fR/\fBNone\fR/\fBnil\fR is returned\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid addfileprovides()\fR +\fI$pool\fR\fB\->addfileprovides()\fR; +\fIpool\fR\fB\&.addfileprovides()\fR +\fIpool\fR\fB\&.addfileprovides()\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId *addfileprovides_queue()\fR +my \fI@ids\fR \fB=\fR \fI$pool\fR\fB\->addfileprovides_queue()\fR; +\fIids\fR \fB=\fR \fIpool\fR\fB\&.addfileprovides_queue()\fR +\fIids\fR \fB=\fR \fIpool\fR\fB\&.addfileprovides_queue()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Some package managers like rpm allow dependencies on files contained in other packages\&. To allow libsolv to deal with those dependencies in an efficient way, you need to call the addfileprovides method after creating and reading all repositories\&. This method will scan all dependency for file names and then scan all packages for matching files\&. If a filename has been matched, it will be added to the provides list of the corresponding package\&. The addfileprovides_queue variant works the same way but returns an array containing all file dependencies\&. This information can be stored in the meta section of the repositories to speed up the next time the repository is loaded and addfileprovides is called\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid createwhatprovides()\fR +\fI$pool\fR\fB\->createwhatprovides()\fR; +\fIpool\fR\fB\&.createwhatprovides()\fR +\fIpool\fR\fB\&.createwhatprovides()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create the internal \(lqwhatprovides\(rq hash over all of the provides of all installable packages\&. This method must be called before doing any lookups on provides\&. It\(cqs encouraged to do it right after all repos are set up, usually right after the call to addfileprovides()\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *whatprovides(DepId\fR \fIdep\fR\fB)\fR +my \fI@solvables\fR \fB=\fR \fI$pool\fR\fB\->whatprovides(\fR\fI$dep\fR\fB)\fR; +\fIsolvables\fR \fB=\fR \fIpool\fR\fB\&.whatprovides(\fR\fIdep\fR\fB)\fR +\fIsolvables\fR \fB=\fR \fIpool\fR\fB\&.whatprovides(\fR\fIdep\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all solvables that provide the specified dependency\&. You can use either a Dep object or a simple Id as argument\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *best_solvables(Solvable *\fR\fIsolvables\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +my \fI@solvables\fR \fB=\fR \fI$pool\fR\fB\->best_solvables(\fR\fI$solvables\fR\fB)\fR; +\fIsolvables\fR \fB=\fR \fIpool\fR\fB\&.best_solvables(\fR\fIsolvables\fR\fB)\fR +\fIsolvables\fR \fB=\fR \fIpool\fR\fB\&.best_solvables(\fR\fIsolvables\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Filter list of solvables by repo priority, architecture and version\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *whatcontainsdep(Id\fR \fIkeyname\fR\fB, DepId\fR \fIdep\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +my \fI@solvables\fR \fB=\fR \fI$pool\fR\fB\->whatcontainsdep(\fR\fI$keyname\fR\fB,\fR \fI$dep\fR\fB)\fR; +\fIsolvables\fR \fB=\fR \fIpool\fR\fB\&.whatcontainsdep(\fR\fIkeyname\fR\fB,\fR \fIdep\fR\fB)\fR +\fIsolvables\fR \fB=\fR \fIpool\fR\fB\&.whatcontainsdep(\fR\fIkeyname\fR\fB,\fR \fIdep\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all solvables for which keyname contains the dependency\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *whatmatchesdep(Id\fR \fIkeyname\fR\fB, DepId\fR \fIdep\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +my \fI@solvables\fR \fB=\fR \fI$pool\fR\fB\->whatmatchesdep(\fR\fI$keyname\fR\fB,\fR \fI$sdep\fR\fB)\fR; +\fIsolvables\fR \fB=\fR \fIpool\fR\fB\&.whatmatchesdep(\fR\fIkeyname\fR\fB,\fR \fIdep\fR\fB)\fR +\fIsolvables\fR \fB=\fR \fIpool\fR\fB\&.whatmatchesdep(\fR\fIkeyname\fR\fB,\fR \fIdep\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all solvables that have dependencies in keyname that match the dependency\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *whatmatchessolvable(Id\fR \fIkeyname\fR\fB, Solvable\fR \fIsolvable\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +my \fI@solvables\fR \fB=\fR \fI$pool\fR\fB\->whatmatchessolvable(\fR\fI$keyname\fR\fB,\fR \fI$solvable\fR\fB)\fR; +\fIsolvables\fR \fB=\fR \fIpool\fR\fB\&.whatmatchessolvable(\fR\fIkeyname\fR\fB,\fR \fIsolvable\fR\fB)\fR +\fIsolvables\fR \fB=\fR \fIpool\fR\fB\&.whatmatchessolvable(\fR\fIkeyname\fR\fB,\fR \fIsolvable\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all solvables that match package dependencies against solvable\(cqs provides\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId *matchprovidingids(const char *\fR\fImatch\fR\fB, int\fR \fIflags\fR\fB)\fR +my \fI@ids\fR \fB=\fR \fI$pool\fR\fB\->matchprovidingids(\fR\fI$match\fR\fB,\fR \fI$flags\fR\fB)\fR; +\fIids\fR \fB=\fR \fIpool\fR\fB\&.matchprovidingids(\fR\fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +\fIids\fR \fB=\fR \fIpool\fR\fB\&.matchprovidingids(\fR\fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Search the names of all provides and return the ones matching the specified string\&. See the Dataiterator class for the allowed flags\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId towhatprovides(Id *\fR\fIids\fR\fB)\fR +my \fI$offset\fR \fB=\fR \fI$pool\fR\fB\->towhatprovides(\e\fR\fI@ids\fR\fB)\fR; +\fIoffset\fR \fB=\fR \fIpool\fR\fB\&.towhatprovides(\fR\fIids\fR\fB)\fR +\fIoffset\fR \fB=\fR \fIpool\fR\fB\&.towhatprovides(\fR\fIids\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +\(lqInternalize\(rq an array containing Ids\&. The returned value can be used to create solver jobs working on a specific set of packages\&. See the Solver class for more information\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_namespaceproviders(DepId\fR \fIns\fR\fB, DepId\fR \fIevr\fR\fB, bool\fR \fIvalue\fR \fB= 1)\fR +\fI$pool\fR\fB\->set_namespaceproviders(\fR\fI$ns\fR\fB,\fR \fI$evr\fR\fB, 1)\fR; +\fIpool\fR\fB\&.set_namespaceproviders(\fR\fIns\fR\fB,\fR \fIevr\fR\fB,\fR \fITrue\fR\fB)\fR +\fIpool\fR\fB\&.set_namespaceproviders(\fR\fIns\fR\fB,\fR \fIevr\fR\fB,\fR \fItrue\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Manually set a namespace provides entry in the whatprovides index\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid flush_namespaceproviders(DepId\fR \fIns\fR\fB, DepId\fR \fIevr\fR\fB)\fR +\fI$pool\fR\fB\->flush_namespaceproviders(\fR\fI$ns\fR\fB,\fR \fI$evr\fR\fB)\fR; +\fI$pool\fR\fB\&.flush_namespaceproviders(\fR\fIns\fR\fB,\fR \fIevr\fR\fB)\fR +\fI$pool\fR\fB\&.flush_namespaceproviders(\fR\fIns\fR\fB,\fR \fIevr\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Flush the cache of all namespaceprovides matching the specified namespace dependency\&. You can use zero as a wildcard argument\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool isknownarch(DepId\fR \fIid\fR\fB)\fR +my \fI$bool\fR \fB=\fR \fI$pool\fR\fB\->isknownarch(\fR\fI$id\fR\fB)\fR; +\fIbool\fR \fB=\fR \fIpool\fR\fB\&.isknownarch(\fR\fIid\fR\fB)\fR +\fIbool\fR \fB=\fR \fIpool\fR\fB\&.isknownarch?(\fR\fIid\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return true if the specified Id describes a known architecture\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolver Solver()\fR +my \fI$solver\fR \fB=\fR \fI$pool\fR\fB\->Solver()\fR; +\fIsolver\fR \fB=\fR \fIpool\fR\fB\&.Solver()\fR +\fIsolver\fR \fB=\fR \fIpool\fR\fB\&.Solver()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a new solver object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBJob Job(int\fR \fIhow\fR\fB, Id\fR \fIwhat\fR\fB)\fR +my \fI$job\fR \fB=\fR \fI$pool\fR\fB\->Job(\fR\fI$how\fR\fB,\fR \fI$what\fR\fB)\fR; +\fIjob\fR \fB=\fR \fIpool\fR\fB\&.Job(\fR\fIhow\fR\fB,\fR \fIwhat\fR\fB)\fR +\fIjob\fR \fB=\fR \fIpool\fR\fB\&.Job(\fR\fIhow\fR\fB,\fR \fIwhat\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a new Job object\&. Kind of low level, in most cases you would instead use a Selection or Dep job constructor\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSelection Selection()\fR +my \fI$sel\fR \fB=\fR \fI$pool\fR\fB\->Selection()\fR; +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.Selection()\fR +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.Selection()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create an empty selection\&. Useful as a starting point for merging other selections\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSelection Selection_all()\fR +my \fI$sel\fR \fB=\fR \fI$pool\fR\fB\->Selection_all()\fR; +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.Selection_all()\fR +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.Selection_all()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a selection containing all packages\&. Useful as starting point for intersecting other selections or for update/distupgrade jobs\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSelection select(const char *\fR\fIname\fR\fB, int\fR \fIflags\fR\fB)\fR +my \fI$sel\fR \fB=\fR \fI$pool\fR\fB\->select(\fR\fI$name\fR\fB,\fR \fI$flags\fR\fB)\fR; +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.select(\fR\fIname\fR\fB,\fR \fIflags\fR\fB)\fR +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.select(\fR\fIname\fR\fB,\fR \fIflags\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a selection by matching packages against the specified string\&. See the Selection class for a list of flags and how to create solver jobs from a selection\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSelection matchdeps(const char *\fR\fIname\fR\fB, int\fR \fIflags\fR\fB, Id\fR \fIkeyname\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +my \fI$sel\fR \fB=\fR \fI$pool\fR\fB\->matchdeps(\fR\fI$name\fR\fB,\fR \fI$flags\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.matchdeps(\fR\fIname\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.matchdeps(\fR\fIname\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a selection by matching package dependencies against the specified string\&. This can be used if you want to match other dependency types than \(lqprovides\(rq\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSelection matchdepid(DepId\fR \fIdep\fR\fB, int\fR \fIflags\fR\fB, Id\fR \fIkeyname\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +my \fI$sel\fR \fB=\fR \fI$pool\fR\fB\->matchdepid(\fR\fI$dep\fR\fB,\fR \fI$flags\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.matchdepid(\fR\fIdep\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.matchdepid(\fR\fIdep\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a selection by matching package dependencies against the specified dependency\&. This may be faster than matchdeps and also works with complex dependencies\&. The downside is that you cannot use globs or case insensitive matching\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSelection matchsolvable(Solvable\fR \fIsolvable\fR\fB, int\fR \fIflags\fR\fB, Id\fR \fIkeyname\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +my \fI$sel\fR \fB=\fR \fI$pool\fR\fB\->matchsolvable(\fR\fI$solvable\fR\fB,\fR \fI$flags\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.matchsolvable(\fR\fIsolvable\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIsel\fR \fB=\fR \fIpool\fR\fB\&.matchsolvable(\fR\fIsolvable\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a selection by matching package dependencies against the specified solvable\(cqs provides\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid setpooljobs(Jobs *\fR\fIjobs\fR\fB)\fR +\fI$pool\fR\fB\->setpooljobs(\e\fR\fI@jobs\fR\fB)\fR; +\fIpool\fR\fB\&.setpooljobs(\fR\fIjobs\fR\fB)\fR +\fIpool\fR\fB\&.setpooljobs(\fR\fIjobs\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBJob *getpooljobs()\fR +\fI@jobs\fR \fB=\fR \fI$pool\fR\fB\->getpooljobs()\fR; +\fIjobs\fR \fB=\fR \fIpool\fR\fB\&.getpooljobs()\fR +\fIjobs\fR \fB=\fR \fIpool\fR\fB\&.getpooljobs()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Get/Set fixed jobs stored in the pool\&. Those jobs are automatically appended to all solver jobs, they are meant for fixed configurations like which packages can be multiversion installed, which packages were userinstalled, or which packages must not be erased\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_loadcallback(Callable *\fR\fIcallback\fR\fB)\fR +\fI$pool\fR\fB\->setloadcallback(\e\fR\fI&callbackfunction\fR\fB)\fR; +\fIpool\fR\fB\&.setloadcallback(\fR\fIcallbackfunction\fR\fB)\fR +\fIpool\fR\fB\&.setloadcallback { |\fR\fIrepodata\fR\fB| \&.\&.\&. }\fR +.fi +.if n \{\ +.RE +.\} +.sp +Set the callback function called when repository metadata needs to be loaded on demand\&. To make use of this feature, you need to create repodata stubs that tell the library which data is available but not loaded\&. If later on the data needs to be accessed, the callback function is called with a repodata argument\&. You can then load the data (maybe fetching it first from a remote server)\&. The callback should return true if the data has been made available\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +/* bindings only */ +\fI$pool\fR\fB\->appdata_disown()\fR +\fIpool\fR\fB\&.appdata_disown()\fR +\fIpool\fR\fB\&.appdata_disown()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Decrement the reference count of the appdata object\&. This can be used to break circular references (e\&.g\&. if the pool\(cqs appdata value points to some meta data structure that contains a pool handle)\&. If used incorrectly, this method can lead to application crashes, so beware\&. (This method is a no\-op for ruby and tcl\&.) +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId *get_considered_list()\fR +my \fI@ids\fR \fB=\fR \fI$pool\fR\fB\->get_considered_list()\fR; +\fIids\fR \fB=\fR \fIpool\fR\fB\&.get_considered_list()\fR +\fIids\fR \fB=\fR \fIpool\fR\fB\&.get_considered_list()\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_considered_list(Id *\fR\fIids\fR\fB)\fR +\fI$pool\fR\fB\->set_considered_list(\e\fR\fI@ids\fR\fB)\fR; +\fIpool\fR\fB\&.set_considered_list(\fR\fIids\fR\fB)\fR +\fIpool\fR\fB\&.set_considered_list(\fR\fIids\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Get/set the list of solvables that are eligible for installation\&. Note that you need to recreate the whatprovides hash after changing the list\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId *get_disabled_list()\fR +my \fI@ids\fR \fB=\fR \fI$pool\fR\fB\->get_disabled_list()\fR; +\fIids\fR \fB=\fR \fIpool\fR\fB\&.get_disabled_list()\fR +\fIids\fR \fB=\fR \fIpool\fR\fB\&.get_disabled_list()\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_disabled_list(Id *\fR\fIids\fR\fB)\fR +\fI$pool\fR\fB\->set_disabled_list(\e\fR\fI@ids\fR\fB)\fR; +\fIpool\fR\fB\&.set_disabled_list(\fR\fIids\fR\fB)\fR +\fIpool\fR\fB\&.set_disabled_list(\fR\fIids\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Get/set the list of solvables that are not eligible for installation\&. This is basically the inverse of the \(lqconsidered\(rq methods above, i\&.e\&. calling \(lqset_disabled_list()\(rq with an empty list will make all solvables eligible for installation\&. Note you need to recreate the whatprovides hash after changing the list\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *solvableset2str(Solvable *\fR\fIsolvables\fR\fB)\fR +my \fI$str\fR \fB=\fR \fI$pool\fR\fB\->solvableset2str(\fR\fI$solvables\fR\fB)\fR; +\fIstr\fR \fB=\fR \fIpool\fR\fB\&.solvableset2str(\fR\fIsolvables\fR\fB)\fR +\fIstr\fR \fB=\fR \fIpool\fR\fB\&.solvableset2str(\fR\fIsolvables\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing a list of solvables\&. The method tries to reduce the output by using version ranges if possible\&. +.SS "DATA RETRIEVAL METHODS" +.sp +In the following functions, the \fIkeyname\fR argument describes what to retrieve\&. For the standard cases you can use the available Id constants\&. For example, +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB$solv::SOLVABLE_SUMMARY\fR +\fBsolv\&.SOLVABLE_SUMMARY\fR +\fBSolv::SOLVABLE_SUMMARY\fR +.fi +.if n \{\ +.RE +.\} +.sp +selects the \(lqSummary\(rq entry of a solvable\&. The \fIsolvid\fR argument selects the desired solvable by Id\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *lookup_str(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +my \fI$string\fR \fB=\fR \fI$pool\fR\fB\->lookup_str(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIstring\fR \fB=\fR \fIpool\fR\fB\&.lookup_str(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIstring\fR \fB=\fR \fIpool\fR\fB\&.lookup_str(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId lookup_id(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +my \fI$id\fR \fB=\fR \fI$pool\fR\fB\->lookup_id(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIid\fR \fB=\fR \fIpool\fR\fB\&.lookup_id(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIid\fR \fB=\fR \fIpool\fR\fB\&.lookup_id(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBunsigned long long lookup_num(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, unsigned long long\fR \fInotfound\fR \fB= 0)\fR +my \fI$num\fR \fB=\fR \fI$pool\fR\fB\->lookup_num(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fInum\fR \fB=\fR \fIpool\fR\fB\&.lookup_num(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fInum\fR \fB=\fR \fIpool\fR\fB\&.lookup_num(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool lookup_void(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +my \fI$bool\fR \fB=\fR \fI$pool\fR\fB\->lookup_void(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIbool\fR \fB=\fR \fIpool\fR\fB\&.lookup_void(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIbool\fR \fB=\fR \fIpool\fR\fB\&.lookup_void(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId *lookup_idarray(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +my \fI@ids\fR \fB=\fR \fI$pool\fR\fB\->lookup_idarray(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIids\fR \fB=\fR \fIpool\fR\fB\&.lookup_idarray(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIids\fR \fB=\fR \fIpool\fR\fB\&.lookup_idarray(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBChksum lookup_checksum(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +my \fI$chksum\fR \fB=\fR \fI$pool\fR\fB\->lookup_checksum(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIchksum\fR \fB=\fR \fIpool\fR\fB\&.lookup_checksum(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIchksum\fR \fB=\fR \fIpool\fR\fB\&.lookup_checksum(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Lookup functions\&. Return the data element stored in the specified solvable\&. You should probably use the methods of the Solvable class instead\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDataiterator Dataiterator(Id\fR \fIkeyname\fR\fB, const char *\fR\fImatch\fR \fB= 0, int\fR \fIflags\fR \fB= 0)\fR +my \fI$di\fR \fB=\fR \fI$pool\fR\fB\->Dataiterator(\fR\fI$keyname\fR\fB,\fR \fI$match\fR\fB,\fR \fI$flags\fR\fB)\fR; +\fIdi\fR \fB=\fR \fIpool\fR\fB\&.Dataiterator(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +\fIdi\fR \fB=\fR \fIpool\fR\fB\&.Dataiterator(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDataiterator Dataiterator_solvid(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, const char *\fR\fImatch\fR \fB= 0, int\fR \fIflags\fR \fB= 0)\fR +my \fI$di\fR \fB=\fR \fI$pool\fR\fB\->Dataiterator(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB,\fR \fI$match\fR\fB,\fR \fI$flags\fR\fB)\fR; +\fIdi\fR \fB=\fR \fIpool\fR\fB\&.Dataiterator(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +\fIdi\fR \fB=\fR \fIpool\fR\fB\&.Dataiterator(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBfor my\fR \fI$d\fR \fB(\fR\fI@$di\fR\fB)\fR +\fBfor\fR \fId\fR \fBin\fR \fIdi\fR\fB:\fR +\fBfor\fR \fId\fR \fBin\fR \fIdi\fR +.fi +.if n \{\ +.RE +.\} +.sp +Iterate over the matching data elements\&. See the Dataiterator class for more information\&. The Dataiterator method iterates over all solvables in the pool, whereas the Dataiterator_solvid only iterates over the specified solvable\&. +.SS "ID METHODS" +.sp +The following methods deal with Ids, i\&.e\&. integers representing objects in the pool\&. They are considered \(lqlow level\(rq, in most cases you would not use them but instead the object orientated methods\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRepo id2repo(Id\fR \fIid\fR\fB)\fR +\fI$repo\fR \fB=\fR \fI$pool\fR\fB\->id2repo(\fR\fI$id\fR\fB)\fR; +\fIrepo\fR \fB=\fR \fIpool\fR\fB\&.id2repo(\fR\fIid\fR\fB)\fR +\fIrepo\fR \fB=\fR \fIpool\fR\fB\&.id2repo(\fR\fIid\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Lookup an existing Repository by id\&. You can also do this by using the \fBrepos\fR attribute\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable id2solvable(Id\fR \fIid\fR\fB)\fR +\fI$solvable\fR \fB=\fR \fI$pool\fR\fB\->id2solvable(\fR\fI$id\fR\fB)\fR; +\fIsolvable\fR \fB=\fR \fIpool\fR\fB\&.id2solvable(\fR\fIid\fR\fB)\fR +\fIsolvable\fR \fB=\fR \fIpool\fR\fB\&.id2solvable(\fR\fIid\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Lookup an existing Repository by id\&. You can also do this by using the \fBsolvables\fR attribute\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *solvid2str(Id\fR \fIid\fR\fB)\fR +my \fI$str\fR \fB=\fR \fI$pool\fR\fB\->solvid2str(\fR\fI$id\fR\fB)\fR; +\fIstr\fR \fB=\fR \fIpool\fR\fB\&.solvid2str(\fR\fIid\fR\fB)\fR +\fIstr\fR \fB=\fR \fIpool\fR\fB\&.solvid2str(\fR\fIid\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing the Solvable with the specified id\&. The string consists of the name, version, and architecture of the Solvable\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *solvidset2str(Id *\fR\fIsolvids\fR\fB)\fR +my \fI$str\fR \fB=\fR \fI$pool\fR\fB\->solvidset2str(\e\fR\fI@solvids\fR\fB)\fR; +\fIstr\fR \fB=\fR \fIpool\fR\fB\&.solvidset2str(\fR\fIsolvids\fR\fB)\fR +\fIstr\fR \fB=\fR \fIpool\fR\fB\&.solvidset2str(\fR\fIsolvids\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing a list of solvables\&. The method tries to reduce the output by using version ranges if possible\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId str2id(const char *\fR\fIstr\fR\fB, bool\fR \fIcreate\fR \fB= 1)\fR +my \fI$id\fR \fB=\fR \fIpool\fR\fB\->str2id(\fR\fI$string\fR\fB)\fR; +\fIid\fR \fB=\fR \fIpool\fR\fB\&.str2id(\fR\fIstring\fR\fB)\fR +\fIid\fR \fB=\fR \fIpool\fR\fB\&.str2id(\fR\fIstring\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *id2str(Id\fR \fIid\fR\fB)\fR +\fI$string\fR \fB=\fR \fIpool\fR\fB\->id2str(\fR\fI$id\fR\fB)\fR; +\fIstring\fR \fB=\fR \fIpool\fR\fB\&.id2str(\fR\fIid\fR\fB)\fR +\fIstring\fR \fB=\fR \fIpool\fR\fB\&.id2str(\fR\fIid\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Convert a string into an Id and back\&. If the string is currently not in the pool and \fIcreate\fR is false, zero is returned\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId rel2id(Id\fR \fIname\fR\fB, Id\fR \fIevr\fR\fB, int\fR \fIflags\fR\fB, bool\fR \fIcreate\fR \fB= 1)\fR +my \fI$id\fR \fB=\fR \fIpool\fR\fB\->rel2id(\fR\fI$nameid\fR\fB,\fR \fI$evrid\fR\fB,\fR \fI$flags\fR\fB)\fR; +\fIid\fR \fB=\fR \fIpool\fR\fB\&.rel2id(\fR\fInameid\fR\fB,\fR \fIevrid\fR\fB,\fR \fIflags\fR\fB)\fR +\fIid\fR \fB=\fR \fIpool\fR\fB\&.rel2id(\fR\fInameid\fR\fB,\fR \fIevrid\fR\fB,\fR \fIflags\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a \(lqrelational\(rq dependency\&. Such dependencies consist of a name part, \fIflags\fR describing the relation, and a version part\&. The flags are: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB$solv::REL_EQ | $solv::REL_GT | $solv::REL_LT\fR +\fBsolv\&.REL_EQ | solv\&.REL_GT | solv\&.REL_LT\fR +\fBSolv::REL_EQ | Solv::REL_GT | Solv::REL_LT\fR +.fi +.if n \{\ +.RE +.\} +.sp +Thus, if you want a \(lq<=\(rq relation, you would use \fBREL_LT | REL_EQ\fR\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId id2langid(Id\fR \fIid\fR\fB, const char *\fR\fIlang\fR\fB, bool\fR \fIcreate\fR \fB= 1)\fR +my \fI$id\fR \fB=\fR \fI$pool\fR\fB\->id2langid(\fR\fI$id\fR\fB,\fR \fI$language\fR\fB)\fR; +\fIid\fR \fB=\fR \fIpool\fR\fB\&.id2langid(\fR\fIid\fR\fB,\fR \fIlanguage\fR\fB)\fR +\fIid\fR \fB=\fR \fIpool\fR\fB\&.id2langid(\fR\fIid\fR\fB,\fR \fIlanguage\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a language specific Id from some other id\&. This function simply converts the id into a string, appends a dot and the specified language to the string and converts the result back into an Id\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *dep2str(Id\fR \fIid\fR\fB)\fR +\fI$string\fR \fB=\fR \fIpool\fR\fB\->dep2str(\fR\fI$id\fR\fB)\fR; +\fIstring\fR \fB=\fR \fIpool\fR\fB\&.dep2str(\fR\fIid\fR\fB)\fR +\fIstring\fR \fB=\fR \fIpool\fR\fB\&.dep2str(\fR\fIid\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Convert a dependency id into a string\&. If the id is just a string, this function has the same effect as id2str()\&. For relational dependencies, the result is the correct \(lqname relation evr\(rq string\&. +.SH "THE DEPENDENCY CLASS" +.sp +The dependency class is an object orientated way to work with strings and dependencies\&. Internally, dependencies are represented as Ids, i\&.e\&. simple numbers\&. Dependency objects can be constructed by using the Pool\(cqs Dep() method\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBPool *pool;\fR /* read only */ +\fI$dep\fR\fB\->{pool}\fR +\fIdep\fR\fB\&.pool\fR +\fIdep\fR\fB\&.pool\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back reference to the pool this dependency belongs to\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId id;\fR /* read only */ +\fI$dep\fR\fB\->{id}\fR +\fIdep\fR\fB\&.id\fR +\fIdep\fR\fB\&.id\fR +.fi +.if n \{\ +.RE +.\} +.sp +The id of this dependency\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDep Rel(int\fR \fIflags\fR\fB, DepId\fR \fIevrid\fR\fB, bool\fR \fIcreate\fR \fB= 1)\fR +my \fI$reldep\fR \fB=\fR \fI$dep\fR\fB\->Rel(\fR\fI$flags\fR\fB,\fR \fI$evrdep\fR\fB)\fR; +\fIreldep\fR \fB=\fR \fIdep\fR\fB\&.Rel(\fR\fIflags\fR\fB,\fR \fIevrdep\fR\fB)\fR +\fIreldep\fR \fB=\fR \fIdep\fR\fB\&.Rel(\fR\fIflags\fR\fB,\fR \fIevrdep\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a relational dependency from the caller dependency, the flags, and a dependency describing the \(lqversion\(rq part\&. See the pool\(cqs rel2id method for a description of the flags\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSelection Selection_name(int\fR \fIsetflags\fR \fB= 0)\fR +my \fI$sel\fR \fB=\fR \fI$dep\fR\fB\->Selection_name()\fR; +\fIsel\fR \fB=\fR \fIdep\fR\fB\&.Selection_name()\fR +\fIsel\fR \fB=\fR \fIdep\fR\fB\&.Selection_name()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a Selection from a dependency\&. The selection consists of all packages that have a name equal to the dependency\&. If the dependency is of a relational type, the packages version must also fulfill the dependency\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSelection Selection_provides(int\fR \fIsetflags\fR \fB= 0)\fR +my \fI$sel\fR \fB=\fR \fI$dep\fR\fB\->Selection_provides()\fR; +\fIsel\fR \fB=\fR \fIdep\fR\fB\&.Selection_provides()\fR +\fIsel\fR \fB=\fR \fIdep\fR\fB\&.Selection_provides()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a Selection from a dependency\&. The selection consists of all packages that have at least one provides matching the dependency\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *str()\fR +my \fI$str\fR \fB=\fR \fI$dep\fR\fB\->str()\fR; +\fIstr\fR \fB=\fR \fI$dep\fR\fB\&.str()\fR +\fIstr\fR \fB=\fR \fI$dep\fR\fB\&.str()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing the dependency\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$dep\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIdep\fR\fB)\fR +\fIstr\fR \fB=\fR \fIdep\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +Same as calling the str() method\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +\fBif (\fR\fI$dep1\fR \fB==\fR \fI$dep2\fR\fB)\fR +\fBif\fR \fIdep1\fR \fB==\fR \fIdep2\fR\fB:\fR +\fBif\fR \fIdep1\fR \fB==\fR \fIdep2\fR +.fi +.if n \{\ +.RE +.\} +.sp +Two dependencies are equal if they are part of the same pool and have the same ids\&. +.SH "THE REPOSITORY CLASS" +.sp +A Repository describes a group of packages, normally coming from the same source\&. Repositories are created by the Pool\(cqs add_repo() method\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBPool *pool;\fR /* read only */ +\fI$repo\fR\fB\->{pool}\fR +\fIrepo\fR\fB\&.pool\fR +\fIrepo\fR\fB\&.pool\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back reference to the pool this dependency belongs to\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId id;\fR /* read only */ +\fI$repo\fR\fB\->{id}\fR +\fIrepo\fR\fB\&.id\fR +\fIrepo\fR\fB\&.id\fR +.fi +.if n \{\ +.RE +.\} +.sp +The id of the repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *name;\fR /* read/write */ +\fI$repo\fR\fB\->{name}\fR +\fIrepo\fR\fB\&.name\fR +\fIrepo\fR\fB\&.name\fR +.fi +.if n \{\ +.RE +.\} +.sp +The repositories name\&. To libsolv, the name is just a string with no specific meaning\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint priority;\fR /* read/write */ +\fI$repo\fR\fB\->{priority}\fR +\fIrepo\fR\fB\&.priority\fR +\fIrepo\fR\fB\&.priority\fR +.fi +.if n \{\ +.RE +.\} +.sp +The priority of the repository\&. A higher number means that packages of this repository will be chosen over other repositories, even if they have a greater package version\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint subpriority;\fR /* read/write */ +\fI$repo\fR\fB\->{subpriority}\fR +\fIrepo\fR\fB\&.subpriority\fR +\fIrepo\fR\fB\&.subpriority\fR +.fi +.if n \{\ +.RE +.\} +.sp +The sub\-priority of the repository\&. This value is compared when the priorities of two repositories are the same\&. It is useful to make the library prefer on\-disk repositories to remote ones\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint nsolvables;\fR /* read only */ +\fI$repo\fR\fB\->{nsolvables}\fR +\fIrepo\fR\fB\&.nsolvables\fR +\fIrepo\fR\fB\&.nsolvables\fR +.fi +.if n \{\ +.RE +.\} +.sp +The number of solvables in this repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid *appdata;\fR /* read/write */ +\fI$repo\fR\fB\->{appdata}\fR +\fIrepo\fR\fB\&.appdata\fR +\fIrepo\fR\fB\&.appdata\fR +.fi +.if n \{\ +.RE +.\} +.sp +Application specific data that may be used in any way by the code using the repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDatapos *meta;\fR /* read only */ +\fI$repo\fR\fB\->{meta}\fR +\fIrepo\fR\fB\&.meta\fR +\fIrepo\fR\fB\&.meta\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a Datapos object of the repodata\(cqs metadata\&. You can use the lookup methods of the Datapos class to lookup metadata attributes, like the repository timestamp\&. +.SS "CONSTANTS" +.PP +\fBREPO_REUSE_REPODATA\fR +.RS 4 +Reuse the last repository data area (\(lqrepodata\(rq) instead of creating a new area\&. +.RE +.PP +\fBREPO_NO_INTERNALIZE\fR +.RS 4 +Do not internalize the added repository data\&. This is useful if you plan to add more data because internalization is a costly operation\&. +.RE +.PP +\fBREPO_LOCALPOOL\fR +.RS 4 +Use the repodata\(cqs pool for Id storage instead of the global pool\&. Useful if you don\(cqt want to pollute the global pool with many unneeded ids, like when storing the filelist\&. +.RE +.PP +\fBREPO_USE_LOADING\fR +.RS 4 +Use the repodata that is currently being loaded instead of creating a new one\&. This only makes sense if used in a load callback\&. +.RE +.PP +\fBREPO_EXTEND_SOLVABLES\fR +.RS 4 +Do not create new solvables for the new data, but match existing solvables and add the data to them\&. Repository metadata is often split into multiple parts, with one primary file describing all packages and other parts holding information that is normally not needed, like the changelog\&. +.RE +.PP +\fBREPO_USE_ROOTDIR\fR +.RS 4 +Prepend the pool\(cqs rootdir to the path when doing file operations\&. +.RE +.PP +\fBREPO_NO_LOCATION\fR +.RS 4 +Do not add a location element to the solvables\&. Useful if the solvables are not in the final position, so you can add the correct location later in your code\&. +.RE +.PP +\fBSOLV_ADD_NO_STUBS\fR +.RS 4 +Do not create stubs for repository parts that can be downloaded on demand\&. +.RE +.PP +\fBSUSETAGS_RECORD_SHARES\fR +.RS 4 +This is specific to the add_susetags() method\&. Susetags allows one to refer to already read packages to save disk space\&. If this data sharing needs to work over multiple calls to add_susetags, you need to specify this flag so that the share information is made available to subsequent calls\&. +.RE +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid free(bool\fR \fIreuseids\fR \fB= 0)\fR +\fI$repo\fR\fB\->free()\fR; +\fIrepo\fR\fB\&.free()\fR +\fIrepo\fR\fB\&.free()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Free the repository and all solvables it contains\&. If \fIreuseids\fR is set to true, the solvable ids and the repository id may be reused by the library when added new solvables\&. Thus you should leave it false if you are not sure that somebody holds a reference\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid empty(bool\fR \fIreuseids\fR \fB= 0)\fR +\fI$repo\fR\fB\->empty()\fR; +\fIrepo\fR\fB\&.empty()\fR +\fIrepo\fR\fB\&.empty()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Free all the solvables in a repository\&. The repository will be empty after this call\&. See the free() method for the meaning of \fIreuseids\fR\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool isempty()\fR +\fI$repo\fR\fB\->isempty()\fR +\fIrepo\fR\fB\&.empty()\fR +\fIrepo\fR\fB\&.empty?\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return true if there are no solvables in this repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid internalize()\fR +\fI$repo\fR\fB\->internalize()\fR; +\fIrepo\fR\fB\&.internalize()\fR +\fIrepo\fR\fB\&.internalize()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Internalize added data\&. Data must be internalized before it is available to the lookup and data iterator functions\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool write(FILE *\fR\fIfp\fR\fB)\fR +\fI$repo\fR\fB\->write(\fR\fI$fp\fR\fB)\fR +\fIrepo\fR\fB\&.write(\fR\fIfp\fR\fB)\fR +\fIrepo\fR\fB\&.write(\fR\fIfp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Write a repo as a \(lqsolv\(rq file\&. These files can be read very fast and thus are a good way to cache repository data\&. Returns false if there was some error writing the file\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvableiterator solvables_iter()\fR +\fBfor my\fR \fI$solvable\fR \fB(\fR\fI@\fR\fB{\fR\fI$repo\fR\fB\->solvables_iter()})\fR +\fBfor\fR \fIsolvable\fR \fBin\fR \fIrepo\fR\fB\&.solvables_iter():\fR +\fBfor\fR \fIsolvable\fR \fBin\fR \fIrepo\fR\fB\&.solvables_iter()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Iterate over all solvables in a repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRepodata add_repodata(int\fR \fIflags\fR \fB= 0)\fR +my \fI$repodata\fR \fB=\fR \fI$repo\fR\fB\->add_repodata()\fR; +\fIrepodata\fR \fB=\fR \fIrepo\fR\fB\&.add_repodata()\fR +\fIrepodata\fR \fB=\fR \fIrepo\fR\fB\&.add_repodata()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add a new repodata area to the repository\&. This is normally automatically done by the repo_add methods, so you need this method only in very rare circumstances\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid create_stubs()\fR +\fI$repo\fR\fB\->create_stubs()\fR; +\fIrepo\fR\fB\&.create_stubs()\fR +\fIrepo\fR\fB\&.create_stubs()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Calls the create_stubs() repodata method for the last repodata of the repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool iscontiguous()\fR +\fI$repo\fR\fB\->iscontiguous()\fR +\fIrepo\fR\fB\&.iscontiguous()\fR +\fIrepo\fR\fB\&.iscontiguous?\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return true if the solvables of this repository are all in a single block with no holes, i\&.e\&. they have consecutive ids\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRepodata first_repodata()\fR +my \fI$repodata\fR \fB=\fR \fI$repo\fR\fB\->first_repodata()\fR; +\fIrepodata\fR \fB=\fR \fIrepo\fR\fB\&.first_repodata()\fR +\fIrepodata\fR \fB=\fR \fIrepo\fR\fB\&.first_repodata()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Checks if all repodatas but the first repodata are extensions, and return the first repodata if this is the case\&. Useful if you want to do a store/retrieve sequence on the repository to reduce the memory using and enable paging, as this does not work if the repository contains multiple non\-extension repodata areas\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSelection Selection(int\fR \fIsetflags\fR \fB= 0)\fR +my \fI$sel\fR \fB=\fR \fI$repo\fR\fB\->Selection()\fR; +\fIsel\fR \fB=\fR \fIrepo\fR\fB\&.Selection()\fR +\fIsel\fR \fB=\fR \fIrepo\fR\fB\&.Selection()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a Selection consisting of all packages in the repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDataiterator Dataiterator(Id\fR \fIkey\fR\fB, const char *\fR\fImatch\fR \fB= 0, int\fR \fIflags\fR \fB= 0)\fR +my \fI$di\fR \fB=\fR \fI$repo\fR\fB\->Dataiterator(\fR\fI$keyname\fR\fB,\fR \fI$match\fR\fB,\fR \fI$flags\fR\fB)\fR; +\fIdi\fR \fB=\fR \fIrepo\fR\fB\&.Dataiterator(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +\fIdi\fR \fB=\fR \fIrepo\fR\fB\&.Dataiterator(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDataiterator Dataiterator_meta(Id\fR \fIkey\fR\fB, const char *\fR\fImatch\fR \fB= 0, int\fR \fIflags\fR \fB= 0)\fR +my \fI$di\fR \fB=\fR \fI$repo\fR\fB\->Dataiterator_meta(\fR\fI$keyname\fR\fB,\fR \fI$match\fR\fB,\fR \fI$flags\fR\fB)\fR; +\fIdi\fR \fB=\fR \fIrepo\fR\fB\&.Dataiterator_meta(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +\fIdi\fR \fB=\fR \fIrepo\fR\fB\&.Dataiterator_meta(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBfor my\fR \fI$d\fR \fB(\fR\fI@$di\fR\fB)\fR +\fBfor\fR \fId\fR \fBin\fR \fIdi\fR\fB:\fR +\fBfor\fR \fId\fR \fBin\fR \fIdi\fR +.fi +.if n \{\ +.RE +.\} +.sp +Iterate over the matching data elements in this repository\&. See the Dataiterator class for more information\&. The Dataiterator() method iterates over all solvables in a repository, whereas the Dataiterator_meta method only iterates over the repository\(cqs meta data\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$repo\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIrepo\fR\fB)\fR +\fIstr\fR \fB=\fR \fIrepo\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the name of the repository, or "Repo#" if no name is set\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +\fBif (\fR\fI$repo1\fR \fB==\fR \fI$repo2\fR\fB)\fR +\fBif\fR \fIrepo1\fR \fB==\fR \fIrepo2\fR\fB:\fR +\fBif\fR \fIrepo1\fR \fB==\fR \fIrepo2\fR +.fi +.if n \{\ +.RE +.\} +.sp +Two repositories are equal if they belong to the same pool and have the same id\&. +.SS "DATA ADD METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable add_solvable()\fR +\fI$repo\fR\fB\->add_solvable()\fR; +\fIrepo\fR\fB\&.add_solvable()\fR +\fIrepo\fR\fB\&.add_solvable()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add a single empty solvable to the repository\&. Returns a Solvable object, see the Solvable class for more information\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_solv(const char *\fR\fIname\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_solv(\fR\fI$name\fR\fB)\fR; +\fIrepo\fR\fB\&.add_solv(\fR\fIname\fR\fB)\fR +\fIrepo\fR\fB\&.add_solv(\fR\fIname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_solv(FILE *\fR\fIfp\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_solv(\fR\fI$fp\fR\fB)\fR; +\fIrepo\fR\fB\&.add_solv(\fR\fIfp\fR\fB)\fR +\fIrepo\fR\fB\&.add_solv(\fR\fIfp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Read a \(lqsolv\(rq file and add its contents to the repository\&. These files can be written with the write() method and are normally used as fast cache for repository metadata\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_rpmdb(int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_rpmdb()\fR; +\fIrepo\fR\fB\&.add_rpmdb()\fR +\fIrepo\fR\fB\&.add_rpmdb()\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_rpmdb_reffp(FILE *\fR\fIreffp\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_rpmdb_reffp(\fR\fI$reffp\fR\fB)\fR; +\fIrepo\fR\fB\&.add_rpmdb_reffp(\fR\fIreffp\fR\fB)\fR +\fIrepo\fR\fB\&.add_rpmdb_reffp(\fR\fIreffp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the contents of the rpm database to the repository\&. If a solv file containing an old version of the database is available, it can be passed as reffp to speed up reading\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable add_rpm(const char *\fR\fIfilename\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +my \fI$solvable\fR \fB=\fR \fI$repo\fR\fB\->add_rpm(\fR\fI$filename\fR\fB)\fR; +\fIsolvable\fR \fB=\fR \fIrepo\fR\fB\&.add_rpm(\fR\fIfilename\fR\fB)\fR +\fIsolvable\fR \fB=\fR \fIrepo\fR\fB\&.add_rpm(\fR\fIfilename\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the metadata of a single rpm package to the repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_rpmdb_pubkeys(int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_rpmdb_pubkeys()\fR; +\fIrepo\fR\fB\&.add_rpmdb_pubkeys()\fR +\fIrepo\fR\fB\&.add_rpmdb_pubkeys()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add all pubkeys contained in the rpm database to the repository\&. Note that newer rpm versions also allow storing the pubkeys in some directory instead of the rpm database\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable add_pubkey(const char *\fR\fIkeyfile\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +my \fI$solvable\fR \fB=\fR \fI$repo\fR\fB\->add_pubkey(\fR\fI$keyfile\fR\fB)\fR; +\fIsolvable\fR \fB=\fR \fIrepo\fR\fB\&.add_pubkey(\fR\fIkeyfile\fR\fB)\fR +\fIsolvable\fR \fB=\fR \fIrepo\fR\fB\&.add_pubkey(\fR\fIkeyfile\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add a pubkey from a file to the repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_rpmmd(FILE *\fR\fIfp\fR\fB, const char *\fR\fIlanguage\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_rpmmd(\fR\fI$fp\fR\fB,\fR \fIundef\fR\fB)\fR; +\fIrepo\fR\fB\&.add_rpmmd(\fR\fIfp\fR\fB,\fR \fINone\fR\fB)\fR +\fIrepo\fR\fB\&.add_rpmmd(\fR\fIfp\fR\fB,\fR \fInil\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add metadata stored in the "rpm\-md" format (i\&.e\&. from files in the \(lqrepodata\(rq directory) to a repository\&. Supported files are "primary", "filelists", "other", "suseinfo"\&. Do not forget to specify the \fBREPO_EXTEND_SOLVABLES\fR for extension files like "filelists" and "other"\&. Use the \fIlanguage\fR parameter if you have language extension files, otherwise simply use a \fBundef\fR/\fBNone\fR/\fBnil\fR parameter\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_repomdxml(FILE *\fR\fIfp\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_repomdxml(\fR\fI$fp\fR\fB)\fR; +\fIrepo\fR\fB\&.add_repomdxml(\fR\fIfp\fR\fB)\fR +\fIrepo\fR\fB\&.add_repomdxml(\fR\fIfp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the repomd\&.xml meta description from the "rpm\-md" format to the repository\&. This file contains information about the repository like keywords, and also a list of all database files with checksums\&. The data is added to the "meta" section of the repository, i\&.e\&. no package gets created\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_updateinfoxml(FILE *\fR\fIfp\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_updateinfoxml(\fR\fI$fp\fR\fB)\fR; +\fIrepo\fR\fB\&.add_updateinfoxml(\fR\fIfp\fR\fB)\fR +\fIrepo\fR\fB\&.add_updateinfoxml(\fR\fIfp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the updateinfo\&.xml file containing available maintenance updates to the repository\&. All updates are created as special packages that have a "patch:" prefix in their name\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_deltainfoxml(FILE *\fR\fIfp\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_deltainfoxml(\fR\fI$fp\fR\fB)\fR; +\fIrepo\fR\fB\&.add_deltainfoxml(\fR\fIfp\fR\fB)\fR +\fIrepo\fR\fB\&.add_deltainfoxml(\fR\fIfp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the deltainfo\&.xml file (also called prestodelta\&.xml) containing available delta\-rpms to the repository\&. The data is added to the "meta" section, i\&.e\&. no package gets created\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_debdb(int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_debdb()\fR; +\fIrepo\fR\fB\&.add_debdb()\fR +\fIrepo\fR\fB\&.add_debdb()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the contents of the debian installed package database to the repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_debpackages(FILE *\fR\fIfp\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_debpackages(\fR\fI$fp\fR\fB)\fR; +\fIrepo\fR\fB\&.add_debpackages(\fR\fI$fp\fR\fB)\fR +\fIrepo\fR\fB\&.add_debpackages(\fR\fI$fp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the contents of the debian repository metadata (the "packages" file) to the repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable add_deb(const char *\fR\fIfilename\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +my \fI$solvable\fR \fB=\fR \fI$repo\fR\fB\->add_deb(\fR\fI$filename\fR\fB)\fR; +\fIsolvable\fR \fB=\fR \fIrepo\fR\fB\&.add_deb(\fR\fIfilename\fR\fB)\fR +\fIsolvable\fR \fB=\fR \fIrepo\fR\fB\&.add_deb(\fR\fIfilename\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the metadata of a single deb package to the repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_mdk(FILE *\fR\fIfp\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_mdk(\fR\fI$fp\fR\fB)\fR; +\fIrepo\fR\fB\&.add_mdk(\fR\fIfp\fR\fB)\fR +\fIrepo\fR\fB\&.add_mdk(\fR\fIfp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the contents of the mageia/mandriva repository metadata (the "synthesis\&.hdlist" file) to the repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_mdk_info(FILE *\fR\fIfp\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_mdk_info(\fR\fI$fp\fR\fB)\fR; +\fIrepo\fR\fB\&.add_mdk_info(\fR\fIfp\fR\fB)\fR +\fIrepo\fR\fB\&.add_mdk_info(\fR\fIfp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Extend the packages from the synthesis file with the info\&.xml and files\&.xml data\&. Do not forget to specify \fBREPO_EXTEND_SOLVABLES\fR\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_arch_repo(FILE *\fR\fIfp\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_arch_repo(\fR\fI$fp\fR\fB)\fR; +\fIrepo\fR\fB\&.add_arch_repo(\fR\fIfp\fR\fB)\fR +\fIrepo\fR\fB\&.add_arch_repo(\fR\fIfp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the contents of the archlinux repository metadata (the "\&.db\&.tar" file) to the repository\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_arch_local(const char *\fR\fIdir\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_arch_local(\fR\fI$dir\fR\fB)\fR; +\fIrepo\fR\fB\&.add_arch_local(\fR\fIdir\fR\fB)\fR +\fIrepo\fR\fB\&.add_arch_local(\fR\fIdir\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the contents of the archlinux installed package database to the repository\&. The \fIdir\fR parameter is usually set to "/var/lib/pacman/local"\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_content(FILE *\fR\fIfp\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_content(\fR\fI$fp\fR\fB)\fR; +\fIrepo\fR\fB\&.add_content(\fR\fIfp\fR\fB)\fR +\fIrepo\fR\fB\&.add_content(\fR\fIfp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the \(lqcontent\(rq meta description from the susetags format to the repository\&. This file contains information about the repository like keywords, and also a list of all database files with checksums\&. The data is added to the "meta" section of the repository, i\&.e\&. no package gets created\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_susetags(FILE *\fR\fIfp\fR\fB, Id\fR \fIdefvendor\fR\fB, const char *\fR\fIlanguage\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_susetags(\fR\fI$fp\fR\fB,\fR \fI$defvendor\fR\fB,\fR \fI$language\fR\fB)\fR; +\fIrepo\fR\fB\&.add_susetags(\fR\fIfp\fR\fB,\fR \fIdefvendor\fR\fB,\fR \fIlanguage\fR\fB)\fR +\fIrepo\fR\fB\&.add_susetags(\fR\fIfp\fR\fB,\fR \fIdefvendor\fR\fB,\fR \fIlanguage\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add repository metadata in the susetags format to the repository\&. Like with add_rpmmd, you can specify a language if you have language extension files\&. The \fIdefvendor\fR parameter provides a default vendor for packages with missing vendors, it is usually provided in the content file\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_products(const char *\fR\fIdir\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$repo\fR\fB\->add_products(\fR\fI$dir\fR\fB)\fR; +\fIrepo\fR\fB\&.add_products(\fR\fIdir\fR\fB)\fR +\fIrepo\fR\fB\&.add_products(\fR\fIdir\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the installed SUSE products database to the repository\&. The \fIdir\fR parameter is usually "/etc/products\&.d"\&. +.SH "THE SOLVABLE CLASS" +.sp +A solvable describes all the information of one package\&. Each solvable belongs to one repository, it can be added and filled manually but in most cases solvables will get created by the repo_add methods\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRepo *repo;\fR /* read only */ +\fI$solvable\fR\fB\->{repo}\fR +\fIsolvable\fR\fB\&.repo\fR +\fIsolvable\fR\fB\&.repo\fR +.fi +.if n \{\ +.RE +.\} +.sp +The repository this solvable belongs to\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBPool *pool;\fR /* read only */ +\fI$solvable\fR\fB\->{pool}\fR +\fIsolvable\fR\fB\&.pool\fR +\fIsolvable\fR\fB\&.pool\fR +.fi +.if n \{\ +.RE +.\} +.sp +The pool this solvable belongs to, same as the pool of the repo\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId id;\fR /* read only */ +\fI$solvable\fR\fB\->{id}\fR +\fIsolvable\fR\fB\&.id\fR +\fIsolvable\fR\fB\&.id\fR +.fi +.if n \{\ +.RE +.\} +.sp +The specific id of the solvable\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBchar *name;\fR /* read/write */ +\fI$solvable\fR\fB\->{name}\fR +\fIsolvable\fR\fB\&.name\fR +\fIsolvable\fR\fB\&.name\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBchar *evr;\fR /* read/write */ +\fI$solvable\fR\fB\->{evr}\fR +\fIsolvable\fR\fB\&.evr\fR +\fIsolvable\fR\fB\&.evr\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBchar *arch;\fR /* read/write */ +\fI$solvable\fR\fB\->{arch}\fR +\fIsolvable\fR\fB\&.arch\fR +\fIsolvable\fR\fB\&.arch\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBchar *vendor;\fR /* read/write */ +\fI$solvable\fR\fB\->{vendor}\fR +\fIsolvable\fR\fB\&.vendor\fR +\fIsolvable\fR\fB\&.vendor\fR +.fi +.if n \{\ +.RE +.\} +.sp +Easy access to often used attributes of solvables\&. They are internally stored as Ids\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId nameid;\fR /* read/write */ +\fI$solvable\fR\fB\->{nameid}\fR +\fIsolvable\fR\fB\&.nameid\fR +\fIsolvable\fR\fB\&.nameid\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId evrid;\fR /* read/write */ +\fI$solvable\fR\fB\->{evrid}\fR +\fIsolvable\fR\fB\&.evrid\fR +\fIsolvable\fR\fB\&.evrid\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId archid;\fR /* read/write */ +\fI$solvable\fR\fB\->{archid}\fR +\fIsolvable\fR\fB\&.archid\fR +\fIsolvable\fR\fB\&.archid\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId vendorid;\fR /* read/write */ +\fI$solvable\fR\fB\->{vendorid}\fR +\fIsolvable\fR\fB\&.vendorid\fR +\fIsolvable\fR\fB\&.vendorid\fR +.fi +.if n \{\ +.RE +.\} +.sp +Raw interface to the ids\&. Useful if you want to search for a specific id and want to avoid the string compare overhead\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *lookup_str(Id\fR \fIkeyname\fR\fB)\fR +my \fI$string\fR \fB=\fR \fI$solvable\fR\fB\->lookup_str(\fR\fI$keyname\fR\fB)\fR; +\fIstring\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_str(\fR\fIkeyname\fR\fB)\fR +\fIstring\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_str(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId lookup_id(Id\fR \fIkeyname\fR\fB)\fR +my \fI$id\fR \fB=\fR \fI$solvable\fR\fB\->lookup_id(\fR\fI$keyname\fR\fB)\fR; +\fIid\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_id(\fR\fIkeyname\fR\fB)\fR +\fIid\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_id(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBunsigned long long lookup_num(Id\fR \fIkeyname\fR\fB, unsigned long long\fR \fInotfound\fR \fB= 0)\fR +my \fI$num\fR \fB=\fR \fI$solvable\fR\fB\->lookup_num(\fR\fI$keyname\fR\fB)\fR; +\fInum\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_num(\fR\fIkeyname\fR\fB)\fR +\fInum\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_num(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool lookup_void(Id\fR \fIkeyname\fR\fB)\fR +my \fI$bool\fR \fB=\fR \fI$solvable\fR\fB\->lookup_void(\fR\fI$keyname\fR\fB)\fR; +\fIbool\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_void(\fR\fIkeyname\fR\fB)\fR +\fIbool\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_void(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBChksum lookup_checksum(Id\fR \fIkeyname\fR\fB)\fR +my \fI$chksum\fR \fB=\fR \fI$solvable\fR\fB\->lookup_checksum(\fR\fI$keyname\fR\fB)\fR; +\fIchksum\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_checksum(\fR\fIkeyname\fR\fB)\fR +\fIchksum\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_checksum(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId *lookup_idarray(Id\fR \fIkeyname\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +my \fI@ids\fR \fB=\fR \fI$solvable\fR\fB\->lookup_idarray(\fR\fI$keyname\fR\fB)\fR; +\fIids\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_idarray(\fR\fIkeyname\fR\fB)\fR +\fIids\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_idarray(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDep *lookup_deparray(Id\fR \fIkeyname\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +my \fI@deps\fR \fB=\fR \fI$solvable\fR\fB\->lookup_deparray(\fR\fI$keyname\fR\fB)\fR; +\fIdeps\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_deparray(\fR\fIkeyname\fR\fB)\fR +\fIdeps\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_deparray(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Generic lookup methods\&. Retrieve data stored for the specific keyname\&. The lookup_idarray() method will return an array of Ids, use lookup_deparray if you want an array of Dependency objects instead\&. Some Id arrays contain two parts of data divided by a specific marker, for example the provides array uses the SOLVABLE_FILEMARKER id to store both the ids provided by the package and the ids added by the addfileprovides method\&. The default, \-1, translates to the correct marker for the keyname and returns the first part of the array, use 1 to select the second part or 0 to retrieve all ids including the marker\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *lookup_location(unsigned int *\fR\fIOUTPUT\fR\fB)\fR +my \fB(\fR\fI$location\fR\fB,\fR \fI$mediano\fR\fB) =\fR \fI$solvable\fR\fB\->lookup_location()\fR; +\fIlocation\fR\fB,\fR \fImediano\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_location()\fR +\fIlocation\fR\fB,\fR \fImediano\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_location()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a tuple containing the on\-media location and an optional media number for multi\-part repositories (e\&.g\&. repositories spawning multiple DVDs)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *lookup_sourcepkg()\fR +my \fI$sourcepkg\fR \fB=\fR \fI$solvable\fR\fB\->lookup_sourcepkg()\fR; +\fIsourcepkg\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_sourcepkg()\fR +\fIsourcepkg\fR \fB=\fR \fIsolvable\fR\fB\&.lookup_sourcepkg()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a sourcepkg name associated with solvable\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDataiterator Dataiterator(Id\fR \fIkeyname\fR\fB, const char *\fR\fImatch\fR \fB= 0, int\fR \fIflags\fR \fB= 0)\fR +my \fI$di\fR \fB=\fR \fI$solvable\fR\fB\->Dataiterator(\fR\fI$keyname\fR\fB,\fR \fI$match\fR\fB,\fR \fI$flags\fR\fB)\fR; +\fIdi\fR \fB=\fR \fIsolvable\fR\fB\&.Dataiterator(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +\fIdi\fR \fB=\fR \fIsolvable\fR\fB\&.Dataiterator(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBfor my\fR \fI$d\fR \fB(\fR\fI@$di\fR\fB)\fR +\fBfor\fR \fId\fR \fBin\fR \fIdi\fR\fB:\fR +\fBfor\fR \fId\fR \fBin\fR \fIdi\fR +.fi +.if n \{\ +.RE +.\} +.sp +Iterate over the matching data elements\&. See the Dataiterator class for more information\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid add_deparray(Id\fR \fIkeyname\fR\fB, DepId\fR \fIdep\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +\fI$solvable\fR\fB\->add_deparray(\fR\fI$keyname\fR\fB,\fR \fI$dep\fR\fB)\fR; +\fIsolvable\fR\fB\&.add_deparray(\fR\fIkeyname\fR\fB,\fR \fIdep\fR\fB)\fR +\fIsolvable\fR\fB\&.add_deparray(\fR\fIkeyname\fR\fB,\fR \fIdep\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add a new dependency to the attributes stored in keyname\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid unset(Id\fR \fIkeyname\fR\fB)\fR +\fI$solvable\fR\fB\->unset(\fR\fI$keyname\fR\fB)\fR; +\fIsolvable\fR\fB\&.unset(\fR\fIkeyname\fR\fB)\fR +\fIsolvable\fR\fB\&.unset(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Delete data stored for the specific keyname\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool installable()\fR +\fI$solvable\fR\fB\->installable()\fR +\fIsolvable\fR\fB\&.installable()\fR +\fIsolvable\fR\fB\&.installable?\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return true if the solvable is installable on the system\&. Solvables are not installable if the system does not support their architecture\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool isinstalled()\fR +\fI$solvable\fR\fB\->isinstalled()\fR +\fIsolvable\fR\fB\&.isinstalled()\fR +\fIsolvable\fR\fB\&.isinstalled?\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return true if the solvable is installed on the system\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool identical(Solvable *\fR\fIother\fR\fB)\fR +\fI$solvable\fR\fB\->identical(\fR\fI$other\fR\fB)\fR +\fIsolvable\fR\fB\&.identical(\fR\fIother\fR\fB)\fR +\fIsolvable\fR\fB\&.identical?(\fR\fIother\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return true if the two solvables are identical\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint evrcmp(Solvable *\fR\fIother\fR\fB)\fR +\fI$solvable\fR\fB\->evrcmp(\fR\fI$other\fR\fB)\fR +\fIsolvable\fR\fB\&.evrcmp(\fR\fIother\fR\fB)\fR +\fIsolvable\fR\fB\&.evrcmp(\fR\fIother\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Returns \-1 if the epoch/version/release of the solvable is less than the one from the other solvable, 1 if it is greater, and 0 if they are equal\&. Note that "equal" does not mean that the evr is identical\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint matchesdep(Id\fR \fIkeyname\fR\fB, DepId\fR \fIid\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +\fI$solvable\fR\fB\->matchesdep(\fR\fI$keyname\fR\fB,\fR \fI$dep\fR\fB)\fR +\fIsolvable\fR\fB\&.matchesdep(\fR\fIkeyname\fR\fB,\fR \fIdep\fR\fB)\fR +\fIsolvable\fR\fB\&.matchesdep?(\fR\fIkeyname\fR\fB,\fR \fIdep\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return true if the dependencies stored in keyname match the specified dependency\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSelection Selection(int\fR \fIsetflags\fR \fB= 0)\fR +my \fI$sel\fR \fB=\fR \fI$solvable\fR\fB\->Selection()\fR; +\fIsel\fR \fB=\fR \fIsolvable\fR\fB\&.Selection()\fR +\fIsel\fR \fB=\fR \fIsolvable\fR\fB\&.Selection()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a Selection containing just the single solvable\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *str()\fR +my \fI$str\fR \fB=\fR \fI$solvable\fR\fB\->str()\fR; +\fIstr\fR \fB=\fR \fI$solvable\fR\fB\&.str()\fR +\fIstr\fR \fB=\fR \fI$solvable\fR\fB\&.str()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing the solvable\&. The string consists of the name, version, and architecture of the Solvable\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$solvable\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIsolvable\fR\fB)\fR +\fIstr\fR \fB=\fR \fIsolvable\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +Same as calling the str() method\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +\fBif (\fR\fI$solvable1\fR \fB==\fR \fI$solvable2\fR\fB)\fR +\fBif\fR \fIsolvable1\fR \fB==\fR \fIsolvable2\fR\fB:\fR +\fBif\fR \fIsolvable1\fR \fB==\fR \fIsolvable2\fR +.fi +.if n \{\ +.RE +.\} +.sp +Two solvables are equal if they are part of the same pool and have the same ids\&. +.SH "THE DATAITERATOR CLASS" +.sp +Dataiterators can be used to do complex string searches or to iterate over arrays\&. They can be created via the constructors in the Pool, Repo, and Solvable classes\&. The Repo and Solvable constructors will limit the search to the repository or the specific package\&. +.SS "CONSTANTS" +.PP +\fBSEARCH_STRING\fR +.RS 4 +Return a match if the search string matches the value\&. +.RE +.PP +\fBSEARCH_STRINGSTART\fR +.RS 4 +Return a match if the value starts with the search string\&. +.RE +.PP +\fBSEARCH_STRINGEND\fR +.RS 4 +Return a match if the value ends with the search string\&. +.RE +.PP +\fBSEARCH_SUBSTRING\fR +.RS 4 +Return a match if the search string can be matched somewhere in the value\&. +.RE +.PP +\fBSEARCH_GLOB\fR +.RS 4 +Do a glob match of the search string against the value\&. +.RE +.PP +\fBSEARCH_REGEX\fR +.RS 4 +Do a regular expression match of the search string against the value\&. +.RE +.PP +\fBSEARCH_NOCASE\fR +.RS 4 +Ignore case when matching strings\&. Works for all the above match types\&. +.RE +.PP +\fBSEARCH_FILES\fR +.RS 4 +Match the complete filenames of the file list, not just the base name\&. +.RE +.PP +\fBSEARCH_COMPLETE_FILELIST\fR +.RS 4 +When matching the file list, check every file of the package not just the subset from the primary metadata\&. +.RE +.PP +\fBSEARCH_CHECKSUMS\fR +.RS 4 +Allow the matching of checksum entries\&. +.RE +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid prepend_keyname(Id\fR \fIkeyname\fR\fB)\fR; +\fI$di\fR\fB\->prepend_keyname(\fR\fI$keyname\fR\fB)\fR; +\fIdi\fR\fB\&.prepend_keyname(\fR\fIkeyname\fR\fB)\fR +\fIdi\fR\fB\&.prepend_keyname(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Do a sub\-search in the array stored in keyname\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid skip_solvable()\fR; +\fI$di\fR\fB\->skip_solvable()\fR; +\fIdi\fR\fB\&.skip_solvable()\fR +\fIdi\fR\fB\&.skip_solvable()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Stop matching the current solvable and advance to the next one\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +\fBfor my\fR \fI$d\fR \fB(\fR\fI@$di\fR\fB)\fR +\fBfor\fR \fId\fR \fBin\fR \fIdi\fR\fB:\fR +\fBfor\fR \fId\fR \fBin\fR \fIdi\fR +.fi +.if n \{\ +.RE +.\} +.sp +Iterate through the matches\&. If there is a match, the object in d will be of type Datamatch\&. +.SH "THE DATAMATCH CLASS" +.sp +Objects of this type will be created for every value matched by a dataiterator\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBPool *pool;\fR /* read only */ +\fI$d\fR\fB\->{pool}\fR +\fId\fR\fB\&.pool\fR +\fId\fR\fB\&.pool\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to pool\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRepo *repo;\fR /* read only */ +\fI$d\fR\fB\->{repo}\fR +\fId\fR\fB\&.repo\fR +\fId\fR\fB\&.repo\fR +.fi +.if n \{\ +.RE +.\} +.sp +The repository containing the matched object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *solvable;\fR /* read only */ +\fI$d\fR\fB\->{solvable}\fR +\fId\fR\fB\&.solvable\fR +\fId\fR\fB\&.solvable\fR +.fi +.if n \{\ +.RE +.\} +.sp +The solvable containing the value that was matched\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId solvid;\fR /* read only */ +\fI$d\fR\fB\->{solvid}\fR +\fId\fR\fB\&.solvid\fR +\fId\fR\fB\&.solvid\fR +.fi +.if n \{\ +.RE +.\} +.sp +The id of the solvable that matched\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId\fR \fIkey_id\fR; +\fI$d\fR\fB\->{\fR\fIkey_id\fR\fB}\fR +\fId\fR\fB\&.key_id\fR +\fId\fR\fB\&.key_id\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *\fR\fIkey_idstr\fR; +\fI$d\fR\fB\->{\fR\fIkey_idstr\fR\fB}\fR +\fId\fR\fB\&.key_idstr\fR +\fId\fR\fB\&.key_idstr\fR +.fi +.if n \{\ +.RE +.\} +.sp +The keyname that matched, either as id or string\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId\fR \fItype_id\fR; +\fI$d\fR\fB\->{\fR\fItype_id\fR\fB}\fR +\fId\fR\fB\&.type_id\fR +\fId\fR\fB\&.type_id\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *\fR\fItype_idstr\fR; +\fI$d\fR\fB\->{\fR\fItype_idstr\fR\fB}\fR; +\fId\fR\fB\&.type_idstr\fR +\fId\fR\fB\&.type_idstr\fR +.fi +.if n \{\ +.RE +.\} +.sp +The key type of the value that was matched, either as id or string\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId\fR \fIid\fR; +\fI$d\fR\fB\->{id}\fR +\fId\fR\fB\&.id\fR +\fId\fR\fB\&.id\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId\fR \fIidstr\fR; +\fI$d\fR\fB\->{idstr}\fR +\fId\fR\fB\&.idstr\fR +\fId\fR\fB\&.idstr\fR +.fi +.if n \{\ +.RE +.\} +.sp +The Id of the value that was matched (only valid for id types), either as id or string\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDep *dep;\fR /* read only */ +\fI$d\fR\fB\->{dep}\fR +\fId\fR\fB\&.dep\fR +\fId\fR\fB\&.dep\fR +.fi +.if n \{\ +.RE +.\} +.sp +The id of the value that was matched converted to a dependency object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *\fR\fIstr\fR; +\fI$d\fR\fB\->{str}\fR +\fId\fR\fB\&.str\fR +\fId\fR\fB\&.str\fR +.fi +.if n \{\ +.RE +.\} +.sp +The string value that was matched (only valid for string types)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBunsigned long long\fR \fInum\fR; +\fI$d\fR\fB\->{num}\fR +\fId\fR\fB\&.num\fR +\fId\fR\fB\&.num\fR +.fi +.if n \{\ +.RE +.\} +.sp +The numeric value that was matched (only valid for numeric types)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBunsigned int\fR \fInum2\fR; +\fI$d\fR\fB\->{num2}\fR +\fId\fR\fB\&.num2\fR +\fId\fR\fB\&.num2\fR +.fi +.if n \{\ +.RE +.\} +.sp +The secondary numeric value that was matched (only valid for types containing two values)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBunsigned int\fR \fIbinary\fR; +\fI$d\fR\fB\->{binary}\fR +\fId\fR\fB\&.binary\fR +\fId\fR\fB\&.binary\fR +.fi +.if n \{\ +.RE +.\} +.sp +The value in binary form, useful for checksums and other data that cannot be represented as a string\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDatapos pos()\fR +my \fI$pos\fR \fB=\fR \fI$d\fR\fB\->pos()\fR; +\fIpos\fR \fB=\fR \fId\fR\fB\&.pos()\fR +\fIpos\fR \fB=\fR \fId\fR\fB\&.pos()\fR +.fi +.if n \{\ +.RE +.\} +.sp +The position object of the current match\&. It can be used to do sub\-searches starting at the match (if it is of an array type)\&. See the Datapos class for more information\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDatapos parentpos()\fR +my \fI$pos\fR \fB=\fR \fI$d\fR\fB\->parentpos()\fR; +\fIpos\fR \fB=\fR \fId\fR\fB\&.parentpos()\fR +\fIpos\fR \fB=\fR \fId\fR\fB\&.parentpos()\fR +.fi +.if n \{\ +.RE +.\} +.sp +The position object of the array containing the current match\&. It can be used to do sub\-searches, see the Datapos class for more information\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$d\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fId\fR\fB)\fR +\fIstr\fR \fB=\fR \fId\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the stringification of the matched value\&. Stringification depends on the search flags, for file list entries it will return just the base name unless SEARCH_FILES is used, for checksums it will return an empty string unless SEARCH_CHECKSUMS is used\&. Numeric values are currently stringified to an empty string\&. +.SH "THE SELECTION CLASS" +.sp +Selections are a way to easily deal with sets of packages\&. There are multiple constructors to create them, the most useful is probably the select() method in the Pool class\&. +.SS "CONSTANTS" +.PP +\fBSELECTION_NAME\fR +.RS 4 +Create the selection by matching package names\&. +.RE +.PP +\fBSELECTION_PROVIDES\fR +.RS 4 +Create the selection by matching package provides\&. +.RE +.PP +\fBSELECTION_FILELIST\fR +.RS 4 +Create the selection by matching package files\&. +.RE +.PP +\fBSELECTION_CANON\fR +.RS 4 +Create the selection by matching the canonical representation of the package\&. This is normally a combination of the name, the version, and the architecture of a package\&. +.RE +.PP +\fBSELECTION_DOTARCH\fR +.RS 4 +Allow an "\&." suffix when matching names or provides\&. +.RE +.PP +\fBSELECTION_REL\fR +.RS 4 +Allow the specification of a relation when matching names or dependencies, e\&.g\&. "name >= 1\&.2"\&. +.RE +.PP +\fBSELECTION_GLOB\fR +.RS 4 +Allow glob matching for package names, package provides, and file names\&. +.RE +.PP +\fBSELECTION_NOCASE\fR +.RS 4 +Ignore case when matching package names, package provides, and file names\&. +.RE +.PP +\fBSELECTION_FLAT\fR +.RS 4 +Return only one selection element describing the selected packages\&. The default is to create multiple elements for all globbed packages\&. Multiple elements are useful if you want to turn the selection into an install job, in that case you want an install job for every globbed package\&. +.RE +.PP +\fBSELECTION_SKIP_KIND\fR +.RS 4 +Remove a "packagekind:" prefix from the package names\&. +.RE +.PP +\fBSELECTION_MATCH_DEPSTR\fR +.RS 4 +When matching dependencies, do a string match on the result of dep2str instead of using the normal dependency intersect algorithm\&. +.RE +.PP +\fBSELECTION_INSTALLED_ONLY\fR +.RS 4 +Limit the package search to installed packages\&. +.RE +.PP +\fBSELECTION_SOURCE_ONLY\fR +.RS 4 +Limit the package search to source packages only\&. +.RE +.PP +\fBSELECTION_WITH_SOURCE\fR +.RS 4 +Extend the package search to also match source packages\&. The default is only to match binary packages\&. +.RE +.PP +\fBSELECTION_WITH_DISABLED\fR +.RS 4 +Extend the package search to also include disabled packages\&. +.RE +.PP +\fBSELECTION_WITH_BADARCH\fR +.RS 4 +Extend the package search to also include packages that are not installable on the configured architecture\&. +.RE +.PP +\fBSELECTION_WITH_ALL\fR +.RS 4 +Shortcut for selecting the three modifiers above\&. +.RE +.PP +\fBSELECTION_ADD\fR +.RS 4 +Add the result of the match to the current selection instead of replacing it\&. +.RE +.PP +\fBSELECTION_SUBTRACT\fR +.RS 4 +Remove the result of the match to the current selection instead of replacing it\&. +.RE +.PP +\fBSELECTION_FILTER\fR +.RS 4 +Intersect the result of the match to the current selection instead of replacing it\&. +.RE +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBPool *pool;\fR /* read only */ +\fI$d\fR\fB\->{pool}\fR +\fId\fR\fB\&.pool\fR +\fId\fR\fB\&.pool\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to pool\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint flags;\fR /* read only */ +\fI$sel\fR\fB\->{flags}\fR +\fIflags\fR \fB=\fR \fIsel\fR\fB\&.flags\fR +\fIflags\fR \fB=\fR \fIsel\fR\fB\&.flags\fR +.fi +.if n \{\ +.RE +.\} +.sp +The result flags of the selection\&. The flags are a subset of the ones used when creating the selection, they describe which method was used to get the result\&. For example, if you create the selection with \(lqSELECTION_NAME | SELECTION_PROVIDES\(rq, the resulting flags will either be SELECTION_NAME or SELECTION_PROVIDES depending if there was a package that matched the name or not\&. If there was no match at all, the flags will be zero\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool isempty()\fR +\fI$sel\fR\fB\->isempty()\fR +\fIsel\fR\fB\&.isempty()\fR +\fIsel\fR\fB\&.isempty?\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return true if the selection is empty, i\&.e\&. no package could be matched\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSelection clone(int\fR \fIflags\fR \fB= 0)\fR +my \fI$cloned\fR \fB=\fR \fI$sel\fR\fB\->clone()\fR; +\fIcloned\fR \fB=\fR \fIsel\fR\fB\&.clone()\fR +\fIcloned\fR \fB=\fR \fIsel\fR\fB\&.clone()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a copy of a selection\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid filter(Selection *\fR\fIother\fR\fB)\fR +\fI$sel\fR\fB\->filter(\fR\fI$other\fR\fB)\fR; +\fIsel\fR\fB\&.filter(\fR\fIother\fR\fB)\fR +\fIsel\fR\fB\&.filter(\fR\fIother\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Intersect two selections\&. Packages will only stay in the selection if there are also included in the other selecting\&. Does an in\-place modification\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid add(Selection *\fR\fIother\fR\fB)\fR +\fI$sel\fR\fB\->add(\fR\fI$other\fR\fB)\fR; +\fIsel\fR\fB\&.add(\fR\fIother\fR\fB)\fR +\fIsel\fR\fB\&.add(\fR\fIother\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Build the union of two selections\&. All packages of the other selection will be added to the set of packages of the selection object\&. Does an in\-place modification\&. Note that the selection flags are no longer meaningful after the add operation\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid subtract(Selection *\fR\fIother\fR\fB)\fR +\fI$sel\fR\fB\->subtract(\fR\fI$other\fR\fB)\fR; +\fIsel\fR\fB\&.subtract(\fR\fIother\fR\fB)\fR +\fIsel\fR\fB\&.subtract(\fR\fIother\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Remove the packages of the other selection from the packages of the selection object\&. Does an in\-place modification\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid add_raw(Id\fR \fIhow\fR\fB, Id\fR \fIwhat\fR\fB)\fR +\fI$sel\fR\fB\->add_raw(\fR\fI$how\fR\fB,\fR \fI$what\fR\fB)\fR; +\fIsel\fR\fB\&.add_raw(\fR\fIhow\fR\fB,\fR \fIwhat\fR\fB)\fR +\fIsel\fR\fB\&.add_raw(\fR\fIhow\fR\fB,\fR \fIwhat\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add a raw element to the selection\&. Check the Job class for information about the how and what parameters\&. Note that the selection flags are no longer meaningful after the add_raw operation\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBJob *jobs(int\fR \fIaction\fR\fB)\fR +my \fI@jobs\fR \fB=\fR \fI$sel\fR\fB\->jobs(\fR\fI$action\fR\fB)\fR; +\fIjobs\fR \fB=\fR \fIsel\fR\fB\&.jobs(\fR\fIaction\fR\fB)\fR +\fIjobs\fR \fB=\fR \fIsel\fR\fB\&.jobs(\fR\fIaction\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Convert a selection into an array of Job objects\&. The action parameter is or\-ed to the \(lqhow\(rq part of the job, it describes the type of job (e\&.g\&. install, erase)\&. See the Job class for the action and action modifier constants\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *solvables()\fR +my \fI@solvables\fR \fB=\fR \fI$sel\fR\fB\->solvables()\fR; +\fIsolvables\fR \fB=\fR \fIsel\fR\fB\&.solvables()\fR +\fIsolvables\fR \fB=\fR \fIsel\fR\fB\&.solvables()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Convert a selection into an array of Solvable objects\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid select(const char *\fR\fIname\fR\fB, int\fR \fIflags\fR\fB)\fR +\fI$sel\fR\fB\->select(\fR\fI$name\fR\fB,\fR \fI$flags\fR\fB)\fR; +\fIsel\fR\fB\&.select(\fR\fIname\fR\fB,\fR \fIflags\fR\fB)\fR +\fIsel\fR\fB\&.select(\fR\fIname\fR\fB,\fR \fIflags\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Do a select operation and combine the result with the current selection\&. You can choose the desired combination method by using either the SELECTION_ADD, SELECTION_SUBTRACT, or SELECTION_FILTER flag\&. If none of the flags are used, SELECTION_FILTER|SELECTION_WITH_ALL is assumed\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid matchdeps(const char *\fR\fIname\fR\fB, int\fR \fIflags\fR\fB, Id\fR \fIkeyname\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +\fI$sel\fR\fB\->matchdeps(\fR\fI$name\fR\fB,\fR \fI$flags\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIsel\fR\fB\&.matchdeps(\fR\fIname\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIsel\fR\fB\&.matchdeps(\fR\fIname\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Do a matchdeps operation and combine the result with the current selection\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid matchdepid(DepId\fR \fIdep\fR\fB, int\fR \fIflags\fR\fB, Id\fR \fIkeyname\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +\fI$sel\fR\fB\->matchdepid(\fR\fI$dep\fR\fB,\fR \fI$flags\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIsel\fR\fB\&.matchdepid(\fR\fIdep\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIsel\fR\fB\&.matchdepid(\fR\fIdep\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Do a matchdepid operation and combine the result with the current selection\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid matchsolvable(Solvable\fR \fIsolvable\fR\fB, int\fR \fIflags\fR\fB, Id\fR \fIkeyname\fR\fB, Id\fR \fImarker\fR \fB= \-1)\fR +\fI$sel\fR\fB\->matchsolvable(\fR\fI$solvable\fR\fB,\fR \fI$flags\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIsel\fR\fB\&.matchsolvable(\fR\fIsolvable\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIsel\fR\fB\&.matchsolvable(\fR\fIsolvable\fR\fB,\fR \fIflags\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Do a matchsolvable operation and combine the result with the current selection\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$sel\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIsel\fR\fB)\fR +\fIstr\fR \fB=\fR \fIsel\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing the selection\&. +.SH "THE JOB CLASS" +.sp +Jobs are the way to specify to the dependency solver what to do\&. Most of the times jobs will get created by calling the jobs() method on a Selection object, but there is also a Job() constructor in the Pool class\&. +.SS "CONSTANTS" +.sp +Selection constants: +.PP +\fBSOLVER_SOLVABLE\fR +.RS 4 +The \(lqwhat\(rq part is the id of a solvable\&. +.RE +.PP +\fBSOLVER_SOLVABLE_NAME\fR +.RS 4 +The \(lqwhat\(rq part is the id of a package name\&. +.RE +.PP +\fBSOLVER_SOLVABLE_PROVIDES\fR +.RS 4 +The \(lqwhat\(rq part is the id of a package provides\&. +.RE +.PP +\fBSOLVER_SOLVABLE_ONE_OF\fR +.RS 4 +The \(lqwhat\(rq part is an offset into the \(lqwhatprovides\(rq data, created by calling the towhatprovides() pool method\&. +.RE +.PP +\fBSOLVER_SOLVABLE_REPO\fR +.RS 4 +The \(lqwhat\(rq part is the id of a repository\&. +.RE +.PP +\fBSOLVER_SOLVABLE_ALL\fR +.RS 4 +The \(lqwhat\(rq part is ignored, all packages are selected\&. +.RE +.PP +\fBSOLVER_SOLVABLE_SELECTMASK\fR +.RS 4 +A mask containing all the above selection bits\&. +.RE +.sp +Action constants: +.PP +\fBSOLVER_NOOP\fR +.RS 4 +Do nothing\&. +.RE +.PP +\fBSOLVER_INSTALL\fR +.RS 4 +Install a package of the specified set of packages\&. It tries to install the best matching package (i\&.e\&. the highest version of the packages from the repositories with the highest priority)\&. +.RE +.PP +\fBSOLVER_ERASE\fR +.RS 4 +Erase all of the packages from the specified set\&. If a package is not installed, erasing it will keep it from getting installed\&. +.RE +.PP +\fBSOLVER_UPDATE\fR +.RS 4 +Update the matching installed packages to their best version\&. If none of the specified packages are installed, try to update the installed packages to the specified versions\&. See the section about targeted updates about more information\&. +.RE +.PP +\fBSOLVER_WEAKENDEPS\fR +.RS 4 +Allow one to break the dependencies of the matching packages\&. Handle with care\&. +.RE +.PP +\fBSOLVER_MULTIVERSION\fR +.RS 4 +Mark the matched packages for multiversion install\&. If they get to be installed because of some other job, the installation will keep the old version of the package installed (for rpm this is done by using \(lq\-i\(rq instead of \(lq\-U\(rq)\&. +.RE +.PP +\fBSOLVER_LOCK\fR +.RS 4 +Do not change the state of the matched packages, i\&.e\&. when they are installed they stay installed, if not they are not selected for installation\&. +.RE +.PP +\fBSOLVER_DISTUPGRADE\fR +.RS 4 +Update the matching installed packages to the best version included in one of the repositories\&. After this operation, all come from one of the available repositories except orphaned packages\&. Orphaned packages are packages that have no relation to the packages in the repositories, i\&.e\&. no package in the repositories have the same name or obsolete the orphaned package\&. This action brings the installed packages in sync with the ones in the repository\&. By default it also turns of arch/vendor/version locking for the affected packages to simulate a fresh installation\&. This means that distupgrade can actually downgrade packages if only lower versions of a package are available in the repositories\&. You can tweak this behavior with the SOLVER_FLAG_DUP_ solver flags\&. +.RE +.PP +\fBSOLVER_DROP_ORPHANED\fR +.RS 4 +Erase all the matching installed packages if they are orphaned\&. This only makes sense if there is a \(lqdistupgrade all packages\(rq job\&. The default is to erase orphaned packages only if they block the installation of other packages\&. +.RE +.PP +\fBSOLVER_VERIFY\fR +.RS 4 +Fix dependency problems of matching installed packages\&. The default is to ignore dependency problems for installed packages\&. +.RE +.PP +\fBSOLVER_USERINSTALLED\fR +.RS 4 +The matching installed packages are considered to be installed by a user, thus not installed to fulfill some dependency\&. This is needed input for the calculation of unneeded packages for jobs that have the SOLVER_CLEANDEPS flag set\&. +.RE +.PP +\fBSOLVER_ALLOWUNINSTALL\fR +.RS 4 +Allow the solver to deinstall the matching installed packages if they get into the way of resolving a dependency\&. This is like the SOLVER_FLAG_ALLOW_UNINSTALL flag, but limited to a specific set of packages\&. +.RE +.PP +\fBSOLVER_FAVOR\fR +.RS 4 +Prefer the specified packages if the solver encounters an alternative\&. If a job contains multiple matching favor/disfavor elements, the last one takes precedence\&. +.RE +.PP +\fBSOLVER_DISFAVOR\fR +.RS 4 +Avoid the specified packages if the solver encounters an alternative\&. This can also be used to block recommended or supplemented packages from being installed\&. +.RE +.PP +\fBSOLVER_EXCLUDEFROMWEAK\fR +.RS 4 +Avoid the specified packages to satisfy recommended or supplemented dependencies\&. Unlike SOLVER_DISFAVOR, it does not interfere with other rules\&. +.RE +.PP +\fBSOLVER_JOBMASK\fR +.RS 4 +A mask containing all the above action bits\&. +.RE +.sp +Action modifier constants: +.PP +\fBSOLVER_WEAK\fR +.RS 4 +Makes the job a weak job\&. The solver tries to fulfill weak jobs, but does not report a problem if it is not possible to do so\&. +.RE +.PP +\fBSOLVER_ESSENTIAL\fR +.RS 4 +Makes the job an essential job\&. If there is a problem with the job, the solver will not propose to remove the job as one solution (unless all other solutions are also to remove essential jobs)\&. +.RE +.PP +\fBSOLVER_CLEANDEPS\fR +.RS 4 +The solver will try to also erase all packages dragged in through dependencies when erasing the package\&. This needs SOLVER_USERINSTALLED jobs to maximize user satisfaction\&. +.RE +.PP +\fBSOLVER_FORCEBEST\fR +.RS 4 +Insist on the best package for install, update, and distupgrade jobs\&. If this flag is not used, the solver will use the second\-best package if the best package cannot be installed for some reason\&. When this flag is used, the solver will generate a problem instead\&. +.RE +.PP +\fBSOLVER_TARGETED\fR +.RS 4 +Forces targeted operation update and distupgrade jobs\&. See the section about targeted updates about more information\&. +.RE +.sp +Set constants\&. +.PP +\fBSOLVER_SETEV\fR +.RS 4 +The job specified the exact epoch and version of the package set\&. +.RE +.PP +\fBSOLVER_SETEVR\fR +.RS 4 +The job specified the exact epoch, version, and release of the package set\&. +.RE +.PP +\fBSOLVER_SETARCH\fR +.RS 4 +The job specified the exact architecture of the packages from the set\&. +.RE +.PP +\fBSOLVER_SETVENDOR\fR +.RS 4 +The job specified the exact vendor of the packages from the set\&. +.RE +.PP +\fBSOLVER_SETREPO\fR +.RS 4 +The job specified the exact repository of the packages from the set\&. +.RE +.PP +\fBSOLVER_SETNAME\fR +.RS 4 +The job specified the exact name of the packages from the set\&. +.RE +.PP +\fBSOLVER_NOAUTOSET\fR +.RS 4 +Turn of automatic set flag generation for SOLVER_SOLVABLE jobs\&. +.RE +.PP +\fBSOLVER_SETMASK\fR +.RS 4 +A mask containing all the above set bits\&. +.RE +.sp +See the section about set bits for more information\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBPool *pool;\fR /* read only */ +\fI$job\fR\fB\->{pool}\fR +\fId\fR\fB\&.pool\fR +\fId\fR\fB\&.pool\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to pool\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId how;\fR /* read/write */ +\fI$job\fR\fB\->{how}\fR +\fId\fR\fB\&.how\fR +\fId\fR\fB\&.how\fR +.fi +.if n \{\ +.RE +.\} +.sp +Union of the selection, action, action modifier, and set flags\&. The selection part describes the semantics of the \(lqwhat\(rq Id\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId what;\fR /* read/write */ +\fI$job\fR\fB\->{what}\fR +\fId\fR\fB\&.what\fR +\fId\fR\fB\&.what\fR +.fi +.if n \{\ +.RE +.\} +.sp +Id describing the set of packages, the meaning depends on the selection part of the \(lqhow\(rq attribute\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *solvables()\fR +my \fI@solvables\fR \fB=\fR \fI$job\fR\fB\->solvables()\fR; +\fIsolvables\fR \fB=\fR \fIjob\fR\fB\&.solvables()\fR +\fIsolvables\fR \fB=\fR \fIjob\fR\fB\&.solvables()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the set of solvables of the job as an array of Solvable objects\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool isemptyupdate()\fR +\fI$job\fR\fB\->isemptyupdate()\fR +\fIjob\fR\fB\&.isemptyupdate()\fR +\fIjob\fR\fB\&.isemptyupdate?\fR +.fi +.if n \{\ +.RE +.\} +.sp +Convenience function to find out if the job describes an update job with no matching packages, i\&.e\&. a job that does nothing\&. Some package managers like \(lqzypper\(rq like to turn those jobs into install jobs, i\&.e\&. an update of a not\-installed package will result into the installation of the package\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$job\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIjob\fR\fB)\fR +\fIstr\fR \fB=\fR \fIjob\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing the job\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +\fBif (\fR\fI$job1\fR \fB==\fR \fI$job2\fR\fB)\fR +\fBif\fR \fIjob1\fR \fB==\fR \fIjob2\fR\fB:\fR +\fBif\fR \fIjob1\fR \fB==\fR \fIjob2\fR +.fi +.if n \{\ +.RE +.\} +.sp +Two jobs are equal if they belong to the same pool and both the \(lqhow\(rq and the \(lqwhat\(rq attributes are the same\&. +.SS "TARGETED UPDATES" +.sp +Libsolv has two modes for upgrades and distupgrade: targeted and untargeted\&. Untargeted mode means that the installed packages from the specified set will be updated to the best version\&. Targeted means that packages that can be updated to a package in the specified set will be updated to the best package of the set\&. +.sp +Here\(cqs an example to explain the subtle difference\&. Suppose that you have package A installed in version "1\&.1", "A\-1\&.2" is available in one of the repositories and there is also package "B" that obsoletes package A\&. +.sp +An untargeted update of "A" will update the installed "A\-1\&.1" to package "B", because that is the newest version (B obsoletes A and is thus newer)\&. +.sp +A targeted update of "A" will update "A\-1\&.1" to "A\-1\&.2", as the set of packages contains both "A\-1\&.1" and "A\-1\&.2", and "A\-1\&.2" is the newer one\&. +.sp +An untargeted update of "B" will do nothing, as "B" is not installed\&. +.sp +An targeted update of "B" will update "A\-1\&.1" to "B"\&. +.sp +Note that the default is to do "auto\-targeting", thus if the specified set of packages does not include an installed package, the solver will assume targeted operation even if SOLVER_TARGETED is not used\&. +.sp +This mostly matches the intent of the user, with one exception: In the example above, an update of "A\-1\&.2" will update "A\-1\&.1" to "A\-1\&.2" (targeted mode), but a second update of "A\-1\&.2" will suddenly update to "B", as untargeted mode is chosen because "A\-1\&.2" is now installed\&. +.sp +If you want to have full control over when targeting mode is chosen, turn off auto\-targeting with the SOLVER_FLAG_NO_AUTOTARGET solver option\&. In that case, all updates are considered to be untargeted unless they include the SOLVER_TARGETED flag\&. +.SS "SET BITS" +.sp +Set bits specify which parts of the specified packages where specified by the user\&. It is used by the solver when checking if an operation is allowed or not\&. For example, the solver will normally not allow the downgrade of an installed package\&. But it will not report a problem if the SOLVER_SETEVR flag is used, as it then assumes that the user specified the exact version and thus knows what he is doing\&. +.sp +So if a package "screen\-1\-1" is installed for the x86_64 architecture and version "2\-1" is only available for the i586 architecture, installing package "screen\-2\&.1" will ask the user for confirmation because of the different architecture\&. When using the Selection class to create jobs the set bits are automatically added, e\&.g\&. selecting \(lqscreen\&.i586\(rq will automatically add SOLVER_SETARCH, and thus no problem will be reported\&. +.SH "THE SOLVER CLASS" +.sp +Dependency solving is what this library is about\&. A solver object is needed for solving to store the result of the solver run\&. The solver object can be used multiple times for different jobs, reusing it allows the solver to re\-use the dependency rules it already computed\&. +.SS "CONSTANTS" +.sp +Flags to modify some of the solver\(cqs behavior: +.PP +\fBSOLVER_FLAG_ALLOW_DOWNGRADE\fR +.RS 4 +Allow the solver to downgrade packages without asking for confirmation (i\&.e\&. reporting a problem)\&. +.RE +.PP +\fBSOLVER_FLAG_ALLOW_ARCHCHANGE\fR +.RS 4 +Allow the solver to change the architecture of an installed package without asking for confirmation\&. Note that changes to/from noarch are always considered to be allowed\&. +.RE +.PP +\fBSOLVER_FLAG_ALLOW_VENDORCHANGE\fR +.RS 4 +Allow the solver to change the vendor of an installed package without asking for confirmation\&. Each vendor is part of one or more vendor equivalence classes, normally installed packages may only change their vendor if the new vendor shares at least one equivalence class\&. +.RE +.PP +\fBSOLVER_FLAG_ALLOW_NAMECHANGE\fR +.RS 4 +Allow the solver to change the name of an installed package, i\&.e\&. install a package with a different name that obsoletes the installed package\&. This option is on by default\&. +.RE +.PP +\fBSOLVER_FLAG_ALLOW_UNINSTALL\fR +.RS 4 +Allow the solver to erase installed packages to fulfill the jobs\&. This flag also includes the above flags\&. You may want to set this flag if you only have SOLVER_ERASE jobs, as in that case it\(cqs better for the user to check the transaction overview instead of approving every single package that needs to be erased\&. +.RE +.PP +\fBSOLVER_FLAG_DUP_ALLOW_DOWNGRADE\fR +.RS 4 +Like SOLVER_FLAG_ALLOW_DOWNGRADE, but used in distupgrade mode\&. +.RE +.PP +\fBSOLVER_FLAG_DUP_ALLOW_ARCHCHANGE\fR +.RS 4 +Like SOLVER_FLAG_ALLOW_ARCHCHANGE, but used in distupgrade mode\&. +.RE +.PP +\fBSOLVER_FLAG_DUP_ALLOW_VENDORCHANGE\fR +.RS 4 +Like SOLVER_FLAG_ALLOW_VENDORCHANGE, but used in distupgrade mode\&. +.RE +.PP +\fBSOLVER_FLAG_DUP_ALLOW_NAMECHANGE\fR +.RS 4 +Like SOLVER_FLAG_ALLOW_NAMECHANGE, but used in distupgrade mode\&. +.RE +.PP +\fBSOLVER_FLAG_NO_UPDATEPROVIDE\fR +.RS 4 +If multiple packages obsolete an installed package, the solver checks the provides of every such package and ignores all packages that do not provide the installed package name\&. Thus, you can have an official update candidate that provides the old name, and other packages that also obsolete the package but are not considered for updating\&. If you cannot use this feature, you can turn it off by setting this flag\&. +.RE +.PP +\fBSOLVER_FLAG_NEED_UPDATEPROVIDE\fR +.RS 4 +This is somewhat the opposite of SOLVER_FLAG_NO_UPDATEPROVIDE: Only packages that provide the installed package names are considered for updating\&. +.RE +.PP +\fBSOLVER_FLAG_SPLITPROVIDES\fR +.RS 4 +Make the solver aware of special provides of the form \(lq:\(rq used in SUSE systems to support package splits\&. +.RE +.PP +\fBSOLVER_FLAG_IGNORE_RECOMMENDED\fR +.RS 4 +Do not process optional (aka weak) dependencies\&. +.RE +.PP +\fBSOLVER_FLAG_ADD_ALREADY_RECOMMENDED\fR +.RS 4 +Install recommended or supplemented packages even if they have no connection to the current transaction\&. You can use this feature to implement a simple way for the user to install new recommended packages that were not available in the past\&. +.RE +.PP +\fBSOLVER_FLAG_NO_INFARCHCHECK\fR +.RS 4 +Turn off the inferior architecture checking that is normally done by the solver\&. Normally, the solver allows only the installation of packages from the "best" architecture if a package is available for multiple architectures\&. +.RE +.PP +\fBSOLVER_FLAG_BEST_OBEY_POLICY\fR +.RS 4 +Make the SOLVER_FORCEBEST job option consider only packages that meet the policies for installed packages, i\&.e\&. no downgrades, no architecture change, no vendor change (see the first flags of this section)\&. If the flag is not specified, the solver will enforce the installation of the best package ignoring the installed packages, which may conflict with the set policy\&. +.RE +.PP +\fBSOLVER_FLAG_NO_AUTOTARGET\fR +.RS 4 +Do not enable auto\-targeting up update and distupgrade jobs\&. See the section on targeted updates for more information\&. +.RE +.PP +\fBSOLVER_FLAG_KEEP_ORPHANS\fR +.RS 4 +Do not allow orphaned packages to be deinstalled if they get in the way of resolving other packages\&. +.RE +.PP +\fBSOLVER_FLAG_BREAK_ORPHANS\fR +.RS 4 +Ignore dependencies of orphaned packages that get in the way of resolving non\-orphaned ones\&. Setting the flag might result in no longer working packages in case they are orphaned\&. +.RE +.PP +\fBSOLVER_FLAG_FOCUS_INSTALLED\fR +.RS 4 +Resolve installed packages before resolving the given jobs\&. Setting this flag means that the solver will prefer picking a package version that fits the other installed packages over updating installed packages\&. +.RE +.PP +\fBSOLVER_FLAG_FOCUS_BEST\fR +.RS 4 +First resolve the given jobs, then the dependencies of the resulting packages, then resolve all already installed packages\&. This will result in more packages being updated as when the flag is not used\&. +.RE +.PP +\fBSOLVER_FLAG_FOCUS_NEW\fR +.RS 4 +First resolve the given jobs, then the dependencies of the resulting packages ignoreing the ones provided by currently installed packages\&. After that resolve all already installed packages\&. This is similar to SOLVER_FLAG_FOCUS_BEST but less aggressive in updating packages\&. +.RE +.PP +\fBSOLVER_FLAG_INSTALL_ALSO_UPDATES\fR +.RS 4 +Update the package if a job is already fulfilled by an installed package\&. +.RE +.PP +\fBSOLVER_FLAG_YUM_OBSOLETES\fR +.RS 4 +Turn on yum\-like package split handling\&. See the yum documentation for more details\&. +.RE +.PP +\fBSOLVER_FLAG_URPM_REORDER\fR +.RS 4 +Turn on urpm like package reordering for kernel packages\&. See the urpm documentation for more details\&. +.RE +.sp +Basic rule types: +.PP +\fBSOLVER_RULE_UNKNOWN\fR +.RS 4 +A rule of an unknown class\&. You should never encounter those\&. +.RE +.PP +\fBSOLVER_RULE_PKG\fR +.RS 4 +A rule generated because of a package dependency\&. +.RE +.PP +\fBSOLVER_RULE_UPDATE\fR +.RS 4 +A rule to implement the update policy of installed packages\&. Every installed package has an update rule that consists of the packages that may replace the installed package\&. +.RE +.PP +\fBSOLVER_RULE_FEATURE\fR +.RS 4 +Feature rules are fallback rules used when an update rule is disabled\&. They include all packages that may replace the installed package ignoring the update policy, i\&.e\&. they contain downgrades, arch changes and so on\&. Without them, the solver would simply erase installed packages if their update rule gets disabled\&. +.RE +.PP +\fBSOLVER_RULE_JOB\fR +.RS 4 +Job rules implement the job given to the solver\&. +.RE +.PP +\fBSOLVER_RULE_DISTUPGRADE\fR +.RS 4 +These are simple negative assertions that make sure that only packages are kept that are also available in one of the repositories\&. +.RE +.PP +\fBSOLVER_RULE_INFARCH\fR +.RS 4 +Infarch rules are also negative assertions, they disallow the installation of packages when there are packages of the same name but with a better architecture\&. +.RE +.PP +\fBSOLVER_RULE_CHOICE\fR +.RS 4 +Choice rules are used to make sure that the solver prefers updating to installing different packages when some dependency is provided by multiple packages with different names\&. The solver may always break choice rules, so you will not see them when a problem is found\&. +.RE +.PP +\fBSOLVER_RULE_LEARNT\fR +.RS 4 +These rules are generated by the solver to keep it from running into the same problem multiple times when it has to backtrack\&. They are the main reason why a sat solver is faster than other dependency solver implementations\&. +.RE +.sp +Special dependency rule types: +.PP +\fBSOLVER_RULE_PKG_NOT_INSTALLABLE\fR +.RS 4 +This rule was added to prevent the installation of a package of an architecture that does not work on the system\&. +.RE +.PP +\fBSOLVER_RULE_PKG_NOTHING_PROVIDES_DEP\fR +.RS 4 +The package contains a required dependency which was not provided by any package\&. +.RE +.PP +\fBSOLVER_RULE_PKG_REQUIRES\fR +.RS 4 +The package contains a required dependency which was provided by at least one package\&. +.RE +.PP +\fBSOLVER_RULE_PKG_SELF_CONFLICT\fR +.RS 4 +The package conflicts with itself\&. This is not allowed by older rpm versions\&. +.RE +.PP +\fBSOLVER_RULE_PKG_CONFLICTS\fR +.RS 4 +The package conflices with some other package\&. +.RE +.PP +\fBSOLVER_RULE_PKG_SAME_NAME\fR +.RS 4 +This rules make sure that only one version of a package is installed in the system\&. +.RE +.PP +\fBSOLVER_RULE_PKG_OBSOLETES\fR +.RS 4 +To fulfill the dependencies two packages need to be installed, but one of the packages obsoletes the other one\&. +.RE +.PP +\fBSOLVER_RULE_PKG_IMPLICIT_OBSOLETES\fR +.RS 4 +To fulfill the dependencies two packages need to be installed, but one of the packages has provides a dependency that is obsoleted by the other one\&. See the POOL_FLAG_IMPLICITOBSOLETEUSESPROVIDES flag\&. +.RE +.PP +\fBSOLVER_RULE_PKG_INSTALLED_OBSOLETES\fR +.RS 4 +To fulfill the dependencies a package needs to be installed that is obsoleted by an installed package\&. See the POOL_FLAG_NOINSTALLEDOBSOLETES flag\&. +.RE +.PP +\fBSOLVER_RULE_PKG_RECOMMENDS\fR +.RS 4 +The package contains a recommended dependency\&. +.RE +.PP +\fBSOLVER_RULE_PKG_SUPPLEMENTS\fR +.RS 4 +The package contains a dependency to specify it supplements another package\&. +.RE +.PP +\fBSOLVER_RULE_PKG_CONSTRAINS\fR +.RS 4 +The package contains a constraint against some other package (disttype conda)\&. +.RE +.PP +\fBSOLVER_RULE_JOB_NOTHING_PROVIDES_DEP\fR +.RS 4 +The user asked for installation of a package providing a specific dependency, but no available package provides it\&. +.RE +.PP +\fBSOLVER_RULE_JOB_UNKNOWN_PACKAGE\fR +.RS 4 +The user asked for installation of a package with a specific name, but no available package has that name\&. +.RE +.PP +\fBSOLVER_RULE_JOB_PROVIDED_BY_SYSTEM\fR +.RS 4 +The user asked for the erasure of a dependency that is provided by the system (i\&.e\&. for special hardware or language dependencies), this cannot be done with a job\&. +.RE +.PP +\fBSOLVER_RULE_JOB_UNSUPPORTED\fR +.RS 4 +The user asked for something that is not yet implemented, e\&.g\&. the installation of all packages at once\&. +.RE +.sp +Policy error constants +.PP +\fBPOLICY_ILLEGAL_DOWNGRADE\fR +.RS 4 +The solver ask for permission before downgrading packages\&. +.RE +.PP +\fBPOLICY_ILLEGAL_ARCHCHANGE\fR +.RS 4 +The solver ask for permission before changing the architecture of installed packages\&. +.RE +.PP +\fBPOLICY_ILLEGAL_VENDORCHANGE\fR +.RS 4 +The solver ask for permission before changing the vendor of installed packages\&. +.RE +.PP +\fBPOLICY_ILLEGAL_NAMECHANGE\fR +.RS 4 +The solver ask for permission before replacing an installed packages with a package that has a different name\&. +.RE +.sp +Solution element type constants +.PP +\fBSOLVER_SOLUTION_JOB\fR +.RS 4 +The problem can be solved by removing the specified job\&. +.RE +.PP +\fBSOLVER_SOLUTION_POOLJOB\fR +.RS 4 +The problem can be solved by removing the specified job that is defined in the pool\&. +.RE +.PP +\fBSOLVER_SOLUTION_INFARCH\fR +.RS 4 +The problem can be solved by allowing the installation of the specified package with an inferior architecture\&. +.RE +.PP +\fBSOLVER_SOLUTION_DISTUPGRADE\fR +.RS 4 +The problem can be solved by allowing to keep the specified package installed\&. +.RE +.PP +\fBSOLVER_SOLUTION_BEST\fR +.RS 4 +The problem can be solved by allowing to install the specified package that is not the best available package\&. +.RE +.PP +\fBSOLVER_SOLUTION_ERASE\fR +.RS 4 +The problem can be solved by allowing to erase the specified package\&. +.RE +.PP +\fBSOLVER_SOLUTION_REPLACE\fR +.RS 4 +The problem can be solved by allowing to replace the package with some other package\&. +.RE +.PP +\fBSOLVER_SOLUTION_REPLACE_DOWNGRADE\fR +.RS 4 +The problem can be solved by allowing to replace the package with some other package that has a lower version\&. +.RE +.PP +\fBSOLVER_SOLUTION_REPLACE_ARCHCHANGE\fR +.RS 4 +The problem can be solved by allowing to replace the package with some other package that has a different architecture\&. +.RE +.PP +\fBSOLVER_SOLUTION_REPLACE_VENDORCHANGE\fR +.RS 4 +The problem can be solved by allowing to replace the package with some other package that has a different vendor\&. +.RE +.PP +\fBSOLVER_SOLUTION_REPLACE_NAMECHANGE\fR +.RS 4 +The problem can be solved by allowing to replace the package with some other package that has a different name\&. +.RE +.sp +Reason constants +.PP +\fBSOLVER_REASON_UNRELATED\fR +.RS 4 +The package status did not change as it was not related to any job\&. +.RE +.PP +\fBSOLVER_REASON_UNIT_RULE\fR +.RS 4 +The package was installed/erased/kept because of a unit rule, i\&.e\&. a rule where all literals but one were false\&. +.RE +.PP +\fBSOLVER_REASON_KEEP_INSTALLED\fR +.RS 4 +The package was chosen when trying to keep as many packages installed as possible\&. +.RE +.PP +\fBSOLVER_REASON_RESOLVE_JOB\fR +.RS 4 +The decision happened to fulfill a job rule\&. +.RE +.PP +\fBSOLVER_REASON_UPDATE_INSTALLED\fR +.RS 4 +The decision happened to fulfill a package update request\&. +.RE +.PP +\fBSOLVER_REASON_CLEANDEPS_ERASE\fR +.RS 4 +The package was erased when cleaning up dependencies from other erased packages\&. +.RE +.PP +\fBSOLVER_REASON_RESOLVE\fR +.RS 4 +The package was installed to fulfill package dependencies\&. +.RE +.PP +\fBSOLVER_REASON_WEAKDEP\fR +.RS 4 +The package was installed because of a weak dependency (Recommends or Supplements)\&. +.RE +.PP +\fBSOLVER_REASON_RESOLVE_ORPHAN\fR +.RS 4 +The decision about the package was made when deciding the fate of orphaned packages\&. +.RE +.PP +\fBSOLVER_REASON_RECOMMENDED\fR +.RS 4 +This is a special case of SOLVER_REASON_WEAKDEP\&. +.RE +.PP +\fBSOLVER_REASON_SUPPLEMENTED\fR +.RS 4 +This is a special case of SOLVER_REASON_WEAKDEP\&. +.RE +.PP +\fBSOLVER_REASON_UNSOLVABLE\fR +.RS 4 +This is a special case where a rule cannot be fulfilled\&. +.RE +.PP +\fBSOLVER_REASON_PREMISE\fR +.RS 4 +This is a special case for the premises of learnt rules\&. +.RE +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBPool *pool;\fR /* read only */ +\fI$job\fR\fB\->{pool}\fR +\fId\fR\fB\&.pool\fR +\fId\fR\fB\&.pool\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to pool\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint set_flag(int\fR \fIflag\fR\fB, int\fR \fIvalue\fR\fB)\fR +my \fI$oldvalue\fR \fB=\fR \fI$solver\fR\fB\->set_flag(\fR\fI$flag\fR\fB,\fR \fI$value\fR\fB)\fR; +\fIoldvalue\fR \fB=\fR \fIsolver\fR\fB\&.set_flag(\fR\fIflag\fR\fB,\fR \fIvalue\fR\fB)\fR +\fIoldvalue\fR \fB=\fR \fIsolver\fR\fB\&.set_flag(\fR\fIflag\fR\fB,\fR \fIvalue\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint get_flag(int\fR \fIflag\fR\fB)\fR +my \fI$value\fR \fB=\fR \fI$solver\fR\fB\->get_flag(\fR\fI$flag\fR\fB)\fR; +\fIvalue\fR \fB=\fR \fIsolver\fR\fB\&.get_flag(\fR\fIflag\fR\fB)\fR +\fIvalue\fR \fB=\fR \fIsolver\fR\fB\&.get_flag(\fR\fIflag\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Set/get a solver specific flag\&. The flags define the policies the solver has to obey\&. The flags are explained in the CONSTANTS section of this class\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBProblem *solve(Job *\fR\fIjobs\fR\fB)\fR +my \fI@problems\fR \fB=\fR \fI$solver\fR\fB\->solve(\e\fR\fI@jobs\fR\fB)\fR; +\fIproblems\fR \fB=\fR \fIsolver\fR\fB\&.solve(\fR\fIjobs\fR\fB)\fR +\fIproblems\fR \fB=\fR \fIsolver\fR\fB\&.solve(\fR\fIjobs\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Solve a problem specified in the job list (plus the jobs defined in the pool)\&. Returns an array of problems that need user interaction, or an empty array if no problems were encountered\&. See the Problem class on how to deal with problems\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBTransaction transaction()\fR +my \fI$trans\fR \fB=\fR \fI$solver\fR\fB\->transaction()\fR; +\fItrans\fR \fB=\fR \fIsolver\fR\fB\&.transaction()\fR +\fItrans\fR \fB=\fR \fIsolver\fR\fB\&.transaction()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the transaction to implement the calculated package changes\&. A transaction is available even if problems were found, this is useful for interactive user interfaces that show both the job result and the problems\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *get_recommended(bool\fR \fInoselected\fR\fB=0)\fR +my \fI@solvables\fR \fB=\fR \fI$solver\fR\fB\->get_recommended()\fR; +\fIsolvables\fR \fB=\fR \fIsolver\fR\fB\&.get_recommended()\fR +\fIsolvables\fR \fB=\fR \fIsolver\fR\fB\&.get_recommended()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all solvables that are recommended by the solver run result\&. This includes solvables included in the result; set noselected if you want to filter those\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *get_suggested(bool\fR \fInoselected\fR\fB=0)\fR +my \fI@solvables\fR \fB=\fR \fI$solver\fR\fB\->get_suggested()\fR; +\fIsolvables\fR \fB=\fR \fIsolver\fR\fB\&.get_suggested()\fR +\fIsolvables\fR \fB=\fR \fIsolver\fR\fB\&.get_suggested()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all solvables that are suggested by the solver run result\&. This includes solvables included in the result; set noselected if you want to filter those\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fIDecision\fR \fB= get_decision(Solvable *\fR\fIs\fR\fB)\fR +my \fI$decision\fR \fB=\fR \fI$solver\fR\fB\->get_decision(\fR\fI$solvable\fR\fB)\fR; +\fIdecision\fR \fB=\fR \fIsolver\fR\fB\&.get_decision(\fR\fIsolvable\fR\fB)\fR; +\fIdecision\fR \fB=\fR \fIsolver\fR\fB\&.get_decision(\fR\fIsolvable\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return a decision object that describes why a specific solvable was installed or erased\&. See the Decision class for more information\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDecision *get_decisionlist(Solvable *\fR\fIs\fR\fB)\fR +my \fI@decisions\fR \fB=\fR \fI$solver\fR\fB\->get_decisionlist(\fR\fI$solvable\fR\fB)\fR; +\fIdecisions\fR \fB=\fR \fIsolver\fR\fB\&.get_decisionlist(\fR\fIsolvable\fR\fB)\fR +\fIdecisions\fR \fB=\fR \fIsolver\fR\fB\&.get_decisionlist(\fR\fIsolvable\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a list of decisions that caused the specific solvable to be installed or erased\&. This is usually more useful than the get_decision() method, as it returns every involved decision instead of just a single one\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBAlternative *alternatives()\fR +my \fI@alternatives\fR \fB=\fR \fI$solver\fR\fB\->alternatives()\fR; +\fIalternatives\fR \fB=\fR \fIsolver\fR\fB\&.alternatives()\fR +\fIalternatives\fR \fB=\fR \fIsolver\fR\fB\&.alternatives()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all alternatives recorded in the solver run\&. See the Alternative class for more information\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint alternatives_count()\fR +my \fI$cnt\fR \fB=\fR \fI$solver\fR\fB\->alternatives_count()\fR; +\fIcnt\fR \fB=\fR \fIsolver\fR\fB\&.alternatives_count()\fR +\fIcnt\fR \fB=\fR \fIsolver\fR\fB\&.alternatives_count()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the number of alternatives without creating alternative objects\&. +.SH "THE PROBLEM CLASS" +.sp +Problems are the way of the solver to interact with the user\&. You can simply list all problems and terminate your program, but a better way is to present solutions to the user and let him pick the ones he likes\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolver *solv;\fR /* read only */ +\fI$problem\fR\fB\->{solv}\fR +\fIproblem\fR\fB\&.solv\fR +\fIproblem\fR\fB\&.solv\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to solver object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId id;\fR /* read only */ +\fI$problem\fR\fB\->{id}\fR +\fIproblem\fR\fB\&.id\fR +\fIproblem\fR\fB\&.id\fR +.fi +.if n \{\ +.RE +.\} +.sp +Id of the problem\&. The first problem has Id 1, they are numbered consecutively\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRule findproblemrule()\fR +my \fI$probrule\fR \fB=\fR \fI$problem\fR\fB\->findproblemrule()\fR; +\fIprobrule\fR \fB=\fR \fIproblem\fR\fB\&.findproblemrule()\fR +\fIprobrule\fR \fB=\fR \fIproblem\fR\fB\&.findproblemrule()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the rule that caused the problem\&. Of course in most situations there is no single responsible rule, but many rules that interconnect with each created the problem\&. Nevertheless, the solver uses some heuristic approach to find a rule that somewhat describes the problem best to the user\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRule *findallproblemrules(bool\fR \fIunfiltered\fR \fB= 0)\fR +my \fI@probrules\fR \fB=\fR \fI$problem\fR\fB\->findallproblemrules()\fR; +\fIprobrules\fR \fB=\fR \fIproblem\fR\fB\&.findallproblemrules()\fR +\fIprobrules\fR \fB=\fR \fIproblem\fR\fB\&.findallproblemrules()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all rules responsible for the problem\&. The returned set of rules contains all the needed information why there was a problem, but it\(cqs hard to present them to the user in a sensible way\&. The default is to filter out all update and job rules (unless the returned rules only consist of those types)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDecision *get_decisionlist()\fR +my \fI@decisions\fR \fB=\fR \fI$problem\fR\fB\->get_decisionlist()\fR; +\fIdecisions\fR \fB=\fR \fIproblem\fR\fB\&.get_decisionlist()\fR +\fIdecisions\fR \fB=\fR \fIproblem\fR\fB\&.get_decisionlist()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a list of decisions proving the problem\&. This is somewhat similar to the findallproblemrules(), but the output is in an order that makes it easier to understand why the solver could not find a solution\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDecisionset *get_decisionsetlist()\fR +my \fI@decisionsets\fR \fB=\fR \fI$problem\fR\fB\->get_decisionsetlist()\fR; +\fIdecisionsets\fR \fB=\fR \fIproblem\fR\fB\&.get_decisionsetlist()\fR +\fIdecisionsets\fR \fB=\fR \fIproblem\fR\fB\&.get_decisionsetlist()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Like the get_decisionlist() method, but the decisions are merged into individual sets\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRule *get_learnt()\fR +my \fI@learnt\fR \fB=\fR \fI$problem\fR\fB\->get_learnt()\fR; +\fIlearnt\fR \fB=\fR \fIproblem\fR\fB\&.get_learnt()\fR +\fIlearnt\fR \fB=\fR \fIproblem\fR\fB\&.get_lerant()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a list of learnt rules that are part of the problem proof\&. This is useful for presenting a complete proof to the user\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolution *solutions()\fR +my \fI@solutions\fR \fB=\fR \fI$problem\fR\fB\->solutions()\fR; +\fIsolutions\fR \fB=\fR \fIproblem\fR\fB\&.solutions()\fR +\fIsolutions\fR \fB=\fR \fIproblem\fR\fB\&.solutions()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return an array containing multiple possible solutions to fix the problem\&. See the solution class for more information\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint solution_count()\fR +my \fI$cnt\fR \fB=\fR \fI$problem\fR\fB\->solution_count()\fR; +\fIcnt\fR \fB=\fR \fIproblem\fR\fB\&.solution_count()\fR +\fIcnt\fR \fB=\fR \fIproblem\fR\fB\&.solution_count()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the number of solutions without creating solution objects\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$problem\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIproblem\fR\fB)\fR +\fIstr\fR \fB=\fR \fIproblem\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing the problem\&. This is a convenience function, it is a shorthand for calling findproblemrule(), then ruleinfo() on the problem rule and problemstr() on the ruleinfo object\&. +.SH "THE RULE CLASS" +.sp +Rules are the basic block of sat solving\&. Each package dependency gets translated into one or multiple rules\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolver *solv;\fR /* read only */ +\fI$rule\fR\fB\->{solv}\fR +\fIrule\fR\fB\&.solv\fR +\fIrule\fR\fB\&.solv\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to solver object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId id;\fR /* read only */ +\fI$rule\fR\fB\->{id}\fR +\fIrule\fR\fB\&.id\fR +\fIrule\fR\fB\&.id\fR +.fi +.if n \{\ +.RE +.\} +.sp +The id of the rule\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint type;\fR /* read only */ +\fI$rule\fR\fB\->{type}\fR +\fIrule\fR\fB\&.type\fR +\fIrule\fR\fB\&.type\fR +.fi +.if n \{\ +.RE +.\} +.sp +The basic type of the rule\&. See the constant section of the solver class for the type list\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRuleinfo info()\fR +my \fI$ruleinfo\fR \fB=\fR \fI$rule\fR\fB\->info()\fR; +\fIruleinfo\fR \fB=\fR \fIrule\fR\fB\&.info()\fR +\fIruleinfo\fR \fB=\fR \fIrule\fR\fB\&.info()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a Ruleinfo object that contains information about why the rule was created\&. But see the allinfos() method below\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRuleinfo *allinfos()\fR +my \fI@ruleinfos\fR \fB=\fR \fI$rule\fR\fB\->allinfos()\fR; +\fIruleinfos\fR \fB=\fR \fIrule\fR\fB\&.allinfos()\fR +\fIruleinfos\fR \fB=\fR \fIrule\fR\fB\&.allinfos()\fR +.fi +.if n \{\ +.RE +.\} +.sp +As the same dependency rule can get created because of multiple dependencies, one Ruleinfo is not enough to describe the reason\&. Thus the allinfos() method returns an array of all infos about a rule\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDecision *get_decisionlist()\fR +my \fI@decisions\fR \fB=\fR \fI$rule\fR\fB\->get_decisionlist()\fR; +\fIdecisions\fR \fB=\fR \fIrule\fR\fB\&.get_decisionlist()\fR +\fIdecisions\fR \fB=\fR \fIrule\fR\fB\&.get_decisionlist()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a list of decisions proving a learnt rule\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDecision *get_decisionsetlist()\fR +my \fI@decisionsets\fR \fB=\fR \fI$rule\fR\fB\->get_decisionsetlist()\fR; +\fIdecisionsets\fR \fB=\fR \fIrule\fR\fB\&.get_decisionsetlist()\fR +\fIdecisionsets\fR \fB=\fR \fIrule\fR\fB\&.get_decisionsetlist()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Like the get_decisionlist() method, but the decisions are merged into individual sets\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRule *get_learnt()\fR +my \fI@learnt\fR \fB=\fR \fI$rule\fR\fB\->get_learnt()\fR; +\fIlearnt\fR \fB=\fR \fIrule\fR\fB\&.get_learnt()\fR +\fIlearnt\fR \fB=\fR \fIrule\fR\fB\&.get_lerant()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a list of learnt rules that are part of the learnt rule proof\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +\fBif (\fR\fI$rule1\fR \fB==\fR \fI$rule2\fR\fB)\fR +\fBif\fR \fIrule1\fR \fB==\fR \fIrule2\fR\fB:\fR +\fBif\fR \fIrule1\fR \fB==\fR \fIrule2\fR +.fi +.if n \{\ +.RE +.\} +.sp +Two rules are equal if they belong to the same solver and have the same id\&. +.SH "THE RULEINFO CLASS" +.sp +A Ruleinfo describes one reason why a rule was created\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolver *solv;\fR /* read only */ +\fI$ruleinfo\fR\fB\->{solv}\fR +\fIruleinfo\fR\fB\&.solv\fR +\fIruleinfo\fR\fB\&.solv\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to solver object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint type;\fR /* read only */ +\fI$ruleinfo\fR\fB\->{type}\fR +\fIruleinfo\fR\fB\&.type\fR +\fIruleinfo\fR\fB\&.type\fR +.fi +.if n \{\ +.RE +.\} +.sp +The type of the ruleinfo\&. See the constant section of the solver class for the rule type list and the special type list\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDep *dep;\fR /* read only */ +\fI$ruleinfo\fR\fB\->{dep}\fR +\fIruleinfo\fR\fB\&.dep\fR +\fIruleinfo\fR\fB\&.dep\fR +.fi +.if n \{\ +.RE +.\} +.sp +The dependency leading to the creation of the rule\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDep *dep_id;\fR /* read only */ +\fI$ruleinfo\fR\fB\->{\fR\fIdep_id\fR\fB}\fR +\fIruleinfo\fR\fB\&.dep_id\fR +\fIruleinfo\fR\fB\&.dep_id\fR +.fi +.if n \{\ +.RE +.\} +.sp +The Id of the dependency leading to the creation of the rule, or zero\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *solvable;\fR /* read only */ +\fI$ruleinfo\fR\fB\->{solvable}\fR +\fIruleinfo\fR\fB\&.solvable\fR +\fIruleinfo\fR\fB\&.solvable\fR +.fi +.if n \{\ +.RE +.\} +.sp +The involved Solvable, e\&.g\&. the one containing the dependency\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *othersolvable;\fR /* read only */ +\fI$ruleinfo\fR\fB\->{othersolvable}\fR +\fIruleinfo\fR\fB\&.othersolvable\fR +\fIruleinfo\fR\fB\&.othersolvable\fR +.fi +.if n \{\ +.RE +.\} +.sp +The other involved Solvable (if any), e\&.g\&. the one providing the dependency\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *problemstr()\fR; +my \fI$str\fR \fB=\fR \fI$ruleinfo\fR\fB\->problemstr()\fR; +\fIstr\fR \fB=\fR \fIruleinfo\fR\fB\&.problemstr()\fR +\fIstr\fR \fB=\fR \fIruleinfo\fR\fB\&.problemstr()\fR +.fi +.if n \{\ +.RE +.\} +.sp +A string describing the ruleinfo from a problem perspective\&. This probably only makes sense if the rule is part of a problem\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$ruleinfo\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIruleinfo\fR\fB)\fR +\fIstr\fR \fB=\fR \fIruleinfo\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +A string describing the ruleinfo, i\&.e\&. the reason why the corresponding rule has been created\&. +.SH "THE SOLUTION CLASS" +.sp +A solution solves one specific problem\&. It consists of multiple solution elements that all need to be executed\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolver *solv;\fR /* read only */ +\fI$solution\fR\fB\->{solv}\fR +\fIsolution\fR\fB\&.solv\fR +\fIsolution\fR\fB\&.solv\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to solver object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId problemid;\fR /* read only */ +\fI$solution\fR\fB\->{problemid}\fR +\fIsolution\fR\fB\&.problemid\fR +\fIsolution\fR\fB\&.problemid\fR +.fi +.if n \{\ +.RE +.\} +.sp +Id of the problem the solution solves\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId id;\fR /* read only */ +\fI$solution\fR\fB\->{id}\fR +\fIsolution\fR\fB\&.id\fR +\fIsolution\fR\fB\&.id\fR +.fi +.if n \{\ +.RE +.\} +.sp +Id of the solution\&. The first solution has Id 1, they are numbered consecutively\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolutionelement *elements(bool\fR \fIexpandreplaces\fR \fB= 0)\fR +my \fI@solutionelements\fR \fB=\fR \fI$solution\fR\fB\->elements()\fR; +\fIsolutionelements\fR \fB=\fR \fIsolution\fR\fB\&.elements()\fR +\fIsolutionelements\fR \fB=\fR \fIsolution\fR\fB\&.elements()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return an array containing the elements describing what needs to be done to implement the specific solution\&. If expandreplaces is true, elements of type SOLVER_SOLUTION_REPLACE will be replaced by one or more elements replace elements describing the policy mismatches\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint element_count()\fR +my \fI$cnt\fR \fB=\fR \fI$solution\fR\fB\->solution_count()\fR; +\fIcnt\fR \fB=\fR \fIsolution\fR\fB\&.element_count()\fR +\fIcnt\fR \fB=\fR \fIsolution\fR\fB\&.element_count()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the number of solution elements without creating objects\&. Note that the count does not match the number of objects returned by the elements() method of expandreplaces is set to true\&. +.SH "THE SOLUTIONELEMENT CLASS" +.sp +A solution element describes a single action of a solution\&. The action is always either to remove one specific job or to add a new job that installs or erases a single specific package\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolver *solv;\fR /* read only */ +\fI$solutionelement\fR\fB\->{solv}\fR +\fIsolutionelement\fR\fB\&.solv\fR +\fIsolutionelement\fR\fB\&.solv\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to solver object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId problemid;\fR /* read only */ +\fI$solutionelement\fR\fB\->{problemid}\fR +\fIsolutionelement\fR\fB\&.problemid\fR +\fIsolutionelement\fR\fB\&.problemid\fR +.fi +.if n \{\ +.RE +.\} +.sp +Id of the problem the element (partly) solves\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId solutionid;\fR /* read only */ +\fI$solutionelement\fR\fB\->{solutionid}\fR +\fIsolutionelement\fR\fB\&.solutionid\fR +\fIsolutionelement\fR\fB\&.solutionid\fR +.fi +.if n \{\ +.RE +.\} +.sp +Id of the solution the element is a part of\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId id;\fR /* read only */ +\fI$solutionelement\fR\fB\->{id}\fR +\fIsolutionelement\fR\fB\&.id\fR +\fIsolutionelement\fR\fB\&.id\fR +.fi +.if n \{\ +.RE +.\} +.sp +Id of the solution element\&. The first element has Id 1, they are numbered consecutively\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId type;\fR /* read only */ +\fI$solutionelement\fR\fB\->{type}\fR +\fIsolutionelement\fR\fB\&.type\fR +\fIsolutionelement\fR\fB\&.type\fR +.fi +.if n \{\ +.RE +.\} +.sp +Type of the solution element\&. See the constant section of the solver class for the existing types\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *solvable;\fR /* read only */ +\fI$solutionelement\fR\fB\->{solvable}\fR +\fIsolutionelement\fR\fB\&.solvable\fR +\fIsolutionelement\fR\fB\&.solvable\fR +.fi +.if n \{\ +.RE +.\} +.sp +The installed solvable that needs to be replaced for replacement elements\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *replacement;\fR /* read only */ +\fI$solutionelement\fR\fB\->{replacement}\fR +\fIsolutionelement\fR\fB\&.replacement\fR +\fIsolutionelement\fR\fB\&.replacement\fR +.fi +.if n \{\ +.RE +.\} +.sp +The solvable that needs to be installed to fix the problem\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint jobidx;\fR /* read only */ +\fI$solutionelement\fR\fB\->{jobidx}\fR +\fIsolutionelement\fR\fB\&.jobidx\fR +\fIsolutionelement\fR\fB\&.jobidx\fR +.fi +.if n \{\ +.RE +.\} +.sp +The index of the job that needs to be removed to fix the problem, or \-1 if the element is of another type\&. Note that it\(cqs better to change the job to SOLVER_NOOP type so that the numbering of other elements does not get disturbed\&. This method works both for types SOLVER_SOLUTION_JOB and SOLVER_SOLUTION_POOLJOB\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolutionelement *replaceelements()\fR +my \fI@solutionelements\fR \fB=\fR \fI$solutionelement\fR\fB\->replaceelements()\fR; +\fIsolutionelements\fR \fB=\fR \fIsolutionelement\fR\fB\&.replaceelements()\fR +\fIsolutionelements\fR \fB=\fR \fIsolutionelement\fR\fB\&.replaceelements()\fR +.fi +.if n \{\ +.RE +.\} +.sp +If the solution element is of type SOLVER_SOLUTION_REPLACE, return an array of elements describing the policy mismatches, otherwise return a copy of the element\&. See also the \(lqexpandreplaces\(rq option in the solution\(cqs elements() method\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint illegalreplace()\fR +my \fI$illegal\fR \fB=\fR \fI$solutionelement\fR\fB\->illegalreplace()\fR; +\fIillegal\fR \fB=\fR \fIsolutionelement\fR\fB\&.illegalreplace()\fR +\fIillegal\fR \fB=\fR \fIsolutionelement\fR\fB\&.illegalreplace()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return an integer that contains the policy mismatch bits or\-ed together, or zero if there was no policy mismatch\&. See the policy error constants in the solver class\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBJob Job()\fR +my \fI$job\fR \fB=\fR \fI$solutionelement\fR\fB\->Job()\fR; +\fIillegal\fR \fB=\fR \fIsolutionelement\fR\fB\&.Job()\fR +\fIillegal\fR \fB=\fR \fIsolutionelement\fR\fB\&.Job()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a job that implements the solution element\&. Add this job to the array of jobs for all elements of type different to SOLVER_SOLUTION_JOB and SOLVER_SOLUTION_POOLJOB\&. For the latter two, a SOLVER_NOOB Job is created, you should replace the old job with the new one\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$solutionelement\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIsolutionelement\fR\fB)\fR +\fIstr\fR \fB=\fR \fIsolutionelement\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +A string describing the change the solution element consists of\&. +.SH "THE TRANSACTION CLASS" +.sp +Transactions describe the output of a solver run\&. A transaction contains a number of transaction elements, each either the installation of a new package or the removal of an already installed package\&. The Transaction class supports a classify() method that puts the elements into different groups so that a transaction can be presented to the user in a meaningful way\&. +.SS "CONSTANTS" +.sp +Transaction element types, both active and passive +.PP +\fBSOLVER_TRANSACTION_IGNORE\fR +.RS 4 +This element does nothing\&. Used to map element types that do not match the view mode\&. +.RE +.PP +\fBSOLVER_TRANSACTION_INSTALL\fR +.RS 4 +This element installs a package\&. +.RE +.PP +\fBSOLVER_TRANSACTION_ERASE\fR +.RS 4 +This element erases a package\&. +.RE +.PP +\fBSOLVER_TRANSACTION_MULTIINSTALL\fR +.RS 4 +This element installs a package with a different version keeping the other versions installed\&. +.RE +.PP +\fBSOLVER_TRANSACTION_MULTIREINSTALL\fR +.RS 4 +This element reinstalls an installed package keeping the other versions installed\&. +.RE +.sp +Transaction element types, active view +.PP +\fBSOLVER_TRANSACTION_REINSTALL\fR +.RS 4 +This element re\-installs a package, i\&.e\&. installs the same package again\&. +.RE +.PP +\fBSOLVER_TRANSACTION_CHANGE\fR +.RS 4 +This element installs a package with same name, version, architecture but different content\&. +.RE +.PP +\fBSOLVER_TRANSACTION_UPGRADE\fR +.RS 4 +This element installs a newer version of an installed package\&. +.RE +.PP +\fBSOLVER_TRANSACTION_DOWNGRADE\fR +.RS 4 +This element installs an older version of an installed package\&. +.RE +.PP +\fBSOLVER_TRANSACTION_OBSOLETES\fR +.RS 4 +This element installs a package that obsoletes an installed package\&. +.RE +.sp +Transaction element types, passive view +.PP +\fBSOLVER_TRANSACTION_REINSTALLED\fR +.RS 4 +This element re\-installs a package, i\&.e\&. installs the same package again\&. +.RE +.PP +\fBSOLVER_TRANSACTION_CHANGED\fR +.RS 4 +This element replaces an installed package with one of the same name, version, architecture but different content\&. +.RE +.PP +\fBSOLVER_TRANSACTION_UPGRADED\fR +.RS 4 +This element replaces an installed package with a new version\&. +.RE +.PP +\fBSOLVER_TRANSACTION_DOWNGRADED\fR +.RS 4 +This element replaces an installed package with an old version\&. +.RE +.PP +\fBSOLVER_TRANSACTION_OBSOLETED\fR +.RS 4 +This element replaces an installed package with a package that obsoletes it\&. +.RE +.sp +Pseudo element types for showing extra information used by classify() +.PP +\fBSOLVER_TRANSACTION_ARCHCHANGE\fR +.RS 4 +This element replaces an installed package with a package of a different architecture\&. +.RE +.PP +\fBSOLVER_TRANSACTION_VENDORCHANGE\fR +.RS 4 +This element replaces an installed package with a package of a different vendor\&. +.RE +.sp +Transaction mode flags +.PP +\fBSOLVER_TRANSACTION_SHOW_ACTIVE\fR +.RS 4 +Filter for active view types\&. The default is to return passive view type, i\&.e\&. to show how the installed packages get changed\&. +.RE +.PP +\fBSOLVER_TRANSACTION_SHOW_OBSOLETES\fR +.RS 4 +Do not map the obsolete view type into INSTALL/ERASE elements\&. +.RE +.PP +\fBSOLVER_TRANSACTION_SHOW_ALL\fR +.RS 4 +If multiple packages replace an installed package, only the best of them is kept as OBSOLETE element, the other ones are mapped to INSTALL/ERASE elements\&. This is because most applications want to show just one package replacing the installed one\&. The SOLVER_TRANSACTION_SHOW_ALL makes the library keep all OBSOLETE elements\&. +.RE +.PP +\fBSOLVER_TRANSACTION_SHOW_MULTIINSTALL\fR +.RS 4 +The library maps MULTIINSTALL elements to simple INSTALL elements\&. This flag can be used to disable the mapping\&. +.RE +.PP +\fBSOLVER_TRANSACTION_CHANGE_IS_REINSTALL\fR +.RS 4 +Use this flag if you want to map CHANGE elements to the REINSTALL type\&. +.RE +.PP +\fBSOLVER_TRANSACTION_OBSOLETE_IS_UPGRADE\fR +.RS 4 +Use this flag if you want to map OBSOLETE elements to the UPGRADE type\&. +.RE +.PP +\fBSOLVER_TRANSACTION_MERGE_ARCHCHANGES\fR +.RS 4 +Do not add extra categories for every architecture change, instead cumulate them in one category\&. +.RE +.PP +\fBSOLVER_TRANSACTION_MERGE_VENDORCHANGES\fR +.RS 4 +Do not add extra categories for every vendor change, instead cumulate them in one category\&. +.RE +.PP +\fBSOLVER_TRANSACTION_RPM_ONLY\fR +.RS 4 +Special view mode that just returns IGNORE, ERASE, INSTALL, MULTIINSTALL elements\&. Useful if you want to find out what to feed to the underlying package manager\&. +.RE +.sp +Transaction order flags +.PP +\fBSOLVER_TRANSACTION_KEEP_ORDERDATA\fR +.RS 4 +Do not throw away the dependency graph used for ordering the transaction\&. This flag is needed if you want to do manual ordering\&. +.RE +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBPool *pool;\fR /* read only */ +\fI$trans\fR\fB\->{pool}\fR +\fItrans\fR\fB\&.pool\fR +\fItrans\fR\fB\&.pool\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to pool\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool isempty()\fR +\fI$trans\fR\fB\->isempty()\fR +\fItrans\fR\fB\&.isempty()\fR +\fItrans\fR\fB\&.isempty?\fR +.fi +.if n \{\ +.RE +.\} +.sp +Returns true if the transaction does not do anything, i\&.e\&. has no elements\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *newsolvables()\fR +my \fI@newsolvables\fR \fB=\fR \fI$trans\fR\fB\->newsolvables()\fR; +\fInewsolvables\fR \fB=\fR \fItrans\fR\fB\&.newsolvables()\fR +\fInewsolvables\fR \fB=\fR \fItrans\fR\fB\&.newsolvables()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all packages that are to be installed by the transaction\&. These are the packages that need to be downloaded from the repositories\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *keptsolvables()\fR +my \fI@keptsolvables\fR \fB=\fR \fI$trans\fR\fB\->keptsolvables()\fR; +\fIkeptsolvables\fR \fB=\fR \fItrans\fR\fB\&.keptsolvables()\fR +\fIkeptsolvables\fR \fB=\fR \fItrans\fR\fB\&.keptsolvables()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all installed packages that the transaction will keep installed\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *steps()\fR +my \fI@steps\fR \fB=\fR \fI$trans\fR\fB\->steps()\fR; +\fIsteps\fR \fB=\fR \fItrans\fR\fB\&.steps()\fR +\fIsteps\fR \fB=\fR \fItrans\fR\fB\&.steps()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all solvables that need to be installed (if the returned solvable is not already installed) or erased (if the returned solvable is installed)\&. A step is also called a transaction element\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint steptype(Solvable *\fR\fIsolvable\fR\fB, int\fR \fImode\fR\fB)\fR +my \fI$type\fR \fB=\fR \fI$trans\fR\fB\->steptype(\fR\fI$solvable\fR\fB,\fR \fI$mode\fR\fB)\fR; +\fItype\fR \fB=\fR \fItrans\fR\fB\&.steptype(\fR\fIsolvable\fR\fB,\fR \fImode\fR\fB)\fR +\fItype\fR \fB=\fR \fItrans\fR\fB\&.steptype(\fR\fIsolvable\fR\fB,\fR \fImode\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the transaction type of the specified solvable\&. See the CONSTANTS sections for the mode argument flags and the list of returned types\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBTransactionClass *classify(int\fR \fImode\fR \fB= 0)\fR +my \fI@classes\fR \fB=\fR \fI$trans\fR\fB\->classify()\fR; +\fIclasses\fR \fB=\fR \fItrans\fR\fB\&.classify()\fR +\fIclasses\fR \fB=\fR \fItrans\fR\fB\&.classify()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Group the transaction elements into classes so that they can be displayed in a structured way\&. You can use various mapping mode flags to tweak the result to match your preferences, see the mode argument flag in the CONSTANTS section\&. See the TransactionClass class for how to deal with the returned objects\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable othersolvable(Solvable *\fR\fIsolvable\fR\fB)\fR +my \fI$other\fR \fB=\fR \fI$trans\fR\fB\->othersolvable(\fR\fI$solvable\fR\fB)\fR; +\fIother\fR \fB=\fR \fItrans\fR\fB\&.othersolvable(\fR\fIsolvable\fR\fB)\fR +\fIother\fR \fB=\fR \fItrans\fR\fB\&.othersolvable(\fR\fIsolvable\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the \(lqother\(rq solvable for a given solvable\&. For installed packages the other solvable is the best package with the same name that replaces the installed package, or the best package of the obsoleting packages if the package does not get replaced by one with the same name\&. +.sp +For to be installed packages, the \(lqother\(rq solvable is the best installed package with the same name that will be replaced, or the best packages of all the packages that are obsoleted if the new package does not replace a package with the same name\&. +.sp +Thus, the \(lqother\(rq solvable is normally the package that is also shown for a given package\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *allothersolvables(Solvable *\fR\fIsolvable\fR\fB)\fR +my \fI@others\fR \fB=\fR \fI$trans\fR\fB\->allothersolvables(\fR\fI$solvable\fR\fB)\fR; +\fIothers\fR \fB=\fR \fItrans\fR\fB\&.allothersolvables(\fR\fIsolvable\fR\fB)\fR +\fIothers\fR \fB=\fR \fItrans\fR\fB\&.allothersolvables(\fR\fIsolvable\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +For installed packages, returns all of the packages that replace us\&. For to be installed packages, returns all of the packages that the new package replaces\&. The special \(lqother\(rq solvable is always the first entry of the returned array\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBlong long calc_installsizechange()\fR +my \fI$change\fR \fB=\fR \fI$trans\fR\fB\->calc_installsizechange()\fR; +\fIchange\fR \fB=\fR \fItrans\fR\fB\&.calc_installsizechange()\fR +\fIchange\fR \fB=\fR \fItrans\fR\fB\&.calc_installsizechange()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the size change of the installed system in kilobytes (kibibytes)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid order(int\fR \fIflags\fR \fB= 0)\fR +\fI$trans\fR\fB\->order()\fR; +\fItrans\fR\fB\&.order()\fR +\fItrans\fR\fB\&.order()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Order the steps in the transactions so that dependent packages are updated before packages that depend on them\&. For rpm, you can also use rpmlib\(cqs ordering functionality, debian\(cqs dpkg does not provide a way to order a transaction\&. +.SS "ACTIVE/PASSIVE VIEW" +.sp +Active view lists what new packages get installed, while passive view shows what happens to the installed packages\&. Most often there\(cqs not much difference between the two modes, but things get interesting if multiple packages get replaced by one new package\&. Say you have installed packages A\-1\-1 and B\-1\-1, and now install A\-2\-1 which has a new dependency that obsoletes B\&. The transaction elements will be +.sp +.if n \{\ +.RS 4 +.\} +.nf +updated A\-1\-1 (other: A\-2\-1) +obsoleted B\-1\-1 (other: A\-2\-1) +.fi +.if n \{\ +.RE +.\} +.sp +in passive mode, but +.sp +.if n \{\ +.RS 4 +.\} +.nf +update A\-2\-1 (other: A\-1\-1) +erase B +.fi +.if n \{\ +.RE +.\} +.sp +in active mode\&. If the mode contains SOLVER_TRANSACTION_SHOW_ALL, the passive mode list will be unchanged but the active mode list will just contain A\-2\-1\&. +.SH "THE TRANSACTIONCLASS CLASS" +.sp +Objects of this type are returned by the classify() Transaction method\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBTransaction *transaction;\fR /* read only */ +\fI$class\fR\fB\->{transaction}\fR +\fIclass\fR\fB\&.transaction\fR +\fIclass\fR\fB\&.transaction\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to transaction object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint type;\fR /* read only */ +\fI$class\fR\fB\->{type}\fR +\fIclass\fR\fB\&.type\fR +\fIclass\fR\fB\&.type\fR +.fi +.if n \{\ +.RE +.\} +.sp +The type of the transaction elements in the class\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint count;\fR /* read only */ +\fI$class\fR\fB\->{count}\fR +\fIclass\fR\fB\&.count\fR +\fIclass\fR\fB\&.count\fR +.fi +.if n \{\ +.RE +.\} +.sp +The number of elements in the class\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *\fR\fIfromstr\fR; +\fI$class\fR\fB\->{fromstr}\fR +\fIclass\fR\fB\&.fromstr\fR +\fIclass\fR\fB\&.fromstr\fR +.fi +.if n \{\ +.RE +.\} +.sp +The old vendor or architecture\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *\fR\fItostr\fR; +\fI$class\fR\fB\->{tostr}\fR +\fIclass\fR\fB\&.tostr\fR +\fIclass\fR\fB\&.tostr\fR +.fi +.if n \{\ +.RE +.\} +.sp +The new vendor or architecture\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId\fR \fIfromid\fR; +\fI$class\fR\fB\->{fromid}\fR +\fIclass\fR\fB\&.fromid\fR +\fIclass\fR\fB\&.fromid\fR +.fi +.if n \{\ +.RE +.\} +.sp +The id of the old vendor or architecture\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId\fR \fItoid\fR; +\fI$class\fR\fB\->{toid}\fR +\fIclass\fR\fB\&.toid\fR +\fIclass\fR\fB\&.toid\fR +.fi +.if n \{\ +.RE +.\} +.sp +The id of the new vendor or architecture\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid solvables()\fR; +my \fI@solvables\fR \fB=\fR \fI$class\fR\fB\->solvables()\fR; +\fIsolvables\fR \fB=\fR \fIclass\fR\fB\&.solvables()\fR +\fIsolvables\fR \fB=\fR \fIclass\fR\fB\&.solvables()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the solvables for all transaction elements in the class\&. +.SH "CHECKSUMS" +.sp +Checksums (also called hashes) are used to make sure that downloaded data is not corrupt and also as a fingerprint mechanism to check if data has changed\&. +.SS "CLASS METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBChksum Chksum(Id\fR \fItype\fR\fB)\fR +my \fI$chksum\fR \fB= solv::Chksum\->new(\fR\fI$type\fR\fB)\fR; +\fIchksum\fR \fB= solv\&.Chksum(\fR\fItype\fR\fB)\fR +\fIchksum\fR \fB= Solv::Chksum\&.new(\fR\fItype\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a checksum object\&. Currently the following types are supported: +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBREPOKEY_TYPE_MD5\fR +\fBREPOKEY_TYPE_SHA1\fR +\fBREPOKEY_TYPE_SHA224\fR +\fBREPOKEY_TYPE_SHA256\fR +\fBREPOKEY_TYPE_SHA384\fR +\fBREPOKEY_TYPE_SHA512\fR +.fi +.if n \{\ +.RE +.\} +.sp +These keys are constants in the \fBsolv\fR class\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBChksum Chksum(Id\fR \fItype\fR\fB, const char *\fR\fIhex\fR\fB)\fR +my \fI$chksum\fR \fB= solv::Chksum\->new(\fR\fI$type\fR\fB,\fR \fI$hex\fR\fB)\fR; +\fIchksum\fR \fB= solv\&.Chksum(\fR\fItype\fR\fB,\fR \fIhex\fR\fB)\fR +\fIchksum\fR \fB= Solv::Chksum\&.new(\fR\fItype\fR\fB,\fR \fIhex\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create an already finalized checksum object from a hex string\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBChksum Chksum_from_bin(Id\fR \fItype\fR\fB, char *\fR\fIbin\fR\fB)\fR +my \fI$chksum\fR \fB= solv::Chksum\->from_bin(\fR\fI$type\fR\fB,\fR \fI$bin\fR\fB)\fR; +\fIchksum\fR \fB= solv\&.Chksum\&.from_bin(\fR\fItype\fR\fB,\fR \fIbin\fR\fB)\fR +\fIchksum\fR \fB= Solv::Chksum\&.from_bin(\fR\fItype\fR\fB,\fR \fIbin\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create an already finalized checksum object from a binary checksum\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId type;\fR /* read only */ +\fI$chksum\fR\fB\->{type}\fR +\fIchksum\fR\fB\&.type\fR +\fIchksum\fR\fB\&.type\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the type of the checksum object\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid add(const char *\fR\fIstr\fR\fB)\fR +\fI$chksum\fR\fB\->add(\fR\fI$str\fR\fB)\fR; +\fIchksum\fR\fB\&.add(\fR\fIstr\fR\fB)\fR +\fIchksum\fR\fB\&.add(\fR\fIstr\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add a (binary) string to the checksum\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid add_fp(FILE *\fR\fIfp\fR\fB)\fR +\fI$chksum\fR\fB\->add_fp(\fR\fI$file\fR\fB)\fR; +\fIchksum\fR\fB\&.add_fp(\fR\fIfile\fR\fB)\fR +\fIchksum\fR\fB\&.add_fp(\fR\fIfile\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add the contents of a file to the checksum\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid add_stat(const char *\fR\fIfilename\fR\fB)\fR +\fI$chksum\fR\fB\->add_stat(\fR\fI$filename\fR\fB)\fR; +\fIchksum\fR\fB\&.add_stat(\fR\fIfilename\fR\fB)\fR +\fIchksum\fR\fB\&.add_stat(\fR\fIfilename\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Stat the file and add the dev/ino/size/mtime member to the checksum\&. If the stat fails, the members are zeroed\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid add_fstat(int\fR \fIfd\fR\fB)\fR +\fI$chksum\fR\fB\->add_fstat(\fR\fI$fd\fR\fB)\fR; +\fIchksum\fR\fB\&.add_fstat(\fR\fIfd\fR\fB)\fR +\fIchksum\fR\fB\&.add_fstat(\fR\fIfd\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Same as add_stat, but instead of the filename a file descriptor is used\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBunsigned char *raw()\fR +my \fI$raw\fR \fB=\fR \fI$chksum\fR\fB\->raw()\fR; +\fIraw\fR \fB=\fR \fIchksum\fR\fB\&.raw()\fR +\fIraw\fR \fB=\fR \fIchksum\fR\fB\&.raw()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Finalize the checksum and return the result as raw bytes\&. This means that the result can contain NUL bytes or unprintable characters\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *hex()\fR +my \fI$raw\fR \fB=\fR \fI$chksum\fR\fB\->hex()\fR; +\fIraw\fR \fB=\fR \fIchksum\fR\fB\&.hex()\fR +\fIraw\fR \fB=\fR \fIchksum\fR\fB\&.hex()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Finalize the checksum and return the result as hex string\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *typestr()\fR +my \fI$typestr\fR \fB=\fR \fI$chksum\fR\fB\->typestr()\fR; +\fItypestr\fR \fB=\fR \fIchksum\fR\fB\&.typestr\fR +\fItypestr\fR \fB=\fR \fIchksum\fR\fB\&.typestr\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the type of the checksum as a string, e\&.g\&. "sha256"\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +\fBif (\fR\fI$chksum1\fR \fB==\fR \fI$chksum2\fR\fB)\fR +\fBif\fR \fIchksum1\fR \fB==\fR \fIchksum2\fR\fB:\fR +\fBif\fR \fIchksum1\fR \fB==\fR \fIchksum2\fR +.fi +.if n \{\ +.RE +.\} +.sp +Checksums are equal if they are of the same type and the finalized results are the same\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$chksum\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIchksum\fR\fB)\fR +\fIstr\fR \fB=\fR \fIchksum\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +If the checksum is finished, the checksum is returned as ":" string\&. Otherwise ":unfinished" is returned\&. +.SH "FILE MANAGEMENT" +.sp +This functions were added because libsolv uses standard \fBFILE\fR pointers to read/write files, but languages like perl have their own implementation of files\&. The libsolv functions also support decompression and compression, the algorithm is selected by looking at the file name extension\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBFILE *xfopen(char *\fR\fIfn\fR\fB, char *\fR\fImode\fR \fB= "r")\fR +my \fI$file\fR \fB= solv::xfopen(\fR\fI$path\fR\fB)\fR; +\fIfile\fR \fB= solv\&.xfopen(\fR\fIpath\fR\fB)\fR +\fIfile\fR \fB= Solv::xfopen(\fR\fIpath\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Open a file at the specified path\&. The mode argument is passed on to the stdio library\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBFILE *xfopen_fd(char *\fR\fIfn\fR\fB, int\fR \fIfileno\fR\fB)\fR +my \fI$file\fR \fB= solv::xfopen_fd(\fR\fI$path\fR\fB,\fR \fI$fileno\fR\fB)\fR; +\fIfile\fR \fB= solv\&.xfopen_fd(\fR\fIpath\fR\fB,\fR \fIfileno\fR\fB)\fR +\fIfile\fR \fB= Solv::xfopen_fd(\fR\fIpath\fR\fB,\fR \fIfileno\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a file handle from the specified file descriptor\&. The path argument is only used to select the correct (de\-)compression algorithm, use an empty path if you want to make sure to read/write raw data\&. The file descriptor is dup()ed before the file handle is created\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint fileno()\fR +my \fI$fileno\fR \fB=\fR \fI$file\fR\fB\->fileno()\fR; +\fIfileno\fR \fB=\fR \fIfile\fR\fB\&.fileno()\fR +\fIfileno\fR \fB=\fR \fIfile\fR\fB\&.fileno()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return file file descriptor of the file\&. If the file is not open, \-1 is returned\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid cloexec(bool\fR \fIstate\fR\fB)\fR +\fI$file\fR\fB\->cloexec(\fR\fI$state\fR\fB)\fR; +\fIfile\fR\fB\&.cloexec(\fR\fIstate\fR\fB)\fR +\fIfile\fR\fB\&.cloexec(\fR\fIstate\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Set the close\-on\-exec flag of the file descriptor\&. The xfopen function returns files with close\-on\-exec turned on, so if you want to pass a file to some other process you need to call cloexec(0) before calling exec\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint dup()\fR +my \fI$fileno\fR \fB=\fR \fI$file\fR\fB\->dup()\fR; +\fIfileno\fR \fB=\fR \fIfile\fR\fB\&.dup()\fR +\fIfileno\fR \fB=\fR \fIfile\fR\fB\&.dup()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a copy of the descriptor of the file\&. If the file is not open, \-1 is returned\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool flush()\fR +\fI$file\fR\fB\->flush()\fR; +\fIfile\fR\fB\&.flush()\fR +\fIfile\fR\fB\&.flush()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Flush the file\&. Returns false if there was an error\&. Flushing a closed file always returns true\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool close()\fR +\fI$file\fR\fB\->close()\fR; +\fIfile\fR\fB\&.close()\fR +\fIfile\fR\fB\&.close()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Close the file\&. This is needed for languages like Ruby that do not destruct objects right after they are no longer referenced\&. In that case, it is good style to close open files so that the file descriptors are freed right away\&. Returns false if there was an error\&. +.SH "THE REPODATA CLASS" +.sp +The Repodata stores attributes for packages and the repository itself, each repository can have multiple repodata areas\&. You normally only need to directly access them if you implement lazy downloading of repository data\&. Repodata areas are created by calling the repository\(cqs add_repodata() method or by using repo_add methods without the REPO_REUSE_REPODATA or REPO_USE_LOADING flag\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRepo *repo;\fR /* read only */ +\fI$data\fR\fB\->{repo}\fR +\fIdata\fR\fB\&.repo\fR +\fIdata\fR\fB\&.repo\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to repository object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId id;\fR /* read only */ +\fI$data\fR\fB\->{id}\fR +\fIdata\fR\fB\&.id\fR +\fIdata\fR\fB\&.id\fR +.fi +.if n \{\ +.RE +.\} +.sp +The id of the repodata area\&. Repodata ids of different repositories overlap\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBinternalize()\fR +\fI$data\fR\fB\->internalize()\fR; +\fIdata\fR\fB\&.internalize()\fR +\fIdata\fR\fB\&.internalize()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Internalize newly added data\&. The lookup functions will only see the new data after it has been internalized\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool write(FILE *\fR\fIfp\fR\fB)\fR +\fI$data\fR\fB\->write(\fR\fI$fp\fR\fB)\fR; +\fIdata\fR\fB\&.write(\fR\fIfp\fR\fB)\fR +\fIdata\fR\fB\&.write(\fR\fIfp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Write the contents of the repodata area as solv file\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId str2dir(const char *\fR\fIdir\fR\fB, bool\fR \fIcreate\fR \fB= 1)\fR +my \fI$did\fR \fB=\fR \fIdata\fR\fB\->str2dir(\fR\fI$dir\fR\fB)\fR; +\fIdid\fR \fB=\fR \fIdata\fR\fB\&.str2dir(\fR\fIdir\fR\fB)\fR +\fIdid\fR \fB=\fR \fIdata\fR\fB\&.str2dir(\fR\fIdir\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *dir2str(Id\fR \fIdid\fR\fB, const char *\fR\fIsuffix\fR \fB= 0)\fR +\fI$dir\fR \fB=\fR \fIpool\fR\fB\->dir2str(\fR\fI$did\fR\fB)\fR; +\fIdir\fR \fB=\fR \fIpool\fR\fB\&.dir2str(\fR\fIdid\fR\fB)\fR +\fIdir\fR \fB=\fR \fIpool\fR\fB\&.dir2str(\fR\fIdid\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Convert a string (directory) into an Id and back\&. If the string is currently not in the pool and \fIcreate\fR is false, zero is returned\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid add_dirstr(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, Id\fR \fIdir\fR\fB, const char *\fR\fIstr\fR\fB)\fR +\fI$data\fR\fB\->add_dirstr(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB,\fR \fI$dir\fR\fB,\fR \fI$string\fR\fB)\fR; +\fIdata\fR\fB\&.add_dirstr(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIdir\fR\fB,\fR \fIstring\fR\fB)\fR +\fIdata\fR\fB\&.add_dirstr(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIdir\fR\fB,\fR \fIstring\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Add a file path consisting of a dirname Id and a basename string\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool add_solv(FILE *\fR\fIfp\fR\fB, int\fR \fIflags\fR \fB= 0)\fR +\fI$data\fR\fB\->add_solv(\fR\fI$fp\fR\fB)\fR; +\fIdata\fR\fB\&.add_solv(\fR\fIfp\fR\fB)\fR +\fIdata\fR\fB\&.add_solv(\fR\fIfp\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Replace a stub repodata object with the data from a solv file\&. This method automatically adds the REPO_USE_LOADING flag\&. It should only be used from a load callback\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid create_stubs()\fR +\fI$data\fR\fB\->create_stubs()\fR; +\fIdata\fR\fB\&.create_stubs()\fR +\fIdata\fR\fB\&.create_stubs()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create stub repodatas from the information stored in the repodata meta area\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid extend_to_repo()\fR +\fI$data\fR\fB\->extend_to_repo()\fR; +\fIdata\fR\fB\&.extend_to_repo()\fR +\fIdata\fR\fB\&.extend_to_repo()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Extend the repodata so that it has the same size as the repo it belongs to\&. This method is needed when setting up a new extension repodata so that it matches the repository size\&. It is also needed when switching to a just written repodata extension to make the repodata match the written extension (which is always of the size of the repo)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +\fBif (\fR\fI$data1\fR \fB==\fR \fI$data2\fR\fB)\fR +\fBif\fR \fIdata1\fR \fB==\fR \fIdata2\fR\fB:\fR +\fBif\fR \fIdata1\fR \fB==\fR \fIdata2\fR +.fi +.if n \{\ +.RE +.\} +.sp +Two repodata objects are equal if they belong to the same repository and have the same id\&. +.SS "DATA RETRIEVAL METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *lookup_str(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +my \fI$string\fR \fB=\fR \fI$data\fR\fB\->lookup_str(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIstring\fR \fB=\fR \fIdata\fR\fB\&.lookup_str(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIstring\fR \fB=\fR \fIdata\fR\fB\&.lookup_str(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *lookup_id(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +my \fI$string\fR \fB=\fR \fI$data\fR\fB\->lookup_id(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIstring\fR \fB=\fR \fIdata\fR\fB\&.lookup_id(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIstring\fR \fB=\fR \fIdata\fR\fB\&.lookup_id(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBunsigned long long lookup_num(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, unsigned long long\fR \fInotfound\fR \fB= 0)\fR +my \fI$num\fR \fB=\fR \fI$data\fR\fB\->lookup_num(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fInum\fR \fB=\fR \fIdata\fR\fB\&.lookup_num(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fInum\fR \fB=\fR \fIdata\fR\fB\&.lookup_num(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool lookup_void(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +my \fI$bool\fR \fB=\fR \fI$data\fR\fB\->lookup_void(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIbool\fR \fB=\fR \fIdata\fR\fB\&.lookup_void(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIbool\fR \fB=\fR \fIdata\fR\fB\&.lookup_void(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId *lookup_idarray(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +my \fI@ids\fR \fB=\fR \fI$data\fR\fB\->lookup_idarray(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIids\fR \fB=\fR \fIdata\fR\fB\&.lookup_idarray(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIids\fR \fB=\fR \fIdata\fR\fB\&.lookup_idarray(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBChksum lookup_checksum(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +my \fI$chksum\fR \fB=\fR \fI$data\fR\fB\->lookup_checksum(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIchksum\fR \fB=\fR \fIdata\fR\fB\&.lookup_checksum(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIchksum\fR \fB=\fR \fIdata\fR\fB\&.lookup_checksum(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Lookup functions\&. Return the data element stored in the specified solvable\&. The methods probably only make sense to retrieve data from the special SOLVID_META solvid that stores repodata meta information\&. +.SS "DATA STORAGE METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_str(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, const char *\fR\fIstr\fR\fB)\fR +\fI$data\fR\fB\->set_str(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB,\fR \fI$str\fR\fB)\fR; +\fIdata\fR\fB\&.set_str(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIstr\fR\fB)\fR +\fIdata\fR\fB\&.set_str(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIstr\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_id(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, DepId\fR \fIid\fR\fB)\fR +\fI$data\fR\fB\->set_id(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB,\fR \fI$id\fR\fB)\fR; +\fIdata\fR\fB\&.set_id(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIid\fR\fB)\fR +\fIdata\fR\fB\&.set_id(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIid\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_num(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, unsigned long long\fR \fInum\fR\fB)\fR +\fI$data\fR\fB\->set_num(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB,\fR \fI$num\fR\fB)\fR; +\fIdata\fR\fB\&.set_num(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fInum\fR\fB)\fR +\fIdata\fR\fB\&.set_num(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fInum\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_void(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +\fI$data\fR\fB\->set_void(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIdata\fR\fB\&.set_void(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIdata\fR\fB\&.set_void(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_poolstr(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, const char *\fR\fIstr\fR\fB)\fR +\fI$data\fR\fB\->set_poolstr(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB,\fR \fI$str\fR\fB)\fR; +\fIdata\fR\fB\&.set_poolstr(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIstr\fR\fB)\fR +\fIdata\fR\fB\&.set_poolstr(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIstr\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_checksum(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, Chksum *\fR\fIchksum\fR\fB)\fR +\fI$data\fR\fB\->set_checksum(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB,\fR \fI$chksum\fR\fB)\fR; +\fIdata\fR\fB\&.set_checksum(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIchksum\fR\fB)\fR +\fIdata\fR\fB\&.set_checksum(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIchksum\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_sourcepkg(Id\fR \fIsolvid\fR\fB, const char *\fR\fIsourcepkg\fR\fB)\fR +\fI$data\fR\fB\&.set_sourcepkg(\fR\fI$solvid\fR\fB,\fR \fI$sourcepkg\fR\fB)\fR; +\fIdata\fR\fB\&.set_sourcepkg(\fR\fIsolvid\fR\fB,\fR \fIsourcepkg\fR\fB)\fR +\fIdata\fR\fB\&.set_sourcepkg(\fR\fIsolvid\fR\fB,\fR \fIsourcepkg\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid set_location(Id\fR \fIsolvid\fR\fB, unsigned int\fR \fImediano\fR\fB, const char *\fR\fIlocation\fR\fB)\fR +\fI$data\fR\fB\&.set_location(\fR\fI$solvid\fR\fB,\fR \fI$mediano\fR\fB,\fR \fI$location\fR\fB)\fR; +\fIdata\fR\fB\&.set_location(\fR\fIsolvid\fR\fB,\fR \fImediano\fR\fB,\fR \fIlocation\fR\fB)\fR +\fIdata\fR\fB\&.set_location(\fR\fIsolvid\fR\fB,\fR \fImediano\fR\fB,\fR \fIlocation\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid add_idarray(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, DepId\fR \fIid\fR\fB)\fR +\fI$data\fR\fB\->add_idarray(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB,\fR \fI$id\fR\fB)\fR; +\fIdata\fR\fB\&.add_idarray(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIid\fR\fB)\fR +\fIdata\fR\fB\&.add_idarray(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIid\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId new_handle()\fR +my \fI$handle\fR \fB=\fR \fI$data\fR\fB\->new_handle()\fR; +\fIhandle\fR \fB=\fR \fIdata\fR\fB\&.new_handle()\fR +\fIhandle\fR \fB=\fR \fIdata\fR\fB\&.new_handle()\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid add_flexarray(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, Id\fR \fIhandle\fR\fB)\fR +\fI$data\fR\fB\->add_flexarray(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB,\fR \fI$handle\fR\fB)\fR; +\fIdata\fR\fB\&.add_flexarray(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIhandle\fR\fB)\fR +\fIdata\fR\fB\&.add_flexarray(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB,\fR \fIhandle\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid unset(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +\fI$data\fR\fB\->unset(\fR\fI$solvid\fR\fB,\fR \fI$keyname\fR\fB)\fR; +\fIdata\fR\fB\&.unset(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +\fIdata\fR\fB\&.unset(\fR\fIsolvid\fR\fB,\fR \fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Data storage methods\&. Probably only useful to store data in the special SOLVID_META solvid that stores repodata meta information\&. Note that repodata areas can have their own Id pool (see the REPO_LOCALPOOL flag), so be careful if you need to store ids\&. Arrays are created by calling the add function for every element\&. A flexarray is an array of sub\-structures, call new_handle to create a new structure, use the handle as solvid to fill the structure with data and call add_flexarray to put the structure in an array\&. +.SH "THE DATAPOS CLASS" +.sp +Datapos objects describe a specific position in the repository data area\&. Thus they are only valid until the repository is modified in some way\&. Datapos objects can be created by the pos() and parentpos() methods of a Datamatch object or by accessing the \(lqmeta\(rq attribute of a repository\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRepo *repo;\fR /* read only */ +\fI$data\fR\fB\->{repo}\fR +\fIdata\fR\fB\&.repo\fR +\fIdata\fR\fB\&.repo\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to repository object\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDataiterator(Id\fR \fIkeyname\fR\fB, const char *\fR\fImatch\fR\fB, int\fR \fIflags\fR\fB)\fR +my \fI$di\fR \fB=\fR \fI$datapos\fR\fB\->Dataiterator(\fR\fI$keyname\fR\fB,\fR \fI$match\fR\fB,\fR \fI$flags\fR\fB)\fR; +\fIdi\fR \fB=\fR \fIdatapos\fR\fB\&.Dataiterator(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +\fIdi\fR \fB=\fR \fIdatapos\fR\fB\&.Dataiterator(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Create a Dataiterator at the position of the datapos object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *lookup_deltalocation(unsigned int *\fR\fIOUTPUT\fR\fB)\fR +my \fB(\fR\fI$location\fR\fB,\fR \fI$mediano\fR\fB) =\fR \fI$datapos\fR\fB\->lookup_deltalocation()\fR; +\fIlocation\fR\fB,\fR \fImediano\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_deltalocation()\fR +\fIlocation\fR\fB,\fR \fImediano\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_deltalocation()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a tuple containing the on\-media location and an optional media number for a delta rpm\&. This obviously only works if the data position points to structure describing a delta rpm\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *lookup_deltaseq()\fR +my \fI$seq\fR \fB=\fR \fI$datapos\fR\fB\->lookup_deltaseq()\fR; +\fIseq\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_deltaseq()\fR; +\fIseq\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_deltaseq()\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return the delta rpm sequence from the structure describing a delta rpm\&. +.SS "DATA RETRIEVAL METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *lookup_str(Id\fR \fIkeyname\fR\fB)\fR +my \fI$string\fR \fB=\fR \fI$datapos\fR\fB\->lookup_str(\fR\fI$keyname\fR\fB)\fR; +\fIstring\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_str(\fR\fIkeyname\fR\fB)\fR +\fIstring\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_str(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId lookup_id(Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR +my \fI$id\fR \fB=\fR \fI$datapos\fR\fB\->lookup_id(\fR\fI$keyname\fR\fB)\fR; +\fIid\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_id(\fR\fIkeyname\fR\fB)\fR +\fIid\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_id(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBunsigned long long lookup_num(Id\fR \fIkeyname\fR\fB, unsigned long long\fR \fInotfound\fR \fB= 0)\fR +my \fI$num\fR \fB=\fR \fI$datapos\fR\fB\->lookup_num(\fR\fI$keyname\fR\fB)\fR; +\fInum\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_num(\fR\fIkeyname\fR\fB)\fR +\fInum\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_num(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBbool lookup_void(Id\fR \fIkeyname\fR\fB)\fR +my \fI$bool\fR \fB=\fR \fI$datapos\fR\fB\->lookup_void(\fR\fI$keyname\fR\fB)\fR; +\fIbool\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_void(\fR\fIkeyname\fR\fB)\fR +\fIbool\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_void(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId *lookup_idarray(Id\fR \fIkeyname\fR\fB)\fR +my \fI@ids\fR \fB=\fR \fI$datapos\fR\fB\->lookup_idarray(\fR\fI$keyname\fR\fB)\fR; +\fIids\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_idarray(\fR\fIkeyname\fR\fB)\fR +\fIids\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_idarray(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBChksum lookup_checksum(Id\fR \fIkeyname\fR\fB)\fR +my \fI$chksum\fR \fB=\fR \fI$datapos\fR\fB\->lookup_checksum(\fR\fI$keyname\fR\fB)\fR; +\fIchksum\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_checksum(\fR\fIkeyname\fR\fB)\fR +\fIchksum\fR \fB=\fR \fIdatapos\fR\fB\&.lookup_checksum(\fR\fIkeyname\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +Lookup functions\&. Note that the returned Ids are always translated into the Ids of the global pool even if the repodata area contains its own pool\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDataiterator Dataiterator(Id\fR \fIkeyname\fR\fB, const char *\fR\fImatch\fR \fB= 0, int\fR \fIflags\fR \fB= 0)\fR +my \fI$di\fR \fB=\fR \fI$datapos\fR\fB\->Dataiterator(\fR\fI$keyname\fR\fB,\fR \fI$match\fR\fB,\fR \fI$flags\fR\fB)\fR; +\fIdi\fR \fB=\fR \fIdatapos\fR\fB\&.Dataiterator(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +\fIdi\fR \fB=\fR \fIdatapos\fR\fB\&.Dataiterator(\fR\fIkeyname\fR\fB,\fR \fImatch\fR\fB,\fR \fIflags\fR\fB)\fR +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBfor my\fR \fI$d\fR \fB(\fR\fI@$di\fR\fB)\fR +\fBfor\fR \fId\fR \fBin\fR \fIdi\fR\fB:\fR +\fBfor\fR \fId\fR \fBin\fR \fIdi\fR +.fi +.if n \{\ +.RE +.\} +.sp +Iterate over the matching data elements\&. See the Dataiterator class for more information\&. +.SH "THE ALTERNATIVE CLASS" +.sp +An Alternative object describes a branch point in the solving process\&. The solver found more than one good way to fulfill a dependency and chose one\&. It recorded the other possibilities in the alternative object so that they can be presented to the user in the case a different solution is preferable\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolver *solv;\fR /* read only */ +\fI$alternative\fR\fB\->{solv}\fR +\fIalternative\fR\fB\&.solv\fR +\fIalternative\fR\fB\&.solv\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to solver object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId type;\fR /* read only */ +\fI$alternative\fR\fB\->{type}\fR +\fIalternative\fR\fB\&.type\fR +\fIalternative\fR\fB\&.type\fR +.fi +.if n \{\ +.RE +.\} +.sp +The type of the alternative\&. Alternatives can be created because of rule fulfillment, because of recommended packages, and because of suggested packages (currently unused)\&. See below for a list of valid types\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRule rule;\fR /* read only */ +\fI$alternative\fR\fB\->{rule}\fR +\fIalternative\fR\fB\&.rule\fR +\fIalternative\fR\fB\&.rule\fR +.fi +.if n \{\ +.RE +.\} +.sp +The rule that caused the creation of the alternative (SOLVER_ALTERNATIVE_TYPE_RULE)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDep *dep;\fR /* read only */ +\fI$ruleinfo\fR\fB\->{dep}\fR +\fIruleinfo\fR\fB\&.dep\fR +\fIruleinfo\fR\fB\&.dep\fR +.fi +.if n \{\ +.RE +.\} +.sp +The dependency that caused the creation of the alternative (SOLVER_ALTERNATIVE_TYPE_RECOMMENDS)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDep *depsolvable;\fR /* read only */ +\fI$ruleinfo\fR\fB\->{depsolvable}\fR +\fIruleinfo\fR\fB\&.depsolvable\fR +\fIruleinfo\fR\fB\&.depsolvable\fR +.fi +.if n \{\ +.RE +.\} +.sp +The package containing the dependency (SOLVER_ALTERNATIVE_TYPE_RECOMMENDS)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable chosen;\fR /* read only */ +\fI$alternative\fR\fB\->{chosen}\fR +\fIalternative\fR\fB\&.chosen\fR +\fIalternative\fR\fB\&.chosen\fR +.fi +.if n \{\ +.RE +.\} +.sp +The solvable that the solver chose from the alternative\(cqs package set\&. +.SS "CONSTANTS" +.PP +\fBSOLVER_ALTERNATIVE_TYPE_RULE\fR +.RS 4 +The alternative was created when fulfilling a rule\&. +.RE +.PP +\fBSOLVER_ALTERNATIVE_TYPE_RECOMMENDS\fR +.RS 4 +The alternative was created when fulfilling a recommends dependency\&. +.RE +.PP +\fBSOLVER_ALTERNATIVE_TYPE_SUGGESTS\fR +.RS 4 +The alternative was created when fulfilling a suggests dependency\&. +.RE +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *choices()\fR +my \fI@choices\fR \fB=\fR \fI$alternative\fR\fB\->choices()\fR; +\fIchoices\fR \fB=\fR \fIalternative\fR\fB\&.choices\fR +\fIchoices\fR \fB=\fR \fIalternative\fR\fB\&.choices\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return the set of solvables that the solver could choose from when creating the alternative\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$alternative\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIalternative\fR\fB)\fR +\fIstr\fR \fB=\fR \fIalternative\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing the alternative\&. +.SH "THE DECISION CLASS" +.sp +A decision is created when the solver fulfills dependencies\&. It can be either to install a package to satisfy a dependency or to conflict a dependency because it conflicts with another package or its dependencies cannot be met\&. Most decisions are caused by rule processing, but there are some other types like orphaned package handling or weak dependency handling\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolver *solv;\fR /* read only */ +\fI$decision\fR\fB\->{solv}\fR +\fIdecision\fR\fB\&.solv\fR +\fIdecision\fR\fB\&.solv\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to solver object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId p;\fR /* read only */ +\fI$decision\fR\fB\->{p}\fR +\fIdecision\fR\fB\&.p\fR +\fIdecision\fR\fB\&.p\fR +.fi +.if n \{\ +.RE +.\} +.sp +The decision package id, positive for installs and negative for conflicts\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint reason;\fR /* read only */ +\fI$decision\fR\fB\->{reason}\fR +\fIdecision\fR\fB\&.reason\fR +\fIdecision\fR\fB\&.reason\fR +.fi +.if n \{\ +.RE +.\} +.sp +The reason for the decision\&. See the SOLVER_REASON_ constants\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint infoid;\fR /* read only */ +\fI$decision\fR\fB\->{infoid}\fR +\fIdecision\fR\fB\&.infoid\fR +\fIdecision\fR\fB\&.infoid\fR +.fi +.if n \{\ +.RE +.\} +.sp +Extra info for the decision\&. This is the rule id for decisions caused by rule fulfillment\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable solvable;\fR /* read only */ +\fI$decision\fR\fB\->{solvable}\fR +\fIdecision\fR\fB\&.solvable\fR +\fIdecision\fR\fB\&.solvable\fR +.fi +.if n \{\ +.RE +.\} +.sp +The decision package object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRule rule()\fR /* read only */ +\fI$decision\fR\fB\->{rule}\fR +\fIdecision\fR\fB\&.rule\fR +\fIdecision\fR\fB\&.rule\fR +.fi +.if n \{\ +.RE +.\} +.sp +The rule object for decisions that where caused by rule fulfilment\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRuleinfo info()\fR +my \fI$info\fR \fB=\fR \fI$decision\fR\fB\->info()\fR; +\fIinfo\fR \fB=\fR \fIdecision\fR\fB\&.info()\fR +\fIinfo\fR \fB=\fR \fIdecision\fR\fB\&.info()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a Ruleinfo object describing the decision\&. Some reasons like SOLVER_REASON_WEAKDEP are not caused by rules, but can be expressed by a Ruleinfo object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBRuleinfo *allinfos()\fR +my \fI@infos\fR \fB=\fR \fI$decision\fR\fB\->allinfos()\fR; +\fIinfos\fR \fB=\fR \fIdecision\fR\fB\&.allinfos()\fR +\fIinfos\fR \fB=\fR \fIdecision\fR\fB\&.allinfos()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Same as info(), but all Ruleinfo objects describing the decision are returned\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *reasonstr()\fR +my \fIstr\fR \fB=\fR \fI$decision\fR\fB\->reasonstr()\fR +\fIstr\fR \fB=\fR \fIdecision\fR\fB\&.reasonstr()\fR +\fIstr\fR \fB=\fR \fIdecision\fR\fB\&.reasonstr()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing why a decision was done (but without the decision itself)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$decison\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIdecision\fR\fB)\fR +\fIstr\fR \fB=\fR \fIdecision\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing the decision (but without the reason)\&. +.SH "THE DECISIONSET CLASS" +.sp +A decisionset consists of multiple decisions of the same reason and type that can be presented to the user as a single action\&. +.SS "ATTRIBUTES" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolver *solv;\fR /* read only */ +\fI$decision\fR\fB\->{solv}\fR +\fIdecision\fR\fB\&.solv\fR +\fIdecision\fR\fB\&.solv\fR +.fi +.if n \{\ +.RE +.\} +.sp +Back pointer to solver object\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId p;\fR /* read only */ +\fI$decision\fR\fB\->{p}\fR +\fIdecision\fR\fB\&.p\fR +\fIdecision\fR\fB\&.p\fR +.fi +.if n \{\ +.RE +.\} +.sp +The package id of the first decision, positive for installs and negative for conflicts\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint reason;\fR /* read only */ +\fI$decision\fR\fB\->{reason}\fR +\fIdecision\fR\fB\&.reason\fR +\fIdecision\fR\fB\&.reason\fR +.fi +.if n \{\ +.RE +.\} +.sp +The reason for the decisions in the set\&. See the SOLVER_REASON_ constants\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint type;\fR /* read only */ +\fI$ruleinfo\fR\fB\->{type}\fR +\fIruleinfo\fR\fB\&.type\fR +\fIruleinfo\fR\fB\&.type\fR +.fi +.if n \{\ +.RE +.\} +.sp +The type of the decision info\&. See the constant section of the solver class for the rule type list and the special type list\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDep *dep;\fR /* read only */ +\fI$ruleinfo\fR\fB\->{dep}\fR +\fIruleinfo\fR\fB\&.dep\fR +\fIruleinfo\fR\fB\&.dep\fR +.fi +.if n \{\ +.RE +.\} +.sp +The dependency that caused the decision +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDep *dep_id;\fR /* read only */ +\fI$ruleinfo\fR\fB\->{\fR\fIdep_id\fR\fB}\fR +\fIruleinfo\fR\fB\&.dep_id\fR +\fIruleinfo\fR\fB\&.dep_id\fR +.fi +.if n \{\ +.RE +.\} +.sp +The Id of the dependency that caused the decision\&. +.SS "METHODS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBDecision *decisions()\fR +my \fI@decisions\fR \fB=\fR \fI$decisionset\fR\fB\->decisions()\fR; +\fIdecisions\fR \fB=\fR \fIdecisionset\fR\fB\&.decisions()\fR +\fIdecisions\fR \fB=\fR \fIdecisionset\fR\fB\&.decisions()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all the decisions of the set\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *solvables()\fR +my \fI@pkgs\fR \fB=\fR \fI$decisionset\fR\fB\->solvables()\fR; +\fIpkgs\fR \fB=\fR \fIdecisionset\fR\fB\&.solvables()\fR +\fIpkgs\fR \fB=\fR \fIdecisionset\fR\fB\&.solvables()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return all the packages that were decided in the set\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *reasonstr()\fR +my \fIstr\fR \fB=\fR \fI$decision\fR\fB\->reasonstr()\fR; +\fIstr\fR \fB=\fR \fIdecision\fR\fB\&.reasonstr()\fR +\fIstr\fR \fB=\fR \fIdecision\fR\fB\&.reasonstr()\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing why the decisions were done (but without the decisions themself)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fB\fR +my \fI$str\fR \fB=\fR \fI$decison\fR\fB\->str\fR; +\fIstr\fR \fB= str(\fR\fIdecision\fR\fB)\fR +\fIstr\fR \fB=\fR \fIdecision\fR\fB\&.to_s\fR +.fi +.if n \{\ +.RE +.\} +.sp +Return a string describing the decisions (but without the reason)\&. +.SH "AUTHOR" +.sp +Michael Schroeder diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-constantids.3 b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-constantids.3 new file mode 100644 index 0000000000000000000000000000000000000000..8dd0ed658936ae25b310778947d95f011eee9fa2 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-constantids.3 @@ -0,0 +1,906 @@ +'\" t +.\" Title: Libsolv-Constantids +.\" Author: [see the "Author" section] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" Date: 03/02/2022 +.\" Manual: LIBSOLV +.\" Source: libsolv +.\" Language: English +.\" +.TH "LIBSOLV\-CONSTANTIDS" "3" "03/02/2022" "libsolv" "LIBSOLV" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +libsolv-constantids \- fixed Ids for often used strings +.SH "DESCRIPTION" +.sp +Constant Ids are Ids of strings that are often needed\&. They are defined to ease programming and reduce the number of pool_str2id calls\&. The constant Ids are part of the binary ABI of libsolv, a minor version update will only add new constants and not change existing Ids to maintain compatibility\&. The on\-disk solv format does not use the fixed Ids, but instead references the strings, so solv files can still be read when the ABI is broken\&. +.SH "SPECIAL STRINGS" +.PP +\fBID_EMPTY ""\fR +.RS 4 +The empty string\&. It will always have Id 1\&. +.RE +.PP +\fBSYSTEM_SYSTEM "system:system"\fR +.RS 4 +The name of the always installed "system" solvable\&. +.RE +.SH "SOLVABLE ATTRIBUTES" +.sp +These are Ids for keynames of attributes\&. They can be used in the lookup and storage functions to select the correct attribute in the solvable\&. The descriptions below describe the intended semantics of the values stored in the attribute with the keyname\&. +.PP +\fBSOLVABLE_NAME "solvable:name"\fR +.RS 4 +The name of the package\&. +.RE +.PP +\fBSOLVABLE_ARCH "solvable:arch"\fR +.RS 4 +The architecture of the package\&. See the Solvable Architecture section for predefined architecture Id values\&. +.RE +.PP +\fBSOLVABLE_EVR "solvable:evr"\fR +.RS 4 +The version of the package\&. It usually consists of some combination of the Epoch, the Version, and the Release of the solvable\&. +.RE +.PP +\fBSOLVABLE_VENDOR "solvable:vendor"\fR +.RS 4 +A vendor string\&. Usually the company or group that created the binary package\&. +.RE +.PP +\fBSOLVABLE_PROVIDES "solvable:provides"\fR +.RS 4 +Stores an array of dependency Ids that describe the capabilities that the package provides\&. +.RE +.PP +\fBSOLVABLE_OBSOLETES "solvable:obsoletes"\fR +.RS 4 +Stores an array of dependency Ids that describe the packages that this package replaces\&. +.RE +.PP +\fBSOLVABLE_CONFLICTS "solvable:conflicts"\fR +.RS 4 +Stores an array of dependency Ids that describe the capabilities that this package conflicts with, i\&.e\&. that can\(cqt be installed together with this package\&. +.RE +.PP +\fBSOLVABLE_REQUIRES "solvable:requires"\fR +.RS 4 +Stores an array of dependency Ids that describe the capabilities that also must be installed when this package is installed\&. +.RE +.PP +\fBSOLVABLE_RECOMMENDS "solvable:recommends"\fR +.RS 4 +Stores an array of dependency Ids that describe the capabilities that also should be installed when this package is installed\&. It\(cqs not an error if not all capabilities can be met\&. +.RE +.PP +\fBSOLVABLE_SUGGESTS "solvable:suggests"\fR +.RS 4 +Stores an array of dependency Ids that describe the capabilities that also useful to have installed when this package is installed\&. This is intended to provide a hint to the user about other packages\&. +.RE +.PP +\fBSOLVABLE_SUPPLEMENTS "solvable:supplements"\fR +.RS 4 +Stores an array of dependency Ids that define that this package should be installed if one of the capabilities is met\&. This is like the recommends attribute, but works in the reverse way\&. +.RE +.PP +\fBSOLVABLE_ENHANCES "solvable:enhances"\fR +.RS 4 +Stores an array of dependency Ids that define that this package is useful to have installed if one of the capabilities is met\&. This is like the suggests attribute, but works in the reverse way\&. +.RE +.PP +\fBSOLVABLE_SUMMARY "solvable:summary"\fR +.RS 4 +The summary should be a short string without any newlines that describes what a package does\&. +.RE +.PP +\fBSOLVABLE_DESCRIPTION "solvable:description"\fR +.RS 4 +The description should be a more verbose description about what a package does\&. It may consist of multiple lines\&. +.RE +.PP +\fBSOLVABLE_DISTRIBUTION "solvable:distribution"\fR +.RS 4 +The distribution is a short string that describes the OS and OS version this package is built for\&. +.RE +.PP +\fBSOLVABLE_AUTHORS "solvable:authors"\fR +.RS 4 +A list of authors of this package\&. This attribute was used in SUSE packages\&. +.RE +.PP +\fBSOLVABLE_PACKAGER "solvable:packager"\fR +.RS 4 +The person who created the binary package, see also the vendor attribute\&. +.RE +.PP +\fBSOLVABLE_GROUP "solvable:group"\fR +.RS 4 +The package group that this package belongs to\&. See also the keywords attribute\&. +.RE +.PP +\fBSOLVABLE_URL "solvable:url"\fR +.RS 4 +An URL that points to more information about the package\&. +.RE +.PP +\fBSOLVABLE_KEYWORDS "solvable:keywords"\fR +.RS 4 +list of keyword string IDs used for tagging this package\&. +.RE +.PP +\fBSOLVABLE_LICENSE "solvable:license"\fR +.RS 4 +The license(s) of this package\&. +.RE +.PP +\fBSOLVABLE_BUILDTIME "solvable:buildtime"\fR +.RS 4 +The seconds since the unix epoch when the binary package was created\&. +.RE +.PP +\fBSOLVABLE_BUILDHOST "solvable:buildhost"\fR +.RS 4 +The name of the host on which the binary package was created\&. +.RE +.PP +\fBSOLVABLE_EULA "solvable:eula"\fR +.RS 4 +If this attribute is present the user should be asked to accept the end user license agreement before the package gets installed\&. +.RE +.PP +\fBSOLVABLE_CPEID "solvable:cpeid"\fR +.RS 4 +A Common Platform Enumeration string describes the platform this package is intended for\&. See also the distribution attribute\&. +.RE +.PP +\fBSOLVABLE_MESSAGEINS "solvable:messageins"\fR +.RS 4 +A message that should be displayed to the user when the package gets installed\&. +.RE +.PP +\fBSOLVABLE_MESSAGEDEL "solvable:messagedel"\fR +.RS 4 +A message that should be displayed to the user when the package gets erased\&. +.RE +.PP +\fBSOLVABLE_INSTALLSIZE "solvable:installsize"\fR +.RS 4 +The disk space in bytes needed when installing the package\&. +.RE +.PP +\fBSOLVABLE_DISKUSAGE "solvable:diskusage"\fR +.RS 4 +A SUSE extension that stores for each directory the needed amount of disk space in kilobytes and inodes\&. +.RE +.PP +\fBSOLVABLE_FILELIST "solvable:filelist"\fR +.RS 4 +A list of files that the package contains\&. +.RE +.PP +\fBSOLVABLE_INSTALLTIME "solvable:installtime"\fR +.RS 4 +The seconds since the unix epoch when the binary package was installed on the system\&. +.RE +.PP +\fBSOLVABLE_MEDIADIR "solvable:mediadir"\fR +.RS 4 +The directory on the repository that contains the package\&. If this attribute is set to void, the package architecture is used as directory\&. +.RE +.PP +\fBSOLVABLE_MEDIAFILE "solvable:mediafile"\fR +.RS 4 +The filename on the repository that contains the package\&. If this attribute is set to void, the canonical file name of the package is used (i\&.e\&. a combination of the name, version, architecture)\&. +.RE +.PP +\fBSOLVABLE_MEDIANR "solvable:medianr"\fR +.RS 4 +The media number\&. This is an integer describing on which of a multi\-part media set this package is on\&. +.RE +.PP +\fBSOLVABLE_MEDIABASE "solvable:mediabase"\fR +.RS 4 +This attribute can be used to overwrite the repositories base url\&. +.RE +.PP +\fBSOLVABLE_DOWNLOADSIZE "solvable:downloadsize"\fR +.RS 4 +The size of the binary package in bytes\&. +.RE +.PP +\fBSOLVABLE_SOURCEARCH "solvable:sourcearch"\fR +.RS 4 +The architecture of the source package that this package belongs to\&. +.RE +.PP +\fBSOLVABLE_SOURCENAME "solvable:sourcename"\fR +.RS 4 +The name of the source package that this package belongs to\&. If set to void, the package name attribute is used instead\&. +.RE +.PP +\fBSOLVABLE_SOURCEEVR "solvable:sourceevr"\fR +.RS 4 +The version of the source package that this package belongs to\&. If set to void, the package version attribute is used instead\&. +.RE +.PP +\fBSOLVABLE_TRIGGERS "solvable:triggers"\fR +.RS 4 +A list of package triggers for this package\&. Used in the transaction ordering code\&. +.RE +.PP +\fBSOLVABLE_CHECKSUM "solvable:checksum"\fR +.RS 4 +The checksum of the binary package\&. See the Data Types section for a list of supported algorithms\&. +.RE +.PP +\fBSOLVABLE_PKGID "solvable:pkgid"\fR +.RS 4 +A string identifying a package\&. For rpm packages, this is the md5sum over the package header and the payload\&. +.RE +.PP +\fBSOLVABLE_HDRID "solvable:hdrid"\fR +.RS 4 +A string identifying a package\&. For rpm packages, this is the sha1sum over just the package header\&. +.RE +.PP +\fBSOLVABLE_LEADSIGID "solvable:leadsigid"\fR +.RS 4 +A string identifying the signature part of a package\&. For rpm packages, this is the md5sum from the start of the file up to the package header (i\&.e\&. it includes the lead, the signature header, and the padding)\&. +.RE +.PP +\fBSOLVABLE_HEADEREND "solvable:headerend"\fR +.RS 4 +The offset of the payload in rpm binary packages\&. You can use this information to download just the header if you want to display information not included in the repository metadata\&. +.RE +.PP +\fBSOLVABLE_CHANGELOG "solvable:changelog"\fR +.RS 4 +The array containing all the changelog structures\&. +.RE +.PP +\fBSOLVABLE_CHANGELOG_AUTHOR "solvable:changelog:author"\fR +.RS 4 +The author of a changelog entry\&. +.RE +.PP +\fBSOLVABLE_CHANGELOG_TIME "solvable:changelog:time"\fR +.RS 4 +The seconds since the unix epoch when the changelog entry was written\&. +.RE +.PP +\fBSOLVABLE_CHANGELOG_TEXT "solvable:changelog:text"\fR +.RS 4 +The text of a changelog entry\&. +.RE +.SH "SPECIAL SOLVABLE ATTRIBUTES" +.PP +\fBRPM_RPMDBID "rpm:dbid"\fR +.RS 4 +The rpm database id of this (installed) package\&. Usually a small integer number\&. +.RE +.PP +\fBSOLVABLE_PATCHCATEGORY "solvable:patchcategory"\fR +.RS 4 +The category field for patch solvables\&. Should be named \(lqupdate:category\(rq instead\&. +.RE +.PP +\fBUPDATE_REBOOT "update:reboot"\fR +.RS 4 +If this attribute is present the system should be rebooted after the update is installed\&. +.RE +.PP +\fBUPDATE_RESTART "update:restart"\fR +.RS 4 +If this attribute is present the software manager should be run again after the update is installed\&. +.RE +.PP +\fBUPDATE_RELOGIN "update:relogin"\fR +.RS 4 +If this attribute is present the user should log off and on again after the update is installed\&. +.RE +.PP +\fBUPDATE_MESSAGE "update:message"\fR +.RS 4 +A message that should be shown to the user to warn him about anything non\-standard\&. +.RE +.PP +\fBUPDATE_SEVERITY "update:severity"\fR +.RS 4 +The severity of the update\&. +.RE +.PP +\fBUPDATE_RIGHTS "update:rights"\fR +.RS 4 +Any legal or other rights of the update\&. +.RE +.PP +\fBUPDATE_COLLECTION "update:collection"\fR +.RS 4 +The array containing the package list of the update\&. +.RE +.PP +\fBUPDATE_COLLECTION_NAME "update:collection:name"\fR +.RS 4 +The name of the updated package\&. +.RE +.PP +\fBUPDATE_COLLECTION_EVR "update:collection:evr"\fR +.RS 4 +The version of the updated package\&. +.RE +.PP +\fBUPDATE_COLLECTION_ARCH "update:collection:arch"\fR +.RS 4 +The architecture of the updated package\&. +.RE +.PP +\fBUPDATE_COLLECTION_FILENAME "update:collection:filename"\fR +.RS 4 +The file name of the updated package\&. +.RE +.PP +\fBUPDATE_REFERENCE "update:reference"\fR +.RS 4 +The array containing the reference list of the update\&. +.RE +.PP +\fBUPDATE_REFERENCE_TYPE "update:reference:type"\fR +.RS 4 +The type of the reference, e\&.g\&. bugzilla\&. +.RE +.PP +\fBUPDATE_REFERENCE_HREF "update:reference:href"\fR +.RS 4 +The URL of the reference\&. +.RE +.PP +\fBUPDATE_REFERENCE_ID "update:reference:id"\fR +.RS 4 +The identification string of the reference, e\&.g\&. the bug number\&. +.RE +.PP +\fBUPDATE_REFERENCE_TITLE "update:reference:title"\fR +.RS 4 +The title of the reference, e\&.g\&. the bug summary\&. +.RE +.PP +\fBPRODUCT_REFERENCEFILE "product:referencefile"\fR +.RS 4 +The basename of the product file in the package\&. +.RE +.PP +\fBPRODUCT_SHORTLABEL "product:shortlabel"\fR +.RS 4 +An identification string of the product\&. +.RE +.PP +\fBPRODUCT_DISTPRODUCT "product:distproduct"\fR +.RS 4 +Obsolete, do not use\&. Was a SUSE Code\-10 product name\&. +.RE +.PP +\fBPRODUCT_DISTVERSION "product:distversion"\fR +.RS 4 +Obsolete, do not use\&. Was a SUSE Code\-10 product version\&. +.RE +.PP +\fBPRODUCT_TYPE "product:type"\fR +.RS 4 +The type of the product, e\&.g\&. \(lqbase\(rq\&. +.RE +.PP +\fBPRODUCT_URL "product:url"\fR +.RS 4 +An array of product URLs\&. +.RE +.PP +\fBPRODUCT_URL_TYPE "product:url:type"\fR +.RS 4 +An array of product URL types\&. +.RE +.PP +\fBPRODUCT_FLAGS "product:flags"\fR +.RS 4 +An array of product flags\&. +.RE +.PP +\fBPRODUCT_PRODUCTLINE "product:productline"\fR +.RS 4 +A product line string used for product registering\&. +.RE +.PP +\fBPRODUCT_REGISTER_TARGET "product:regtarget"\fR +.RS 4 +A target for product registering\&. +.RE +.PP +\fBPRODUCT_REGISTER_RELEASE "product:regrelease"\fR +.RS 4 +A release string for product registering\&. +.RE +.PP +\fBPUBKEY_KEYID "pubkey:keyid"\fR +.RS 4 +The keyid of a pubkey, consisting of 8 bytes in hex\&. +.RE +.PP +\fBPUBKEY_FINGERPRINT "pubkey:fingerprint"\fR +.RS 4 +The fingerprint of a pubkey, usually a sha1sum in hex\&. Old V3 RSA keys use a md5sum instead\&. +.RE +.PP +\fBPUBKEY_EXPIRES "pubkey:expires"\fR +.RS 4 +The seconds since the unix epoch when the pubkey expires\&. +.RE +.PP +\fBPUBKEY_SUBKEYOF "pubkey:subkeyof"\fR +.RS 4 +The keyid of the master pubkey for subkeys\&. +.RE +.PP +\fBPUBKEY_DATA "pubkey:data"\fR +.RS 4 +The MPI data of the pubkey\&. +.RE +.PP +\fBSOLVABLE_ISVISIBLE "solvable:isvisible"\fR +.RS 4 +An attribute describing if the package should be listed to the user or not\&. Used for SUSE patterns\&. +.RE +.PP +\fBSOLVABLE_CATEGORY "solvable:category"\fR +.RS 4 +The category of a pattern\&. +.RE +.PP +\fBSOLVABLE_INCLUDES "solvable:includes"\fR +.RS 4 +A list of other patterns that this pattern includes\&. +.RE +.PP +\fBSOLVABLE_EXTENDS "solvable:extends"\fR +.RS 4 +A list of other patterns that this pattern extends\&. +.RE +.PP +\fBSOLVABLE_ICON "solvable:icon"\fR +.RS 4 +The icon name of a pattern\&. +.RE +.PP +\fBSOLVABLE_ORDER "solvable:order"\fR +.RS 4 +An ordering clue of a pattern\&. +.RE +.PP +\fBSUSETAGS_SHARE_NAME "susetags:share:name"\fR +.RS 4 +Internal attribute to implement susetags shared records\&. Holds the name of the solvable used for sharing attributes\&. +.RE +.PP +\fBSUSETAGS_SHARE_EVR "susetags:share:evr"\fR +.RS 4 +Internal attribute to implement susetags shared records\&. Holds the version of the solvable used for sharing attributes\&. +.RE +.PP +\fBSUSETAGS_SHARE_ARCH "susetags:share:arch"\fR +.RS 4 +Internal attribute to implement susetags shared records\&. Holds the architecture of the solvable used for sharing attributes\&. +.RE +.SH "SOLVABLE ARCHITECTURES" +.sp +Predefined architecture values for commonly used architectures\&. +.PP +\fBARCH_SRC "src"\fR +.RS 4 +Used for binary packages that contain the package sources\&. +.RE +.PP +\fBARCH_NOSRC "nosrc"\fR +.RS 4 +Used for binary packages that contain some of the package sources, but not all files (because of restrictions)\&. +.RE +.PP +\fBARCH_NOARCH "noarch"\fR +.RS 4 +This package can be installed on any architecture\&. Used for rpm\&. +.RE +.PP +\fBARCH_ALL "all"\fR +.RS 4 +This package can be installed on any architecture\&. Used for Debian\&. +.RE +.PP +\fBARCH_ANY "any"\fR +.RS 4 +This package can be installed on any architecture\&. Used for Archlinux and Haiku\&. +.RE +.SH "DEPENDENCY IDS" +.sp +Namespaces are special modifiers that change the meaning of a dependency\&. Namespace dependencies are created with the REL_NAMESPACE flag\&. To make custom namespaces work you have to implement a namespace callback function\&. +.sp +The dependency markers partition the dependency array in two parts with different semantics\&. +.PP +\fBNAMESPACE_MODALIAS "namespace:modalias"\fR +.RS 4 +The dependency is a special modalias dependency that matches installed hardware\&. +.RE +.PP +\fBNAMESPACE_SPLITPROVIDES "namespace:splitprovides"\fR +.RS 4 +The dependency is a special splitprovides dependency used to implement updates that include a package split\&. A splitprovides dependency contains a filename and a package name, it is matched if a package with the provided package name is installed that contains the filename\&. This namespace is implemented in libsolv, so you do not need a callback\&. +.RE +.PP +\fBNAMESPACE_LANGUAGE "namespace:language"\fR +.RS 4 +The dependency describes a language\&. The callback should return true if the language was selected by the user\&. +.RE +.PP +\fBNAMESPACE_FILESYSTEM "namespace:filesystem"\fR +.RS 4 +The dependency describes a filesystem\&. The callback should return true if the filesystem is needed\&. +.RE +.PP +\fBNAMESPACE_OTHERPROVIDERS "namespace:otherproviders"\fR +.RS 4 +This is a hack to allow self\-conflicting packages\&. It is not needed with current rpm version, so do not use this namespace\&. +.RE +.PP +\fBSOLVABLE_PREREQMARKER "solvable:prereqmarker"\fR +.RS 4 +This marker partitions the normal require dependencies from the prerequires\&. It is not needed for dependency solving, but it is used by the transaction ordering algorithm when a dependency cycle needs to be broken (non\-prereq deps get broken first)\&. +.RE +.PP +\fBSOLVABLE_FILEMARKER "solvable:filemarker"\fR +.RS 4 +This marker partitions the package provides dependencies from the synthetic file provides dependencies added by pool_addfileprovides()\&. +.RE +.SH "DATA TYPES" +.sp +Each attribute data is stored with a type, so that the lookup functions know how to interpret the data\&. The following types are available: +.PP +\fBREPOKEY_TYPE_VOID "repokey:type:void"\fR +.RS 4 +No data is stored with this attribute\&. Thus you can only test if the attribute exists or not\&. Useful to store boolean values\&. +.RE +.PP +\fBREPOKEY_TYPE_CONSTANT "repokey:type:constant"\fR +.RS 4 +The data is a constant 32bit number\&. The number is stored in the key area, so using it does not cost extra storage space (but you need the extra key space)\&. +.RE +.PP +\fBREPOKEY_TYPE_CONSTANTID "repokey:type:constantid"\fR +.RS 4 +The data is a constant Id\&. The Id is stored in the key area, so using it does not cost extra storage space (but you need the extra key space)\&. +.RE +.PP +\fBREPOKEY_TYPE_ID "repokey:type:id"\fR +.RS 4 +The data is an Id\&. +.RE +.PP +\fBREPOKEY_TYPE_NUM "repokey:type:num"\fR +.RS 4 +The data is an unsigned 64bit number\&. +.RE +.PP +\fBREPOKEY_TYPE_U32 "repokey:type:num32"\fR +.RS 4 +The data is an unsigned 32bit number\&. Obsolete, do not use\&. +.RE +.PP +\fBREPOKEY_TYPE_DIR "repokey:type:dir"\fR +.RS 4 +The data is an Id of a directory\&. +.RE +.PP +\fBREPOKEY_TYPE_STR "repokey:type:str"\fR +.RS 4 +The data is a regular string\&. +.RE +.PP +\fBREPOKEY_TYPE_BINARY "repokey:type:binary"\fR +.RS 4 +The data is a binary blob\&. +.RE +.PP +\fBREPOKEY_TYPE_IDARRAY "repokey:type:idarray"\fR +.RS 4 +The data is an array of non\-zero Ids\&. +.RE +.PP +\fBREPOKEY_TYPE_REL_IDARRAY "repokey:type:relidarray"\fR +.RS 4 +The data is an array of non\-zero Ids ordered so that it needs less space\&. +.RE +.PP +\fBREPOKEY_TYPE_DIRSTRARRAY "repokey:type:dirstrarray"\fR +.RS 4 +The data is a tuple consisting of a directory Id and a basename\&. Used to store file names\&. +.RE +.PP +\fBREPOKEY_TYPE_DIRNUMNUMARRAY "repokey:type:dirnumnumarray"\fR +.RS 4 +The data is a triple consisting of a directory Id and two 32bit unsigned integers\&. Used to store disk usage information\&. +.RE +.PP +\fBREPOKEY_TYPE_MD5 "repokey:type:md5"\fR +.RS 4 +The data is a binary md5sum\&. +.RE +.PP +\fBREPOKEY_TYPE_SHA1 "repokey:type:sha1"\fR +.RS 4 +The data is a binary sha1sum\&. +.RE +.PP +\fBREPOKEY_TYPE_SHA256 "repokey:type:sha256"\fR +.RS 4 +The data is a binary sha256sum\&. +.RE +.PP +\fBREPOKEY_TYPE_FIXARRAY "repokey:type:fixarray"\fR +.RS 4 +The data is an array of structures that have all the same layout (i\&.e\&. the same keynames and keytypes in the same order)\&. +.RE +.PP +\fBREPOKEY_TYPE_FLEXARRAY "repokey:type:flexarray"\fR +.RS 4 +The data is an array of structures that have a different layout\&. +.RE +.PP +\fBREPOKEY_TYPE_DELETED "repokey:type:deleted"\fR +.RS 4 +The data does not exist\&. Used to mark an attribute that was deleted\&. +.RE +.SH "REPOSITORY METADATA" +.sp +This attributes contain meta information about the repository\&. +.PP +\fBREPOSITORY_SOLVABLES "repository:solvables"\fR +.RS 4 +This attribute holds the array including all of the solvables\&. It is only used in the on\-disk solv files, internally the solvables are stored in the pool\(cqs solvable array for fast access\&. +.RE +.PP +\fBREPOSITORY_DELTAINFO "repository:deltainfo"\fR +.RS 4 +This attribute holds the array including all of the delta packages\&. +.RE +.PP +\fBREPOSITORY_EXTERNAL "repository:external"\fR +.RS 4 +This attribute holds the array including all of the data to construct stub repodata areas to support on\-demand loading of metadata\&. +.RE +.PP +\fBREPOSITORY_KEYS "repository:keys"\fR +.RS 4 +This should really be named "repository:external:keys", it contains an array if Ids that consists of (keyname, keytype) pairs that describe the keys of the stub\&. +.RE +.PP +\fBREPOSITORY_LOCATION "repository:location"\fR +.RS 4 +This is used to provide a file name in the stub\&. +.RE +.PP +\fBREPOSITORY_ADDEDFILEPROVIDES "repository:addedfileprovides"\fR +.RS 4 +This attribute holds an array of filename Ids, that tell the library, that all of the Ids were already added to the solvable provides\&. +.RE +.PP +\fBREPOSITORY_RPMDBCOOKIE "repository:rpmdbcookie"\fR +.RS 4 +An attribute that stores a sha256sum over the file stats of the Packages database\&. It\(cqs used to detect rebuilds of the database, as in that case the database Ids of every package are newly distributed\&. +.RE +.PP +\fBREPOSITORY_TIMESTAMP "repository:timestamp"\fR +.RS 4 +The seconds since the unix epoch when the repository was created\&. +.RE +.PP +\fBREPOSITORY_EXPIRE "repository:expire"\fR +.RS 4 +The seconds after the timestamp when the repository will expire\&. +.RE +.PP +\fBREPOSITORY_UPDATES "repository:updates"\fR +.RS 4 +An array of structures describing what this repository updates\&. +.RE +.PP +\fBREPOSITORY_DISTROS "repository:distros"\fR +.RS 4 +Also an array of structures describing what this repository updates\&. Seems to be the newer name of REPOSITORY_UPDATES\&. +.RE +.PP +\fBREPOSITORY_PRODUCT_LABEL "repository:product:label"\fR +.RS 4 +Should really be called "repository:updates:label"\&. What distribution is updated with this repository\&. +.RE +.PP +\fBREPOSITORY_PRODUCT_CPEID "repository:product:cpeid"\fR +.RS 4 +The cpeid of the platform updated by this repository\&. Is both used in REPOSITORY_UPDATES and REPOSITORY_DISTROS to maximize confusion\&. +.RE +.PP +\fBREPOSITORY_REPOID "repository:repoid"\fR +.RS 4 +An array of Id strings describing keywords/tags about the repository itself\&. +.RE +.PP +\fBREPOSITORY_KEYWORDS "repository:keywords"\fR +.RS 4 +An array of Id strings describing keywords/tags about the content of the repository\&. +.RE +.PP +\fBREPOSITORY_REVISION "repository:revision"\fR +.RS 4 +An arbitrary string describing the revision of the repository\&. +.RE +.PP +\fBREPOSITORY_TOOLVERSION "repository:toolversion"\fR +.RS 4 +Some string describing somewhat the version of libsolv used to create the solv file\&. +.RE +.SH "REPOSITORY METADATA FOR SUSETAGS REPOS" +.sp +Attributes describing repository files in a susetags repository\&. \fBSUSETAGS_DATADIR "susetags:datadir"\fR:: The directory that contains the packages\&. +.PP +\fBSUSETAGS_DESCRDIR "susetags:descrdir"\fR +.RS 4 +The directory that contains the repository file resources\&. +.RE +.PP +\fBSUSETAGS_DEFAULTVENDOR "susetags:defaultvendor"\fR +.RS 4 +The default vendor used when a package does not specify a vendor\&. +.RE +.PP +\fBSUSETAGS_FILE "susetags:file"\fR +.RS 4 +An array of file resources of the repository\&. +.RE +.PP +\fBSUSETAGS_FILE_NAME "susetags:file:name"\fR +.RS 4 +The filename of the resource\&. +.RE +.PP +\fBSUSETAGS_FILE_TYPE "susetags:file:type"\fR +.RS 4 +The type of the resource, e\&.g\&. \(lqMETA\(rq\&. +.RE +.PP +\fBSUSETAGS_FILE_CHECKSUM "susetags:file:checksum"\fR +.RS 4 +The file checksum of the resource\&. +.RE +.SH "REPOSITORY METADATA FOR RPMMD REPOS" +.PP +\fBREPOSITORY_REPOMD "repository:repomd"\fR +.RS 4 +An array of file resources of the repository\&. +.RE +.PP +\fBREPOSITORY_REPOMD_TYPE "repository:repomd:type"\fR +.RS 4 +The type of the resource, e\&.g\&. \(lqprimary\(rq\&. +.RE +.PP +\fBREPOSITORY_REPOMD_LOCATION "repository:repomd:location"\fR +.RS 4 +The location (aka filename) of the resource +.RE +.PP +\fBREPOSITORY_REPOMD_TIMESTAMP "repository:repomd:timestamp"\fR +.RS 4 +The seconds since the unix epoch when the resource was created\&. +.RE +.PP +\fBREPOSITORY_REPOMD_CHECKSUM "repository:repomd:checksum"\fR +.RS 4 +The file checksum of the resource\&. +.RE +.PP +\fBREPOSITORY_REPOMD_OPENCHECKSUM "repository:repomd:openchecksum"\fR +.RS 4 +The checksum over the uncompressed contents of the resource\&. +.RE +.PP +\fBREPOSITORY_REPOMD_SIZE "repository:repomd:size"\fR +.RS 4 +The size of the resource file\&. +.RE +.SH "DELTA PACKAGE ATTRIBUTES" +.PP +\fBDELTA_PACKAGE_NAME "delta:pkgname"\fR +.RS 4 +The target package name for the delta package\&. Applying the delta will recreate the target package\&. +.RE +.PP +\fBDELTA_PACKAGE_EVR "delta:pkgevr"\fR +.RS 4 +The version of the target package\&. +.RE +.PP +\fBDELTA_PACKAGE_ARCH "delta:pkgarch"\fR +.RS 4 +The architecture of the target package\&. +.RE +.PP +\fBDELTA_LOCATION_DIR "delta:locdir"\fR +.RS 4 +The directory in the repository that contains the delta package\&. +.RE +.PP +\fBDELTA_LOCATION_NAME "delta:locname"\fR +.RS 4 +The first part of the file name of the delta package\&. +.RE +.PP +\fBDELTA_LOCATION_EVR "delta:locevr"\fR +.RS 4 +The version part of the file name of the delta package\&. +.RE +.PP +\fBDELTA_LOCATION_SUFFIX "delta:locsuffix"\fR +.RS 4 +The suffix part of the file name of the delta package\&. +.RE +.PP +\fBDELTA_LOCATION_BASE "delta:locbase"\fR +.RS 4 +This attribute can be used to overwrite the repositories base url for the delta\&. +.RE +.PP +\fBDELTA_DOWNLOADSIZE "delta:downloadsize"\fR +.RS 4 +The size of the delta rpm file\&. +.RE +.PP +\fBDELTA_CHECKSUM "delta:checksum"\fR +.RS 4 +The checksum of the delta rpm file\&. +.RE +.PP +\fBDELTA_BASE_EVR "delta:baseevr"\fR +.RS 4 +The version of the package the delta was built against\&. +.RE +.PP +\fBDELTA_SEQ_NAME "delta:seqname"\fR +.RS 4 +The first part of the delta sequence, the base package name\&. +.RE +.PP +\fBDELTA_SEQ_EVR "delta:seqevr"\fR +.RS 4 +The evr part of the delta sequence, the base package evr\&. Identical to the DELTA_BASE_EVR attribute\&. +.RE +.PP +\fBDELTA_SEQ_NUM "delta:seqnum"\fR +.RS 4 +The last part of the delta sequence, the content selection string\&. +.RE +.SH "AUTHOR" +.sp +Michael Schroeder diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-history.3 b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-history.3 new file mode 100644 index 0000000000000000000000000000000000000000..9ccec7ec63ff55c58da761092d27695534ede521 --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-history.3 @@ -0,0 +1,119 @@ +'\" t +.\" Title: Libsolv-History +.\" Author: [see the "Author" section] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" Date: 03/02/2022 +.\" Manual: LIBSOLV +.\" Source: libsolv +.\" Language: English +.\" +.TH "LIBSOLV\-HISTORY" "3" "03/02/2022" "libsolv" "LIBSOLV" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +libsolv-history \- how the libsolv library came into existence +.SH "HISTORY" +.sp +This project was started in May 2007 when the zypp folks decided to switch to a database to speed up installation\&. As I am not a big fan of databases, I (mls) wondered if there would be really some merit of using one for solving, as package dependencies of all packages have to be read in anyway\&. +.sp +Back in 2002, I researched that using a dictionary approach for storing dependencies can reduce the packages file to 1/3 of its size\&. Extending this idea a bit more, I decided to store all strings and relations as unique 32\-bit numbers\&. This has three big advantages: +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +because of the unification, testing whether two strings are equal is the same as testing the equality of two numbers, thus very fast +.RE +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +much space is saved, as numbers do not take up as much space as strings the internal memory representation does not take more space on a 64\-bit system where a pointer is twice the size of a 32\-bit number +.RE +.sp +Thus, the solv format was created, which stores a repository as a string dictionary, a relation dictionary and then all packages dependencies\&. Tests showed that reading and merging multiple solv repositories takes just some milliseconds\&. +.SS "Early solver experiments" +.sp +Having a new repository format was one big step, but the other area where libzypp needed improvement was the solver\&. Libzypp\(cqs solver was a port from the Red Carpet solver, which was written to update packages in an already installed system\&. Using it for the complete installation progress brought it to its limits\&. Also, the added extensions like support for weak dependencies and patches made it fragile and unpredictable\&. +.sp +As I was not very pleased with the way the solver worked, I looked at other solver algorithms\&. I checked smart, yum and apt, but could not find a convincing algorithm\&. My own experiments also were not very convincing, they worked fine for some problems but failed miserably for other corner cases\&. +.SS "Using SAT for solving" +.sp +SUSE\(cqs hack week at the end of June 2007 turned out to be a turning point for the solver\&. Googling for solver algorithms, I stumbled over some note saying that some people are trying to use SAT algorithms to improve solving on Debian\&. Looking at the SAT entry in Wikipedia, it was easy to see that this indeed was the missing piece: SAT algorithms are well researched and there are quite some open source implementations\&. I decided to look at the minisat code, as it is one of the fastest solvers while consisting of not too many lines of code\&. +.sp +Of course, directly using minisat would not work, as a package solver does not need to find just one correct solution, but it also has to optimize some metrics, i\&.e\&. keep as many packages installed as possible\&. Thus, I needed to write my own solver, incorporating the ideas and algorithms used in minisat\&. This wasn\(cqt very hard, and at the end of the hack week the solver calculated the first right solutions\&. +.SS "Selling it to libzypp" +.sp +With those encouraging results, I went to Klaus Kaempf, the system management architect at SUSE\&. We spoke about how to convince the team to make libzypp switch to the new solver\&. Fortunately, libzypp comes with a plethora of solver test cases, so we decided to make the solver pass most of the test cases first\&. Klaus wrote a "deptestomatic" implementation to check the test cases\&. Together with Stephan Kulow, who is responsible for the openSUSE distribution, we tweaked and extended the solver until most of the test cases looked good\&. +.sp +Duncan Mac\-Vicar Prett, the team lead of the YaST team, also joined development by creating Ruby bindings for the solver\&. Later, Klaus improved the bindings and ported them to some other languages\&. +.SS "The attribute store" +.sp +The progress with the repository format and the solver attracted another hacker to the project: Michael Matz from the compiler team\&. He started with improving the repository parsers so that patches and content files also generate solvables\&. After that, he concentrated on storing all of the other metadata of the repositories that are not used for solving, like the package summaries and descriptions\&. At the end of October, a first version of this "attribute store" was checked in\&. Its design goals were: +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +space efficient storage of attributes +.RE +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +paging/on demand loading of data +.RE +.sp +.RS 4 +.ie n \{\ +\h'-04'\(bu\h'+03'\c +.\} +.el \{\ +.sp -1 +.IP \(bu 2.3 +.\} +page compression +.RE +.sp +The first version of the attribute store used a different format for storing information, we later merged this format with the solv file format\&. +.SS "libzypp integration" +.sp +Integration of the sat\-solver into libzypp also started in October 2007 by Stefan Schubert and Michael Andres from the YaST team\&. The first versions supported both the old solver and the new one by using the old repository read functions and converting the old package data in\-memory into a sat solver pool\&. Solvers could be switched with the environment variable ZYPP_SAT_SOLVER\&. The final decision to move to the new solver was made in January of 2008, first just by making the new solver the default one, later by completely throwing out the old solver code\&. This had the advantage that the internal solvable storage could also be done by using the solver pool, something Michael Matz already played with in a proof of concept implementation showing some drastic speed gains\&. The last traces of the old database code were removed in February\&. +.SH "AUTHOR" +.sp +Michael Schroeder diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-pool.3 b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-pool.3 new file mode 100644 index 0000000000000000000000000000000000000000..52ae62686f213b2c7e3619c27faf183afa5792ca --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv-pool.3 @@ -0,0 +1,1337 @@ +'\" t +.\" Title: Libsolv-Pool +.\" Author: [see the "Author" section] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" Date: 03/25/2024 +.\" Manual: LIBSOLV +.\" Source: libsolv +.\" Language: English +.\" +.TH "LIBSOLV\-POOL" "3" "03/25/2024" "libsolv" "LIBSOLV" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +libsolv-pool \- Libsolv\*(Aqs pool object +.SH "PUBLIC ATTRIBUTES" +.PP +\fBvoid *appdata\fR +.RS 4 +A no\-purpose pointer free to use for the library user\&. Freeing the pool simply discards the pointer\&. +.RE +.PP +\fBStringpool ss\fR +.RS 4 +The pool of unified strings\&. +.RE +.PP +\fBReldep *rels\fR +.RS 4 +The pool of unified relation dependencies\&. +.RE +.PP +\fBint nrels\fR +.RS 4 +Number of allocated relation dependencies\&. +.RE +.PP +\fBRepo **repos\fR +.RS 4 +The array of repository pointers, indexed by repository Id\&. +.RE +.PP +\fBint nrepos\fR +.RS 4 +Number of allocated repository array elements, i\&.e\&. the size of the repos array\&. +.RE +.PP +\fBint urepos\fR +.RS 4 +Number of used (i\&.e\&. non\-zero) repository array elements\&. +.RE +.PP +\fBRepo *installed\fR +.RS 4 +Pointer to the repo holding the installed packages\&. You are free to read this attribute, but you should use pool_set_installed() if you want to change it\&. +.RE +.PP +\fBSolvable *solvables\fR +.RS 4 +The array of Solvable objects\&. +.RE +.PP +\fBint nsolvables\fR +.RS 4 +Number of Solvable objects, i\&.e\&. the size of the solvables array\&. Note that the array may contain freed solvables, in that case the repo pointer of the solvable will be zero\&. +.RE +.PP +\fBint disttype\fR +.RS 4 +The distribution type of your system, e\&.g\&. DISTTYPE_DEB\&. You are free to read this attribute, but you should use pool_setdisttype() if you want to change it\&. +.RE +.PP +\fBId *whatprovidesdata\fR +.RS 4 +Multi\-purpose Id storage holding zero terminated arrays of Ids\&. pool_whatprovides() returns an offset into this data\&. +.RE +.PP +\fBMap *considered\fR +.RS 4 +Optional bitmap that can make the library ignore solvables\&. If a bitmap is set, only solvables that have a set bit in the bitmap at their Id are considered usable\&. +.RE +.PP +\fBint debugmask\fR +.RS 4 +A mask that defines which debug events should be reported\&. pool_setdebuglevel() sets this mask\&. +.RE +.PP +\fBDatapos pos\fR +.RS 4 +An object storing some position in the repository data\&. Functions like dataiterator_set_pos() set this object, accessing data with a pseudo solvable Id of SOLVID_POS uses it\&. +.RE +.PP +\fBQueue pooljobs\fR +.RS 4 +A queue where fixed solver jobs can be stored\&. This jobs are automatically added when solver_solve() is called, they are useful to store configuration data like which packages should be multiversion installed\&. +.RE +.SH "CREATION AND DESTRUCTION" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBPool *pool_create()\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Create a new instance of a pool\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_free(Pool *\fR\fIpool\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Free a pool and all of the data it contains, e\&.g\&. the solvables, repositories, strings\&. +.SH "DEBUGGING AND ERROR REPORTING" +.SS "Constants" +.PP +\fBSOLV_FATAL\fR +.RS 4 +Report the error and call \(lqexit(1)\(rq afterwards\&. You cannot mask this level\&. Reports to stderr instead of stdout\&. +.RE +.PP +\fBSOLV_ERROR\fR +.RS 4 +Used to report errors\&. Reports to stderr instead of stdout\&. +.RE +.PP +\fBSOLV_WARN\fR +.RS 4 +Used to report warnings\&. +.RE +.PP +\fBSOLV_DEBUG_STATS\fR +.RS 4 +Used to report statistical data\&. +.RE +.PP +\fBSOLV_DEBUG_RULE_CREATION\fR +.RS 4 +Used to report information about the solver\(cqs creation of rules\&. +.RE +.PP +\fBSOLV_DEBUG_PROPAGATE\fR +.RS 4 +Used to report information about the solver\(cqs unit rule propagation process\&. +.RE +.PP +\fBSOLV_DEBUG_ANALYZE\fR +.RS 4 +Used to report information about the solver\(cqs learnt rule generation mechanism\&. +.RE +.PP +\fBSOLV_DEBUG_UNSOLVABLE\fR +.RS 4 +Used to report information about the solver dealing with conflicting rules\&. +.RE +.PP +\fBSOLV_DEBUG_SOLUTIONS\fR +.RS 4 +Used to report information about the solver creating solutions to solve problems\&. +.RE +.PP +\fBSOLV_DEBUG_POLICY\fR +.RS 4 +Used to report information about the solver searching for an optimal solution\&. +.RE +.PP +\fBSOLV_DEBUG_RESULT\fR +.RS 4 +Used by the debug functions to output results\&. +.RE +.PP +\fBSOLV_DEBUG_JOB\fR +.RS 4 +Used to report information about the job rule generation process\&. +.RE +.PP +\fBSOLV_DEBUG_SOLVER\fR +.RS 4 +Used to report information about what the solver is currently doing\&. +.RE +.PP +\fBSOLV_DEBUG_TRANSACTION\fR +.RS 4 +Used to report information about the transaction generation and ordering process\&. +.RE +.PP +\fBSOLV_DEBUG_TO_STDERR\fR +.RS 4 +Write debug messages to stderr instead of stdout\&. +.RE +.SS "Functions" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_debug(Pool *\fR\fIpool\fR\fB, int\fR \fItype\fR\fB, const char *\fR\fIformat\fR\fB, \&.\&.\&.)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Report a message of the type \fItype\fR\&. You can filter debug messages by setting a debug mask\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_setdebuglevel(Pool *\fR\fIpool\fR\fB, int\fR \fIlevel\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set a predefined debug mask\&. A higher level generally means more bits in the mask are set, thus more messages are printed\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_setdebugmask(Pool *\fR\fIpool\fR\fB, int\fR \fImask\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set the debug mask to filter debug messages\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_error(Pool *\fR\fIpool\fR\fB, int\fR \fIret\fR\fB, const char *\fR\fIformat\fR\fB, \&.\&.\&.)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set the pool\(cqs error string\&. The \fIret\fR value is simply used as a return value of the function so that you can write code like return pool_error(\&...);\&. If the debug mask contains the \fBSOLV_ERROR\fR bit, pool_debug() is also called with the message and type \fBSOLV_ERROR\fR\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBextern char *pool_errstr(Pool *\fR\fIpool\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return the current error string stored in the pool\&. Like with the libc\(cqs errno value, the string is only meaningful after a function returned an error\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_setdebugcallback(Pool *\fR\fIpool\fR\fB, void (*\fR\fIdebugcallback\fR\fB)(Pool *, void *\fR\fIdata\fR\fB, int\fR \fItype\fR\fB, const char *\fR\fIstr\fR\fB), void *\fR\fIdebugcallbackdata\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set a custom debug callback function\&. Instead of writing to stdout or stderr, the callback function will be called\&. +.SH "POOL CONFIGURATION" +.SS "Constants" +.PP +\fBDISTTYPE_RPM\fR +.RS 4 +Used for systems which use rpm as low level package manager\&. +.RE +.PP +\fBDISTTYPE_DEB\fR +.RS 4 +Used for systems which use dpkg as low level package manager\&. +.RE +.PP +\fBDISTTYPE_ARCH\fR +.RS 4 +Used for systems which use the arch linux package manager\&. +.RE +.PP +\fBDISTTYPE_HAIKU\fR +.RS 4 +Used for systems which use haiku packages\&. +.RE +.PP +\fBPOOL_FLAG_PROMOTEEPOCH\fR +.RS 4 +Promote the epoch of the providing dependency to the requesting dependency if it does not contain an epoch\&. Used at some time in old rpm versions, modern systems should never need this\&. +.RE +.PP +\fBPOOL_FLAG_FORBIDSELFCONFLICTS\fR +.RS 4 +Disallow the installation of packages that conflict with themselves\&. Debian always allows self\-conflicting packages, rpm used to forbid them but switched to also allowing them recently\&. +.RE +.PP +\fBPOOL_FLAG_OBSOLETEUSESPROVIDES\fR +.RS 4 +Make obsolete type dependency match against provides instead of just the name and version of packages\&. Very old versions of rpm used the name/version, then it got switched to provides and later switched back again to just name/version\&. +.RE +.PP +\fBPOOL_FLAG_IMPLICITOBSOLETEUSESPROVIDES\fR +.RS 4 +An implicit obsoletes is the internal mechanism to remove the old package on an update\&. The default is to remove all packages with the same name, rpm\-5 switched to also removing packages providing the same name\&. +.RE +.PP +\fBPOOL_FLAG_OBSOLETEUSESCOLORS\fR +.RS 4 +Rpm\(cqs multilib implementation (used in RedHat and Fedora) distinguishes between 32bit and 64bit packages (the terminology is that they have a different color)\&. If obsoleteusescolors is set, packages with different colors will not obsolete each other\&. +.RE +.PP +\fBPOOL_FLAG_IMPLICITOBSOLETEUSESCOLORS\fR +.RS 4 +Same as POOL_FLAG_OBSOLETEUSESCOLORS, but used to find out if packages of the same name can be installed in parallel\&. For current Fedora systems, POOL_FLAG_OBSOLETEUSESCOLORS should be false and POOL_FLAG_IMPLICITOBSOLETEUSESCOLORS should be true (this is the default if FEDORA is defined when libsolv is compiled)\&. +.RE +.PP +\fBPOOL_FLAG_NOINSTALLEDOBSOLETES\fR +.RS 4 +New versions of rpm consider the obsoletes of installed packages when checking for dependency, thus you may not install a package that is obsoleted by some other installed package, unless you also erase the other package\&. +.RE +.PP +\fBPOOL_FLAG_HAVEDISTEPOCH\fR +.RS 4 +Mandriva added a new field called distepoch that gets checked in version comparison if the epoch/version/release of two packages are the same\&. +.RE +.PP +\fBPOOL_FLAG_NOOBSOLETESMULTIVERSION\fR +.RS 4 +If a package is installed in multiversionmode, rpm used to ignore both the implicit obsoletes and the obsolete dependency of a package\&. This was changed to ignoring just the implicit obsoletes, thus you may install multiple versions of the same name, but obsoleted packages still get removed\&. +.RE +.PP +\fBPOOL_FLAG_ADDFILEPROVIDESFILTERED\fR +.RS 4 +Make the addfileprovides method only add files from the standard locations (i\&.e\&. the \(lqbin\(rq and \(lqetc\(rq directories)\&. This is useful if you have only few packages that use non\-standard file dependencies, but you still want the fast speed that addfileprovides() generates\&. +.RE +.SS "Functions" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_setdisttype(Pool *\fR\fIpool\fR\fB, int\fR \fIdisttype\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set the package type of your system\&. The disttype is used for example to define package comparison semantics\&. Libsolv\(cqs default disttype should match the package manager of your system, so you only need to use this function if you want to use the library to solve packaging problems for different systems\&. The Function returns the old disttype on success, and \-1 if the new disttype is not supported\&. Note that any pool_setarch and pool_setarchpolicy calls need to come after the pool_setdisttype call, as they make use of the noarch/any/all architecture id\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_set_flag(Pool *\fR\fIpool\fR\fB, int\fR \fIflag\fR\fB, int\fR \fIvalue\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set a flag to a new value\&. Returns the old value of the flag\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_get_flag(Pool *\fR\fIpool\fR\fB, int\fR \fIflag\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Get the value of a pool flag\&. See the constants section about the meaning of the flags\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_set_rootdir(Pool *\fR\fIpool\fR\fB, const char *\fR\fIrootdir\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set a specific root directory\&. Some library functions support a flag that tells the function to prepend the rootdir to file and directory names\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_get_rootdir(Pool *\fR\fIpool\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return the current value of the root directory\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBchar *pool_prepend_rootdir(Pool *\fR\fIpool\fR\fB, const char *\fR\fIdir\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Prepend the root directory to the \fIdir\fR argument string\&. The returned string has been newly allocated and needs to be freed after use\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBchar *pool_prepend_rootdir_tmp(Pool *\fR\fIpool\fR\fB, const char *\fR\fIdir\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Same as pool_prepend_rootdir, but uses the pool\(cqs temporary space for allocation\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_set_installed(Pool *\fR\fIpool\fR\fB, Repo *\fR\fIrepo\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set which repository should be treated as the \(lqinstalled\(rq repository, i\&.e\&. the one that holds information about the installed packages\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_set_languages(Pool *\fR\fIpool\fR\fB, const char **\fR\fIlanguages\fR\fB, int\fR \fInlanguages\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set the language of your system\&. The library provides lookup functions that return localized strings, for example for package descriptions\&. You can set an array of languages to provide a fallback mechanism if one language is not available\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_setarch(Pool *\fR\fIpool\fR\fB, const char *\fR\fIarch\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set the architecture of your system\&. The architecture is used to determine which packages are installable and which packages cannot be installed\&. The \fIarch\fR argument is normally the \(lqmachine\(rq value of the \(lquname\(rq system call\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_setarchpolicy(Pool *, const char *)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set the architecture policy for your system\&. This is the general version of pool_setarch (in fact pool_setarch calls pool_setarchpolicy internally)\&. See the section about architecture policies for more information\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_addvendorclass(Pool *\fR\fIpool\fR\fB, const char **\fR\fIvendorclass\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Add a new vendor equivalence class to the system\&. A vendor equivalence class defines if an installed package of one vendor can be replaced by a package coming from a different vendor\&. The \fIvendorclass\fR argument must be a NULL terminated array of strings\&. See the section about vendor policies for more information\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_setvendorclasses(Pool *\fR\fIpool\fR\fB, const char **\fR\fIvendorclasses\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Set all allowed vendor equivalences\&. The vendorclasses argument must be an NULL terminated array consisting of all allowed classes concatenated\&. Each class itself must be NULL terminated, thus the last class ends with two NULL elements, one to finish the class and one to finish the list of classes\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_set_custom_vendorcheck(Pool *\fR\fIpool\fR\fB, int (*\fR\fIvendorcheck\fR\fB)(Pool *, Solvable *, Solvable *))\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Define a custom vendor check mechanism\&. You can use this if libsolv\(cqs internal vendor equivalence class mechanism does not match your needs\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_setloadcallback(Pool *\fR\fIpool\fR\fB, int (*\fR\fIcb\fR\fB)(Pool *, Repodata *, void *), void *\fR\fIloadcbdata\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Define a callback function that gets called when repository metadata needs to be loaded on demand\&. See the section about on demand loading in the libsolv\-repodata manual\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_setnamespacecallback(Pool *\fR\fIpool\fR\fB, Id (*\fR\fIcb\fR\fB)(Pool *, void *,\fR \fIId\fR\fB,\fR \fIId\fR\fB), void *\fR\fInscbdata\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Define a callback function to implement custom namespace support\&. See the section about namespace dependencies\&. +.SH "ID POOL MANAGEMENT" +.SS "Constants" +.PP +\fBID_EMPTY\fR +.RS 4 +The Id of the empty string, it is always Id 1\&. +.RE +.PP +\fBREL_LT\fR +.RS 4 +Represents a \(lq<\(rq relation\&. +.RE +.PP +\fBREL_EQ\fR +.RS 4 +Represents a \(lq=\(rq relation\&. +.RE +.PP +\fBREL_GT\fR +.RS 4 +Represents a \(lq>\(rq relation\&. You can use combinations of REL_GT, REL_EQ, and REL_LT or\-ed together to create any relation you like\&. +.RE +.PP +\fBREL_AND\fR +.RS 4 +A boolean AND operation, the \(lqname\(rq and \(lqevr\(rq parts of the relation can be two sub\-dependencies\&. Packages must match both parts of the dependency\&. +.RE +.PP +\fBREL_OR\fR +.RS 4 +A boolean OR operation, the \(lqname\(rq and \(lqevr\(rq parts of the relation can be two sub\-dependencies\&. Packages can match any part of the dependency\&. +.RE +.PP +\fBREL_WITH\fR +.RS 4 +Like REL_AND, but packages must match both dependencies simultaneously\&. See the section about boolean dependencies about more information\&. +.RE +.PP +\fBREL_NAMESPACE\fR +.RS 4 +A special namespace relation\&. See the section about namespace dependencies for more information\&. +.RE +.PP +\fBREL_ARCH\fR +.RS 4 +An architecture filter dependency\&. The \(lqname\(rq part of the relation is a sub\-dependency, the \(lqevr\(rq part is the Id of an architecture that the matching packages must have (note that this is an exact match ignoring architecture policies)\&. +.RE +.PP +\fBREL_FILECONFLICT\fR +.RS 4 +An internal file conflict dependency used to represent file conflicts\&. See the pool_add_fileconflicts_deps() function\&. +.RE +.PP +\fBREL_COND\fR +.RS 4 +A conditional dependency, the \(lqname\(rq sub\-dependency is only considered if the \(lqevr\(rq sub\-dependency is fulfilled\&. See the section about boolean dependencies about more information\&. +.RE +.PP +\fBREL_UNLESS\fR +.RS 4 +A conditional dependency, the \(lqname\(rq sub\-dependency is only considered if the \(lqevr\(rq sub\-dependency is not fulfilled\&. See the section about boolean dependencies about more information\&. +.RE +.PP +\fBREL_COMPAT\fR +.RS 4 +A compat dependency used in Haiku to represent version ranges\&. The \(lqname\(rq part is the actual version, the \(lqevr\(rq part is the backwards compatibility version\&. +.RE +.PP +\fBREL_KIND\fR +.RS 4 +A pseudo dependency that limits the solvables to a specific kind\&. The kind is expected to be a prefix of the solvable name, e\&.g\&. \(lqpatch:foo\(rq would be of kind \(lqpatch\(rq\&. \(lqREL_KIND\(rq is only supported in the selection functions\&. +.RE +.PP +\fBREL_MULTIARCH\fR +.RS 4 +A debian multiarch annotation\&. The most common value for the \(lqevr\(rq part is \(lqany\(rq\&. +.RE +.PP +\fBREL_ELSE\fR +.RS 4 +The else part of a \(lqREL_COND\(rq or \(lqREL_UNLESS\(rq dependency\&. See the section about boolean dependencies\&. +.RE +.PP +\fBREL_ERROR\fR +.RS 4 +An illegal dependency\&. This is useful to encode dependency parse errors\&. +.RE +.SS "Functions" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId pool_str2id(Pool *\fR\fIpool\fR\fB, const char *\fR\fIstr\fR\fB, int\fR \fIcreate\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Add a string to the pool of unified strings, returning the Id of the string\&. If \fIcreate\fR is zero, new strings will not be added to the pool, instead Id 0 is returned\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId pool_strn2id(Pool *\fR\fIpool\fR\fB, const char *\fR\fIstr\fR\fB, unsigned int\fR \fIlen\fR\fB, int\fR \fIcreate\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Same as pool_str2id, but only \fIlen\fR characters of the string are used\&. This can be used to add substrings to the pool\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId pool_rel2id(Pool *\fR\fIpool\fR\fB, Id\fR \fIname\fR\fB, Id\fR \fIevr\fR\fB, int\fR \fIflags\fR\fB, int\fR \fIcreate\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Create a relational dependency from to other dependencies, \fIname\fR and \fIevr\fR, and a \fIflag\fR\&. See the \fBREL_\fR constants for the supported flags\&. As with pool_str2id, \fIcreate\fR defines if new dependencies will get added or Id zero will be returned instead\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId pool_id2langid(Pool *\fR\fIpool\fR\fB, Id\fR \fIid\fR\fB, const char *\fR\fIlang\fR\fB, int\fR \fIcreate\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Attach a language suffix to a string Id\&. This function can be used to create language keyname Ids from keynames, it is functional equivalent to converting the \fIid\fR argument to a string, adding a \(lq:\(rq character and the \fIlang\fR argument to the string and then converting the result back into an Id\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_id2str(const Pool *\fR\fIpool\fR\fB, Id\fR \fIid\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Convert an Id back into a string\&. If the Id is a relational Id, the \(lqname\(rq part will be converted instead\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_id2rel(const Pool *\fR\fIpool\fR\fB, Id\fR \fIid\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return the relation string of a relational Id\&. Returns an empty string if the passed Id is not a relation\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_id2evr(const Pool *\fR\fIpool\fR\fB, Id\fR \fIid\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return the \(lqevr\(rq part of a relational Id as string\&. Returns an empty string if the passed Id is not a relation\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_dep2str(Pool *\fR\fIpool\fR\fB, Id\fR \fIid\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Convert an Id back into a string\&. If the passed Id belongs to a relation, a string representing the relation is returned\&. Note that in that case the string is allocated on the pool\(cqs temporary space\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_freeidhashes(Pool *\fR\fIpool\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Free the hashes used to unify strings and relations\&. You can use this function to save memory if you know that you will no longer create new strings and relations\&. +.SH "SOLVABLE FUNCTIONS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBSolvable *pool_id2solvable(const Pool *\fR\fIpool\fR\fB, Id\fR \fIp\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Convert a solvable Id into a pointer to the solvable data\&. Note that the pointer may become invalid if new solvables are created or old solvables deleted, because the array storing all solvables may get reallocated\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId pool_solvable2id(const Pool *\fR\fIpool\fR\fB, Solvable *\fR\fIs\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Convert a pointer to the solvable data into a solvable Id\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_solvid2str(Pool *\fR\fIpool\fR\fB, Id\fR \fIp\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return a string representing the solvable with the Id \fIp\fR\&. The string will be some canonical representation of the solvable, usually a combination of the name, the version, and the architecture\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_solvable2str(Pool *\fR\fIpool\fR\fB, Solvable *\fR\fIs\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Same as pool_solvid2str, but instead of the Id, a pointer to the solvable is passed\&. +.SH "DEPENDENCY MATCHING" +.SS "Constants" +.PP +\fBEVRCMP_COMPARE\fR +.RS 4 +Compare all parts of the version, treat missing parts as empty strings\&. +.RE +.PP +\fBEVRCMP_MATCH_RELEASE\fR +.RS 4 +A special mode for rpm version string matching\&. If a version misses a release part, it matches all releases\&. In that case the special values \(lq\-2\(rq and \(lq2\(rq are returned, depending on which of the two versions did not have a release part\&. +.RE +.PP +\fBEVRCMP_MATCH\fR +.RS 4 +A generic match, missing parts always match\&. +.RE +.PP +\fBEVRCMP_COMPARE_EVONLY\fR +.RS 4 +Only compare the epoch and the version parts, ignore the release part\&. +.RE +.SS "Functions" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_evrcmp(const Pool *\fR\fIpool\fR\fB, Id\fR \fIevr1id\fR\fB, Id\fR \fIevr2id\fR\fB, int\fR \fImode\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Compare two version Ids, return \-1 if the first version is less than the second version, 0 if they are identical, and 1 if the first version is bigger than the second one\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_evrcmp_str(const Pool *\fR\fIpool\fR\fB, const char *\fR\fIevr1\fR\fB, const char *\fR\fIevr2\fR\fB, int\fR \fImode\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Same as pool_evrcmp(), but uses strings instead of Ids\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_evrmatch(const Pool *\fR\fIpool\fR\fB, Id\fR \fIevrid\fR\fB, const char *\fR\fIepoch\fR\fB, const char *\fR\fIversion\fR\fB, const char *\fR\fIrelease\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Match a version Id against an epoch, a version and a release string\&. Passing NULL means that the part should match everything\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_match_dep(Pool *\fR\fIpool\fR\fB, Id\fR \fId1\fR\fB, Id\fR \fId2\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Returns \(lq1\(rq if the dependency \fId1\fR (the provider) is matched by the dependency \fId2\fR, otherwise \(lq0\(rq is returned\&. For two dependencies to match, both the \(lqname\(rq parts must match and the version range described by the \(lqevr\(rq parts must overlap\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_match_nevr(Pool *\fR\fIpool\fR\fB, Solvable *\fR\fIs\fR\fB, Id\fR \fId\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Like pool_match_dep, but the provider is the "self\-provides" dependency of the Solvable \fIs\fR, i\&.e\&. the dependency \(lqs→name = s→evr\(rq\&. +.SH "WHATPROVIDES INDEX" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_createwhatprovides(Pool *\fR\fIpool\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Create an index that maps dependency Ids to sets of packages that provide the dependency\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_freewhatprovides(Pool *\fR\fIpool\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Free the whatprovides index to save memory\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId pool_whatprovides(Pool *\fR\fIpool\fR\fB, Id\fR \fId\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return an offset into the Pool\(cqs whatprovidesdata array\&. The solvables with the Ids stored starting at that offset provide the dependency \fId\fR\&. The solvable list is zero terminated\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId *pool_whatprovides_ptr(Pool *\fR\fIpool\fR\fB, Id\fR \fId\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Instead of returning the offset, return the pointer to the Ids stored at that offset\&. Note that this pointer has a very limit validity time, as any call that adds new values to the whatprovidesdata area may reallocate the array\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId pool_queuetowhatprovides(Pool *\fR\fIpool\fR\fB, Queue *\fR\fIq\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Add the contents of the Queue \fIq\fR to the end of the whatprovidesdata array, returning the offset into the array\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_addfileprovides(Pool *\fR\fIpool\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Some package managers like rpm allow dependencies on files contained in other packages\&. To allow libsolv to deal with those dependencies in an efficient way, you need to call the addfileprovides method after creating and reading all repositories\&. This method will scan all dependency for file names and then scan all packages for matching files\&. If a filename has been matched, it will be added to the provides list of the corresponding package\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_addfileprovides_queue(Pool *\fR\fIpool\fR\fB, Queue *\fR\fIidq\fR\fB, Queue *\fR\fIidqinst\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Same as pool_addfileprovides, but the added Ids are returned in two Queues, \fIidq\fR for all repositories except the one containing the \(lqinstalled\(rq packages, \fIidqinst\fR for the latter one\&. This information can be stored in the meta section of the repositories to speed up the next time the repository is loaded and addfileprovides is called +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_set_whatprovides(\fR\fIpool\fR\fB, Id\fR \fIid\fR\fB, Id\fR \fIoffset\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Manually set an entry in the whatprovides index\&. You\(cqll never do this for package dependencies, as those entries are created by calling the pool_createwhatprovides() function\&. But this function is useful for namespace provides if you do not want to use a namespace callback to lazily set the provides\&. The offset argument is a offset in the whatprovides array, thus you can use \(lq1\(rq as a false value and \(lq2\(rq as true value\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_flush_namespaceproviders(Pool *\fR\fIpool\fR\fB, Id\fR \fIns\fR\fB, Id\fR \fIevr\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Clear the cache of the providers for namespace dependencies matching namespace \fIns\fR\&. If the \fIevr\fR argument is non\-zero, the namespace dependency for exactly that dependency is cleared, otherwise all matching namespace dependencies are cleared\&. See the section about Namespace dependencies for further information\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_add_fileconflicts_deps(Pool *\fR\fIpool\fR\fB, Queue *\fR\fIconflicts\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Some package managers like rpm report conflicts when a package installation overwrites a file of another installed package with different content\&. As file content information is not stored in the repository metadata, those conflicts can only be detected after the packages are downloaded\&. Libsolv provides a function to check for such conflicts, pool_findfileconflicts()\&. If conflicts are found, they can be added as special \fBREL_FILECONFLICT\fR provides dependencies, so that the solver will know about the conflict when it is re\-run\&. +.SH "UTILITY FUNCTIONS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBchar *pool_alloctmpspace(Pool *\fR\fIpool\fR\fB, int\fR \fIlen\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Allocate space on the pool\(cqs temporary space area\&. This space has a limited lifetime, it will be automatically freed after a fixed amount (currently 16) of other pool_alloctmpspace() calls are done\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_freetmpspace(Pool *\fR\fIpool\fR\fB, const char *\fR\fIspace\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Give the space allocated with pool_alloctmpspace back to the system\&. You do not have to use this function, as the space is automatically reclaimed, but it can be useful to extend the lifetime of other pointers to the pool\(cqs temporary space area\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_bin2hex(Pool *\fR\fIpool\fR\fB, const unsigned char *\fR\fIbuf\fR\fB, int\fR \fIlen\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Convert some binary data to hexadecimal, returning a string allocated in the pool\(cqs temporary space area\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBchar *pool_tmpjoin(Pool *\fR\fIpool\fR\fB, const char *\fR\fIstr1\fR\fB, const char *\fR\fIstr2\fR\fB, const char *\fR\fIstr3\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Join three strings and return the result in the pool\(cqs temporary space area\&. You can use NULL arguments if you just want to join less strings\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBchar *pool_tmpappend(Pool *\fR\fIpool\fR\fB, const char *\fR\fIstr1\fR\fB, const char *\fR\fIstr2\fR\fB, const char *\fR\fIstr3\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Like pool_tmpjoin(), but if the first argument is the last allocated space in the pool\(cqs temporary space area, it will be replaced with the result of the join and no new temporary space slot will be used\&. Thus you can join more than three strings by a combination of one pool_tmpjoin() and multiple pool_tmpappend() calls\&. Note that the \fIstr1\fR pointer is no longer usable after the call\&. +.SH "DATA LOOKUP" +.SS "Constants" +.PP +\fBSOLVID_POS\fR +.RS 4 +Use the data position stored in the pool for the lookup instead of looking up the data of a solvable\&. +.RE +.PP +\fBSOLVID_META\fR +.RS 4 +Use the data stored in the meta section of a repository (or repodata area) instead of looking up the data of a solvable\&. This constant does not work for the pool\(cqs lookup functions, use it for the repo\(cqs or repodata\(cqs lookup functions instead\&. It\(cqs just listed for completeness\&. +.RE +.SS "Functions" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_lookup_str(Pool *\fR\fIpool\fR\fB, Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return the string value stored under the attribute \fIkeyname\fR in solvable \fIsolvid\fR\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBunsigned long long pool_lookup_num(Pool *\fR\fIpool\fR\fB, Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, unsigned long long\fR \fInotfound\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return the 64bit unsigned number stored under the attribute \fIkeyname\fR in solvable \fIsolvid\fR\&. If no such number is found, the value of the \fInotfound\fR argument is returned instead\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBId pool_lookup_id(Pool *\fR\fIpool\fR\fB, Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return the Id stored under the attribute \fIkeyname\fR in solvable \fIsolvid\fR\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_lookup_idarray(Pool *\fR\fIpool\fR\fB, Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, Queue *\fR\fIq\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Fill the queue \fIq\fR with the content of the Id array stored under the attribute \fIkeyname\fR in solvable \fIsolvid\fR\&. Returns \(lq1\(rq if an array was found, otherwise the queue will be empty and \(lq0\(rq will be returned\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_lookup_void(Pool *\fR\fIpool\fR\fB, Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Returns \(lq1\(rq if a void value is stored under the attribute \fIkeyname\fR in solvable \fIsolvid\fR, otherwise \(lq0\(rq\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_lookup_checksum(Pool *\fR\fIpool\fR\fB, Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, Id *\fR\fItypep\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return the checksum that is stored under the attribute \fIkeyname\fR in solvable \fIsolvid\fR\&. The type of the checksum will be returned over the \fItypep\fR pointer\&. If no such checksum is found, NULL will be returned and the type will be set to zero\&. Note that the result is stored in the Pool\(cqs temporary space area\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst unsigned char *pool_lookup_bin_checksum(Pool *\fR\fIpool\fR\fB, Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, Id *\fR\fItypep\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return the checksum that is stored under the attribute \fIkeyname\fR in solvable \fIsolvid\fR\&. Returns the checksum as binary data, you can use the returned type to calculate the length of the checksum\&. No temporary space area is needed\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_lookup_deltalocation(Pool *\fR\fIpool\fR\fB, Id\fR \fIsolvid\fR\fB, unsigned int *\fR\fImedianrp\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +This is a utility lookup function to return the delta location for a delta rpm\&. As solvables cannot store deltas, you have to use SOLVID_POS as argument and set the Pool\(cqs datapos pointer to point to valid delta rpm data\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_search(Pool *\fR\fIpool\fR\fB, Id\fR \fIsolvid\fR\fB, Id\fR \fIkeyname\fR\fB, const char *\fR\fImatch\fR\fB, int\fR \fIflags\fR\fB, int (*\fR\fIcallback\fR\fB)(void *\fR\fIcbdata\fR\fB, Solvable *\fR\fIs\fR\fB, Repodata *\fR\fIdata\fR\fB, Repokey *\fR\fIkey\fR\fB, KeyValue *\fR\fIkv\fR\fB), void *\fR\fIcbdata\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Perform a search on all data stored in the pool\&. You can limit the search area by using the \fIsolvid\fR and \fIkeyname\fR arguments\&. The values can be optionally matched against the \fImatch\fR argument, use NULL if you do not want this matching\&. See the Dataiterator manpage about the possible matches modes and the \fIflags\fR argument\&. For all (matching) values, the callback function is called with the \fIcbdata\fR callback argument and the data describing the value\&. +.SH "JOB AND SELECTION FUNCTIONS" +.sp +A Job consists of two Ids, \fIhow\fR and \fIwhat\fR\&. The \fIhow\fR part describes the action, the job flags, and the selection method while the \fIwhat\fR part is in input for the selection\&. A Selection is a queue consisting of multiple jobs (thus the number of elements in the queue must be a multiple of two)\&. See the Solver manpage for more information about jobs\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_job2str(Pool *\fR\fIpool\fR\fB, Id\fR \fIhow\fR\fB, Id\fR \fIwhat\fR\fB, Id\fR \fIflagmask\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Convert a job into a string\&. Useful for debugging purposes\&. The \fIflagmask\fR can be used to mask the flags of the job, use \(lq0\(rq if you do not want to see such flags, \(lq\-1\(rq to see all flags, or a combination of the flags you want to see\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_job2solvables(Pool *\fR\fIpool\fR\fB, Queue *\fR\fIpkgs\fR\fB, Id\fR \fIhow\fR\fB, Id\fR \fIwhat\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return a list of solvables that the specified job selects\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBint pool_isemptyupdatejob(Pool *\fR\fIpool\fR\fB, Id\fR \fIhow\fR\fB, Id\fR \fIwhat\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Return \(lq1\(rq if the job is an update job that does not work with any installed package, i\&.e\&. the job is basically a no\-op\&. You can use this to turn no\-op update jobs into install jobs (as done by package managers like \(lqzypper\(rq)\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBconst char *pool_selection2str(Pool *\fR\fIpool\fR\fB, Queue *\fR\fIselection\fR\fB, Id\fR \fIflagmask\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Convert a selection into a string\&. Useful for debugging purposes\&. See the pool_job2str() function for the \fIflagmask\fR argument\&. +.SH "ODDS AND ENDS" +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_freeallrepos(Pool *\fR\fIpool\fR\fB, int\fR \fIreuseids\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Free all repos from the pool (including all solvables)\&. If \fIreuseids\fR is true, all Ids of the solvables are free to be reused the next time solvables are created\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +\fBvoid pool_clear_pos(Pool *\fR\fIpool\fR\fB)\fR; +.fi +.if n \{\ +.RE +.\} +.sp +Clear the data position stored in the pool\&. +.SH "ARCHITECTURE POLICIES" +.sp +An architecture policy defines a list of architectures that can be installed on the system, and also the relationship between them (i\&.e\&. the ordering)\&. Architectures can be delimited with three different characters: +.PP +\fB\*(Aq:\*(Aq\fR +.RS 4 +No relationship between the architectures\&. A package of one architecture can not be replaced with one of the other architecture\&. +.RE +.PP +\fB\*(Aq>\*(Aq\fR +.RS 4 +The first architecture is better than the second one\&. An installed package of the second architecture may be replaced with one from the first architecture and vice versa\&. The solver will select the better architecture if the versions are the same\&. +.RE +.PP +\fB\*(Aq=\*(Aq\fR +.RS 4 +The two architectures are freely exchangeable\&. Used to define aliases for architectures\&. +.RE +.sp +An example would be \*(Aqx86_64:i686=athlon>i586\*(Aq\&. This means that x86_64 packages can only be replaced by other x86_64 packages, i686 packages can be replaced by i686 and i586 packages (but i686 packages will be preferred) and athlon is another name for the i686 architecture\&. +.sp +You can turn off the architecture replacement checks with the Solver\(cqs SOLVER_FLAG_ALLOW_ARCHCHANGE flag\&. +.SH "VENDOR POLICIES" +.sp +Different vendors often compile packages with different features, so Libsolv only replace installed packages of one vendor with packages coming from the same vendor\&. Also, while the version of a package is normally defined by the upstream project, the release part of the version is set by the vendor\(cqs package maintainer, so it\(cqs not meaningful to do version comparisons for packages coming from different vendors\&. +.sp +Vendor in this case means the SOLVABLE_VENDOR string stored in each solvable\&. Sometimes a vendor changes names, or multiple vendors form a group that coordinate their package building, so libsolv offers a way to define that a group of vendors are compatible\&. You do that be defining vendor equivalence classes, packages from a vendor from one class may be replaced with packages from all the other vendors in the class\&. +.sp +There can be multiple equivalence classes, the set of allowed vendor changes for an installed package is calculated by building the union of all of the equivalence classes the vendor of the installed package is part of\&. +.sp +You can turn off the vendor replacement checks with the Solver\(cqs SOLVER_FLAG_ALLOW_VENDORCHANGE flag\&. +.SH "BOOLEAN DEPENDENCIES" +.sp +Boolean Dependencies allow building complex expressions from simple dependencies\&. Note that depending on the package manager only a subset of those may be useful\&. For example, debian currently only allows an "OR" expression\&. +.PP +\fBREL_OR\fR +.RS 4 +The expression is true if either the first dependency or the second one is true\&. This is useful for package dependencies like \(lqRequires\(rq, where you can specify that either one of the packages need to be installed\&. +.RE +.PP +\fBREL_AND\fR +.RS 4 +The expression is true if both dependencies are true\&. The packages fulfilling the dependencies may be different, i\&.e\&. \(lqSupplements: perl REL_AND python\(rq is true if both a package providing perl and a package providing python are installed\&. +.RE +.PP +\fBREL_WITH\fR +.RS 4 +The expression is true if both dependencies are true and are fulfilled by the same package\&. Thus \(lqSupplements: perl REL_WITH python\(rq would only be true if a package is installed that provides both dependencies (some kind of multi\-language interpreter)\&. +.RE +.PP +\fBREL_COND\fR +.RS 4 +The expression is true if the first dependency is true or the second dependency is false\&. \(lqA REL_COND B\(rq is equivalent to \(lqA REL_OR (NOT B)\(rq (except that libsolv does not expose \(lqNOT\(rq)\&. +.RE +.PP +\fBREL_UNLESS\fR +.RS 4 +The expression is true if the first dependency is true and the second dependency is false\&. \(lqA REL_UNLESS B\(rq is equivalent to \(lqA REL_AND (NOT B)\(rq (except that libsolv does not expose \(lqNOT\(rq)\&. +.RE +.PP +\fBREL_ELSE\fR +.RS 4 +The \(lqelse\(rq part of a \(lqREL_COND\(rq or \(lqREL_UNLESS\(rq dependency\&. It has to be directly in the evr part of the condition, e\&.g\&. \(lqfoo REL_COND (bar REL_ELSE baz)\(rq\&. For \(lqREL_COND\(rq this is equivalent to writing \(lq(foo REL_COND bar) REL_AND (bar REL_OR baz)\(rq\&. For \(lqREL_UNLESS\(rq this is equivalent to writing \(lq(foo REL_UNLESS bar) REL_OR (bar REL_AND baz)\(rq\&. +.RE +.sp +Each sub\-dependency of a boolean dependency can in turn be a boolean dependency, so you can chain them to create complex dependencies\&. +.SH "NAMESPACE DEPENDENCIES" +.sp +Namespace dependencies can be used to implement dependencies on attributes external to libsolv\&. An example would be a dependency on the language set by the user\&. This types of dependencies are usually only used for \(lqConflicts\(rq or \(lqSupplements\(rq dependencies, as the underlying package manager does not know how to deal with them\&. +.sp +If the library needs to evaluate a namespace dependency, it calls the namespace callback function set in the pool\&. The callback function can return a set of packages that \(lqprovide\(rq the dependency\&. If the dependency is provided by the system, the returned set should consist of just the system solvable (Solvable Id 1)\&. +.sp +The returned set of packages must be returned as offset into the whatprovidesdata array\&. You can use the pool_queuetowhatprovides function to convert a queue into such an offset\&. To ease programming the callback function, the return values \(lq0\(rq and \(lq1\(rq are not interpreted as an offset\&. \(lq0\(rq means that no package is in the return set, \(lq1\(rq means that just the system solvable is in the set\&. +.sp +The returned set is cached, so that for each namespace dependency the callback is just called once\&. If you need to flush the cache (maybe because the user has selected a different language), use the pool_flush_namespaceproviders() function\&. +.SH "AUTHOR" +.sp +Michael Schroeder diff --git a/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv.3 b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv.3 new file mode 100644 index 0000000000000000000000000000000000000000..91d22903dd6d1f0e5d2abc9f969178b9dba73e6e --- /dev/null +++ b/data/miniconda3/pkgs/libsolv-0.7.30-h6f1ccf3_2/share/man/man3/libsolv.3 @@ -0,0 +1,64 @@ +'\" t +.\" Title: Libsolv +.\" Author: [see the "Author" section] +.\" Generator: DocBook XSL Stylesheets vsnapshot +.\" Date: 03/02/2022 +.\" Manual: LIBSOLV +.\" Source: libsolv +.\" Language: English +.\" +.TH "LIBSOLV" "3" "03/02/2022" "libsolv" "LIBSOLV" +.\" ----------------------------------------------------------------- +.\" * Define some portability stuff +.\" ----------------------------------------------------------------- +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.\" http://bugs.debian.org/507673 +.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html +.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +.ie \n(.g .ds Aq \(aq +.el .ds Aq ' +.\" ----------------------------------------------------------------- +.\" * set default formatting +.\" ----------------------------------------------------------------- +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.\" ----------------------------------------------------------------- +.\" * MAIN CONTENT STARTS HERE * +.\" ----------------------------------------------------------------- +.SH "NAME" +libsolv \- package dependency solver library using a satisfiability algorithm +.SH "DOCUMENTATION" +.sp +The libsolv documentation is split into multiple parts: +.PP +\fBlibsolv\-history\fR +.RS 4 +how the libsolv library came into existence +.RE +.PP +\fBlibsolv\-constantids\fR +.RS 4 +fixed Ids for often used strings +.RE +.PP +\fBlibsolv\-bindings\fR +.RS 4 +access libsolv from perl/python/ruby +.RE +.PP +\fBlibsolv\-pool\fR +.RS 4 +libsolv\(cqs pool object +.RE +.SH "POINTER VALIDITY" +.sp +Note that all pointers to objects that have an Id have only a limited validity period, with the exception of Repo pointers\&. They are only guaranteed to be valid until a new object of that type is added or an object of that type is removed\&. Thus pointers to Solvable objects are only valid until another solvable is created, because adding a Solvable may relocate the Pool\(cqs Solvable array\&. This is also true for Pool strings, you should use solv_strdup() to create a copy of the string if you want to use it at some later time\&. You should use the Ids in the code and not the pointers, except for short times where you know that the pointer is safe\&. +.sp +Note also that the data lookup functions or the dataiterator also return values with limited lifetime, this is especially true for data stored in the paged data segment of solv files\&. This is normally data that consists of big strings like package descriptions or is not often needed like package checksums\&. Thus looking up a description of a solvable and then looking up the description of a different solvable or even the checksum of the same solvable may invalidate the first result\&. (The dataiterator supports a dataiterator_strdup() function to create a safe copy\&.) +.sp +The language bindings already deal with pointer validity, so you do not have to worry about this issue when using the bindings\&. +.SH "AUTHOR" +.sp +Michael Schroeder diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICE.h b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICE.h new file mode 100644 index 0000000000000000000000000000000000000000..7560647ed836b4f37891144a82f6dd90c4806a40 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICE.h @@ -0,0 +1,101 @@ +/****************************************************************************** + + +Copyright 1993, 1998 The Open Group + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation. + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of The Open Group shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from The Open Group. + +Author: Ralph Mor, X Consortium + +******************************************************************************/ + +#ifndef _ICE_H_ +#define _ICE_H_ + +/* + * Protocol Version + */ + +#define IceProtoMajor 1 +#define IceProtoMinor 0 + + +/* + * Byte Order + */ + +#define IceLSBfirst 0 +#define IceMSBfirst 1 + + +/* + * ICE minor opcodes + */ + +#define ICE_Error 0 +#define ICE_ByteOrder 1 +#define ICE_ConnectionSetup 2 +#define ICE_AuthRequired 3 +#define ICE_AuthReply 4 +#define ICE_AuthNextPhase 5 +#define ICE_ConnectionReply 6 +#define ICE_ProtocolSetup 7 +#define ICE_ProtocolReply 8 +#define ICE_Ping 9 +#define ICE_PingReply 10 +#define ICE_WantToClose 11 +#define ICE_NoClose 12 + + +/* + * Error severity + */ + +#define IceCanContinue 0 +#define IceFatalToProtocol 1 +#define IceFatalToConnection 2 + + +/* + * ICE error classes that are common to all protocols + */ + +#define IceBadMinor 0x8000 +#define IceBadState 0x8001 +#define IceBadLength 0x8002 +#define IceBadValue 0x8003 + + +/* + * ICE error classes that are specific to the ICE protocol + */ + +#define IceBadMajor 0 +#define IceNoAuth 1 +#define IceNoVersion 2 +#define IceSetupFailed 3 +#define IceAuthRejected 4 +#define IceAuthFailed 5 +#define IceProtocolDuplicate 6 +#define IceMajorOpcodeDuplicate 7 +#define IceUnknownProtocol 8 + +#endif /* _ICE_H_ */ diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEconn.h b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEconn.h new file mode 100644 index 0000000000000000000000000000000000000000..01894273a9263f8f627dc974523d5526e8c2b09e --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEconn.h @@ -0,0 +1,250 @@ +/****************************************************************************** + + +Copyright 1993, 1998 The Open Group + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation. + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of The Open Group shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from The Open Group. + +Author: Ralph Mor, X Consortium +******************************************************************************/ + +#ifndef _ICECONN_H_ +#define _ICECONN_H_ + +#include + +/* + * Data structures for ICE connection object + */ + +typedef struct _IceSavedReplyWait { + IceReplyWaitInfo *reply_wait; + Bool reply_ready; + struct _IceSavedReplyWait *next; +} _IceSavedReplyWait; + +typedef struct _IcePingWait { + IcePingReplyProc ping_reply_proc; + IcePointer client_data; + struct _IcePingWait *next; +} _IcePingWait; + +typedef struct { + char *vendor; + char *release; + int version_count; + IcePoVersionRec *version_recs; + int auth_count; + char **auth_names; + IcePoAuthProc *auth_procs; + IceIOErrorProc io_error_proc; +} _IcePoProtocol; + +typedef struct { + char *vendor; + char *release; + int version_count; + IcePaVersionRec *version_recs; + IceProtocolSetupProc protocol_setup_proc; + IceProtocolActivateProc protocol_activate_proc; + int auth_count; + char **auth_names; + IcePaAuthProc *auth_procs; + IceHostBasedAuthProc host_based_auth_proc; + IceIOErrorProc io_error_proc; +} _IcePaProtocol; + +typedef struct { + char *protocol_name; + _IcePoProtocol *orig_client; + _IcePaProtocol *accept_client; +} _IceProtocol; + +typedef struct { + Bool in_use; + int my_opcode; + _IceProtocol *protocol; + IcePointer client_data; + Bool accept_flag; + union { + IcePaProcessMsgProc accept_client; + IcePoProcessMsgProc orig_client; + } process_msg_proc; +} _IceProcessMsgInfo; + +typedef struct { + int his_version_index; + int my_version_index; + char *his_vendor; + char *his_release; + char my_auth_index; + IcePointer my_auth_state; + Bool must_authenticate; +} _IceConnectToMeInfo; + +typedef struct { + int his_opcode; + int my_opcode; + int his_version_index; + int my_version_index; + char *his_vendor; + char *his_release; + char my_auth_index; + IcePointer my_auth_state; + Bool must_authenticate; +} _IceProtoSetupToMeInfo; + +typedef struct { + Bool auth_active; + char my_auth_index; + IcePointer my_auth_state; +} _IceConnectToYouInfo; + +typedef struct { + int my_opcode; + int my_auth_count; + int *my_auth_indices; + Bool auth_active; + char my_auth_index; + IcePointer my_auth_state; +} _IceProtoSetupToYouInfo; + + +struct _IceConn { + + unsigned int io_ok : 1; /* did an IO error occur? */ + unsigned int swap : 1; /* do we need to swap on reads? */ + unsigned int waiting_for_byteorder : 1; /* waiting for a ByteOrder msg? */ + unsigned int skip_want_to_close : 1; /* avoid shutdown negotiation? */ + unsigned int want_to_close : 1; /* did we send a WantToClose? */ + unsigned int free_asap : 1; /* free as soon as possible */ + unsigned int unused1 : 2; /* future use */ + unsigned int unused2 : 8; /* future use */ + + IceConnectStatus connection_status; /* pending, accepted, rejected */ + + unsigned char my_ice_version_index; /* which version are we using? */ + + struct _XtransConnInfo *trans_conn; /* transport connection object */ + unsigned long send_sequence; /* Sequence # of last msg sent */ + unsigned long receive_sequence; /* Sequence # of last msg received */ + + char *connection_string; /* network connection string */ + char *vendor; /* other client's vendor */ + char *release; /* other client's release */ + + char *inbuf; /* Input buffer starting address */ + char *inbufptr; /* Input buffer index pointer */ + char *inbufmax; /* Input buffer maximum+1 address */ + + char *outbuf; /* Output buffer starting address */ + char *outbufptr; /* Output buffer index pointer */ + char *outbufmax; /* Output buffer maximum+1 address */ + + char *scratch; /* scratch buffer */ + unsigned long scratch_size; /* scratch size */ + + int dispatch_level; /* IceProcessMessages dispatch level */ + + IcePointer context; /* context associated with caller + of IceOpenConnection */ + + /* + * Before we read a message, the major opcode of the message must be + * mapped to our corresponding major opcode (the two clients can use + * different opcodes for the same protocol). In order to save space, + * we keep track of the minimum and maximum major opcodes used by the + * other client. To get the information on how to process this message, + * we do the following... + * + * processMsgInfo = iceConn->process_msg_info[ + * message->majorOpcode - iceConn->his_min_opcode] + * + * Note that the number of elements in the iceConn->process_msg_info + * array is always (iceConn->his_max_opcode - iceConn->his_min_opcode + 1). + * We check process_msg_info->in_use to see if the opcode is being used. + */ + + _IceProcessMsgInfo *process_msg_info; + char his_min_opcode; /* [1..255] */ + char his_max_opcode; /* [1..255] */ + + + /* + * Number of times this iceConn was returned in IceOpenConnection + * or IceAcceptConnection. + */ + + unsigned char open_ref_count; + + + /* + * Number of active protocols. + */ + + unsigned char proto_ref_count; + + + /* + * If this ICE connection was created with IceAcceptConnection, + * the listen_obj field is set to the listen object. Otherwise, + * the listen_obj field is NULL. + */ + + IceListenObj listen_obj; + + + + + /* + * We need to keep track of all the replies we're waiting for. + * Check the comments in process.c for how this works. + */ + + _IceSavedReplyWait *saved_reply_waits; + + + /* + * We keep track of all Pings sent from the client. When the Ping reply + * arrives, we remove it from the list. + */ + + _IcePingWait *ping_waits; + + + /* + * Some state for a client doing a Connection/Protocol Setup + */ + + _IceConnectToYouInfo *connect_to_you; + _IceProtoSetupToYouInfo *protosetup_to_you; + + + /* + * Some state for a client receiving a Connection/Protocol Setup + */ + + _IceConnectToMeInfo *connect_to_me; + _IceProtoSetupToMeInfo *protosetup_to_me; + +}; + +#endif /* _ICECONN_H_ */ diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICElib.h b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICElib.h new file mode 100644 index 0000000000000000000000000000000000000000..402cbc8bd61e8706068a1c6c3d9ebbc7cf64091b --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICElib.h @@ -0,0 +1,431 @@ +/****************************************************************************** + + +Copyright 1993, 1998 The Open Group + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation. + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of The Open Group shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from The Open Group. + +Author: Ralph Mor, X Consortium +******************************************************************************/ + +#ifndef _ICELIB_H_ +#define _ICELIB_H_ + +#include +#include + +#define Bool int +#define Status int +#define True 1 +#define False 0 + +typedef void *IcePointer; + +typedef enum { + IcePoAuthHaveReply, + IcePoAuthRejected, + IcePoAuthFailed, + IcePoAuthDoneCleanup +} IcePoAuthStatus; + +typedef enum { + IcePaAuthContinue, + IcePaAuthAccepted, + IcePaAuthRejected, + IcePaAuthFailed +} IcePaAuthStatus; + +typedef enum { + IceConnectPending, + IceConnectAccepted, + IceConnectRejected, + IceConnectIOError +} IceConnectStatus; + +typedef enum { + IceProtocolSetupSuccess, + IceProtocolSetupFailure, + IceProtocolSetupIOError, + IceProtocolAlreadyActive +} IceProtocolSetupStatus; + +typedef enum { + IceAcceptSuccess, + IceAcceptFailure, + IceAcceptBadMalloc +} IceAcceptStatus; + +typedef enum { + IceClosedNow, + IceClosedASAP, + IceConnectionInUse, + IceStartedShutdownNegotiation +} IceCloseStatus; + +typedef enum { + IceProcessMessagesSuccess, + IceProcessMessagesIOError, + IceProcessMessagesConnectionClosed +} IceProcessMessagesStatus; + +typedef struct { + unsigned long sequence_of_request; + int major_opcode_of_request; + int minor_opcode_of_request; + IcePointer reply; +} IceReplyWaitInfo; + +typedef struct _IceConn *IceConn; +typedef struct _IceListenObj *IceListenObj; + +typedef void (*IceWatchProc) ( + IceConn /* iceConn */, + IcePointer /* clientData */, + Bool /* opening */, + IcePointer * /* watchData */ +); + +typedef void (*IcePoProcessMsgProc) ( + IceConn /* iceConn */, + IcePointer /* clientData */, + int /* opcode */, + unsigned long /* length */, + Bool /* swap */, + IceReplyWaitInfo * /* replyWait */, + Bool * /* replyReadyRet */ +); + +typedef void (*IcePaProcessMsgProc) ( + IceConn /* iceConn */, + IcePointer /* clientData */, + int /* opcode */, + unsigned long /* length */, + Bool /* swap */ +); + +typedef struct { + int major_version; + int minor_version; + IcePoProcessMsgProc process_msg_proc; +} IcePoVersionRec; + +typedef struct { + int major_version; + int minor_version; + IcePaProcessMsgProc process_msg_proc; +} IcePaVersionRec; + +typedef IcePoAuthStatus (*IcePoAuthProc) ( + IceConn /* iceConn */, + IcePointer * /* authStatePtr */, + Bool /* cleanUp */, + Bool /* swap */, + int /* authDataLen */, + IcePointer /* authData */, + int * /* replyDataLenRet */, + IcePointer * /* replyDataRet */, + char ** /* errorStringRet */ +); + +typedef IcePaAuthStatus (*IcePaAuthProc) ( + IceConn /* iceConn */, + IcePointer * /* authStatePtr */, + Bool /* swap */, + int /* authDataLen */, + IcePointer /* authData */, + int * /* replyDataLenRet */, + IcePointer * /* replyDataRet */, + char ** /* errorStringRet */ +); + +typedef Bool (*IceHostBasedAuthProc) ( + char * /* hostName */ +); + +typedef Status (*IceProtocolSetupProc) ( + IceConn /* iceConn */, + int /* majorVersion */, + int /* minorVersion */, + char * /* vendor */, + char * /* release */, + IcePointer * /* clientDataRet */, + char ** /* failureReasonRet */ +); + +typedef void (*IceProtocolActivateProc) ( + IceConn /* iceConn */, + IcePointer /* clientData */ +); + +typedef void (*IceIOErrorProc) ( + IceConn /* iceConn */ +); + +typedef void (*IcePingReplyProc) ( + IceConn /* iceConn */, + IcePointer /* clientData */ +); + +typedef void (*IceErrorHandler) ( + IceConn /* iceConn */, + Bool /* swap */, + int /* offendingMinorOpcode */, + unsigned long /* offendingSequence */, + int /* errorClass */, + int /* severity */, + IcePointer /* values */ +); + +typedef void (*IceIOErrorHandler) ( + IceConn /* iceConn */ +); + + +/* + * Function prototypes + */ + +_XFUNCPROTOBEGIN + +extern int IceRegisterForProtocolSetup ( + const char * /* protocolName */, + const char * /* vendor */, + const char * /* release */, + int /* versionCount */, + IcePoVersionRec * /* versionRecs */, + int /* authCount */, + const char ** /* authNames */, + IcePoAuthProc * /* authProcs */, + IceIOErrorProc /* IOErrorProc */ +); + +extern int IceRegisterForProtocolReply ( + const char * /* protocolName */, + const char * /* vendor */, + const char * /* release */, + int /* versionCount */, + IcePaVersionRec * /* versionRecs */, + int /* authCount */, + const char ** /* authNames */, + IcePaAuthProc * /* authProcs */, + IceHostBasedAuthProc /* hostBasedAuthProc */, + IceProtocolSetupProc /* protocolSetupProc */, + IceProtocolActivateProc /* protocolActivateProc */, + IceIOErrorProc /* IOErrorProc */ +); + +extern IceConn IceOpenConnection ( + char * /* networkIdsList */, + IcePointer /* context */, + Bool /* mustAuthenticate */, + int /* majorOpcodeCheck */, + int /* errorLength */, + char * /* errorStringRet */ +); + +extern IcePointer IceGetConnectionContext ( + IceConn /* iceConn */ +); + +extern Status IceListenForConnections ( + int * /* countRet */, + IceListenObj ** /* listenObjsRet */, + int /* errorLength */, + char * /* errorStringRet */ +); + +extern Status IceListenForWellKnownConnections ( + char * /* port */, + int * /* countRet */, + IceListenObj ** /* listenObjsRet */, + int /* errorLength */, + char * /* errorStringRet */ +); + +extern int IceGetListenConnectionNumber ( + IceListenObj /* listenObj */ +); + +extern char *IceGetListenConnectionString ( + IceListenObj /* listenObj */ +); + +extern char *IceComposeNetworkIdList ( + int /* count */, + IceListenObj * /* listenObjs */ +); + +extern void IceFreeListenObjs ( + int /* count */, + IceListenObj * /* listenObjs */ +); + +extern void IceSetHostBasedAuthProc ( + IceListenObj /* listenObj */, + IceHostBasedAuthProc /* hostBasedAuthProc */ +); + +extern IceConn IceAcceptConnection ( + IceListenObj /* listenObj */, + IceAcceptStatus * /* statusRet */ +); + +extern void IceSetShutdownNegotiation ( + IceConn /* iceConn */, + Bool /* negotiate */ +); + +extern Bool IceCheckShutdownNegotiation ( + IceConn /* iceConn */ +); + +extern IceCloseStatus IceCloseConnection ( + IceConn /* iceConn */ +); + +extern Status IceAddConnectionWatch ( + IceWatchProc /* watchProc */, + IcePointer /* clientData */ +); + +extern void IceRemoveConnectionWatch ( + IceWatchProc /* watchProc */, + IcePointer /* clientData */ +); + +extern IceProtocolSetupStatus IceProtocolSetup ( + IceConn /* iceConn */, + int /* myOpcode */, + IcePointer /* clientData */, + Bool /* mustAuthenticate */, + int * /* majorVersionRet */, + int * /* minorVersionRet */, + char ** /* vendorRet */, + char ** /* releaseRet */, + int /* errorLength */, + char * /* errorStringRet */ +); + +extern Status IceProtocolShutdown ( + IceConn /* iceConn */, + int /* majorOpcode */ +); + +extern IceProcessMessagesStatus IceProcessMessages ( + IceConn /* iceConn */, + IceReplyWaitInfo * /* replyWait */, + Bool * /* replyReadyRet */ +); + +extern Status IcePing ( + IceConn /* iceConn */, + IcePingReplyProc /* pingReplyProc */, + IcePointer /* clientData */ +); + +extern char *IceAllocScratch ( + IceConn /* iceConn */, + unsigned long /* size */ +); + +extern int IceFlush ( + IceConn /* iceConn */ +); + +extern int IceGetOutBufSize ( + IceConn /* iceConn */ +); + +extern int IceGetInBufSize ( + IceConn /* iceConn */ +); + +extern IceConnectStatus IceConnectionStatus ( + IceConn /* iceConn */ +); + +extern char *IceVendor ( + IceConn /* iceConn */ +); + +extern char *IceRelease ( + IceConn /* iceConn */ +); + +extern int IceProtocolVersion ( + IceConn /* iceConn */ +); + +extern int IceProtocolRevision ( + IceConn /* iceConn */ +); + +extern int IceConnectionNumber ( + IceConn /* iceConn */ +); + +extern char *IceConnectionString ( + IceConn /* iceConn */ +); + +extern unsigned long IceLastSentSequenceNumber ( + IceConn /* iceConn */ +); + +extern unsigned long IceLastReceivedSequenceNumber ( + IceConn /* iceConn */ +); + +extern Bool IceSwapping ( + IceConn /* iceConn */ +); + +extern IceErrorHandler IceSetErrorHandler ( + IceErrorHandler /* handler */ +); + +extern IceIOErrorHandler IceSetIOErrorHandler ( + IceIOErrorHandler /* handler */ +); + +extern char *IceGetPeerName ( + IceConn /* iceConn */ +); + +/* + * Multithread Routines + */ + +extern Status IceInitThreads ( + void +); + +extern void IceAppLockConn ( + IceConn /* iceConn */ +); + +extern void IceAppUnlockConn ( + IceConn /* iceConn */ +); + +_XFUNCPROTOEND + +#endif /* _ICELIB_H_ */ diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEmsg.h b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEmsg.h new file mode 100644 index 0000000000000000000000000000000000000000..13e15094aca670f4c01326c7cbcf5a8522e5b573 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEmsg.h @@ -0,0 +1,306 @@ +/****************************************************************************** + + +Copyright 1993, 1998 The Open Group + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation. + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of The Open Group shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from The Open Group. + +Author: Ralph Mor, X Consortium +******************************************************************************/ + +#ifndef _ICEMSG_H_ +#define _ICEMSG_H_ + +#include + +#include + +#include +#if !defined(__cplusplus) && !defined(static_assert) +#define static_assert(cond, msg) /* skip for non-C11 compilers */ +#endif + +_XFUNCPROTOBEGIN + +/* + * Function prototypes for internal ICElib functions + */ + +extern Status _IceRead ( + IceConn /* iceConn */, + unsigned long /* nbytes */, + char * /* ptr */ +); + +extern void _IceReadSkip ( + IceConn /* iceConn */, + unsigned long /* nbytes */ +); + +extern void _IceWrite ( + IceConn /* iceConn */, + unsigned long /* nbytes */, + char * /* ptr */ +); + + +extern void _IceErrorBadMinor ( + IceConn /* iceConn */, + int /* majorOpcode */, + int /* offendingMinor */, + int /* severity */ +); + +extern void _IceErrorBadState ( + IceConn /* iceConn */, + int /* majorOpcode */, + int /* offendingMinor */, + int /* severity */ +); + +extern void _IceErrorBadLength ( + IceConn /* iceConn */, + int /* majorOpcode */, + int /* offendingMinor */, + int /* severity */ +); + +extern void _IceErrorBadValue ( + IceConn /* iceConn */, + int /* majorOpcode */, + int /* offendingMinor */, + int /* offset */, + int /* length */, + IcePointer /* value */ +); + +extern IcePoAuthStatus _IcePoMagicCookie1Proc ( + IceConn /* iceConn */, + IcePointer * /* authStatePtr */, + Bool /* cleanUp */, + Bool /* swap */, + int /* authDataLen */, + IcePointer /* authData */, + int * /* replyDataLenRet */, + IcePointer * /* replyDataRet */, + char ** /* errorStringRet */ +); + +extern IcePaAuthStatus _IcePaMagicCookie1Proc ( + IceConn /* iceConn */, + IcePointer * /* authStatePtr */, + Bool /* swap */, + int /* authDataLen */, + IcePointer /* authData */, + int * /* replyDataLenRet */, + IcePointer * /* replyDataRet */, + char ** /* errorStringRet */ +); + + +/* + * Macro to check if IO operations are valid on an ICE connection. + */ + +#define IceValidIO(_iceConn) _iceConn->io_ok + + +/* + * Macros for writing messages. + */ + +#define IceGetHeader(_iceConn, _major, _minor, _headerSize, _msgType, _pMsg) \ +do { \ + static_assert(_headerSize <= 1024, \ + "Header size larger than ICE_OUTBUFSIZE"); \ + if ((_iceConn->outbufptr + _headerSize) > _iceConn->outbufmax) \ + IceFlush (_iceConn); \ + _pMsg = (_msgType *) _iceConn->outbufptr; \ + _pMsg->majorOpcode = _major; \ + _pMsg->minorOpcode = _minor; \ + _pMsg->length = (_headerSize - SIZEOF (iceMsg)) >> 3; \ + _iceConn->outbufptr += _headerSize; \ + _iceConn->send_sequence++; \ +} while (0) + +#define IceGetHeaderExtra(_iceConn, _major, _minor, _headerSize, _extra, _msgType, _pMsg, _pData) \ +do { \ + static_assert(_headerSize <= 1024, \ + "Header size larger than ICE_OUTBUFSIZE"); \ + if ((_iceConn->outbufptr + \ + _headerSize + ((_extra) << 3)) > _iceConn->outbufmax) \ + IceFlush (_iceConn); \ + _pMsg = (_msgType *) _iceConn->outbufptr; \ + _iceConn->outbufptr += _headerSize; \ + if ((_iceConn->outbufptr + ((_extra) << 3)) <= _iceConn->outbufmax) { \ + _pData = _iceConn->outbufptr; \ + _iceConn->outbufptr += ((_extra) << 3); \ + } \ + else \ + _pData = NULL; \ + _pMsg->majorOpcode = _major; \ + _pMsg->minorOpcode = _minor; \ + _pMsg->length = ((_headerSize - SIZEOF (iceMsg)) >> 3) + (_extra); \ + _iceConn->send_sequence++; \ +} while (0) + +#define IceSimpleMessage(_iceConn, _major, _minor) \ +{ \ + iceMsg *_pMsg; \ + IceGetHeader (_iceConn, _major, _minor, SIZEOF (iceMsg), iceMsg, _pMsg); \ +} + +#define IceErrorHeader(_iceConn, _offendingMajorOpcode, _offendingMinorOpcode, _offendingSequenceNum, _severity, _errorClass, _dataLength) \ +{ \ + iceErrorMsg *_pMsg; \ +\ + IceGetHeader (_iceConn, _offendingMajorOpcode, ICE_Error, \ + SIZEOF (iceErrorMsg), iceErrorMsg, _pMsg); \ + _pMsg->length += (_dataLength); \ + _pMsg->offendingMinorOpcode = (CARD8) _offendingMinorOpcode; \ + _pMsg->severity = (CARD8) _severity; \ + _pMsg->offendingSequenceNum = (CARD32) _offendingSequenceNum; \ + _pMsg->errorClass = (CARD16) _errorClass; \ +} + + +/* + * Write data into the ICE output buffer. + */ + +#define IceWriteData(_iceConn, _bytes, _data) \ +{ \ + if ((_iceConn->outbufptr + (_bytes)) > _iceConn->outbufmax) \ + { \ + IceFlush (_iceConn); \ + _IceWrite (_iceConn, (unsigned long) (_bytes), _data); \ + } \ + else \ + { \ + memcpy (_iceConn->outbufptr, _data, _bytes); \ + _iceConn->outbufptr += (_bytes); \ + } \ +} + +#define IceWriteData16(_iceConn, _bytes, _data) \ + IceWriteData (_iceConn, _bytes, (char *) _data) + +#define IceWriteData32(_iceConn, _bytes, _data) \ + IceWriteData (_iceConn, _bytes, (char *) _data) + + +/* + * The IceSendData macro bypasses copying the data to the + * ICE connection buffer and sends the data directly. If necessary, + * the ICE connection buffer is first flushed. + */ + +#define IceSendData(_iceConn, _bytes, _data) \ +{ \ + if (_iceConn->outbufptr > _iceConn->outbuf) \ + IceFlush (_iceConn); \ + _IceWrite (_iceConn, (unsigned long) (_bytes), _data); \ +} + + +/* + * Write pad bytes. Used to force 32 or 64 bit alignment. + * A maximum of 7 pad bytes can be specified. + */ + +#define IceWritePad(_iceConn, _bytes) \ +{ \ + char _dummy[7] = { 0 }; \ + IceWriteData (_iceConn, (_bytes), _dummy); \ +} + + +/* + * Macros for reading messages. + */ + +#define IceReadCompleteMessage(_iceConn, _headerSize, _msgType, _pMsg, _pData)\ +{ \ + unsigned long _bytes; \ + IceReadMessageHeader (_iceConn, _headerSize, _msgType, _pMsg); \ + _bytes = (_pMsg->length << 3) - (_headerSize - SIZEOF (iceMsg)); \ + if ((_iceConn->inbufmax - _iceConn->inbufptr) >= _bytes) \ + { \ + _IceRead (_iceConn, _bytes, _iceConn->inbufptr); \ + _pData = _iceConn->inbufptr; \ + _iceConn->inbufptr += _bytes; \ + } \ + else \ + { \ + _pData = malloc (_bytes); \ + if (_pData) \ + _IceRead (_iceConn, _bytes, _pData); \ + else \ + _IceReadSkip (_iceConn, _bytes); \ + } \ +} + +#define IceDisposeCompleteMessage(_iceConn, _pData) \ + if ((char *) _pData < _iceConn->inbuf || \ + (char *) _pData >= _iceConn->inbufmax) \ + free (_pData); + + +#define IceReadSimpleMessage(_iceConn, _msgType, _pMsg) \ + _pMsg = (_msgType *) (_iceConn->inbuf); + +#define IceReadMessageHeader(_iceConn, _headerSize, _msgType, _pMsg) \ +{ \ + _IceRead (_iceConn, \ + (unsigned long) (_headerSize - SIZEOF (iceMsg)), \ + _iceConn->inbufptr); \ + _pMsg = (_msgType *) (_iceConn->inbuf); \ + _iceConn->inbufptr += (_headerSize - SIZEOF (iceMsg)); \ +} + +#define IceReadData(_iceConn, _bytes, _pData) \ + _IceRead (_iceConn, (unsigned long) (_bytes), (char *) _pData); \ + +#define IceReadData16(_iceConn, _swap, _bytes, _pData) \ +{ \ + _IceRead (_iceConn, (unsigned long) (_bytes), (char *) _pData); \ +} + +#define IceReadData32(_iceConn, _swap, _bytes, _pData) \ +{ \ + _IceRead (_iceConn, (unsigned long) (_bytes), (char *) _pData); \ +} + + +/* + * Read pad bytes (for 32 or 64 bit alignment). + * A maximum of 7 pad bytes can be specified. + */ + +#define IceReadPad(_iceConn, _bytes) \ +{ \ + char _dummy[7]; \ + _IceRead (_iceConn, (unsigned long) (_bytes), _dummy); \ +} + +_XFUNCPROTOEND + +#endif /* _ICEMSG_H_ */ diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEproto.h b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEproto.h new file mode 100644 index 0000000000000000000000000000000000000000..5726631301a0de3fa194f1c83927cef24341de80 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEproto.h @@ -0,0 +1,175 @@ +/****************************************************************************** + + +Copyright 1993, 1998 The Open Group + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation. + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of The Open Group shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from The Open Group. + +Author: Ralph Mor, X Consortium +******************************************************************************/ + +#ifndef _ICEPROTO_H_ +#define _ICEPROTO_H_ + +#include + +typedef struct { + CARD8 majorOpcode; + CARD8 minorOpcode; + CARD8 data[2]; + CARD32 length; +} iceMsg; + +typedef struct { + CARD8 majorOpcode; + CARD8 minorOpcode; + CARD16 errorClass; + CARD32 length; + CARD8 offendingMinorOpcode; + CARD8 severity; + CARD16 unused; + CARD32 offendingSequenceNum; + /* n varying values */ + /* p p = pad (n, 8) */ +} iceErrorMsg; + +typedef struct { + CARD8 majorOpcode; + CARD8 minorOpcode; + CARD8 byteOrder; + CARD8 unused; + CARD32 length; +} iceByteOrderMsg; + +typedef struct { + CARD8 majorOpcode; + CARD8 minorOpcode; + CARD8 versionCount; + CARD8 authCount; + CARD32 length; + CARD8 mustAuthenticate; + CARD8 unused[7]; + /* i STRING vendor */ + /* j STRING release */ + /* k LIST of STRING authentication-protocol-names */ + /* m LIST of VERSION version-list */ + /* p p = pad (i+j+k+m, 8) */ +} iceConnectionSetupMsg; + +typedef struct { + CARD8 majorOpcode; + CARD8 minorOpcode; + CARD8 authIndex; + CARD8 unused1; + CARD32 length; + CARD16 authDataLength; + CARD8 unused2[6]; + /* n varying data */ + /* p p = pad (n, 8) */ +} iceAuthRequiredMsg; + +typedef struct { + CARD8 majorOpcode; + CARD8 minorOpcode; + CARD8 unused1[2]; + CARD32 length; + CARD16 authDataLength; + CARD8 unused2[6]; + /* n varying data */ + /* p p = pad (n, 8) */ +} iceAuthReplyMsg; + +typedef struct { + CARD8 majorOpcode; + CARD8 minorOpcode; + CARD8 unused1[2]; + CARD32 length; + CARD16 authDataLength; + CARD8 unused2[6]; + /* n varying data */ + /* p p = pad (n, 8) */ +} iceAuthNextPhaseMsg; + +typedef struct { + CARD8 majorOpcode; + CARD8 minorOpcode; + CARD8 versionIndex; + CARD8 unused; + CARD32 length; + /* i STRING vendor */ + /* j STRING release */ + /* p p = pad (i+j, 8) */ +} iceConnectionReplyMsg; + +typedef struct { + CARD8 majorOpcode; + CARD8 minorOpcode; + CARD8 protocolOpcode; + CARD8 mustAuthenticate; + CARD32 length; + CARD8 versionCount; + CARD8 authCount; + CARD8 unused[6]; + /* i STRING protocol-name */ + /* j STRING vendor */ + /* k STRING release */ + /* m LIST of STRING authentication-protocol-names */ + /* n LIST of VERSION version-list */ + /* p p = pad (i+j+k+m+n, 8) */ +} iceProtocolSetupMsg; + +typedef struct { + CARD8 majorOpcode; + CARD8 minorOpcode; + CARD8 versionIndex; + CARD8 protocolOpcode; + CARD32 length; + /* i STRING vendor */ + /* j STRING release */ + /* p p = pad (i+j, 8) */ +} iceProtocolReplyMsg; + +typedef iceMsg icePingMsg; +typedef iceMsg icePingReplyMsg; +typedef iceMsg iceWantToCloseMsg; +typedef iceMsg iceNoCloseMsg; + + +/* + * SIZEOF values. These better be multiples of 8. + */ + +#define sz_iceMsg 8 +#define sz_iceErrorMsg 16 +#define sz_iceByteOrderMsg 8 +#define sz_iceConnectionSetupMsg 16 +#define sz_iceAuthRequiredMsg 16 +#define sz_iceAuthReplyMsg 16 +#define sz_iceAuthNextPhaseMsg 16 +#define sz_iceConnectionReplyMsg 8 +#define sz_iceProtocolSetupMsg 16 +#define sz_iceProtocolReplyMsg 8 +#define sz_icePingMsg 8 +#define sz_icePingReplyMsg 8 +#define sz_iceWantToCloseMsg 8 +#define sz_iceNoCloseMsg 8 + +#endif /* _ICEPROTO_H_ */ diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEutil.h b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEutil.h new file mode 100644 index 0000000000000000000000000000000000000000..92e8a435c5cca0f946fcaaa0ec32819013d9a3bd --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/include/X11/ICE/ICEutil.h @@ -0,0 +1,124 @@ +/****************************************************************************** + + +Copyright 1993, 1998 The Open Group + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation. + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of The Open Group shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from The Open Group. + +Author: Ralph Mor, X Consortium +******************************************************************************/ + +#ifndef _ICEUTIL_H_ +#define _ICEUTIL_H_ + +#include + +#include + +_XFUNCPROTOBEGIN + +/* + * Data structure for entry in ICE authority file + */ + +typedef struct { + char *protocol_name; + unsigned short protocol_data_length; + char *protocol_data; + char *network_id; + char *auth_name; + unsigned short auth_data_length; + char *auth_data; +} IceAuthFileEntry; + + +/* + * Authentication data maintained in memory. + */ + +typedef struct { + char *protocol_name; + char *network_id; + char *auth_name; + unsigned short auth_data_length; + char *auth_data; +} IceAuthDataEntry; + + +/* + * Return values from IceLockAuthFile + */ + +#define IceAuthLockSuccess 0 /* lock succeeded */ +#define IceAuthLockError 1 /* lock unexpectedly failed, check errno */ +#define IceAuthLockTimeout 2 /* lock failed, timeouts expired */ + + +/* + * Function Prototypes + */ + +extern char *IceAuthFileName ( + void +); + +extern int IceLockAuthFile ( + const char * /* file_name */, + int /* retries */, + int /* timeout */, + long /* dead */ +); + +extern void IceUnlockAuthFile ( + const char * /* file_name */ +); + +extern IceAuthFileEntry *IceReadAuthFileEntry ( + FILE * /* auth_file */ +); + +extern void IceFreeAuthFileEntry ( + IceAuthFileEntry * /* auth */ +); + +extern Status IceWriteAuthFileEntry ( + FILE * /* auth_file */, + IceAuthFileEntry * /* auth */ +); + +extern IceAuthFileEntry *IceGetAuthFileEntry ( + const char * /* protocol_name */, + const char * /* network_id */, + const char * /* auth_name */ +); + +extern char *IceGenerateMagicCookie ( + int /* len */ +); + +extern void IceSetPaAuthData ( + int /* numEntries */, + IceAuthDataEntry * /* entries */ +); + +_XFUNCPROTOEND + +#endif /* _ICEUTIL_H_ */ diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/about.json b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..4ba6aeb3d8f9b54e25c91d7532c10a5e2d9475b7 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/about.json @@ -0,0 +1,182 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge" + ], + "conda_build_version": "24.11.2", + "conda_version": "24.11.0", + "env_vars": { + "CIO_TEST": "" + }, + "extra": { + "copy_test_source_files": true, + "final": true, + "flow_run_id": "azure_20241214.3.1", + "recipe-maintainers": [ + "pkgw" + ], + "remote_url": "https://github.com/conda-forge/xorg-libice-feedstock", + "sha": "93f0603557e9c1c40da4c27eca03a92cf60f9d16" + }, + "home": "https://www.x.org/", + "identifiers": [], + "keywords": [], + "license": "MIT", + "license_family": "MIT", + "license_file": "COPYING", + "root_pkgs": [ + "libgcc 14.2.0 h77fa898_1", + "tqdm 4.67.1 pyhd8ed1ab_0", + "krb5 1.21.3 h659f571_0", + "setuptools 75.6.0 pyhff2d567_1", + "_libgcc_mutex 0.1 conda_forge", + "cffi 1.17.1 py312h06ac9bb_0", + "xz-tools 5.6.3 hb9d3cd8_1", + "liblief 0.14.1 h5888daf_2", + "libexpat 2.6.4 h5888daf_0", + "py-lief 0.14.1 py312h2ec8cdc_2", + "certifi 2024.8.30 pyhd8ed1ab_0", + "python-libarchive-c 5.1 py312h7900ff3_1", + "conda-libmamba-solver 24.11.1 pyhd8ed1ab_0", + "libgomp 14.2.0 h77fa898_1", + "su-exec 0.2 h166bdaf_1003", + "anaconda-client 1.12.3 pyhd8ed1ab_1", + "libssh2 1.11.1 hf672d98_0", + "zstd 1.5.6 ha6fb4c9_0", + "traitlets 5.14.3 pyhd8ed1ab_1", + "yaml-cpp 0.8.0 h59595ed_0", + "ruamel.yaml 0.18.6 py312h66e93f0_1", + "patchelf 0.17.2 h58526e2_0", + "beautifulsoup4 4.12.3 pyha770c72_1", + "libmamba 2.0.4 hf72d635_0", + "cpp-expected 1.1.0 hf52228f_0", + "yaml 0.2.5 h7f98852_2", + "distro 1.9.0 pyhd8ed1ab_0", + "conda-package-handling 2.4.0 pyh7900ff3_0", + "defusedxml 0.7.1 pyhd8ed1ab_0", + "simdjson 3.10.1 h84d6215_0", + "tzdata 2024b hc8b5060_0", + "jinja2 3.1.4 pyhd8ed1ab_1", + "libsqlite 3.47.2 hee588c1_0", + "openssl 3.4.0 hb9d3cd8_0", + "jsonschema-specifications 2024.10.1 pyhd8ed1ab_1", + "h2 4.1.0 pyhd8ed1ab_1", + "bzip2 1.0.8 h4bc722e_7", + "xz 5.6.3 hbcc6ac9_1", + "lz4-c 1.10.0 h5888daf_1", + "libev 4.33 hd590300_2", + "pycosat 0.6.6 py312h66e93f0_2", + "colorama 0.4.6 pyhd8ed1ab_1", + "xz-gpl-tools 5.6.3 hbcc6ac9_1", + "pytz 2024.2 pyhd8ed1ab_1", + "ca-certificates 2024.8.30 hbcca054_0", + "pkginfo 1.12.0 pyhd8ed1ab_1", + "charset-normalizer 3.4.0 pyhd8ed1ab_1", + "pysocks 1.7.1 pyha55dd90_7", + "libstdcxx-ng 14.2.0 h4852527_1", + "libxcrypt 4.4.36 hd590300_1", + "zipp 3.21.0 pyhd8ed1ab_1", + "jsonpatch 1.33 pyhd8ed1ab_0", + "importlib_resources 6.4.5 pyhd8ed1ab_1", + "click 8.1.7 unix_pyh707e725_1", + "conda-index 0.5.0 pyhd8ed1ab_0", + "python_abi 3.12 5_cp312", + "jsonschema 4.23.0 pyhd8ed1ab_1", + "libcurl 8.10.1 hbbe4b11_0", + "chardet 5.2.0 py312h7900ff3_2", + "libffi 3.4.2 h7f98852_5", + "filelock 3.16.1 pyhd8ed1ab_1", + "ruamel.yaml.clib 0.2.8 py312h66e93f0_1", + "libstdcxx 14.2.0 hc0a3c3a_1", + "mamba 2.0.4 hfdd0a45_0", + "c-ares 1.34.3 hb9d3cd8_1", + "hyperframe 6.0.1 pyhd8ed1ab_1", + "truststore 0.10.0 pyhd8ed1ab_0", + "tini 0.19.0 h166bdaf_1", + "libiconv 1.17 hd590300_2", + "libarchive 3.7.7 h22911aa_1", + "requests-toolbelt 1.0.0 pyhd8ed1ab_1", + "more-itertools 10.5.0 pyhd8ed1ab_1", + "psutil 6.1.0 py312h66e93f0_0", + "python-dateutil 2.9.0.post0 pyhff2d567_1", + "nlohmann_json 3.11.3 he02047a_1", + "keyutils 1.6.1 h166bdaf_0", + "libnghttp2 1.64.0 h161d5f1_0", + "libnsl 2.0.1 hd590300_0", + "referencing 0.35.1 pyhd8ed1ab_1", + "wheel 0.45.1 pyhd8ed1ab_1", + "markupsafe 3.0.2 py312h178313f_1", + "python-fastjsonschema 2.21.1 pyhd8ed1ab_0", + "reproc-cpp 14.2.5.post0 h5888daf_0", + "pkgutil-resolve-name 1.3.10 pyhd8ed1ab_2", + "conda 24.11.0 py312h7900ff3_0", + "python 3.12.8 h9e4cc4f_1_cpython", + "liblzma-devel 5.6.3 hb9d3cd8_1", + "lzo 2.10 hd590300_1001", + "_openmp_mutex 4.5 2_gnu", + "archspec 0.2.3 pyhd8ed1ab_0", + "jsonpointer 3.0.0 py312h7900ff3_1", + "ld_impl_linux-64 2.43 h712a8e2_2", + "reproc 14.2.5.post0 hb9d3cd8_0", + "pcre2 10.44 hba22ea6_2", + "patch 2.7.6 h7f98852_1002", + "brotli-python 1.1.0 py312h2ec8cdc_2", + "frozendict 2.4.6 py312h66e93f0_0", + "jupyter_core 5.7.2 pyh31011fe_1", + "urllib3 2.2.3 pyhd8ed1ab_1", + "libgcc-ng 14.2.0 h69a702a_1", + "libzlib 1.3.1 hb9d3cd8_2", + "pycparser 2.22 pyh29332c3_1", + "boltons 24.0.0 pyhd8ed1ab_0", + "pip 24.3.1 pyh8b19718_0", + "libuuid 2.38.1 h0b41bf4_0", + "pybind11-abi 4 hd8ed1ab_3", + "six 1.17.0 pyhd8ed1ab_0", + "zstandard 0.23.0 py312hef9b889_1", + "requests 2.32.3 pyhd8ed1ab_1", + "soupsieve 2.5 pyhd8ed1ab_1", + "perl 5.32.1 7_hd590300_perl5", + "menuinst 2.2.0 py312h7900ff3_0", + "rpds-py 0.22.3 py312h12e396e_0", + "icu 75.1 he02047a_0", + "packaging 24.2 pyhd8ed1ab_2", + "spdlog 1.14.1 hed91bc2_1", + "idna 3.10 pyhd8ed1ab_1", + "libxml2 2.13.5 h8d12d68_1", + "libsolv 0.7.30 h3509ff9_0", + "platformdirs 4.3.6 pyhd8ed1ab_1", + "conda-package-streaming 0.11.0 pyhd8ed1ab_0", + "fmt 11.0.2 h434a139_0", + "pyyaml 6.0.2 py312h66e93f0_1", + "tk 8.6.13 noxft_h4845f30_101", + "git 2.47.1 pl5321h59d505e_0", + "conda-build 24.11.2 py312h7900ff3_0", + "attrs 24.2.0 pyh71513ae_1", + "nbformat 5.10.4 pyhd8ed1ab_1", + "libedit 3.1.20191231 he28a2e2_2", + "readline 8.2 h8228510_1", + "pluggy 1.5.0 pyhd8ed1ab_1", + "libmambapy 2.0.4 py312hf3f0a4e_0", + "ripgrep 14.1.1 h8fae777_0", + "hpack 4.0.0 pyhd8ed1ab_1", + "liblzma 5.6.3 hb9d3cd8_1", + "ncurses 6.5 he02047a_1", + "rattler-build-conda-compat 1.2.2 pyhd8ed1ab_0", + "oras-py 0.1.14 pyhd8ed1ab_0", + "tomli 2.2.1 pyhd8ed1ab_1", + "jq 1.7.1 hd590300_0", + "conda-forge-metadata 0.11.0 pyhd8ed1ab_0", + "conda-oci-mirror 0.2.1 pyhd8ed1ab_0", + "typing_extensions 4.12.2 pyha770c72_1", + "conda-forge-ci-setup 4.14.0 py312hb3d6910_100", + "typing-extensions 4.12.2 hd8ed1ab_1", + "shyaml 0.6.2 pyhd3deb0d_0", + "wrapt 1.17.0 py312h66e93f0_0", + "joblib 1.4.2 pyhd8ed1ab_1", + "rattler-build 0.32.1 h51b9b6e_0", + "oniguruma 6.9.9 hd590300_0", + "conda-env 2.6.0 1", + "deprecated 1.2.15 pyhd8ed1ab_1" + ], + "summary": "The X.org Inter-Client Exchange library.", + "tags": [] +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/files b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/files new file mode 100644 index 0000000000000000000000000000000000000000..c66a4a3612d698ed7c1620d477c806175c7faa61 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/files @@ -0,0 +1,10 @@ +include/X11/ICE/ICE.h +include/X11/ICE/ICEconn.h +include/X11/ICE/ICElib.h +include/X11/ICE/ICEmsg.h +include/X11/ICE/ICEproto.h +include/X11/ICE/ICEutil.h +lib/libICE.so +lib/libICE.so.6 +lib/libICE.so.6.3.0 +lib/pkgconfig/ice.pc diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/git b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/git new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/has_prefix b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/has_prefix new file mode 100644 index 0000000000000000000000000000000000000000..3779dc31da15f10c7aac2f613ce0735e9a10e6ac --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/has_prefix @@ -0,0 +1 @@ +/home/conda/feedstock_root/build_artifacts/xorg-libice_1734227449243/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold text lib/pkgconfig/ice.pc diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/hash_input.json b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..e59da68ebad1cbeb68862a97a20d6f053df35149 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/hash_input.json @@ -0,0 +1,9 @@ +{ + "c_stdlib_version": "2.17", + "c_compiler_version": "13", + "c_stdlib": "sysroot", + "channel_targets": "conda-forge main", + "target_platform": "linux-64", + "c_compiler": "gcc", + "__glibc": "__glibc >=2.17,<3.0.a0" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/index.json b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..553c19cf5c7905d5d9f8f0f918fc1c9e3b209646 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/index.json @@ -0,0 +1,16 @@ +{ + "arch": "x86_64", + "build": "hb9d3cd8_0", + "build_number": 0, + "depends": [ + "__glibc >=2.17,<3.0.a0", + "libgcc >=13" + ], + "license": "MIT", + "license_family": "MIT", + "name": "xorg-libice", + "platform": "linux", + "subdir": "linux-64", + "timestamp": 1734227592886, + "version": "1.1.2" +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/licenses/COPYING b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/licenses/COPYING new file mode 100644 index 0000000000000000000000000000000000000000..fa56591ea5d13ff4efb50240ad8bb25f2fcf4d8a --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/licenses/COPYING @@ -0,0 +1,23 @@ +Copyright 1993, 1998 The Open Group + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation. + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of The Open Group shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from The Open Group. + +Author: Ralph Mor, X Consortium diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/paths.json b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..b92b8b75c014756e37854143469e0ffa4084eb52 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/paths.json @@ -0,0 +1,67 @@ +{ + "paths": [ + { + "_path": "include/X11/ICE/ICE.h", + "path_type": "hardlink", + "sha256": "02c40f49cc04745ad83619036d8f8356f5933975c54c7a38d090bc21343d39fb", + "size_in_bytes": 2512 + }, + { + "_path": "include/X11/ICE/ICEconn.h", + "path_type": "hardlink", + "sha256": "9e0e0f36d3237b7e2b0646e13ef2b437567500f09c00fc6ec467ce6618c8101a", + "size_in_bytes": 7413 + }, + { + "_path": "include/X11/ICE/ICElib.h", + "path_type": "hardlink", + "sha256": "23a5b0fd150903821238902d2f92eaab117e45745b0fbeebdfdca803a74b59fe", + "size_in_bytes": 9925 + }, + { + "_path": "include/X11/ICE/ICEmsg.h", + "path_type": "hardlink", + "sha256": "14987e1c06d31ada7a3e98c29e0b46e23ea6ba897218e2a15fc268be9321bb2c", + "size_in_bytes": 8620 + }, + { + "_path": "include/X11/ICE/ICEproto.h", + "path_type": "hardlink", + "sha256": "62ac0703108f067f3160f875fea16e7f231f3c52de69b569a2b0d1f888840be7", + "size_in_bytes": 4604 + }, + { + "_path": "include/X11/ICE/ICEutil.h", + "path_type": "hardlink", + "sha256": "71fff2ccd589187c37a4b81a9c4aec4ee9242b5d57a3ec86355cb42ea9d5a9fb", + "size_in_bytes": 3155 + }, + { + "_path": "lib/libICE.so", + "path_type": "softlink", + "sha256": "5ab19998868bd12c381a83b6368b485381eff9d9c61b2591148c04cbcd599628", + "size_in_bytes": 123072 + }, + { + "_path": "lib/libICE.so.6", + "path_type": "softlink", + "sha256": "5ab19998868bd12c381a83b6368b485381eff9d9c61b2591148c04cbcd599628", + "size_in_bytes": 123072 + }, + { + "_path": "lib/libICE.so.6.3.0", + "path_type": "hardlink", + "sha256": "5ab19998868bd12c381a83b6368b485381eff9d9c61b2591148c04cbcd599628", + "size_in_bytes": 123072 + }, + { + "_path": "lib/pkgconfig/ice.pc", + "file_mode": "text", + "path_type": "hardlink", + "prefix_placeholder": "/home/conda/feedstock_root/build_artifacts/xorg-libice_1734227449243/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold", + "sha256": "de7837f9501e4f3ba75d62ab309837174d39dfb21595adeba1efa304f48274fb", + "size_in_bytes": 491 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/bld.bat b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/bld.bat new file mode 100644 index 0000000000000000000000000000000000000000..d2d47f89334c4c1d29a7e903e3f6fa8262936428 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/bld.bat @@ -0,0 +1,18 @@ +:: Trailing semicolon in this variable as set by current (2017/01) +:: conda-build breaks us. Manual fix: +set "MSYS2_ARG_CONV_EXCL=/AI;/AL;/OUT;/out" +:: Delegate to the Unixy script. We need to translate the key path variables +:: to be Unix-y rather than Windows-y, though. +set "saved_recipe_dir=%RECIPE_DIR%" +FOR /F "delims=" %%i IN ('cygpath.exe -u -p "%PATH%"') DO set "PATH_OVERRIDE=%%i" +FOR /F "delims=" %%i IN ('cygpath.exe -m "%BUILD_PREFIX%"') DO set "BUILD_PREFIX_M=%%i" +FOR /F "delims=" %%i IN ('cygpath.exe -m "%LIBRARY_PREFIX%"') DO set "LIBRARY_PREFIX_M=%%i" +FOR /F "delims=" %%i IN ('cygpath.exe -u "%LIBRARY_PREFIX%"') DO set "LIBRARY_PREFIX_U=%%i" +FOR /F "delims=" %%i IN ('cygpath.exe -u "%PREFIX%"') DO set "PREFIX=%%i" +FOR /F "delims=" %%i IN ('cygpath.exe -u "%PYTHON%"') DO set "PYTHON=%%i" +FOR /F "delims=" %%i IN ('cygpath.exe -u "%RECIPE_DIR%"') DO set "RECIPE_DIR=%%i" +FOR /F "delims=" %%i IN ('cygpath.exe -u "%SP_DIR%"') DO set "SP_DIR=%%i" +FOR /F "delims=" %%i IN ('cygpath.exe -u "%SRC_DIR%"') DO set "SRC_DIR=%%i" +FOR /F "delims=" %%i IN ('cygpath.exe -u "%STDLIB_DIR%"') DO set "STDLIB_DIR=%%i" +bash -x %saved_recipe_dir%\build.sh +if errorlevel 1 exit 1 diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/build.sh b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ab22696cd480ad52b28ec997c8d08956dd89dfa --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/build.sh @@ -0,0 +1,80 @@ +#! /bin/bash + +set -xeo pipefail + +# Adopt a Unix-friendly path if we're on Windows (see bld.bat). +[ -n "$PATH_OVERRIDE" ] && export PATH="$PATH_OVERRIDE" + +# On Windows we want $LIBRARY_PREFIX in both "mixed" (C:/Conda/...) and Unix +# (/c/Conda) forms, but Unix form is often "/" which can cause problems. +if [ -n "$LIBRARY_PREFIX_M" ] ; then + mprefix="$LIBRARY_PREFIX_M" + if [ "$LIBRARY_PREFIX_U" = / ] ; then + uprefix="" + else + uprefix="$LIBRARY_PREFIX_U" + fi +else + mprefix="$PREFIX" + uprefix="$PREFIX" +fi + +# On Windows we need to regenerate the configure scripts. +if [ -n "$CYGWIN_PREFIX" ] ; then + am_version=1.16 # keep sync'ed with meta.yaml + export ACLOCAL=aclocal-$am_version + export AUTOMAKE=automake-$am_version + autoreconf_args=( + --force + --install + -I "$mprefix/share/aclocal" + -I "$BUILD_PREFIX_M/Library/usr/share/aclocal" + ) + autoreconf "${autoreconf_args[@]}" + + # Asking for this leads to compile errors: + export CONFIG_FLAGS="--disable-ipv6" + + # And we need to add the search path that lets libtool find the + # msys2 stub libraries for ws2_32. + platlibs=$(cd $(dirname $($CC --print-prog-name=ld))/../sysroot/usr/lib && pwd -W) + test -f $platlibs/libws2_32.a || { exit "error locating libws2_32" ; exit 1 ; } + export LDFLAGS="$LDFLAGS -L$platlibs" +else + # for other platforms we just need to reconf to get the correct achitecture + echo libtoolize --force + libtoolize --force + echo aclocal -I $PREFIX/share/aclocal -I $BUILD_PREFIX/share/aclocal + aclocal -I $PREFIX/share/aclocal -I $BUILD_PREFIX/share/aclocal + echo autoconf + autoconf + echo automake --force-missing --add-missing --include-deps + automake --force-missing --add-missing --include-deps + + export CONFIG_FLAGS="--build=${BUILD}" +fi + +export PKG_CONFIG_LIBDIR=$uprefix/lib/pkgconfig:$uprefix/share/pkgconfig +configure_args=( + $CONFIG_FLAGS + --prefix=$mprefix + --disable-static + --disable-dependency-tracking + --disable-selective-werror + --disable-silent-rules +) + +# Unix domain sockets aren't gonna work on Windows +if [ -n "$CYGWIN_PREFIX" ] ; then + configure_args+=(--disable-unix-transport) +fi + +./configure "${configure_args[@]}" +make -j$CPU_COUNT +make install + +if [[ "${CONDA_BUILD_CROSS_COMPILATION:-}" != "1" || "${CROSSCOMPILING_EMULATOR}" != "" ]]; then + make check +fi + +rm -rf $uprefix/share/doc/libICE diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/conda_build_config.yaml b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5bb88ca651f3b92e4098279ee348c9a356004e59 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/conda_build_config.yaml @@ -0,0 +1,34 @@ +CI: azure +c_compiler: gcc +c_compiler_version: '13' +c_stdlib: sysroot +c_stdlib_version: '2.17' +cdt_name: conda +channel_sources: conda-forge +channel_targets: conda-forge main +cpu_optimization_target: nocona +cran_mirror: https://cran.r-project.org +cxx_compiler: gxx +docker_image: quay.io/condaforge/linux-anvil-x86_64:alma9 +extend_keys: +- ignore_version +- ignore_build_only_deps +- pin_run_as_build +- extend_keys +fortran_compiler: gfortran +ignore_build_only_deps: +- numpy +- python +lua: '5' +numpy: '1.26' +perl: 5.26.2 +pin_run_as_build: + python: + max_pin: x.x + min_pin: x.x + r-base: + max_pin: x.x + min_pin: x.x +python: '3.12' +r_base: '3.5' +target_platform: linux-64 diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/meta.yaml b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/meta.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5e0689a9b82b69f7534c09aa580ac26a0ff39039 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/meta.yaml @@ -0,0 +1,80 @@ +# This file created by conda-build 24.11.2 +# meta.yaml template originally from: +# /home/conda/recipe_root, last modified Sun Dec 15 01:49:45 2024 +# ------------------------------------------------ + +package: + name: xorg-libice + version: 1.1.2 +source: + patches: + - time.patch + sha256: 974e4ed414225eb3c716985df9709f4da8d22a67a2890066bc6dfc89ad298625 + url: https://www.x.org/releases/individual/lib/libICE-1.1.2.tar.xz +build: + number: '0' + run_exports: + - xorg-libice >=1.1.2,<2.0a0 + string: hb9d3cd8_0 +requirements: + build: + - _libgcc_mutex 0.1 conda_forge + - _openmp_mutex 4.5 2_gnu + - autoconf 2.71 pl5321h2b4cb7a_1 + - automake 1.17 pl5321ha770c72_0 + - binutils_impl_linux-64 2.43 h4bf12b8_2 + - binutils_linux-64 2.43 h4852527_2 + - gcc_impl_linux-64 13.3.0 hfea6d02_1 + - gcc_linux-64 13.3.0 hc28eda2_7 + - gettext 0.22.5 he02047a_3 + - gettext-tools 0.22.5 he02047a_3 + - gnuconfig 2020.11.07 hd8ed1ab_0 + - kernel-headers_linux-64 3.10.0 he073ed8_18 + - ld_impl_linux-64 2.43 h712a8e2_2 + - libasprintf 0.22.5 he8f35ee_3 + - libasprintf-devel 0.22.5 he8f35ee_3 + - libgcc 14.2.0 h77fa898_1 + - libgcc-devel_linux-64 13.3.0 h84ea5a7_101 + - libgcc-ng 14.2.0 h69a702a_1 + - libgettextpo 0.22.5 he02047a_3 + - libgettextpo-devel 0.22.5 he02047a_3 + - libgomp 14.2.0 h77fa898_1 + - libsanitizer 13.3.0 heb74ff8_1 + - libstdcxx 14.2.0 hc0a3c3a_1 + - libstdcxx-ng 14.2.0 h4852527_1 + - libtool 2.4.7 he02047a_1 + - libxcrypt 4.4.36 hd590300_1 + - m4 1.4.18 h516909a_1001 + - make 4.4.1 hb9d3cd8_2 + - perl 5.32.1 7_hd590300_perl5 + - pkg-config 0.29.2 h4bc722e_1009 + - sysroot_linux-64 2.17 h4a8ded7_18 + - tzdata 2024b hc8b5060_0 + host: + - _libgcc_mutex 0.1 conda_forge + - _openmp_mutex 4.5 2_gnu + - libgcc 14.2.0 h77fa898_1 + - libgomp 14.2.0 h77fa898_1 + - xorg-util-macros 1.20.2 hb9d3cd8_0 + - xorg-xorgproto 2024.1 hb9d3cd8_1 + - xorg-xtrans 1.5.2 hb9d3cd8_0 + run: + - __glibc >=2.17,<3.0.a0 + - libgcc >=13 +test: + commands: + - test -f $PREFIX/lib/libICE.so +about: + home: https://www.x.org/ + license: MIT + license_family: MIT + license_file: COPYING + summary: The X.org Inter-Client Exchange library. +extra: + copy_test_source_files: true + final: true + flow_run_id: azure_20241214.3.1 + recipe-maintainers: + - pkgw + remote_url: https://github.com/conda-forge/xorg-libice-feedstock + sha: 93f0603557e9c1c40da4c27eca03a92cf60f9d16 diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/meta.yaml.template b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/meta.yaml.template new file mode 100644 index 0000000000000000000000000000000000000000..90d0438833d2b770d573bdad528a92b98aabb9ec --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/meta.yaml.template @@ -0,0 +1,67 @@ +{% set xorg_name = "libICE" %} +{% set xorg_category = "lib" %} +{% set name = "xorg-" ~ xorg_name %} +{% set version = "1.1.2" %} +{% set sha256 = "974e4ed414225eb3c716985df9709f4da8d22a67a2890066bc6dfc89ad298625" %} +{% set am_version = "1.16" %} # keep synchronized with build.sh + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://www.x.org/releases/individual/{{ xorg_category }}/{{ xorg_name }}-{{ version }}.tar.xz + sha256: {{ sha256 }} + patches: + - time.patch + +build: + number: 0 + run_exports: + - {{ pin_subpackage(name|lower) }} + +requirements: + build: + - m2-autoconf # [win] + - m2-automake{{ am_version }} # [win] + - m2-libtool # [win] + - pkg-config # [unix] + - m2-pkg-config # [win] + - gnuconfig # [unix] + - m2-base # [win] + - make # [unix] + - m2-make # [win] + - {{ compiler("c") }} # [unix] + - {{ stdlib("c") }} # [unix] + - {{ compiler("m2w64_c") }} # [win] + - {{ stdlib("m2w64_c") }} # [win] + - autoconf # [unix] + - automake # [unix] + - gettext # [unix] + - libtool # [unix] + host: + - xorg-xorgproto + - xorg-libx11 # [win] + - xorg-util-macros + - xorg-xtrans + +test: + commands: + {% set lib_idents = [ "ICE" ] %} + {% for lib_ident in lib_idents %} + - test -f $PREFIX/lib/lib{{ lib_ident }}.dylib # [osx] + - test -f $PREFIX/lib/lib{{ lib_ident }}.so # [linux] + - if not exist %PREFIX%/Library/lib/lib{{ lib_ident }}.dll.a exit /b 1 # [win] + - if not exist %PREFIX%/Library/bin/msys-{{ lib_ident }}-*.dll exit /b 1 # [win] + {% endfor %} + +about: + home: https://www.x.org/ + license: MIT + license_family: MIT + license_file: COPYING + summary: 'The X.org Inter-Client Exchange library.' + +extra: + recipe-maintainers: + - pkgw diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/recipe-scripts-license.txt b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/recipe-scripts-license.txt new file mode 100644 index 0000000000000000000000000000000000000000..2ec51d75f362bc4327a3cfe1c515c16bb3c57367 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/recipe-scripts-license.txt @@ -0,0 +1,27 @@ +BSD-3-Clause license +Copyright (c) 2015-2022, conda-forge contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/time.patch b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/time.patch new file mode 100644 index 0000000000000000000000000000000000000000..79718dd0d2524e1ca5eee48bec0df7fc4889ab38 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/recipe/time.patch @@ -0,0 +1,12 @@ +--- src/iceauth.c.orig 2017-01-24 12:13:27.623168870 -0500 ++++ src/iceauth.c 2017-01-24 12:13:57.329261401 -0500 +@@ -76,8 +76,7 @@ + } + #else + { +- long time (); +- ldata[0] = time ((long *) 0); ++ ldata[0] = time (NULL); + ldata[1] = getpid (); + } + #endif diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/repodata_record.json b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..7e2be9084c66a541fbc4811c8e6c2ad2dd0843fb --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/repodata_record.json @@ -0,0 +1,23 @@ +{ + "name": "xorg-libice", + "version": "1.1.2", + "build": "hb9d3cd8_0", + "build_number": 0, + "channel": "https://conda.anaconda.org/conda-forge/linux-64", + "subdir": "linux-64", + "fn": "xorg-libice-1.1.2-hb9d3cd8_0.conda", + "md5": "fb901ff28063514abb6046c9ec2c4a45", + "url": "https://conda.anaconda.org/conda-forge/linux-64/xorg-libice-1.1.2-hb9d3cd8_0.conda", + "sha256": "c12396aabb21244c212e488bbdc4abcdef0b7404b15761d9329f5a4a39113c4b", + "arch": "x86_64", + "platform": "linux", + "depends": [ + "__glibc >=2.17,<3.0.a0", + "libgcc >=13" + ], + "constrains": [], + "license": "MIT", + "license_family": "MIT", + "timestamp": 1734227592000, + "size": 58628 +} \ No newline at end of file diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/run_exports.json b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..c74ba02934fde7cd0301b5b2fea2d500d4bcf868 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/run_exports.json @@ -0,0 +1 @@ +{"weak": ["xorg-libice >=1.1.2,<2.0a0"]} \ No newline at end of file diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/test/run_test.sh b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/test/run_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..2aeec97944b18750e94d08ef46f7d74e73e99668 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/info/test/run_test.sh @@ -0,0 +1,8 @@ + + +set -ex + + + +test -f $PREFIX/lib/libICE.so +exit 0 diff --git a/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/lib/pkgconfig/ice.pc b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/lib/pkgconfig/ice.pc new file mode 100644 index 0000000000000000000000000000000000000000..8507c6f52c2ba83166a5e6a9667e6dfc85a7a233 --- /dev/null +++ b/data/miniconda3/pkgs/xorg-libice-1.1.2-hb9d3cd8_0/lib/pkgconfig/ice.pc @@ -0,0 +1,12 @@ +prefix=/home/conda/feedstock_root/build_artifacts/xorg-libice_1734227449243/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: ICE +Description: X Inter Client Exchange Library +Version: 1.1.2 +Requires: xproto +Cflags: -I${includedir} +Libs: -L${libdir} -lICE +Libs.private: