Commit Graph
100 Commits
Author SHA1 Message Date
Enno BolandandJuan RP bc59d0b407 lib/package_script.c: try to find a usable shell instead of using /bin/sh 2019-10-27 09:38:50 +01:00
Enno BolandandGitHub e4702d9d3b Merge pull request #6 from foxlet/fix-string-formatting
Fix string formatting of 64-bit unsigned integers
2018-07-30 20:28:09 +02:00
Enno Boland a5bfc59203 prepare release 2018-07-30 13:47:08 +02:00
Enno Boland 21e28257d1 NEWS: update date 2018-07-30 13:43:44 +02:00
Enno Boland 4c53f0b432 NEWS: fix punctuation 2018-07-30 13:42:28 +02:00
Enno Boland 75f6a2ce1f NEWS: new release date is 2018-07-27 2018-07-24 07:36:47 +02:00
Enno Boland f47f83602a NEWS: fix style of last NEWS entry 2018-07-20 09:46:23 +02:00
Enno Boland 0e8b01803f NEWS: mention hashcheck changes in rindex. 2018-07-20 09:45:35 +02:00
Enno Boland 9e01ebcbc7 NEWS: update and announce release date.
* mention >128 character path fix
* mention threading algorithm change
* mention rindex --hashcheck
2018-07-20 09:37:50 +02:00
Enno Boland ebca1758cc xbps-rindex.1: document --hashcheck option 2018-07-20 09:37:50 +02:00
Enno Boland c992049eb5 xbps-create: fix formatting, set return value on path overflow 2018-07-07 12:23:01 +02:00
Enno Boland 3ef932de2f xbps-create: replace nftw by an implementation that traverses the directory tree in an alphabetic order. 2018-07-07 12:15:00 +02:00
Enno Boland 3f251bea74 Revert "debug"
This reverts commit 29466b128b.
2018-07-06 15:17:42 +02:00
Enno Boland aa21cb08fd Revert "bin/xbps-create: process dictionary instead of linked list."
This reverts commit 25fa00ea46.
2018-07-06 08:07:59 +02:00
Enno Boland 705a30c63c Revert "bin/xbps-create: process_entry_file uses dictionary instead of linked list now."
This reverts commit 61d2361646.
2018-07-06 08:07:58 +02:00
Enno Boland e211ae21fe Revert "bin/xbps-create: remove xentry struct and clean up"
This reverts commit aa90201b2d.
2018-07-06 08:07:55 +02:00
Enno Boland 7fe66a1f20 xbps-rindex: make hash check optional 2018-07-03 08:07:23 +02:00
Enno Boland 283aa0efc2 fix travis 2018-07-02 16:15:45 +02:00
Enno Boland 97e56ff486 .travis.yml: do not require sudo 2018-07-02 16:14:21 +02:00
Enno Boland 29466b128b debug 2018-07-02 15:58:55 +02:00
Enno Boland bfd6b2e88e lib/plist.c: share workload more efficient between threads
Before this patch xbps had a constant slice count for every thread.
This resulted in unbalanced thread usage if the workload was
homogenous over the slices.

