Commit Graph

3536 Commits

Author SHA1 Message Date
Leah Neukirchen
7e2e1e3235 _xbps_src: add -Q 2019-07-16 21:41:46 +02:00
Juan RP
d927517327
xbps-fbulk: do not make assert() change program behaviour.
... otherwise if NDEBUG is set chdir() is skipped completely.
2019-07-06 08:37:47 +02:00
Juan RP
702d64c517
xbps-checkvers/Makefile: re-add -Wno-deprecated-declarations.
... it's still necessary due to readdir_r() with glibc.
2019-07-03 02:15:41 +02:00
Juan RP
9addb5e64e
Get rid of some old disabled warnings. 2019-07-03 01:26:07 +02:00
Duncaen
0e950156fc lib/transaction_{revdeps,prepare}.c: try to update packages if necessary
`xbps_transaction_revdeps` will now try to add updates for packages to the
transaction if the dependency is not satisified anymore due to a package
install/update.

`xbps_transaction_prepare` will now check the return value of
`xbps_transaction_revdeps` and repeat the dependency resolution,
until `xbps_transaction_revdeps` returns 0, which means that it didn't
add any new packages to the transaction.
2019-07-03 00:48:57 +02:00
Duncaen
5e4d33a58f lib/transaction_ops.c: remove updating all reverse dependencies 2019-07-03 00:48:57 +02:00
Duncaen
f6bc7f621c tests: add another case to install_and_update_revdeps test
The new case checks if xbps is smart enough to only update packages that
require an update due to revdep updates.
2019-07-03 00:48:57 +02:00
Duncaen
041eed8255 lib/package_fulldeptree.c: also use the initial item from the hashtable 2019-07-02 09:48:05 +02:00
Duncaen
7c3029589c lib/package_fulldeptree.c: don't add the package itself to the fulldeptree result
This was noticed a few days ago by @leah2.
2019-07-02 09:48:05 +02:00
Duncaen
57256c2328 lib/package_fulldeptree.c: add items to result if they are found in the hashtable 2019-07-02 09:48:05 +02:00
Duncaen
f9233a862c tests: cover more cases find_pkg_orphans_test:find_all_orphans_test 2019-07-02 09:48:05 +02:00
Duncaen
b60054267b lib/package_orphans.c: the argument is not UNUSED 2019-07-02 09:48:05 +02:00
Juan RP
5c828d8667
README.md: remove pcc note; it's in the build matrix now. 2019-06-27 18:12:33 +02:00
Juan RP
51bfc2a395 travis: add pcc/musl to the build matrix. 2019-06-27 18:09:26 +02:00
Juan RP
0677678387 Added LTO support and fix warnings (maybe-uninitialized). 2019-06-27 18:09:26 +02:00
Juan RP
bb96486b12
xbps-install: make sure to call xbps_end() before exiting. 2019-06-27 08:02:19 +02:00
Juan RP
db00ccc3b0
tests/xbps-remove/orphans: use -r root. 2019-06-27 07:57:13 +02:00
Johannes Brechtmann
44692f28d8 bin/xbps-install: update_pkg return EEXIST if package is up to date
makes 58509996aa work for
xbps-install -u <pkg>
2019-06-27 07:54:11 +02:00
Duncaen
7b728f5ac0 bin/xbps-remove: fix skipping executing orphans transaction 2019-06-26 22:24:47 +02:00
Duncaen
cc1c984e9a tests: add xbps-remove tests 2019-06-26 22:22:44 +02:00
Juan RP
c250bdce45
travis: disable tcc/glibc for now. 2019-06-26 16:00:56 +02:00
Juan RP
646115efdc
run-tests: set LIBRARY_PATH for tcc. 2019-06-26 15:55:47 +02:00
Juan RP
815754a0e9
configure: set -Wno-error later for tcc, to override -Werror. 2019-06-26 15:48:46 +02:00
Juan RP
899b8e7abb
Revert "travis: disable tcc again, seems to not obey -Wno-error."
This reverts commit 405f4b8379.
2019-06-26 15:48:35 +02:00
Juan RP
405f4b8379
travis: disable tcc again, seems to not obey -Wno-error. 2019-06-26 15:27:12 +02:00
Juan RP
ab2445e722
configure: use -Wno-error for now with tcc. 2019-06-26 15:13:01 +02:00
Juan RP
ceab3c66b7
travis: tcc builds need binutils. 2019-06-26 15:03:32 +02:00
Juan RP
d6aebd45f0
fetch/http.c: fix tcc build failure.
fetch/http.c:1475: warning: function might return no value: 'parse_index'

