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
Michael Gehring
46744c412d
lib/fetch/common.c: fix build with -Werror=misleading-indentation
...
Fixes #179
2016-06-03 20:26:52 +02:00
Michael Gehring
2d6e865d00
lib/repo: plug stage repo mem leak
2016-05-04 09:46:14 +02:00
Juan RP
5117ff84a2
xbps-uchroot: do not fail if the mount MS_MOVE operation fails.
...
This could happen if chrootdir is in a shared mount or when it's not
a real mountpoint. Just continue with chroot().
2016-04-30 17:34:32 +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
Juan RP
adcc6d16a4
lib/fetch/common.c: simplify ssl_init().
2016-04-24 19:20:54 +02:00
Juan RP
137a4db5b4
Merge pull request #171 from ebfe/170
...
lib: dont call EVP_cleanup in fp2str
2016-04-24 19:19:21 +02:00
Michael Gehring
793de8399c
lib: dont call EVP_cleanup in fp2str
...
Calling EVP_cleanup here undoes initialization already done in
lib/fetch/common.c ssl_init() causing subsequent attempts to call
SSL_CTX_new() to fail. Which ultimately is the root cause for #170 .
Fixes #170
2016-04-24 16:40:25 +02:00
Juan RP
447a2f43ad
xbps-install/util.c: do not check errno for isatty().
...
Fixes line truncation in musl. As @chneukirchen pointed out, POSIX
does not need to set errno. Just use its return value.
2016-04-24 14:02:52 +02:00
Juan RP
eb3d227d61
lib/fetch: check that SSL_CTX_new() does not fail and print its errors ( #170 ).
...
Thanks @ebfe.
2016-04-24 08:42:32 +02:00
Juan RP
eaebc937fd
Merge pull request #169 from ebfe/changelog
...
[RFC] xbps-create: add -c/--changelog
2016-04-23 08:48:34 +02:00
Michael Gehring
dedc93d17d
xbps-create: add -c/--changelog
2016-04-23 08:42:15 +02:00
Juan RP
b810c25601
lib/fetch/common.c: dup pthread.h inclusion.
2016-04-23 07:04:25 +02:00
Juan RP
e2e8eea490
lib/fetch: also call SSL_load_error_strings() once ( #167 ).
...
Close #168
2016-04-22 11:38:01 +02:00
Juan RP
228a89d51e
Use pthread_once(3) to initialize openssl/libressl just once.
...
Fixes openssl initialization concurrently by multiple threads.
Close #167
2016-04-22 11:32:34 +02:00
Juan RP
2434b90d6e
libxbps: use xbps_strlc{at,py} everywhere.
2016-04-17 20:17:37 +02:00
Juan RP
048668b0fe
xbps_transaction_shlibs: for providers also print its pkgver obj.
2016-04-17 17:54:49 +02:00
Juan RP
6272280fcf
xbps-uhelper: support 'XBPS_{,TARGET_}ARCH' env vars in the 'arch' target.
2016-04-13 08:53:26 +02:00
Juan RP
c2a2b91ed2
NEWS: sync with reality.
2016-04-07 17:15:33 +02:00
Juan RP
13395d8a50
Merge pull request #159 from Gottox/reproducible-create
...
Reproducible create
2016-04-07 16:26:38 +02:00
Juan RP
375cc30a47
Merge pull request #163 from ebfe/proplib
...
lib/portableproplib: fix various oob reads/segfaults
2016-04-07 16:25:46 +02:00
Michael Gehring
530149d90d
lib/portableproplib: fix various oob reads/segfaults
...
Applies the following patches from NetBSD:
http://cvsweb.netbsd.org/bsdweb.cgi/src/common/lib/libprop/prop_object.c?rev=1.30&content-type=text/x-cvsweb-markup
http://cvsweb.netbsd.org/bsdweb.cgi/src/common/lib/libprop/prop_object_impl.h?rev=1.31.12.1&content-type=text/x-cvsweb-markup
2016-04-07 15:07:11 +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
Michael Gehring
51511231bf
lib/repo.c: fix potential null pointer deref
2016-04-07 02:15:49 +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
Juan RP
35ad10ccbd
Fix 29765271e
correctly.
...
xbps_find_virtualpkg_in_conf() needs to look at the vpkgs set up in
configuration files, not from those set by pkgdb.
As a result of this the two test cases that were failing yesterday are now
fixed.
2016-03-24 10:23:20 +01: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
Juan RP
29765271e9
xbps.d(5): 'virtualpkg' can now be used to map any pkg to another.
...
See NEWS for more information.
2016-03-23 12:46:52 +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