1
0
mirror of https://github.com/openSUSE/libsolv.git synced 2026-02-05 12:45:46 +01:00

- add ver files, fix build

This commit is contained in:
Michael Schroeder
2011-05-24 20:40:00 +02:00
parent 91dd4f1bc2
commit 5eb46cd84a
8 changed files with 1210 additions and 847 deletions

View File

@@ -1,10 +1,10 @@
ADD_EXECUTABLE(solv solv.c)
IF ( DEBIAN )
TARGET_LINK_LIBRARIES(solv libsolvext libsolv ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
ELSE ( DEBIAN )
TARGET_LINK_LIBRARIES(solv libsolvext libsolv ${RPMDB_LIBRARY} ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
ENDIF ( DEBIAN )
ADD_EXECUTABLE (solv solv.c)
IF (DEBIAN)
TARGET_LINK_LIBRARIES (solv libsolvext libsolv ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
ELSE (DEBIAN)
TARGET_LINK_LIBRARIES (solv libsolvext libsolv ${RPMDB_LIBRARY} ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
ENDIF (DEBIAN)
install(TARGETS
INSTALL(TARGETS
solv
DESTINATION ${BIN_INSTALL_DIR})

1589
examples/pysolv Executable file → Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,22 +1,24 @@
SET(liblibsolvext_SRCS
SET (libsolvext_SRCS
repo_content.c repo_deltainfoxml.c repo_helix.c repo_products.c
repo_releasefile_products.c repo_repomdxml.c repo_rpmmd.c
repo_susetags.c repo_updateinfoxml.c repo_write.c repo_zyppdb.c
repo_deb.c sat_xfopen.c)
IF ( NOT DEBIAN )
SET(liblibsolvext_SRCS
${liblibsolvext_SRCS} pool_fileconflicts.c repo_rpmdb.c)
IF (NOT DEBIAN)
SET (libsolvext_SRCS
${libsolvext_SRCS} pool_fileconflicts.c repo_rpmdb.c)
ENDIF (NOT DEBIAN)
ADD_LIBRARY(libsolvext STATIC ${liblibsolvext_SRCS})
ADD_LIBRARY (libsolvext STATIC ${libsolvext_SRCS})
SET_TARGET_PROPERTIES(libsolvext PROPERTIES OUTPUT_NAME "solvext")
SET(liblibsolvext_HEADERS
SET (libsolvext_HEADERS
pool_fileconflicts.h repo_content.h repo_deltainfoxml.h repo_helix.h repo_products.h
repo_releasefile_products.h repo_repomdxml.h repo_rpmdb.h repo_rpmmd.h
repo_susetags.h repo_updateinfoxml.h repo_write.h repo_zyppdb.h
tools_util.h repo_deb.h sat_xfopen.h)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
SET (CMAKE_SHARED_LINKER_FLAGS "${LINK_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/ext/libsolvext.ver")
INSTALL(FILES ${liblibsolvext_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/libsolv")
INSTALL(TARGETS libsolvext LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
INSTALL (FILES ${libsolvext_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/solv")
INSTALL (TARGETS libsolvext LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})

37
ext/libsolvext.ver Normal file
View File

@@ -0,0 +1,37 @@
SOLV_1.0 {
global:
pool_findfileconflicts;
repo_add_code11_products;
repo_add_content;
repo_add_deb;
repo_add_debdb;
repo_add_debpackages;
repo_add_debs;
repo_add_deltainfoxml;
repo_add_helix;
repo_add_products;
repo_add_pubkeys;
repo_add_releasefile_products;
repo_add_repomdxml;
repo_add_rpm;
repo_add_rpmdb;
repo_add_rpmdb_pubkeys;
repo_add_rpmmd;
repo_add_rpms;
repo_add_susetags;
repo_add_updateinfoxml;
repo_add_zyppdb_products;
repo_write;
repo_write_stdkeyfilter;
repodata_write;
rpm_byfp;
rpm_byrpmdbid;
rpm_byrpmh;
rpm_installedrpmdbids;
rpm_iterate_filelist;
rpm_query;
sat_xfopen;
sat_xfopen_fd;
local:
*;
};

View File

@@ -148,8 +148,7 @@ rm -rf "$RPM_BUILD_ROOT"
%defattr(-,root,root)
%_libdir/libsolv.a
%_libdir/libsolvext.a
%dir /usr/include/libsolv
/usr/include/libsolv/*
/usr/include/solv
/usr/bin/deptestomatic
/usr/bin/helix2solv

View File

@@ -19,6 +19,7 @@ SET (libsolv_SRCS
chksum.c md5.c sha1.c sha2.c satversion.c)
ADD_LIBRARY (libsolv STATIC ${libsolv_SRCS})
SET_TARGET_PROPERTIES(libsolv PROPERTIES OUTPUT_NAME "solv")
SET (libsolv_HEADERS
bitmap.h evr.h hash.h policy.h poolarch.h poolvendor.h pool.h
@@ -28,6 +29,7 @@ SET (libsolv_HEADERS
chksum.h md5.h sha1.h sha2.h ${CMAKE_BINARY_DIR}/src/satversion.h)
SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
SET (CMAKE_SHARED_LINKER_FLAGS "${LINK_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/src/libsolv.ver")
INSTALL (FILES ${libsolv_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/libsolv")
INSTALL (FILES ${libsolv_HEADERS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/solv")
INSTALL (TARGETS libsolv LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR})

322
src/libsolv.ver Normal file
View File

@@ -0,0 +1,322 @@
SOLV_1.0 {
global:
dataiterator_clonepos;
dataiterator_entersub;
dataiterator_free;
dataiterator_init;
dataiterator_init_clone;
dataiterator_jump_to_repo;
dataiterator_jump_to_solvid;
dataiterator_match;
dataiterator_prepend_keyname;
dataiterator_seek;
dataiterator_set_keyname;
dataiterator_set_match;
dataiterator_set_search;
dataiterator_setpos;
dataiterator_setpos_parent;
dataiterator_skip_attribute;
dataiterator_skip_repo;
dataiterator_skip_solvable;
dataiterator_step;
datamatcher_free;
datamatcher_init;
datamatcher_match;
dirpool_add_dir;
dirpool_free;
dirpool_init;
dirpool_make_dirtraverse;
map_free;
map_grow;
map_init;
map_init_clone;
policy_create_obsolete_index;
policy_filter_unwanted;
policy_findupdatepackages;
policy_illegal2str;
policy_illegal_archchange;
policy_illegal_vendorchange;
policy_is_illegal;
pool_add_fileconflicts_deps;
pool_add_solvable;
pool_add_solvable_block;
pool_addfileprovides;
pool_addfileprovides_ids;
pool_addrelproviders;
pool_alloctmpspace;
pool_arch2color_slow;
pool_bin2hex;
pool_calc_duchanges;
pool_calc_installsizechange;
pool_clear_pos;
pool_create;
pool_create_state_maps;
pool_createwhatprovides;
pool_debug;
pool_dep2str;
pool_evrcmp;
pool_evrcmp_str;
pool_evrmatch;
pool_free;
pool_free_solvable_block;
pool_freeidhashes;
pool_freetmpspace;
pool_freewhatprovides;
pool_id2evr;
pool_id2langid;
pool_id2rel;
pool_id2str;
pool_job2str;
pool_lookup_bin_checksum;
pool_lookup_checksum;
pool_lookup_id;
pool_lookup_num;
pool_lookup_str;
pool_lookup_void;
pool_match_dep;
pool_match_nevr_rel;
pool_queuetowhatprovides;
pool_rel2id;
pool_search;
pool_set_installed;
pool_set_languages;
pool_setarch;
pool_setarchpolicy;
pool_setdebuglevel;
pool_setvendorclasses;
pool_shrink_rels;
pool_shrink_strings;
pool_solvable2str;
pool_str2id;
pool_strn2id;
pool_tmpappend;
pool_tmpjoin;
pool_trivial_installable;
pool_trivial_installable_noobsoletesmap;
pool_vendor2mask;
queue_alloc_one;
queue_alloc_one_head;
queue_delete;
queue_delete2;
queue_deleten;
queue_free;
queue_init;
queue_init_buffer;
queue_init_clone;
queue_insert;
queue_insert2;
queue_insertn;
repo_add_poolstr_array;
repo_add_repodata;
repo_add_solv;
repo_add_solv_flags;
repo_addid;
repo_addid_dep;
repo_create;
repo_disable_paging;
repo_empty;
repo_fix_conflicts;
repo_fix_supplements;
repo_free;
repo_freeallrepos;
repo_free_solvable_block;
repo_internalize;
repo_last_repodata;
repo_lookup_bin_checksum;
repo_lookup_checksum;
repo_lookup_id;
repo_lookup_idarray;
repo_lookup_num;
repo_lookup_str;
repo_lookup_type;
repo_lookup_void;
repo_matchvalue;
repo_reserve_ids;
repo_search;
repo_set_id;
repo_set_num;
repo_set_poolstr;
repo_set_str;
repo_sidedata_create;
repo_sidedata_extend;
repodata_add_dirnumnum;
repodata_add_dirstr;
repodata_add_fixarray;
repodata_add_flexarray;
repodata_add_idarray;
repodata_add_poolstr_array;
repodata_chk2str;
repodata_create;
repodata_create_stubs;
repodata_delete;
repodata_delete_uninternalized;
repodata_dir2str;
repodata_disable_paging;
repodata_empty;
repodata_extend;
repodata_extend_block;
repodata_filelistfilter_matches;
repodata_free;
repodata_free_schemahash;
repodata_freedata;
repodata_globalize_id;
repodata_initdata;
repodata_internalize;
repodata_key2id;
repodata_localize_id;
repodata_lookup_bin_checksum;
repodata_lookup_id;
repodata_lookup_idarray;
repodata_lookup_num;
repodata_lookup_str;
repodata_lookup_type;
repodata_lookup_void;
repodata_merge_attrs;
repodata_merge_some_attrs;
repodata_new_handle;
repodata_schema2id;
repodata_search;
repodata_set_binary;
repodata_set_bin_checksum;
repodata_set_checksum;
repodata_set_constant;
repodata_set_constantid;
repodata_set_id;
repodata_set_idarray;
repodata_set_location;
repodata_set_num;
repodata_set_poolstr;
repodata_set_str;
repodata_set_void;
repodata_setpos_kv;
repodata_shrink;
repodata_str2dir;
repodata_stringify;
repopagestore_compress_page;
repopagestore_disable_paging;
repopagestore_free;
repopagestore_init;
repopagestore_load_page_range;
repopagestore_read_or_setup_pages;
sat_bin2hex;
sat_calloc;
sat_chksum_add;
sat_chksum_create;
sat_chksum_create_from_bin;
sat_chksum_free;
sat_chksum_get;
sat_chksum_get_type;
sat_chksum_isfinished;
sat_chksum_str2type;
sat_chksum_type2str;
sat_dupappend;
sat_dupjoin;
sat_free;
sat_hex2bin;
sat_malloc;
sat_malloc2;
sat_oom;
sat_realloc;
sat_realloc2;
sat_sort;
sat_timems;
sat_vercmp;
sat_version;
sat_version_major;
sat_version_minor;
sat_version_patch;
solvable_get_location;
solvable_identical;
solvable_lookup_bin_checksum;
solvable_lookup_bool;
solvable_lookup_checksum;
solvable_lookup_id;
solvable_lookup_idarray;
solvable_lookup_num;
solvable_lookup_str;
solvable_lookup_str_lang;
solvable_lookup_str_poollang;
solvable_lookup_void;
solvable_selfprovidedep;
solvable_trivial_installable_map;
solvable_trivial_installable_queue;
solvable_trivial_installable_repo;
solver_allruleinfos;
solver_calc_duchanges;
solver_calc_installsizechange;
solver_calculate_noobsmap;
solver_create;
solver_create_decisions_obsoletesmap;
solver_dep_installed;
solver_disablechoicerules;
solver_disablepolicyrules;
solver_disableproblem;
solver_enableproblem;
solver_findallproblemrules;
solver_findproblemrule;
solver_free;
solver_freedupmaps;
solver_next_problem;
solver_next_solution;
solver_next_solutionelement;
solver_prepare_solutions;
solver_printallsolutions;
solver_printcompleteprobleminfo;
solver_printdecisionq;
solver_printdecisions;
solver_printproblem;
solver_printprobleminfo;
solver_printproblemruleinfo;
solver_printrule;
solver_printruleclass;
solver_printruleelement;
solver_printsolution;
solver_printtransaction;
solver_printtrivial;
solver_printwatches;
solver_problem_count;
solver_problemruleinfo;
solver_problemruleinfo2str;
solver_reenablepolicyrules;
solver_reset;
solver_ruleinfo;
solver_run_sat;
solver_samerule;
solver_select2str;
solver_solution_count;
solver_solutionelement2str;
solver_solutionelement_count;
solver_solve;
solver_splitprovides;
solver_take_solution;
solver_take_solutionelement;
solver_trivial_installable;
solver_unifyrules;
stringpool_clone;
stringpool_free;
stringpool_freehash;
stringpool_init;
stringpool_init_empty;
stringpool_shrink;
stringpool_str2id;
stringpool_strn2id;
transaction_add_obsoleted;
transaction_all_obs_pkgs;
transaction_calc_duchanges;
transaction_calc_installsizechange;
transaction_calculate;
transaction_check_order;
transaction_classify;
transaction_classify_pkgs;
transaction_free;
transaction_free_orderdata;
transaction_init;
transaction_init_clone;
transaction_installedresult;
transaction_obs_pkg;
transaction_order;
transaction_order_add_choices;
transaction_type;
local:
*;
};

View File

@@ -2,51 +2,51 @@
# CMakeLists.txt for sat-solver/tools
#
ADD_LIBRARY(toolstuff STATIC common_write.c)
ADD_LIBRARY (toolstuff STATIC common_write.c)
IF ( NOT DEBIAN )
ADD_EXECUTABLE(rpmdb2solv rpmdb2solv.c)
TARGET_LINK_LIBRARIES(rpmdb2solv toolstuff libsolvext libsolv ${RPMDB_LIBRARY} ${EXPAT_LIBRARY})
IF (NOT DEBIAN)
ADD_EXECUTABLE (rpmdb2solv rpmdb2solv.c)
TARGET_LINK_LIBRARIES (rpmdb2solv toolstuff libsolvext libsolv ${RPMDB_LIBRARY} ${EXPAT_LIBRARY})
ADD_EXECUTABLE(rpms2solv rpms2solv.c)
TARGET_LINK_LIBRARIES(rpms2solv toolstuff libsolvext libsolv ${RPMDB_LIBRARY})
ADD_EXECUTABLE (rpms2solv rpms2solv.c)
TARGET_LINK_LIBRARIES (rpms2solv toolstuff libsolvext libsolv ${RPMDB_LIBRARY})
ADD_EXECUTABLE(findfileconflicts findfileconflicts.c)
TARGET_LINK_LIBRARIES(findfileconflicts libsolvext libsolv ${RPMDB_LIBRARY})
ADD_EXECUTABLE (findfileconflicts findfileconflicts.c)
TARGET_LINK_LIBRARIES (findfileconflicts libsolvext libsolv ${RPMDB_LIBRARY})
ENDIF ( NOT DEBIAN )
ENDIF (NOT DEBIAN)
ADD_EXECUTABLE(rpmmd2solv rpmmd2solv.c)
TARGET_LINK_LIBRARIES(rpmmd2solv toolstuff libsolvext libsolv ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
ADD_EXECUTABLE (rpmmd2solv rpmmd2solv.c)
TARGET_LINK_LIBRARIES (rpmmd2solv toolstuff libsolvext libsolv ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
ADD_EXECUTABLE(helix2solv helix2solv.c)
TARGET_LINK_LIBRARIES(helix2solv toolstuff libsolvext libsolv ${EXPAT_LIBRARY})
ADD_EXECUTABLE (helix2solv helix2solv.c)
TARGET_LINK_LIBRARIES (helix2solv toolstuff libsolvext libsolv ${EXPAT_LIBRARY})
ADD_EXECUTABLE(susetags2solv susetags2solv.c)
TARGET_LINK_LIBRARIES(susetags2solv toolstuff libsolvext libsolv ${ZLIB_LIBRARY})
ADD_EXECUTABLE (susetags2solv susetags2solv.c)
TARGET_LINK_LIBRARIES (susetags2solv toolstuff libsolvext libsolv ${ZLIB_LIBRARY})
ADD_EXECUTABLE(updateinfoxml2solv updateinfoxml2solv.c)
TARGET_LINK_LIBRARIES(updateinfoxml2solv toolstuff libsolvext libsolv ${EXPAT_LIBRARY})
ADD_EXECUTABLE (updateinfoxml2solv updateinfoxml2solv.c)
TARGET_LINK_LIBRARIES (updateinfoxml2solv toolstuff libsolvext libsolv ${EXPAT_LIBRARY})
ADD_EXECUTABLE(deltainfoxml2solv deltainfoxml2solv.c)
TARGET_LINK_LIBRARIES(deltainfoxml2solv toolstuff libsolvext libsolv ${EXPAT_LIBRARY})
ADD_EXECUTABLE (deltainfoxml2solv deltainfoxml2solv.c)
TARGET_LINK_LIBRARIES (deltainfoxml2solv toolstuff libsolvext libsolv ${EXPAT_LIBRARY})
ADD_EXECUTABLE(repomdxml2solv repomdxml2solv.c)
TARGET_LINK_LIBRARIES(repomdxml2solv toolstuff libsolvext libsolv ${EXPAT_LIBRARY})
ADD_EXECUTABLE (repomdxml2solv repomdxml2solv.c)
TARGET_LINK_LIBRARIES (repomdxml2solv toolstuff libsolvext libsolv ${EXPAT_LIBRARY})
ADD_EXECUTABLE(installcheck installcheck.c)
TARGET_LINK_LIBRARIES(installcheck libsolvext libsolv ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
ADD_EXECUTABLE (installcheck installcheck.c)
TARGET_LINK_LIBRARIES (installcheck libsolvext libsolv ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
ADD_EXECUTABLE(patchcheck patchcheck.c)
TARGET_LINK_LIBRARIES(patchcheck libsolvext libsolv ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
ADD_EXECUTABLE (patchcheck patchcheck.c)
TARGET_LINK_LIBRARIES (patchcheck libsolvext libsolv ${EXPAT_LIBRARY} ${ZLIB_LIBRARY})
ADD_EXECUTABLE(dumpsolv dumpsolv.c )
TARGET_LINK_LIBRARIES(dumpsolv libsolv)
ADD_EXECUTABLE (dumpsolv dumpsolv.c )
TARGET_LINK_LIBRARIES (dumpsolv libsolv)
ADD_EXECUTABLE(mergesolv mergesolv.c )
TARGET_LINK_LIBRARIES(mergesolv toolstuff libsolvext libsolv)
ADD_EXECUTABLE (mergesolv mergesolv.c )
TARGET_LINK_LIBRARIES (mergesolv toolstuff libsolvext libsolv)
install(TARGETS
INSTALL (TARGETS
mergesolv
dumpsolv
susetags2solv
@@ -58,13 +58,13 @@ install(TARGETS
installcheck
DESTINATION ${BIN_INSTALL_DIR})
IF ( NOT DEBIAN )
install(TARGETS
IF (NOT DEBIAN)
INSTALL (TARGETS
rpmdb2solv
rpms2solv
DESTINATION ${BIN_INSTALL_DIR})
ENDIF ( NOT DEBIAN )
ENDIF (NOT DEBIAN)
install(PROGRAMS
INSTALL (PROGRAMS
repo2solv.sh
DESTINATION ${BIN_INSTALL_DIR})