Commit Graph
100 Commits
Author SHA1 Message Date
Juan RP e370ff0625 libxbps: use a new bool in struct xbps_handle to track successful initialization.
(cherry picked from commit 03374950680f6a839b1ee2df8e3a4e1dfb110fa8)
2012-09-29 19:09:03 +02:00
Juan RP 7714f0f6c5 bin: print usage() in stdout.
(cherry picked from commit b090e1a0bd32cabd8fe81bd756d419ee4b170ef7)
2012-09-29 19:08:03 +02:00
Juan RP c39c1e5751 xbps-create: handle another variant of a relative symlink.
(cherry picked from commit 7d849c2a656246be808206baa0adae2da1c9132d)
2012-09-29 19:07:54 +02:00
Juan RP e989b74c6a xbps-create: handle symlinks a bit better.
(cherry picked from commit 8a0e98485872b4ab97a3e55b453821016d89eab7)
2012-09-29 19:07:45 +02:00
Juan RP d3bb6fe13e xbps-create: when adding entries to archive, copy data with one read().
(cherry picked from commit 1263e4555a25c4118647104563c92af9bfbe5005)
2012-09-29 19:05:54 +02:00
Juan RP b478f6d774 xbps-create: add -q (quiet), ignore optarg if it's empty.
(cherry picked from commit 4417f7d74c0d552bba0f625b7df8adf25999000f)
2012-09-29 19:05:39 +02:00
Juan RP 9e5c7de33b xbps_dictionary_from_archive_entry: fixed internalizing uncompressed dictionaries.
(cherry picked from commit 2debc5c5ee6db1a197fe3afebaa9463934707b10)
2012-09-29 19:05:33 +02:00
Juan RP 83688cf8ec xbps-{bin,repo}: fixed crash in 'show' target reported by pancake.
(cherry picked from commit 4129a08cef7139b30b41ac659f35f9d494c2d918)
2012-09-29 19:04:41 +02:00
Juan RP b08d3ea89c xbps-create: added -B (--built-with) to set "packaged-with" string obj.
(cherry picked from commit 16cffb187990df161e4683ce3154abdd6ce2bbd4)
2012-09-29 19:04:12 +02:00
Juan RP 114fd914d8 xbps-create: finish support for -M (mutable files).
(cherry picked from commit 73028bdd892384684a70fa8da0572b0832c69c92)
2012-09-29 19:04:12 +02:00
Juan RP 7f8c8b3dcd xbps-create: remove trailing whitespace.
(cherry picked from commit d139420576328084255f0145c5cfea3ad2d1367a)
2012-09-29 19:04:12 +02:00
Juan RP 5868bafc85 xbps-create: remove leftover line.
(cherry picked from commit 1c37453d2815b94de5a1191031a17623661ce435)
2012-09-29 19:03:58 +02:00
Juan RP 215f6d6f31 xbps-create: multiple fixes and new additions, 1 item left to finish.
- Added "build-date" object to XBPS_PKGPROPS.
- Added "installed_size" object to XBPS_PKGPROPS.
- Add entries to archive with "./" as prefix to match xbps-src.
- Create binpkg atomically (from caller's perspective) in cwd.
(cherry picked from commit efeae7c346e914bca045ffe44627c18321e45be9)
2012-09-29 19:03:04 +02:00
Juan RP 6d6d31ccc0 Fix previous and make sure that we build PIE binaries.
(cherry picked from commit 1b9dd30d7b590e219cb51561f1e7371f4628575f)
2012-09-29 19:02:57 +02:00
Juan RP 886807687e configure: enable PIE and RELRO by default if compiler supports it.
(cherry picked from commit d79e3a641de934cd7546b2e628a8c6ea175b6c37)
2012-09-29 19:02:24 +02:00
Juan RP 6ece895957 WIP: xbps-create(8) to create xbps binary packages from a destdir.
(cherry picked from commit 6546f73f90cd56d14a2e90cb6604901df18a9419)
2012-09-29 19:00:58 +02:00
Juan RP 0f17197627 libxbps: use a struct allocated from stack for the unpack cb.
(cherry picked from commit a658586f27fd0a0c2c78ea96f89b54055e1e73be)
2012-09-29 19:00:04 +02:00
Juan RP 01915e3030 xbps_transaction_update_packages: make packages on hold work (duh!).
(cherry picked from commit aa154199a6d7d89bfe040755be289b1d827c5727)
2012-09-29 18:58:21 +02:00
Juan RP 7d4ecbb0ab xbps-repo: index-add: look for pkg in index matching arch or noarch. 2012-08-20 14:58:38 +02:00
Juan RP 3c379ff78e xbps-repo: remove repo index file locking, it's unreliable under NFS. 2012-08-16 10:59:54 +02:00
Juan RP a037b89042 xbps-repo: really wait 30 secs max to acquire repo file lock. 2012-08-14 09:36:44 +02:00
Juan RP b422fa654e xbps_api.h: next version will be 0.17. 2012-08-10 08:44:41 +02:00
Juan RP 2e594caf8a xbps-repo(8): the 'show-deps' target only lists deps and not repo/pkgver. 2012-08-10 08:43:51 +02:00
Juan RP c34e564327 xbps-repo: more exact pkg extension check. 2012-08-07 10:37:52 +02:00
Juan RP f0ab396036 xbps-{bin,repo}: ignore ENOENT when checking write perms in {root,meta,cache}dir. 2012-08-03 10:58:16 +02:00
Juan RP 68a0223c4e xbps-repo: fix the 'search' target to show a consistent output for inst/uninst pkgs.
Fixes issue #28.
2012-08-02 14:37:15 +02:00
Juan RP 3a247bd5cb xbps-{bin,repo}: make sure that user has write permission on {root,meta,cache}dir.
Fixes issue #27
2012-08-02 12:20:18 +02:00
Juan RP cae219c4de xbps-repo: indent pkgs from all repos with longest pkgver found. 2012-08-01 08:25:15 +02:00
Juan RP 01c2dcaca7 xbps-bin: get_maxcols(): use stdin to make it work in all cases (from xdave). 2012-08-01 07:47:40 +02:00
Juan RP 1be90e57d7 xbps-{bin,repo}: wrap long lines for list, pkg-list and search targets.
Fixes issue #26
2012-07-31 17:50:50 +02:00
Juan RP eb75041b25 xbps-repo(8): the search target now shows which pkgs are currently installed. 2012-07-31 10:34:10 +02:00
Juan RP f92ce60462 xbps.conf: remove xbps.hosting-unlimited.org mirrors (outdated). 2012-07-31 10:18:14 +02:00
Juan RP d319816fa2 xbps-bin: fixed regression in show target for vpkgs. 2012-07-23 10:21:32 +02:00
Juan RP 577ae731bb xbps-repo: index-clean: simplify code. 2012-07-22 11:45:17 +02:00
Juan RP 8b74616f58 README: minor nits. 2012-07-22 10:55:24 +02:00
Juan RP 5a120e346e xbps-repo: new 'remove-obsoletes' target to remove obsolete pkgs in a local repo. 2012-07-22 10:48:29 +02:00
Juan RP f0c96aac65 xbps-repo: index-clean now also removes obsolete pkgs found in repo. 2012-07-22 10:21:49 +02:00
Juan RP adc6ce9d22 xbps-repo: [index] use proper arch obj to remove old entry. 2012-07-21 22:23:45 +02:00
Juan RP 29f9724ba0 xbps-repo: properly remove (no)arch old entry/binpkg from index. 2012-07-21 21:50:16 +02:00
Juan RP f7a5c55bc7 libxbps: xbps_pkg_arch_match: fix conditional tests. 2012-07-21 21:49:37 +02:00
Juan RP a756060d38 libxbps: [unpack] fixed passing dangling pointer to unpack cb. 2012-07-21 10:41:19 +02:00
Juan RP e3fbc01cbe NEWS: mention ubuntu build fixes. 2012-07-19 18:07:22 +02:00
Juan RP 3339d0cd25 libfetch: fix warnings. 2012-07-19 18:00:31 +02:00
Juan RP 9a69c5e349 xbps-bin: fix a warning found by -Wshadow on Ubuntu. 2012-07-19 18:00:19 +02:00
Juan RP 634b5f726a configure: force --no-as-needed in CC tests. 2012-07-19 17:50:29 +02:00
Juan RP eb02d30791 configure: explicitly link dynamic executables to the shared library. 2012-07-19 16:30:53 +02:00
Juan RP ef5743dfe5 configure: added '--with-static' option (disabled by default). 2012-07-19 16:01:12 +02:00
Juan RP 9c05e4b0c9 configure: add -O2 by default to CFLAGS. 2012-07-19 15:51:43 +02:00
Juan RP bf7324f7a4 xbps-repo: mention index-{add,clean} in usage(). 2012-07-18 15:06:47 +02:00
Juan RP 34d1c3411d NEWS: mention repo index file locking. 2012-07-17 13:22:45 +02:00
Juan RP 674adf64a3 xbps-repo: remove old binpkg symlinks too, fix index-files. 2012-07-17 13:10:34 +02:00
Juan RP 8eba2d7ea3 xbps-repo: replaced 'genindex' target with 'index-{add,clean}'.
See the NEWS file for more information.
2012-07-17 12:31:04 +02:00
Juan RP 9edd60c3a7 libxbps: extend the list of symlinks in rootdir to be ignored. 2012-07-14 12:11:55 +02:00
Juan RP 6784a7b550 etc/xbps.conf: update list of remote repositories. 2012-07-14 12:11:33 +02:00
Juan RP 2f1e975607 Added "install-date" object to pkg's pkgdb dictionary, make xbps-bin(8) print it. 2012-07-11 12:19:39 +02:00
Juan RP d8f1fc978a NEWS: be ready for 0.16.4. 2012-07-10 23:44:47 +02:00
Juan RP 11ecf5438f Import proplib-0.6.1. 2012-07-10 23:33:19 +02:00
Juan RP 34697e8022 libxbps: improve matching obsolete files, skip matches by hash and filename.
Don't remove top level symlinks (/bin, /sbin and /lib) if they were found
as obsoletes. This is a workaround for the system transition to /usr.
2012-07-10 23:22:25 +02:00
Juan RP 414fd67302 TODO: more items for 0.17. 2012-07-04 14:58:46 +02:00
Juan RP 172435bd7e xbps_check_is_installed_pkg_by_pattern: do not reset errno, leave it as is. 2012-07-04 12:59:40 +02:00
Juan RP 5c24ef3b7f NEWS: update for 0.16.2. 2012-07-04 11:58:03 +02:00
Juan RP 94238302f2 transaction_ops: in update, check if curpkg has been previously added. 2012-07-04 11:56:01 +02:00
Juan RP e879c71a02 transaction_sortdeps: check if dep is installed by pattern. 2012-07-04 11:55:51 +02:00
Juan RP dfb45f27ef xbps_transaction_package_replace: misc cosmetic changes to dbg printfs. 2012-07-04 11:54:37 +02:00
Juan RP abdf6e710d xbps_remove_pkg: do not pass dangling pointers to state cb after removing pkgdict. 2012-07-04 09:52:51 +02:00
Juan RP f1ad8a95de xbps-repo: fixed issue 24 (xbps-src make-repoidx is doing something wrong). 2012-06-30 11:10:00 +02:00
Juan RP 54bc92bd97 xbps_dictionary_from_archive_entry: simplify and sync zlib code with proplib. 2012-06-20 09:26:00 +02:00
Juan RP 11ca0d481b doc: update transaction dot file. 2012-06-20 09:11:17 +02:00
Juan RP 5cb0d17f8e xbps-repo: [clean] print err msg when unlink(2) fails. 2012-06-19 10:55:42 +02:00
Juan RP f4e97228c8 xbps-repo: [clean] do not fail if cachedir does not exist, update for new API. 2012-06-19 10:52:57 +02:00
Juan RP 8abd275bfb libxbps: xbps_rpool_release: don't release repo_pool, it's already released. 2012-06-18 10:49:36 +02:00
Juan RP c24ce8e4da libxbps: use memcpy in critical paths for performance, fixed some memleaks. 2012-06-18 10:43:05 +02:00
Juan RP 3e93d235ff xbps-{bin,repo}: strlcpy -> memcpy. 2012-06-18 10:42:24 +02:00
Juan RP a2e42f1d57 xbps-bin: fixed a memleak in show_pkg_info(). 2012-06-18 10:01:27 +02:00
Juan RP 0f3d4f4a19 libxbps: hide compat symbols. 2012-06-18 09:52:19 +02:00
Juan RP ad766cd538 xbps-repo: fixed regression in the 'clean' target. 2012-06-16 09:32:26 +02:00
Juan RP 974b2fe8ad libxbps: simplify pkgdb_get_pkgd and find_pkg_dict_installed internals.
There's no need to prop_dictionary_copy the returned dictionary to
later have to free it again, just return directly the dictionary and
avoid the free(3)s.
2012-06-16 09:02:07 +02:00
Juan RP 068cab8d20 libxbps: performance improvements by caching the most accessed paths.
1- We can cache the result of the first xbps_pkgdb_init() when it fails
   and avoid the malloc/free/access from it.
2- We cache the uname(2) result into a private var in xbps_handle and
   use it in xbps_pkg_arch_match().

This improves performance by ~5% approx and it's close as it was before
introducing the repository index format 1.5.
2012-06-15 15:33:11 +02:00
Juan RP 506625a716 libxbps: also match vpkgs in previous commit. 2012-06-14 12:12:05 +02:00
Juan RP 302b216d8d libxbps: do not add dups to transaction dictionary due to virtual pkgs. 2012-06-14 11:53:27 +02:00
Juan RP 29871b2120 xbps-bin: re-add libxbps cleanup to the sighandler, also handle SIGHUP. 2012-06-14 10:11:50 +02:00
Juan RP c31d168e2b xbps_api.h: document EAGAIN in xbps_transaction_prepare(), fix typos. 2012-06-14 10:01:24 +02:00
Juan RP 6cc5ee2d81 xbps_api.h: fix doc for xbps_rpool_index. 2012-06-14 09:49:32 +02:00
Juan RP d46c503a97 xbps_api.h: document new xhp arg in some funcs. 2012-06-14 09:43:39 +02:00
Juan RP 2c50346143 tests: update libxbp/find_pkg tests for new API changes. 2012-06-14 08:27:10 +02:00
Juan RP 3e9e87fc2a libxbps: require a pointer to xbps_handle in functions that need it.
This removes 2 global vars from lib/initend.c and easier to know
what functions require access to xbps_handle.
2012-06-14 08:22:11 +02:00
Juan RP a3adbcda95 libxbps: use prop_array_get_cstring_nocopy(). 2012-06-13 09:23:48 +02:00
Juan RP 412d4b7280 libxbps: switch to archive_read_{close,free}. 2012-06-12 22:22:46 +02:00
Juan RP c61ba8dfcc Added support for package conflicts. 2012-06-11 16:14:03 +02:00
Juan RP 81610697df xbps_transaction_install_pkg: proper pkg find order in rpool.
Previously it was preferring virtual packages from
configuration file before real packages.
2012-06-09 10:09:46 +02:00
Juan RP 20bb1af589 xbps_remove_pkg: return proper error if metadata files cannot be removed. 2012-06-09 10:05:29 +02:00
Juan RP e75a524ee3 xbps_transaction_install_pkg: on exact match properly detect if it's installed. 2012-06-05 22:54:46 +02:00
Juan RP efefa000b2 xbps_dictionary_metadata_plist_by_url: only accept exact matches. 2012-06-05 20:53:15 +02:00
Juan RP a0f91f3342 xbps_file_hash_check_dictionary: fixed for rootdir != /. 2012-06-05 20:51:00 +02:00
Juan RP a00a450fe0 unpack: make sure to use exact file when checking for hash matches. 2012-06-05 20:23:12 +02:00
Juan RP 84c6850c28 xbps_file_hash_dictionary: only process exact matches. 2012-06-05 20:22:47 +02:00
Juan RP cc30039c60 xbps_unpack_binary_pkg: handle ARCHIVE_{EOF,FATAL,RETRY} and use archive_read_{close,free}. 2012-06-05 16:46:50 +02:00
Juan RP 1244d663d8 xbps-repo.8: rewording. 2012-06-05 14:42:03 +02:00
Juan RP 984612e3fc NEWS: clarify latest item. 2012-06-05 11:34:35 +02:00
Juan RP c37026d4c6 libxbps: require an underscore in strings to detect correctly pkgname/version. 2012-06-05 10:58:39 +02:00