Juan RP
99d38bf176
Rename some files in the library to better describe what they do.
...
--HG--
rename : lib/config_files.c => lib/package_config_files.c
rename : lib/configure.c => lib/package_configure.c
rename : lib/orphans.c => lib/package_orphans.c
rename : lib/purge.c => lib/package_purge.c
rename : lib/register.c => lib/package_register.c
rename : lib/remove.c => lib/package_remove.c
rename : lib/remove_obsoletes.c => lib/package_remove_obsoletes.c
rename : lib/requiredby.c => lib/package_requiredby.c
rename : lib/state.c => lib/package_state.c
rename : lib/unpack.c => lib/package_unpack.c
2010-11-03 20:08:33 +01:00
Juan RP
8ef8d86c12
Some changes for the XBPS libfetch's frontend code.
...
1) Raise the cache connection settings to more sane defaults (8->6, 16->2).
2) Introduce xbps_fetch_unset_cache_connection() to drop the caches.
2010-11-03 12:23:57 +01:00
Juan RP
9c60862e0f
Pass LDFLAGS after the objects when creating the sharedlib, otherwise
...
-Wl,--as-needed will think that zlib is not needed.
2010-11-02 07:40:14 +01:00
Juan RP
8d998948ef
xbps-bin.8: fixed two formatting errors.
2010-10-31 01:59:48 +02:00
Juan RP
e2e5e0478f
Added tag 0.6.2 for changeset fe0d022c4236
2010-10-31 00:50:32 +02:00
Juan RP
1f9c57183d
Changelog: update.
2010-10-31 00:50:16 +02:00
Juan RP
0672cb1dec
NEWS: XBPS 0.6.2 will be released in a few minutes.
2010-10-31 00:49:56 +02:00
Juan RP
8051232e82
libxbps: xbps_repository_unregister(): in remote repositories, also
...
remove the pkg index file and its directory.
2010-10-29 09:10:41 +02:00
Juan RP
49a356df81
xbps_get_pkg_index_plist: fix a memleak.
2010-10-29 08:21:56 +02:00
Juan RP
a0e8fac8cb
Add a Changelog file with all repo changes.
2010-10-27 16:37:25 +02:00
Juan RP
210f2799fc
xbps-bin(8): modify the 'list' target to accept an optional argument to
...
list packages in the specified state, so that you can list packages that
need to be purged, configured and broken (will be used in the future).
2010-10-27 13:10:03 +02:00
Juan RP
ef7da88db1
xbps-bin(8): added a new target "find-files".
...
This new target 'find-files' can be used to find which installed
package(s) own a file. Exact matches like "/bin/mount" or patterns
like "/usr/lib/libb[ao]b\*" can be specified.
2010-10-27 00:25:02 +02:00
Juan RP
992583311b
configure: don't use -fPIE and --param ssp-buffer-size if CC != gcc.
2010-10-27 00:19:02 +02:00
Juan RP
c49bd80e20
fetch/ftp.c: fix a cast that caught clang via -Wcast-qual.
2010-10-27 00:17:08 +02:00
Juan RP
418ee6eec4
Remove empty dirs while removing obsolete files.
2010-10-27 00:15:59 +02:00
Juan RP
18e247486d
Added tag 0.6.1 for changeset 9133c604fd81
2010-10-23 18:13:01 +02:00
Juan RP
d64815403e
Increment XBPS_RELVER for 0.6.1.
2010-10-23 18:12:54 +02:00
Juan RP
9592fb012b
Added tag 0.6.1 for changeset 6a4587e4f95f
2010-10-23 18:10:35 +02:00
Juan RP
8534b79ffc
Prepare for going-to-be-released 0.6.1.
...
Includes the following change:
* When replacing a package that is going to be updated in the transaction
do not remove it, just overwrite its files and continue. The updated
package will find that old files didn't match the SHA256 hash and will
skip them. This solves the issue of new package updates requiring new
dependencies with files that were previously stored in the old version.
For example gtk+-2.20 containing gdk-pixbuf, and gtk+-2.22 requiring
gdk-pixbuf externally.
2010-10-23 18:09:35 +02:00
Juan RP
05c841ee9e
Makefile: added dist target to create distribution source tarball.
2010-10-23 18:08:33 +02:00
Juan RP
f1c24cebfa
Added tag 0.6.1 for changeset e51c0a0d740b
2010-10-23 17:58:16 +02:00
Juan RP
6cc080e029
Added tag 0.6.0 for changeset bfbbdcaef85a
2010-06-03 09:53:09 +02:00
Juan RP
d92f259921
NEWS: fix date for 0.6.0.
2010-06-03 09:53:03 +02:00
Juan RP
4b8f85382e
Bump XBPS_RELVER for changes that will go to 0.6.0.
2010-06-02 23:50:44 +02:00
Juan RP
cb800e4996
Mention libfetch-2.31 sync.
2010-06-02 23:48:09 +02:00
Juan RP
bd37736d89
Import and merge libfetch-2.31 from NetBSD pkgsrc.
2010-06-02 23:44:25 +02:00
Juan RP
0c67681ce1
Update .hgignore for recent changes.
2010-05-20 15:20:29 +02:00
Juan RP
1bcf9de67a
xbps_[gs]et_cachedir(): ensure we don't copy more than buffer's size including NUL.
2010-05-20 15:10:36 +02:00
Juan RP
8e764dca60
xbps-repo: put back sanitize_url() and improve the implementation.
2010-05-20 14:45:12 +02:00
Juan RP
3038fbed2d
lib/repository_finddeps.c: change var names to be more descriptive, add
...
some more verbose messages.
2010-05-20 07:21:24 +02:00
Juan RP
eb645d2974
xbps_api.h: do not rely on sys/cdefs.h, fix up some comments.
2010-05-20 04:49:53 +02:00
Juan RP
8f20f4c0c6
libxbps: use OpenSSL SHA256, 5x faster xbps_get_file_hash() implementation.
...
* libxbps: improved xbps_get_file_hash() to mmap(2) rather than read(2)
the file we have to process. With mmap'ed files the hash can be
processed 5x faster than before, or even more in some cases.
* libxbps: switch to OpenSSL SHA256 implementation and remove the one
previously used. It's faster and OpenSSL is required for libfetch so
there is not point in using it.
2010-05-20 02:43:56 +02:00
Juan RP
e13bf5de02
3RDPARTY: sync with reality.
2010-05-19 23:29:50 +02:00
Juan RP
f888b582f9
Added a configure script to emulate GNU autoconf and related changes.
...
Changes included in this set:
* Added strlcat() and strlcpy() from OpenBSD, always use them if the
system does not have them built in.
* Changed an array of PATH_MAX size allocated in the stack, to a dynamically
allocated buffer from heap. This should reduce memory usage a bit.
* Simplify code that implemented a homegrown realpath(3) implementation,
simply use realpath(3).
* If compiler supports -fstack-protector, build all code with
-D_FORTIFY_SOURCE=2 and --param ssp-buffer-size=1 so that all
buffers are protected.
2010-05-19 22:38:27 +02:00
Juan RP
c13d3c96df
Improve xbps_pkg_props_dictionary.dot even more.
2010-05-19 01:06:58 +02:00
Juan RP
706851b037
Improve binary package metadata plist file images.
2010-05-19 00:42:36 +02:00
Juan RP
8b222fd093
xbps-repo/index.c: fix a typo.
2010-05-18 23:06:27 +02:00
Juan RP
2be6a7b1bc
libxbps: if XBPS_FLAG_VERBOSE is set print to stdout some info about binary
...
packages found in repositories and its dependencies.
2010-05-18 23:04:14 +02:00
Juan RP
855a1d505e
Added tag 0.5.2.2 for changeset 0c1a7cea8bd2
2010-05-18 15:33:31 +02:00
Juan RP
c4e9d86630
libxbps::xbps_remove_obsoletes(): reset a var to 0 in non fatal errors!
2010-05-18 15:33:27 +02:00
Juan RP
0074312dec
Added tag 0.5.2.1 for changeset 4cf86e688eef
2010-05-18 13:42:08 +02:00
Juan RP
bb220904b7
Bump XBPS_RELVER.
2010-05-18 13:41:51 +02:00
Juan RP
b57ce692a1
NEWS: fixed a typo.
2010-05-18 13:41:15 +02:00
Juan RP
fed78b9d6f
libxbps: bah do not ignore ENOENT when running INSTALL/REMOVE scripts.
2010-05-18 13:40:51 +02:00
Juan RP
1c9cf426a1
Added tag 0.5.2 for changeset e3054c016de0
2010-05-18 07:46:41 +02:00
Juan RP
76ca32e76f
libxbps: some random bugfixes.
...
* libxbps: while running INSTALL/REMOVE scripts, do not fail if a script
returns ENOENT but the script exists; that means the script did not match
the expected action on its switch statement and the fact can be simply
ignored.
* libxbps: while upgrading packages and searching for obsolete files,
do not remove the files that did not match previous SHA256 hash. Also,
only remove obsolete dangling symlinks.
2010-05-18 07:46:27 +02:00
Juan RP
42af3ac533
Removed tag 0.5.2
2010-05-18 07:45:39 +02:00
Juan RP
f93205d352
Added tag 0.5.2 for changeset 246721b8546e
2010-05-18 07:44:45 +02:00
Juan RP
754ec6ebb1
xbps-repo: fix genindex target to not return error when a package is already
...
registered in the index.
2010-05-18 02:42:21 +02:00
Juan RP
1fbc19959f
xbps-bin: when replacing a pkg do not purge the old one, just remove it.
2010-05-12 07:47:40 +02:00
Juan RP
401d197c06
xbps-repo(8): improved the 'search' target to also match substrings
...
in package/version tuples.
2010-05-12 05:04:35 +02:00
Juan RP
f2d8d5cc89
Added tag 0.5.1 for changeset 0d9e4fc8afd9
2010-05-11 15:20:58 +02:00
Juan RP
5ece482468
NEWS: mention new changes, in preparation for 0.5.1.
2010-05-11 15:01:44 +02:00
Juan RP
e22df5580b
Bump XBPS_RELVER for last change.
2010-05-11 13:47:14 +02:00
Juan RP
17b7651137
libxbps: change the epoch char to ':' to differentiate the starting char in pkgname.
...
Added xbps_get_pkg_epoch(), to get the epoch version string.
2010-05-11 13:38:35 +02:00
Juan RP
a79d7b5884
lib/Makefile: proplib sources need -Wno-stack-protector.
2010-05-11 13:37:21 +02:00
Juan RP
b8c9577df6
xbps-bin(8): added a new target 'show-orphans' that list all package
...
orphans currently installed.
2010-05-04 17:04:36 +02:00
Juan RP
cf2244b0b9
README: update project URL.
2010-05-04 15:11:48 +02:00
Juan RP
f4c03c11ff
prog.mk: don't redirect stderr to /dev/null for static linking.
...
It's useful to see some possible errors.
2010-05-04 15:04:06 +02:00
Juan RP
9fe20ccbc8
Also link libxbps to libpthread as it's required now.
2010-05-04 14:57:08 +02:00
Juan RP
af3a2788aa
Provide stubs for htobe{32,64}() and be32toh() macros if they aren't defined on Linux.
...
Tested and verified by Jimmy on xbps@googlegroups.com .
2010-05-04 14:36:32 +02:00
Juan RP
ca7a0ef4b8
Update .hgignore after last change (troff manpages).
2010-05-03 22:01:18 +02:00
Juan RP
1b44e18b35
Remove asciidoc build dependency, use troff manpages directly.
2010-05-03 21:50:34 +02:00
Juan RP
361a7afa29
Moved .bzrignore to .hgignore and make it work.
...
--HG--
rename : .bzrignore => .hgignore
2010-05-02 11:51:35 +02:00
Juan RP
59693bf505
Update manpages for new XBPS project locations.
2010-05-02 11:36:17 +02:00
Juan RP
af6949cc43
Apply the commit from portableproplib's git master:
...
commit b2975842aba26df9b9885ff56b2ff182eda06152
Author: Juan RP <xtraeme@gmail.com >
Date: Thu Apr 29 18:23:15 2010 +0200
Remove some dead code found by the LLVM's clang static analyzer.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100429162412-gq0on6wybpoaazgg
2010-04-29 18:24:12 +02:00
Juan RP
4d09be8cba
NEWS: improve an entry.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428215855-mppu9lmtxbpb3osa
2010-04-28 23:58:55 +02:00
Juan RP
2d68c5fb20
xbps-repo(8): fixed the 'search' target to also match patterns against
...
its description, and not only from the package/version touple.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428214659-lz1au5hjg80h4j37
2010-04-28 23:46:59 +02:00
Juan RP
40ae71d195
NEWS: no more warnings now are reported by the LLVM's clang analyzer.
...
All possible warnings are only from portableproplib and libfetch.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428213323-n0k4xbwipor2hjdx
2010-04-28 23:33:23 +02:00
Juan RP
28f997bdf7
libxbps: fixed all warnings found by clang.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428213056-p1b7bh0llq8393r0
2010-04-28 23:30:56 +02:00
Juan RP
7976ac3707
xbps-repo/index.c: fix warnings found by clang.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428211333-wi7id42b9ol7g2ae
2010-04-28 23:13:33 +02:00
Juan RP
b04a0230cd
xbps-bin/check.c: remove dead code, fix warnings found by clang.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428211107-nvoflpkfkz37y3us
2010-04-28 23:11:07 +02:00
Juan RP
db685f280d
xbps-bin/install.c: remove unused vars, found by clang.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428193336-61glbrl5rnjpby4p
2010-04-28 21:33:36 +02:00
Juan RP
8ec438e168
xbps-bin/main.c: remove unused var found by clang analyzer.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428163341-3b947nuva6l5pv85
2010-04-28 18:33:41 +02:00
Juan RP
11de88d122
xbps-bin/install.c: fix a NULL pointer dereference in error path, found by
...
the clang analyzer.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428163137-hs9ac0rm47sz9k14
2010-04-28 18:31:37 +02:00
Juan RP
abe9e91e8b
Exclude portableproplib code when generating the API docs.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428161035-8s4icoa6azoeat62
2010-04-28 18:10:35 +02:00
Juan RP
5f8effab48
LICENSE: remove C comments.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428014031-ilzya52wsbmw5ozm
2010-04-28 03:40:31 +02:00
Juan RP
e274585c3c
xbps-bin(8): added -p flag to also purge packages for the 'remove'
...
and 'autoremove' targets, after successful removal.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428012613-e2wpzknmrxkjntsd
2010-04-28 03:26:13 +02:00
Juan RP
1771aacfab
NEWS: update for latest changes.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100427160402-gvldd7m5avsugq73
2010-04-27 18:04:02 +02:00
Juan RP
a5d8d486ea
xbps-repo: show a warning when a repository has been already added.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100427160215-pi2urhu9xzeblv71
2010-04-27 18:02:15 +02:00
Juan RP
b77bebe03a
xbps_repository_register(): if repository already exists return EEXIST.
...
Bump XBPS_RELVER to 20100427.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100427160125-3vid17cb7fy4v3gd
2010-04-27 18:01:25 +02:00
Juan RP
9ee1f8a09a
README: zlib is also required now.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100424160839-9k5bgyyajm450n1m
2010-04-24 18:08:39 +02:00
Juan RP
9efe430e7c
portableproplib can now be built with -Wextra and -Werror, but still needs
...
-Wno-cast-qual and -Wno-unused-parameter.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100421090458-gh2f2soq8jz25c3x
2010-04-21 11:04:58 +02:00
Juan RP
4bef22e190
Add change from portableproplib's git master to fix a warning with -Wextra:
...
commit 1296cfff2dd84a09f973bd446a75d5b92001506d
Author: Juan RP <xtraeme@gmail.com >
Date: Wed Apr 21 05:47:34 2010 +0200
prop_object: add cast for -Wextra.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100421034857-oxkoa87srg5olsrx
2010-04-21 05:48:57 +02:00
Juan RP
ea0d37a104
Incorporate a commit from portableproplib's git master to fix two warnings:
...
commit 72e03f757660ed295f81315d871e51abe22df9dd
Author: Juan RP <xtraeme@gmail.com >
Date: Wed Apr 21 05:07:53 2010 +0200
Add a cast that fixes a warning in the new zlib code.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100421030905-ixl5tj2to573xnxz
2010-04-21 05:09:05 +02:00
Juan RP
19af2f4af4
xbps_read_dict_from_archive_entry: added support to uncompress plist files in archives.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100421030437-6ihj6lw9vcwy2csp
2010-04-21 05:04:37 +02:00
Juan RP
9d4f44b776
Bump XBPS_RELVER to 20100420 for compressed gzip plist files support.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100420130449-wym9iuth418ysehp
2010-04-20 15:04:49 +02:00
Juan RP
ad12302a69
xbps-uhelper: remove unused debug code.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100420123503-std182rf5dt59ccq
2010-04-20 14:35:03 +02:00
Juan RP
6256b34ccc
Some changes that will appear in 0.5.0:
...
* Add proplib-0.4.1 source and use it in XBPS. This is to avoid
an external dependency, so that we depend on the features of the
internal library. This also means that proplib is not required anymore.
* Added support to read/write gzip compressed plists by default, thanks
to proplib-0.4 that gained new functionality.
That means that from now, XBPS will be able to write compressed gzip
plist files for all metadata related work. This will vastly reduce
bandwidth required for fetching remote repo's pkg index file and
binary packages.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100420122238-zcb85rudt9p34e10
2010-04-20 14:22:38 +02:00
Juan RP
ab76f9d5e7
Use pkg-config to find out the openssl/libarchive required static libs.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100331105031-rgq5aux38pptti6j
2010-03-31 12:50:31 +02:00
Juan RP
fa9d8c718a
lib/register.c: add some DPRINTFs.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100313083102-cz4hwmd94uuh5awv
2010-03-13 09:31:02 +01:00
Juan RP
6eebced6b4
Add a LICENSE file.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100228022340-s18s217rai6x5sj7
2010-02-28 03:23:40 +01:00
Juan RP
09bab8fba9
NEWS: update for to be relesed 0.4.1 version.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100226054847-whdyzmka39uie9sy
2010-02-26 06:48:47 +01:00
Juan RP
9bceb2adb7
xbps-bin: fixed the install target to work with pkgnames containing
...
multiple '-' characters, which resulted in incomplete pkgname.
The fix is to always append '>=0' if a pkgname is specified, and passing
a pkgpattern to xbps_repository_install_pkg().
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100226051333-od2siux4rmsa88m7
2010-02-26 06:13:33 +01:00
Juan RP
9f4b36292d
xbps-bin: unset some bool vars while processing the transaction to avoid
...
wrong messages for preserve pkgs.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100217041941-wrvm86m0tc7ynlvu
2010-02-17 05:19:41 +01:00
Juan RP
2daffcc768
Avoid endless loop while sorting dependencies due to missing packages.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100129034440-c1c9q0o5b0r1hhh2
2010-01-29 04:44:40 +01:00
Juan RP
83ab3fe977
xbps-bin/remove.c: set some pointers to NULL before checking them.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100128164423-i00yg3xp3nlsoh6j
2010-01-28 17:44:23 +01:00
Juan RP
df5b800366
Improve previous and only overwrite files while upgrading packages in the
...
unpack phase.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100128152108-vfs98fe3wvtort4s
2010-01-28 16:21:08 +01:00
Juan RP
61dde1ac02
Always overwrite files while unpacking, this makes the "essential" obj obsolete.
...
This helps to catch upgrade problems and simplifies some parts of the code.
Bumped XBPS_RELVER because xbps_remove_pkg() has been changed.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100128150850-gcs93su38t6moydn
2010-01-28 16:08:50 +01:00
Juan RP
375330a956
xbps-bin: print different msgs for pkgs marked as preserve and essential.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20100125151648-s3d0zxaro5v5bh95
2010-01-25 16:16:48 +01:00