Juan RP
9e062cec4f
xbps-repo: do the right thing in some error paths.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091118231106-xxbg5oyvnojv1ykd
2009-11-19 00:11:06 +01:00
Juan RP
e8d947e15b
Reorganize the Makefiles so that parallel build is possible.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091118090545-wpvgwmnqyh77sgz8
2009-11-18 10:05:45 +01:00
Juan RP
f847401c4f
xbps_api.h: use __BEGIN/END_DECLS.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091118090212-a3tvgnybkrg2p3lk
2009-11-18 10:02:12 +01:00
Juan RP
a8562d6eb1
Ignore two generated headers in .bzrignore.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091118074908-fg7u4sjf4sko8dwn
2009-11-18 08:49:08 +01:00
Juan RP
bc14a026a5
Improve download code, as well as fixing refetching when syncing to a
...
remote package index. Bump XBPS_RELVER to 20091118.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091118062814-3pqbs9n1797einhm
2009-11-18 07:28:14 +01:00
Juan RP
d5f9366bfc
xbps-repo: fix previous, writing a dangling string and a leak in exit path.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091118061745-xirdogil114siw2c
2009-11-18 07:17:45 +01:00
Juan RP
f859663a4b
xbps-repo: made 'genindex' code run ~60% faster than before!
...
Rather than externalizing the package index plist file to storage every
time a package is registered, only do it one time once all packages
have been processed. Creating an index with 700 pkgs now takes 14s
in a VM, where before it took 39s. As consequence of this, the 'add-pkgidx'
target is no longer relevant or useful, remove it.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091118053439-ct1chn4hdeir1pdo
2009-11-18 06:34:39 +01:00
Juan RP
cc6417b9bf
Fix a typo in xbps-bin/repo manpages.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091117164309-vwq47eaniu6udn9p
2009-11-17 17:43:09 +01:00
Juan RP
2b790a4c2f
xbps-bin: rename 'show-manual' target to 'list-manual', it's a better
...
name IMHO :-)
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091109015919-fl3jr6eehyy1ff1v
2009-11-09 02:59:19 +01:00
Juan RP
736fcbfdd0
xbps_api.h: bump XBPS_RELVER to 20091109.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091109014503-4lwvkwrz2wva88pn
2009-11-09 02:45:03 +01:00
Juan RP
d379d1d44c
Implemented blueprint "essential-upgrades".
...
See https://blueprints.launchpad.net/xbps/+spec/essential-upgrades
for complete information.
Implementation used almost the same code than the pseudo-code explained
in the blueprint. Works really fine, tested with glibc-2.10.1 -> 2.11
upgrade.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091109013004-szdc9ngb3i70bc4p
2009-11-09 02:30:04 +01:00
Juan RP
795c2a58f5
Fix some issues while matching for required pkgdeps.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091107154159-riikhswt1h3mm9xn
2009-11-07 16:41:59 +01:00
Juan RP
79d3f446fe
xbps_fetch_file: return proper error if connection failed,
...
fix SSP problem with fetchflags!
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091107052101-ao6nqq8xrzb06tvr
2009-11-07 06:21:01 +01:00
Juan RP
adbd3d727c
Added support for shell (and csh as well) patterns for required
...
dependencies, as specified in blueprint "improved-version-matching".
It's possible now to require greater, greater or equal than,
less, less or equal than, and equal pkg versions, as well as using
'{}' and '[^!]' csh patterns in dependencies.
Code lifted from FreeBSD, thanks! :-)
Change XBPS_RELVER to 20091107 to match latest additions.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091107035620-3051wcwrirqn2g14
2009-11-07 04:56:20 +01:00
Juan RP
95b51ae72b
Fix launchpad bug #473249 "-lxbps not found because of wrong LDFLAGS"
...
Append (+=) to LDFLAGS as suggested in provided patch.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091105215527-di72g9uc53tta2mu
2009-11-05 22:55:27 +01:00
Juan RP
644d48a6f8
doc/TODO: remote repos are working.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091101063452-7ff1hest3wzf9vnf
2009-11-01 07:34:52 +01:00
Juan RP
dce1283e88
xbps-bin: improve 'check all' target output.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091101063206-s6kl51gqfugiapkl
2009-11-01 07:32:06 +01:00
Juan RP
748cc9c6b1
Improve xbps_fetch_file() and friends, one more time by Daft Punk.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091031140925-rjlkhq0v6fvmtawo
2009-10-31 15:09:25 +01:00
Juan RP
4c4f5eebef
xbps-repo: add a sync target, to sync the pkg index file from a
...
remote repository.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091031105740-xdqqsjqymc9rty5j
2009-10-31 11:57:40 +01:00
Juan RP
10e76c6420
xbps_fetch_file: erm fix previous, FETH_UNCHANGED is the correct one.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091031105541-8v2qt83jxazsxean
2009-10-31 11:55:41 +01:00
Juan RP
a9b7ffa94a
xbps_fetch_file(): check for local/remote mtime, add some more
...
checks for errors, add some printfs.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091031104055-fy64xd6g6m938dxh
2009-10-31 11:40:55 +01:00
Juan RP
10f2bef7cb
Bah, fix these stupid make targets.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030163209-td7vxbq5vkxva5zc
2009-10-30 17:32:09 +01:00
Juan RP
5b6724b550
Fix up some issues for building shared/static bins.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030162345-2so2ejfvvqr29s7v
2009-10-30 17:23:45 +01:00
Juan RP
4e83deb0cc
libxbps: avoid fetchStat() and use only fetchXGet().
...
Some HTTP servers (observerd with googlecode.com), issue a 404
if the headers are checked before issuing a GET transfer.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030162044-ng8o944bajwdudg8
2009-10-30 17:20:44 +01:00
Juan RP
4aeea194e3
lib/Makefile: don't forget to install the static lib.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030112231-h1onlwabxst3am0h
2009-10-30 12:22:31 +01:00
Juan RP
3905c2106c
Properly build shared/static libxbps and utils.
...
xbps-fetch: added -v flag to see verbose messages in libfetch.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030111726-axf9paz2k01ntqzz
2009-10-30 12:17:26 +01:00
Juan RP
79f9f34775
libxbps: added xbps_fetch_error_string(), that returns libfetch
...
fetchLastErrString.
Hook xbps-fetch to the tree and use the new function to print errors.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030021303-6wu9sri5o8kgvfwl
2009-10-30 03:13:03 +01:00
Juan RP
e479879e9f
xbps-bin: use exit(2) rather than _exit(2).
...
This was causing premature exiting when piping the program!
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091030004257-l94g3e88qroulfym
2009-10-30 01:42:57 +01:00
Juan RP
db58e48822
Added xbps-bin(8) and xbps-repo(8) manpages in asciidoc format.
...
That means that asciidoc is required to build/install XBPS.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091028153222-ljgdfqqe1ea74xs7
2009-10-28 16:32:22 +01:00
Juan RP
3a2f421109
xbps-bin: added "show-manual" target.
...
This targets shows the list of packages that were installed manually,
i.e not as dependencies.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091028023913-i4qh7ky1puezyhrt
2009-10-28 03:39:13 +01:00
Juan RP
0024221279
lib/depends.c: minor performance change.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091028021652-ns74gpr86ohfok9a
2009-10-28 03:16:52 +01:00
Juan RP
4b99264063
xbps-repo: sanitize uri provided to the add target also for remote
...
repositories.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091027142504-ezcqy2z7fuxz9j1z
2009-10-27 15:25:04 +01:00
Juan RP
dc258f4e20
Use xbps_get_root() directly where appropiate.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091027111547-tb38qz51ejakn3jc
2009-10-27 12:15:47 +01:00
Juan RP
ac897c8383
libxbps: move remote repo pkg-index sync code into its own file.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091027034000-rsg33sjonqsu0d5t
2009-10-27 04:40:00 +01:00
Juan RP
4acda249d9
README: mention that openssl is required for https support.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091027005634-u3j7i5vbldgrkjhu
2009-10-27 01:56:34 +01:00
Juan RP
7aebea684b
Implemented support for working with remote repositories.
...
libfetch from NetBSD's pkgsrc has been imported into lib/fetch, but
the objects are embedded into libxbps. Only a public function to fetch
files has been implemented: xbps_fetch_file().
The library now is built with -fvisibility=hidden by default, and
exported symbols are the ones that use the SYMEXPORT macro.
The code works well enough, but will need many more cleanups.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091027004600-0lq9aao67lisbzxv
2009-10-27 01:46:00 +01:00
Juan RP
6a855c0272
xbps_find_orphan_packages: report return value as errno in an error path.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091023120316-om71k2rnmk4ruzh1
2009-10-23 14:03:16 +02:00
Juan RP
b689725270
xbps-bin: use a single point to cleanup resources.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091023120154-wj4937kmu6ryacpk
2009-10-23 14:01:54 +02:00
Juan RP
ca39d1667e
xbps-bin: use a signal handler for SIGINT, SIGTERM and SIGQUIT to
...
free resources used by libxbps.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091023092025-gav4w23f1oc7mgjy
2009-10-23 11:20:25 +02:00
Juan RP
236b86ae50
xbps_check_is_installed_pkg: fix a leak in error paths reported by valgrind.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091023091157-h3tlqw2nz67m72ep
2009-10-23 11:11:57 +02:00
Juan RP
1e792e62f8
xbps-bin: use HN_B and HN_DECIMAL when using humanize_number for a more
...
detailed output.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091023064559-b91xhoveq6qcpfpp
2009-10-23 08:45:59 +02:00
Juan RP
b2197be315
Do not use private sha256.h header file in the public exported
...
API header file (xbps_api.h).
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091022124921-nvy2x07ibxjqtt50
2009-10-22 14:49:21 +02:00
Juan RP
534f7f0306
vars.mk: _BSD_SOURCE does not need to be defined.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091022124833-g1z0iznkjw4nayjs
2009-10-22 14:48:33 +02:00
Juan RP
96c501b5cc
xbps-bin: while updating a package that needs a new dependent package
...
the automatic-install object wasn't set correctly, fix this.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091022123221-46rya21xjy1mp8nb
2009-10-22 14:32:21 +02:00
Juan RP
d2dc018fcc
.bzrignore: add static bins.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091022093009-rntjfl2vd4czvrcs
2009-10-22 11:30:09 +02:00
Juan RP
03c7b26874
Fix typo in previous.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091021162718-n24n1yf7144rmqrz
2009-10-21 18:27:18 +02:00
Juan RP
f99a154d7f
Improved unpacking package files, fixing bugs in configuration file
...
handling.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091021161617-c9d2jyhxlwlid4e6
2009-10-21 18:16:17 +02:00
Juan RP
7bfb24dad6
doc/BINPKG_INFO: mention that binary packages might be compressed in
...
any format supported by libarchive, not just bzip2.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091020122551-lcr71azfscnow4x4
2009-10-20 14:25:51 +02:00
Juan RP
e9ef83517e
vars.mk: build bins with -fstack-protector-all and -Wstack-protector.
...
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091020074537-j84wcoa5mdtt13g2
2009-10-20 09:45:37 +02:00
Juan RP
bc3eeeec58
xbps-pkgdb: always set rootdir as an empty string, otherwise if -r
...
is not specified it will fail to get the regpkgdb plist file.
Bug found by pancake.
--HG--
extra : convert_revision : xtraeme%40gmail.com-20091019214947-cv57nebkpo48spce
2009-10-19 23:49:47 +02:00