The code uses abort() before returning anything; return a proper
return value instead.
2019-06-26 14:57:39 +02:00
Juan RP
3c98d7cc4c
README.md: tcc seems to be working ok now to run the testsuite. 2019-06-26 14:53:56 +02:00
Juan RP
2694654317
travis: add tcc glibc/musl to the build matrix. 2019-06-26 14:46:52 +02:00
Duncaen
3c07036c24 tests: new obsolete files test with modified files which should catch bug from previous commit 2019-06-26 13:23:18 +02:00
Duncaen
d72091a206 lib/transaction_files.c: fix returning error on hash mismatch 2019-06-26 13:07:16 +02:00
Juan RP
00cda75a63
Require libarchive>=3.3.3 due to zstd support. 2019-06-26 09:05:37 +02:00
Juan RP
f9477e08a7
tests/update_itself: improve test case on_any_op even more. 2019-06-25 23:13:17 +02:00
Juan RP
83aa486f6b
xbps-remove: skip trans if all pkgs were not found.
Restores behaviour with xbps<0.54.
2019-06-25 10:32:02 +02:00
Juan RP
a1a0407548
Bump to 0.57. 2019-06-24 11:28:11 +02:00
Juan RP
81d31ab764
NEWS: prepare 0.56. 2019-06-24 11:26:59 +02:00
Juan RP
e1dafe8f01
NEWS: sync 2019-06-24 10:56:01 +02:00
Duncaen
450426a83b NEWS: add recently merged things 2019-06-23 12:37:14 +02:00
Duncaen
b39e341426 libxbps: don't check revdeps on removal of ignored packages 2019-06-23 12:23:17 +02:00
Duncaen
5fc340a838 tests: add test for removal of ignored package 2019-06-23 12:23:17 +02:00
Johannes Brechtmann
11e5190a36 lib/fetch: happy_eyeballs_connect check for waiting connections before
decrementing them, remove dead code
2019-06-23 12:14:21 +02:00
Duncaen
66f66ab7a1 Revert "xbps_array_foreach_cb_multi: fix incorrect array counter."
This reverts commit 08aa44602f.

The element still has to be processed and ignored by one of the
threads, it is not the last entry this will make the actually last item
be ignored.
2019-06-23 11:14:37 +02:00
Duncaen
a4dd0221ac lib/plist.c: fix xbps_array_foreach_cb_multi processing entries multiple times
the first thread to finish will start again from 0 (`reserved`) until
0+slicecount, next thread will then start from the end of the previous
thread which is already wrong, resulting in processing the first
slicecount*maxthreads entries twice.

The first slicecount*maxthreads entries are accounted by the thread
creation loop and `reserved` has to start at the first unaccounted index.
2019-06-23 11:14:37 +02:00
Juan RP
173c834fc8
lib/pkgdb.c: initialize pkgdb_fd.
otherwise xbps_pkgdb_unlock will always succeed.
2019-06-23 11:05:03 +02:00
Juan RP
41b2cec356
xbps-*: use xbps_pkgdb_update() correctly.
xbps-{alternatives,pkgdb,reconfigure}: xbps_pkgdb_update()
has been fixed to flush when told so, and we don't need
to update the in-memory copy because we are exiting.
2019-06-22 18:50:40 +02:00
Juan RP
97672bd79f
pkgdb: fix two issues in _update() and _release().
xbps_pkgdb_update: inverted condition that made it 'flush' when !flush.
xbps_pkgdb_release: xhp->pkgdb might be NULL, but unlock pkgdb anyway.
2019-06-22 18:47:13 +02:00
Duncaen
7e762cc357 lib/fetch.c: ignore EADDRNOTAVAIL and try next ip 2019-06-21 20:23:55 +02:00
Juan RP
58509996aa
xbps-install: skip trans if all pkgs are installed or uptodate.
Fixes an issue pointed out by @Johnnynator
2019-06-21 19:19:09 +02:00
Juan RP
2f1fd70a4e
xbps_transaction_prepare: initialize trans dict!
... otherwise it will always return ENXIO
2019-06-21 17:13:06 +02:00