This patch replaces the naive slice count approach by spinlock based
reservation.
2018-07-02 13:18:23 +02:00
Enno Boland 3f4d6a93be NEWS: sync 2018-06-29 11:54:00 +02:00
Enno Boland a717e53ee7 xbps-rindex: fix staging deadlock. 2018-06-28 13:30:14 +02:00
Enno Boland 219f6c2310 xbps-rindex: add test to trigger stage deadlock 2018-06-28 13:30:14 +02:00
Enno Boland 513bf65c6d uunshare: fix argument parsing 2018-04-30 18:22:28 +02:00
Enno Boland 449dc8a551 Revert "bin/xbps-uunshare: stop option parsing at the first nonoption argument"
This reverts commit 6cca905d64.
2018-04-16 14:00:30 +02:00
Enno Boland f4060aff6c Revert "bin/xbps-uchroot: stop option parsing at the first nonoption argument"
This reverts commit 948ba8d7d1.
2018-04-16 14:00:29 +02:00
Enno Boland 761f879eca set release date for xbps to the end of april 2018-04-15 20:13:04 +02:00
Enno BolandandGitHub c3068808a2 Merge pull request #211 from ebfe/flush-progress
bin/xbps-install/fetch_cb.c: flush stdout when printing progress
2016-10-18 13:05:42 +02:00
Enno Boland 7967efc1e0 xbps-install: do not fail on update if any of the provided packages are up to date.
addresses #194
2016-09-14 18:12:54 +02:00
Enno BolandandGitHub 1ffac73f54 Merge pull request #192 from jantatje/clean-cache-dry-run
xbps-remove: fix --dry-run for --clean-cache
2016-09-07 22:03:28 +02:00
Enno BolandandGitHub 2aa538bf35 Merge pull request #191 from Duncaen/socks5
lib/fetch: add socks5 support
2016-09-03 09:44:46 +02:00
Enno BolandandGitHub 8030f47626 Merge pull request #186 from Gottox/fix-185
lib/fetch/http.c: send proxy auth on https as connect header.
2016-07-08 17:24:01 +02:00
Enno Boland 648e48a481 Update NEWS 2016-07-08 10:10:55 +02:00
Enno Boland 934a59ecd9 lib/fetch/http.c: send proxy auth on https as connect header.
fixes #185
2016-07-08 08:24:14 +02:00
Enno BolandandGitHub f196abb207 Merge pull request #183 from Gottox/avoid_mmap
Avoid mmap
2016-06-20 13:49:18 +02:00
Enno Boland 842ac7c97e lib/util_hash.c: fix memleak. 2016-06-20 10:03:49 +02:00
Enno Boland 35fa3b5808 xbps-create: remove mmap to load files to archive. 2016-06-17 17:10:10 +02:00
Enno Boland 30d1d0f607 util_hash.c: void return value 2016-06-17 17:03:43 +02:00
Enno Boland cb94ffe1c0 util_hash.c: fail on negative result code of read. 2016-06-17 17:03:43 +02:00
Enno Boland f0f15304e1 update NEWS 2016-06-17 13:05:49 +02:00
Enno Boland b55ffeceae lib/util_hash.c: write directly to malloced string instead if coping it over 2016-06-16 07:00:08 +02:00
Enno Boland df97be6a54 lib/verifysig.c: use xbps_file_hash_raw()
instead of mmap'ing the source file, xbps_file_hash_raw is used
to generate a digest of the file.
2016-06-16 06:51:10 +02:00
Enno Boland 7ce66edc57 lib/util_hash.c: add xbps_file_hash_raw method
this function does not mmap the target file and therefore
avoids out of memory exceptions on 32bit systems.
2016-06-16 06:51:10 +02:00
Enno Boland 0b96156b5e Merge pull request #174 from ebfe/stage-leak
lib/repo: plug stage repo mem leak
2016-06-04 07:48:39 +02:00
Enno Boland ce4400da1a Merge pull request #180 from ebfe/misleading-indent
lib/fetch/common.c: fix build with -Werror=misleading-indentation
2016-06-04 07:47:12 +02:00
Enno Boland 7c8b1d7aaa lib/fetch/http.c: HTTP CONNECT needs two \r\ns 2016-04-27 11:04:14 +02:00
Enno Boland 3a5c1f3a71 lib/fetch/http.c: fix EOL at HTTP CONNECT
fixes #172.
2016-04-26 13:59:49 +02:00
Enno Boland 85f46ea295 Merge pull request #162 from ebfe/null-deref
lib/repo.c: fix potential null pointer deref
2016-04-07 06:28:48 +02:00
Enno Boland ba2074a1cc xbps-rindex: use consistent output format 2016-03-31 08:10:14 +02:00
Enno Boland aa90201b2d bin/xbps-create: remove xentry struct and clean up 2016-03-27 14:46:16 +02:00
Enno Boland 61d2361646 bin/xbps-create: process_entry_file uses dictionary instead of linked list now. 2016-03-27 14:46:13 +02:00
Enno Boland 25fa00ea46 bin/xbps-create: process dictionary instead of linked list. 2016-03-27 14:45:57 +02:00
Enno Boland b2c7fa8846 bin/xbps-create: search for inode dublication using xbps_dictionary_t instead of linked list. 2016-03-27 14:45:41 +02:00
Enno Boland 5c18a43c1c bin/xbps-create: construct proplist objects in ftw.
This is the first commit in a series to make xbps-create build
reproducable packages.

