Juan RP
1c85083a94
lib/package_alternatives.c: update copyright.
...
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-11 19:53:19 +02:00
Juan RP
f06edd8850
xbps_alternatives_register: no need to check for 'alloc'.
...
Found by @huglovefan. Thanks.
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-11 19:53:19 +02:00
Juan RP
5913205dcf
tests/xbps-alternatives: indent "more_entries_update" test case.
...
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-11 19:53:19 +02:00
Juan RP
639ff2d642
xbps_alternatives_register: get rid of an unnecessary change.
...
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-11 19:53:19 +02:00
Juan RP
d189921818
xbps_alternatives_register: fix test case "more_entries_update".
...
Even if the alternatives group is already registered, we need
to create the symlinks from current pkg dictionary (repo).
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-11 19:53:19 +02:00
Juan RP
d021698365
tests/xbps-alternatives: new test case that fails.
...
Contributed by @duncaen.
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-11 19:53:19 +02:00
Juan RP
62f986cf4a
configure: bump to 0.54.
...
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-11 19:53:19 +02:00
Juan RP
f4f9bef6e5
xbps_alternatives_register: find and remove obsolete symlinks.
...
This fixes the new test case "less_entries_update" contributed
by @duncaen.
If "alternatives" dict from pkgdb differs from the one from repos,
find obsoletes and remove them.
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-11 19:53:19 +02:00
Juan RP
72c66530c7
tests/xbps-alternatives: new test case, fixes for others.
...
New test case from @duncaen, fails currently.
Fixes for other test cases.
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-11 19:53:19 +02:00
Juan RP
04f899c80f
xbps_alternatives_unregister: fix removal of current provider.
...
Fix logic as found by @duncaen in #101 .
Also set "first" when the entry is removed from the array.
Fixes #102
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-11 19:53:19 +02:00
Juan RP
6204bc25f6
tests/xbps-alternatives: rename test to "remove_current_provider".
...
Also use -r in xbps-alternatives, by @duncaen.
2019-06-11 19:53:19 +02:00
Juan RP
5af8067973
tests/xbps-alternatives: add a new test.
...
This new test case checks that provider fallbacks to the first one
when the current provider is removed.
The test fails currently.
2019-06-11 19:53:19 +02:00
Juan RP
c29efcd13b
xbps_alternatives_unregister: fix xbps_set_cb_state().
...
In the !current branch, "first" wasn't initialized so it displayed garbage:
Removing `pinentry-tty-1.1.0_5' ...
Removing 'pinentry' alternatives group symlink: pinentry
pinentry-tty-1.1.0_5: unregistered 'pinentry' alternatives group
Switched 'pinentry' alternatives group to 'p
o@�'
Creating 'pinentry' alternatives group symlink: pinentry -> /usr/bin/pinentry-tty
Removed file `/usr/bin/pinentry-tty'
Removed `pinentry-tty-1.1.0_5' successfully.
With my fix:
Removing `pinentry-tty-1.1.0_5' ...
Removing 'pinentry' alternatives group symlink: pinentry
pinentry-tty-1.1.0_5: unregistered 'pinentry' alternatives group
Switched 'pinentry' alternatives group to 'pinentry'
Creating 'pinentry' alternatives group symlink: pinentry -> /usr/bin/pinentry-tty
Removed file `/usr/bin/pinentry-tty'
Removed `pinentry-tty-1.1.0_5' successfully.
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-11 19:53:19 +02:00
Johannes Brechtmann
77b90951ea
test: fix typo in remove_directoy and move to right place
2019-06-07 20:13:39 +02:00
Juan RP
dc65f62ad7
tests/remove_symlinks_dangling: fix test, noticed by @jnbr.
...
Somehow I confused the test case name.
2019-06-07 20:13:24 +02:00
Juan RP
dd3dc2ddec
xbps_symlink_target: always canonicalize rootdir.
...
... otherwise we might end up with a relative rootdir that will
give unexpected results.
dtrt when rootdir != /
2019-06-07 20:13:24 +02:00
Juan RP
9e2c00ee8b
libxbps: remove dangling symlinks properly.
...
This fixes removal of packages that contain multiple levels
of dangling symlinks, i.e faenza-icon-theme and probably others.
Close #23
2019-06-07 20:13:24 +02:00
human
56aa77d51b
xbps-install: make question() read the whole input line
...
reading only the first character would answer the next question()
with the next character (unless you just pressed enter)
2019-06-07 19:38:51 +02:00
Juan RP
cfc8e0a580
xbps-fbulk/main.c: update my email address.
...
Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-06 13:11:33 +02:00
Johannes Brechtmann
f4f88705d6
data: update repo urls to voidlinux.org
...
remove alternative debug mirrors
2019-06-06 13:11:24 +02:00
Juan RP
371be9703e
Sync with portableproplib-0.6.8.
2019-06-04 21:43:52 +02:00
Duncaen
121d0fbb64
tests: add test for removing package with ignored dependency
2019-06-02 18:24:03 +02:00
Duncaen
33fbe8a5ef
fulldeptree: ignore missing local runtime dependencies
...
They most likely come from `ignorepkg` and without this patch
operations xbps-remove -R aborts if a dependency was ignored
at install time.
2019-05-27 12:41:39 +02:00
Duncaen
67badf983b
lib/conf.c: ignore glob errors
2019-05-22 15:05:45 +02:00
Duncaen
79317563e9
lib/conf.c: fix including absolute paths
2019-05-22 15:05:45 +02:00
Duncaen
3533af846f
tests: add tests for absolute configuration include
2019-05-22 15:05:45 +02:00
Duncaen
85bf13f138
lib: move conf parsing to lib/conf.c and refactor to not rely on getcwd/chdir
...
This fixes https://github.com/voidlinux/xbps/issues/158
2019-05-22 13:22:10 +02:00
Johannes Brechtmann
fa5911bb00
tests: test for removal of nested directories
2019-05-16 11:04:48 +02:00
Johannes Brechtmann
949d2d90e7
package_remove: fix length comparison
2019-05-16 11:04:48 +02:00
Juan RP
3eb064af2c
COPYING: update for 2019.
2019-05-14 23:34:53 +02:00
Juan RP
208573d368
tests: install_and_update_revdeps: improve to catch more cases.
2019-05-14 23:34:53 +02:00
Juan RP
108a165534
libxbps: try to update revdeps when installing or updating pkgs.
...
This fixes the cases where a pkg installation or update
could break its revdeps due to not satisfying dependencies.
When performing an install or update, xbps now always checks if
there are updates for its revdeps and get added to the transaction.
See the two new test cases for more information.
2019-05-14 23:34:53 +02:00
Aleksej Lebedev
6f4731ca75
Fixed install location of xbps.d.5 manpage.
2019-05-14 20:49:41 +02:00
q66
9f10ee6f03
data/_xbps,_xbps_src: add ppc64+ppc(-musl) completions
2019-05-01 15:20:49 +02:00
Juan RP
2e469aaabf
configure: added --enable-rpath
option.
...
If set, binaries will have rpath set to $ORIGIN/../lib. That means
that even using defaults (--prefix=/usr), you can install
it via DESTDIR anywhere in your system and binaries will work.
This is in preparation for BSD support.
Closes : #87 [via git-merge-pr]
2019-04-26 16:27:41 +02:00
Juan RP
77ae94e6a1
xbps-create: remove two debugging printfs.
...
Closes : #84 [via git-merge-pr]
2019-04-26 16:27:34 +02:00
Juan RP
6498767a79
README.md: update for pcc/tcc support.
2019-04-22 19:01:28 +02:00
Juan RP
cb0bf6d914
configure: detect tcc if in PATH; fix tcc build.
...
Adding -pthread to CFLAGS is unnecessary because the bins don't need
it explicitly, so that it's removed and we only need to use -lpthread
on libxbps.
2019-04-22 16:18:41 +02:00
Juan RP
e013e0169f
README.md: get rid of coverity status... hasn't been used for +4 years.
2019-04-22 15:37:11 +02:00
Juan RP
2a9794968c
proplib/prop_object: needs compat.h.
2019-04-22 15:32:06 +02:00
Juan RP
cf78b7272f
lib/util: musl needs _{GNU,BSD}_SOURCE for strlc{at,py}().
2019-04-22 15:31:07 +02:00
Juan RP
0db5ace61d
configure: fix vasprintf test; cosmetics.
...
The vasprintf test was always failing because it needed stdarg.h.
Misc cosmetics: rename compat objs to COMPAT_OBJS.
2019-04-22 15:30:02 +02:00
parke
ca5a88e462
xbps-uunshare: Fixed typo in error message: uidmap -> uid_map.
...
Thanks @parke #28
2019-04-22 14:54:29 +02:00
Duncaen
456f775e4d
alternatives: don't switch unchanged alternative groups on removal
...
Closes : #82 [via git-merge-pr]
2019-04-22 14:51:32 +02:00
Duncaen
4162ec2bd6
tests: add test for useless alternative switch on package removal
2019-04-22 14:51:32 +02:00
Juan RP
ffed6ff707
tests/shell/incorrect_deps: get rif of an unnecessary line.
...
Closes : #81 [via git-merge-pr]
2019-04-22 14:51:13 +02:00
Juan RP
1d8b95a993
package_config_files.c: fix a shadowed variable declaration.
...
Found by pcc.
2019-04-22 14:51:13 +02:00
Juan RP
58f406756a
run-tests: simplify NPROCS (cat usage is redundant).
2019-04-22 14:51:13 +02:00
Juan RP
3cf3dafc20
run-tests: enable kyua parallelism by default.
...
Use number of processors as reported by /proc/cpuinfo,
otherwise just set it to 1 (default).
This makes running the test suite in less than 16s on my
i5 ivybridge CPU.
2019-04-22 14:51:13 +02:00
Juan RP
6fe9a05d93
tests: improve previous (dupdeps).
2019-04-22 14:51:13 +02:00