Enno Boland
35fa3b5808
xbps-create: remove mmap to load files to archive.
2016-06-17 17:10:10 +02:00
Michael Gehring
dedc93d17d
xbps-create: add -c/--changelog
2016-04-23 08:42:15 +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
Michael Gehring
618e504d30
actually use HAVE_FDATASYNC
2016-02-08 15:09:43 +01:00
Juan RP
4fbfe6e823
xbps-create: fix a warning found by @dominikh without --enable-debug.
2015-10-28 06:43:25 +01:00
Juan RP
faeff38ca2
Alternatives framework (1/2) (WIP).
2015-10-18 10:38:35 +02:00
Juan RP
21be2318cf
xbps-create(1): support '--compression none' to skip any compression format.
2015-09-03 12:34:29 +02:00
Enno Boland
9de0d8a60d
xbps-create: do not add a build-date property to packages.
2015-08-19 16:05:51 +02:00
Juan RP
36026451ce
Fix some insecure temporary files reported by Coverity.
2015-07-26 09:02:04 +02:00
Juan RP
db21c045d2
xbps-create(8): use fdatasync() rather than fsync().
...
The latter could be too expensive, and we only care for the data to be written
to the binary package because a bit later we rename() the temporary file,
which will ensure a data flush to disk.
2015-02-27 11:04:25 +01:00
Juan RP
2cae0cba01
xbps-create(8): store file mtime in metadata for upcoming changes.
2015-02-22 18:20:32 +01:00
Juan RP
a05e039cce
Revert "Stop converting relative symlinks to absolute."
...
This reverts commit 9ae3638429
.
This change is ok, but cannot be used right now because all existing
binpkgs were created with an old xbps-create(8).
2015-02-19 11:11:58 +01:00
Juan RP
9ae3638429
Stop converting relative symlinks to absolute.
...
There's no reason to make them absolute, simply store in the metadata
the target file as is. This vastly simplifies the code and makes all
test pass correctly.
2015-02-19 11:04:34 +01:00
Juan RP
69e3a50e75
xbps-create: handle correctly another case of relative symlinks.
2015-02-19 09:44:09 +01:00
Juan RP
3c34c300d1
xbps-create(8): record target file or relative symlinks correctly.
2015-02-18 14:55:54 +01:00
Juan RP
039a155918
xbps-create(8): fix #64 "incorrect installed-size with hardlinks"
2014-11-12 12:37:35 +01:00
Juan RP
1edd4e2ecf
bin/xbps-create/main.c: CID 62678 (unchecked return value)
2014-10-05 12:33:45 +02:00
Juan RP
616af5c207
bin/xbps-create/main.c: CID 62713 (dead code)
2014-10-05 12:16:39 +02:00
Juan RP
f7441d24cf
bin/xbps-create/main.c: fix CID 62686 correctly; all tests pass now.
2014-10-05 08:55:32 +02:00
Juan RP
2fe9fbe777
bin/xbps-create/main.c: Out-of-bounds write (CID 62686)
2014-10-05 08:09:42 +02:00
Juan RP
0f5ce62ba9
xbps-create: fix build introduced in previous.
2014-09-27 13:11:43 +02:00
Juan RP
72cefcfc83
Introduce xbps_mmap_file() and use it in strategic points.
...
Rather than using a random buffer from stack or heap, and decide
what size to use, create a private memory mapped object...
This simplifies the code in lib/verifysig.c and xbps-create.
2014-09-27 13:00:34 +02:00
Enno Boland
33032429c2
bin/xbps-create: allow to define the reverts field for a package.
2014-09-23 13:54:06 +02:00
Christian Neukirchen
cfc0e3b9d9
xbps-create: do not compress with xz -9
...
xz -9 is very expensive in terms of CPU and memory usage, and also
memory usage for decompression. Thus we stick to default of -6 for
xz. For gzip and bzip2, -9 is ok.
2014-09-19 16:38:31 +02:00
Juan RP
a28046332f
Implemented support for pre-remove and post-install messages.
...
Close #44
2014-07-27 11:24:49 +02:00
Juan RP
b9e44009d9
xbps-create(8): new option -t, --tags to store tags/categories metadata.
2014-05-29 11:36:39 +02:00
Juan RP
6b83ec7039
xbps-create: initialize two vars to make gcc-4.9 with -fstack-protector-strong happy.
2014-05-16 09:47:35 +02:00
Juan RP
b71bda2ba4
xbps-create(8): new option (--compression) to set compression format.
2014-04-11 14:16:58 +02:00
Juan RP
6537004532
xbps-create: do not use FTW_MOUNT with nftw(3).
...
There's not much point in using FTW_MOUNT anyway because we don't care
if files are in another filesystem. This makes it work with musl
(which uses a different behaviour when FTW_MOUNT is set).
2014-01-08 20:16:02 +01:00
Juan RP
4057e4961c
Use C99 for loop initializers.
...
That means that a C99 compiler is now mandatory.
2013-09-15 10:06:49 +02:00
Juan RP
24ff0472dd
Use fs blksize from stat(2)ed file when reading archives.
2013-08-29 14:30:14 +02:00
Juan RP
a039330f3c
Misc cleanups: use __attribute__((__unused__)); remove dead code.
2013-08-29 10:45:30 +02:00
Juan RP
09e116b7f0
xbps_api.h -> xbps.h
2013-06-20 12:31:02 +02:00
Juan RP
42c0766c00
Get rid of libfetch and proplib external dependencies.
...
The list of required external deps is now confuse, libarchive and openssl.
libxbps now includes a wrapper for proplib prefixed with xbps_ rather than prop_.
2013-06-20 10:26:12 +02:00
Juan RP
55af300e65
xbps-create: needs stdarg.h.
2013-06-19 11:28:51 +02:00
Juan RP
03575cecd0
xbps-create: s/size_t/unsigned int/ to iter in prop_arrays.
2013-06-15 10:29:43 +02:00
Juan RP
99be698979
Use a single file to store repository data.
...
This is just the starting point to extend repositories with PGP signatures.
2013-06-10 10:28:39 +02:00
Juan RP
fa9d3471d9
xbps-create: improve d6605e1b97
(sanitize destdir to resolve target files in symlinks).
...
Previously in d6605e1b97
if destdir had trailing '/' the behavior
of detecting target files in symlinks was changed slightly.
2013-05-27 13:03:40 +02:00
Juan RP
d6605e1b97
xbps-create(8): calculate correctly target file for relative symlinks.
2013-05-27 10:27:55 +02:00
Juan RP
8736ef6c5a
xbps-create: fix issue #5 from github: initialize setlocale.
2013-04-01 10:49:25 +02:00
Juan RP
59006fe86c
xbps-create: added --build-options option, mainly for xbps-src.
...
This expects a string with the list of used build options.
2013-03-23 08:18:06 +01:00
Juan RP
a6c26f6c12
xbps-create: also set st_{uid,gid} to 0:0 in archived files.
2013-03-15 13:14:57 +01:00
Juan RP
7491c0e584
xbps-create: set root:root if e[gu]id == st.st_e[gu]id in package files.
...
The rational is that packages should have proper perms to be installed
globally in a system as root, and fakeroot is useless when generating
packages with xbps-create when it's statically build.
2013-03-15 09:31:15 +01:00
Juan RP
ea2f2c7297
Silence -Wformat-nonliteral warning with clang.
2013-01-04 10:35:00 +01:00
Juan RP
492bfeb560
xbps-create: ignore 'shlib-{provides,requires}' files generated by xbps-src.
2012-12-24 11:39:10 +01:00
Juan RP
1fa3601893
xbps-create: added support for --shlib-{provides,requires} options.
2012-12-24 10:55:17 +01:00