xbps-create uses nftw(3) to walk through all files. As nftw doesn't
sort files it may happen that the resulting packages will have
different checksums due to differentiating orders of files on
different filesystems.

To solve this issue xbps-create uses xbps_directory_t, which is always
sorted, instead of a simple linked list.
2016-03-27 14:44:47 +02:00
Enno Boland fa635399f0 Merge pull request #156 from Gottox/atomic-rindex-a
xbps-rindex: check for consistent shlibs
2016-03-24 07:11:53 +01:00
Enno Boland 855bc915e5 xbps-rindex: replace puts calls with printf 2016-03-22 09:47:25 +01:00
Enno Boland 3a067f2e20 tests: check if empty stage correctly gets removed 2016-03-22 09:47:25 +01:00
Enno Boland 2e6b2a6c94 xbps-rindex: remove empty stage file on cleanup. 2016-03-22 09:47:19 +01:00
Enno Boland e1a76b13e5 xbps-rindex: cleanup stage area on -c too. 2016-03-21 11:39:43 +01:00
Enno Boland b9ce711848 tests: add tests to ensure that packages in stage are not removed 2016-03-21 11:23:48 +01:00
Enno Boland 3431715d67 xbps-rindex: consider stage area when removing packages. 2016-03-21 10:50:25 +01:00
Enno Boland 008de6f470 NEWS: mention stage area 2016-03-21 08:31:18 +01:00
Enno Boland abde080ac1 tests: add test for staged packages 2016-03-21 08:31:18 +01:00
Enno Boland 4d1ee3b01d xbps-rindex: check for consistent shlibs
When adding packages to the index, xbps-rindex will check if the
consistency of shlibs is broken by a package. If so, rindex will create
a stage file and commit the packages there. Once the consistency is restored,
rindex -a will commit the stage area back to the public repo and delete the
stage file.
2016-03-21 08:31:18 +01:00
Enno Boland 897ac238c4 Revert "xbps-rindex: check for consistent shlibs"
This reverts commit 5f4e1ad43e which was
accidently checked in in the master branch.
2016-03-20 21:40:22 +01:00
Enno Boland 5b66679929 tests: xbps-rindex add missing atf_test_case 2016-03-20 21:36:30 +01:00
Enno Boland 5f4e1ad43e xbps-rindex: check for consistent shlibs
When adding packages to the index, xbps-rindex will check if the
consistency of shlibs is broken by a package. If so, rindex will create
a stage repository and commit the packages there. Once the consistency
is restored, rindex -a will commit the stage area back to the public
repo and delete the stage file.
2016-03-20 21:36:30 +01:00
Enno Boland 45f46d02e5 Merge pull request #155 from Gottox/fix-clang
xbps-query: remove doubled incrementation
2016-03-20 17:56:38 +01:00
Enno Boland 3bcb2d6543 xbps-query: remove doubled incrementation
Otherwise clang will complain with the following message:

  search.c:67:3: error: variable 'i' is incremented both in the loop
  header and in the loop body [-Werror,-Wfor-loop-analysis]
2016-03-20 10:02:26 +01:00
Enno Boland 75dc5eb2f6 Merge pull request #144 from yupi2/test-for-143
tests: reproducible segfault
2016-01-02 20:59:36 +01:00
Enno Boland 4e7cc1fb39 tests: fixing a wrong return value. 2016-01-02 18:29:09 +01:00
Enno Boland 35e4f31234 tests: fix test as it was failing for the wrong reason. 2016-01-02 18:21:26 +01:00
Enno Boland 87b9c2e099 tests: add test case for issue #143
Segfault when attempting to install a package on hold
2016-01-02 17:43:58 +01:00
Enno Boland c9c3bf6d52 data/xbps.d.5: document in the manpage that remote repositories must be signed. #141 2015-12-24 13:48:30 +01:00
Enno Boland e7a2c08629 bin/xbps-query: document in the manpage that remote repositories must be signed. #141 2015-12-24 13:48:26 +01:00
Enno Boland 93df7953f5 bin/xbps-install: document in the manpage that remote repositories must be signed. #141 2015-12-24 13:48:21 +01:00
Enno Boland ae44f32be2 lib/package_alternatives.c: fix memleak 2015-11-10 11:58:07 +01:00
Enno Boland 2927e58df2 lib/package_alternatives.c: fix style 2015-11-09 08:52:49 +01:00
Enno Boland 78e3bde269 lib/package_alternatives.c: Handle // cases. 2015-11-08 10:47:25 +01:00
Enno Boland 19a65158d9 lib/package_alternatives.c: get rid of goto in normpath. 2015-11-08 10:38:31 +01:00
Enno Boland 8bd2808108 lib/package_alternatives.c: fix wrong /. handling for normalizing paths. 2015-11-08 10:37:26 +01:00
Enno Boland 635db51c27 lib/package_alternatives.c: always use relative symlinks in alternatives
This commit adds relative link support to lib/package_alternatives.c.
Instead of creating absolute links, xbps will create relative links
to the target. This allows to follow links on systems even if the
aren't mounted on /.
2015-11-07 08:40:57 +01:00
Enno Boland f1617441db xbps-query: fail on trailing parameters. 2015-09-23 13:33:51 +02:00
Enno Boland 2a6b14ae74 Merge pull request #111 from Gottox/no-build-date
xbps-create: do not add a build-date property to packages.
2015-09-03 09:26:53 +02:00
Enno Boland 186ce68432 update NEWS with changes in xbps-rindex 2015-09-03 09:23:41 +02:00
Enno Boland 69ee33c592 xbps-rindex: set build-date from mtime in repository-index. 2015-09-03 09:20:04 +02:00
Enno Boland 9de0d8a60d xbps-create: do not add a build-date property to packages. 2015-08-19 16:05:51 +02:00
Enno Boland f50a5df3c2 tests: add test case for reverts which simulates a full workflow. 2014-09-28 22:22:56 +02:00
Enno Boland 42f0152dce trans_find_pkg(): search for reverts match with correct pkgver 2014-09-28 22:22:20 +02:00
Enno Boland 4fda229efb xbps-checkvers: add tests. 2014-09-27 20:51:21 +02:00
Enno Boland 7e47614b4d bin/xbps-checkvers: take reverts field in account 2014-09-27 20:51:21 +02:00
Enno Boland 2fe65dccec rename xbps-packages to void-packages 2014-09-26 14:24:06 +02:00
Enno Boland 09bf6646d1 .gitignore: add vim tempfiles. 2014-09-23 21:24:14 +02:00
Enno Boland b5a169b65c xbps_pkg_reverts: this function can do more than just return false! 2014-09-23 21:18:47 +02:00
Enno Boland f7a5d459d7 Merge pull request #61 from Gottox/revert
Allow automatic downgrading
2014-09-23 21:11:24 +02:00
Enno Boland 162845023e NEWS: correct reverts description. 2014-09-23 21:05:28 +02:00
Enno Boland 66e697ffc4 NEWS: explain new reverts field. 2014-09-23 21:00:24 +02:00
Enno Boland 2adcf485b5 xbps.h: bump XBPS_API_VERSION. 2014-09-23 20:52:24 +02:00
Enno Boland b5f357bd5e bin/xbps-create: update manpage. 2014-09-23 20:50:59 +02:00