Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/pkg_create.c  ·  View all commits
200 commits
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
6 days ago 920c183
B
checksum: use blake2b everywhere we can
Baptiste Daroussin
7 days ago 3ad388e
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
B
create: consistent initialization
Baptiste Daroussin
2 months ago 5f0dadc
B
Plug more memory leaks
Baptiste Daroussin
2 months ago 73cabc8
B
memory: drastically reduce memory usage
Baptiste Daroussin
3 months ago 83243c7
S
pkg_create: use -t specified timestamp for MANIFEST file timestamps
Siva Mahadevan
4 months ago d7ab5ca
S
Merge commit '2d18505bf79a2eb87e2e72bbc3e30b0cf7f6b15c'
Shawn Webb
4 months ago eacbab2
B
compat: .pkg is there for long enough, remove forward compat.
Baptiste Daroussin
6 months ago 99d8a9c
s
create: track permissions for files and directories automatically
strssndktn
6 months ago 148e9d8
s
pkgdb: track mtime in pkgdb
strssndktn
7 months ago 08bf9b3
s
pkgdb: track uname, gname, permissions and fflags in pkgdb
strssndktn
7 months ago 699f92e
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
11 months ago ba89bd1
B
create: tell the user which manifest failed being parsed
Baptiste Daroussin
11 months ago c14e07d
B
vec: simplify vec_init() usage
Baptiste Daroussin
1 year ago 6401b82
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 89d30c6
B
pkg: multiple fixes
Baptiste Daroussin
1 year ago a18ee3e
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 2498431
B
vec: rename pkgvec.h into pkg/vec.h
Baptiste Daroussin
1 year ago 22dddf2
B
hardlinks: use vector instead of linked list
Baptiste Daroussin
1 year ago 49cabe5
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago bf1eb68
B
cleanup: in preparation for pkg 2.0 remove deprecated functions
Baptiste Daroussin
1 year ago 78fee45
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 25ee7d0
I
libpkg: rework internal ABI handling, fix bugs
Isaac Freund
1 year ago 6c740ac
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 834d09c
K
Fix memory leaks
Keve
1 year ago fd0251a
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago c3b674e
K
Fix two leaks.
Keve
1 year ago c916458
S
Merge remote-tracking branch 'freebsd/main'
Shawn Webb
1 year ago 84c2214
B
OS: make more os specific behaviour dynamic
Baptiste Daroussin
1 year ago 74f7b91
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago c62eec6
I
libpkg: remove outdated comment
Isaac Freund
1 year ago db7481d
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
1 year ago 33f4711
B
STR*EQ: use macros where possible
Baptiste Daroussin
1 year ago 053f4a2
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago fd4c88b
B
pkg: allow to define threads for zstd and xz
Baptiste Daroussin
2 years ago bd83d9c
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 7649071
B
Revert "ABI: during pkg create do not trust ABI, also gather ALTABI"
Baptiste Daroussin
2 years ago d2b555c
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 76bfe81
B
ABI: during pkg create do not trust ABI, also gather ALTABI
Baptiste Daroussin
2 years ago d767ee0
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 9856def
B
create: implement override_prefix
Baptiste Daroussin
2 years ago bc1137c
B
manifest: cleanup
Baptiste Daroussin
2 years ago 959e2d6
B
manifest: remove the nothing of manifest digest (unused)
Baptiste Daroussin
2 years ago 6dd3c09
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago 5768655
G
Improve libpkg interface for plugins use.
Gleb Popov
2 years ago a2d1b9d
B
pkg_create: remove unused variable from hash_file
Baptiste Daroussin
3 years ago 490b35c
B
pkg_attribute: avoid collision with pkg_list
Baptiste Daroussin
3 years ago d9c65f6
B
libpkg: kill useless pkg_manifest_key API
Baptiste Daroussin
3 years ago eec0e90
R
Add 'COMPRESSION_FORMAT' pkg.conf option
Rozhuk Ivan
3 years ago bd091f5
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
B
hardlinks: rework handling of hardlinks
Baptiste Daroussin
4 years ago 70b98f1
B
pc: plug memory leak
Baptiste Daroussin
4 years ago 52589eb
B
convert from khash to pkghash
Baptiste Daroussin
4 years ago 438bcc6
B
quality: remove dead assignements
Baptiste Daroussin
4 years ago d1f7fc9
B
compat: only create .txz symlinks for packagesite and meta
Baptiste Daroussin
4 years ago c4b3bd9
S
Merge branch 'upstream-master'
Shawn Webb
4 years ago 9b9eef5
B
message: really expand variables while parsing
Baptiste Daroussin
5 years ago 527a29e
B
package extension: switch for .bsd to .pkg
Baptiste Daroussin
5 years ago 1278736
B
hashed pkg: use the new .bsd extension
Baptiste Daroussin
5 years ago 59de9ac
B
compression: make the defaut level a config option
Baptiste Daroussin
5 years ago f986163
B
tzst: by default compression at the 19 level
Baptiste Daroussin
5 years ago 31000cb
B
configure: Make the default compression format configurable
Baptiste Daroussin
5 years ago 848266c
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
J
pkg_create.c: minor error message fix
John Hood
5 years ago bbaab29
B
create: allow to create a package with readable +MANIFEST
Baptiste Daroussin
5 years ago 7a55498
J
Check that a file requested in a manifest is a regular file or symlink.
John Hood
5 years ago 53495e3
B
Use open_memstream p1
Baptiste Daroussin
5 years ago 383d27c
B
Bring back pkg create -n but this time consistent
Baptiste Daroussin
6 years ago a8bec72
C
Fix #1566: Add pkg-create(8) -l,--level to set compression level
Conrad Meyer
6 years ago 8991ebd
B
Fix mis order which makes pkg-plist parse too early and script created from there overwritten
Baptiste Daroussin
6 years ago 52a696c
B
Fix memory allocation bug
Baptiste Daroussin
6 years ago 33d4fa4
B
Fix regression when packaging from installed package
Baptiste Daroussin
6 years ago aaf3eba
B
Allow to set timestamp for pkg create
Baptiste Daroussin
6 years ago fb72299
B
Refactor pkg_create API
Baptiste Daroussin
6 years ago 6cacf35
B
Split pkg_load_metadata into small internal function
Baptiste Daroussin
6 years ago ee95aca
B
Isolate the code that analyse the ABI
Baptiste Daroussin
6 years ago c5b01d0
B
Turn pkg_suggest_arch into an internal function
Baptiste Daroussin
6 years ago 4475a2f
B
Remove never used upgrade scripts
Baptiste Daroussin
6 years ago 5278d0b
B
Do not use useless wrapper
Baptiste Daroussin
6 years ago d87b54c
B
Add support for scripts in lua
Baptiste Daroussin
6 years ago 485bdd9
B
Register the FreeBSD version and use it
Baptiste Daroussin
8 years ago f48e4f2
B
Avoid parsing the ABI file too many times
Baptiste Daroussin
8 years ago 2888b9c
B
Add support for creating packages with a small hash in the filename
Brad Davis
8 years ago b9f1e05
V
Merge branch 'master' of github.com:freebsd/pkg
Vsevolod Stakhov
9 years ago d7f6ae8
B
Move the globals under a ctx object to prepare for newer api
Baptiste Daroussin
9 years ago 7ea4379
V
Fix format strings issues
Vsevolod Stakhov
9 years ago 7957c5b
B
abort() in case of memory failure
Baptiste Daroussin
9 years ago 2a1ca66
B
Do not rely on libarchive for pkg register,
Baptiste Daroussin
9 years ago b737b18
B
Yet more deduplication: now all code reads metadata with new function
Baptiste Daroussin
9 years ago 1fdfd60
B
Isolate loading metadata in a dedicated function for further code deduplication
Baptiste Daroussin
9 years ago 00f5629
B
Replace libsbuf with utstring.h to improve portability
Baptiste Daroussin
9 years ago f93c045
B
Add CLOEXEC where needed
Baptiste Daroussin
9 years ago b2f3794
B
more prototype fixing
Baptiste Daroussin
9 years ago f8c9afb
B
fix prototypes with no arguments
Baptiste Daroussin
9 years ago 0f82665
B
Code simplification
Baptiste Daroussin
9 years ago 2df1750
B
Simplify message parser a bit
Baptiste Daroussin
9 years ago 4088302
B
plug resource leaks in case of errors
Baptiste Daroussin
10 years ago e3780c3
B
Plug some memory leaks
Baptiste Daroussin
10 years ago c0ea706
T
Report and pass along package creation failure (fixes #1375)
Tobias Kortkamp
10 years ago 8d825bd
B
Use the same hack as grabbing the message from the database to discover if +DISPLAY ia actually a ucl message or not
Baptiste Daroussin
10 years ago 4486db6
B
Restore dir order
Baptiste Daroussin
10 years ago 9d5af01
B
Restore files order
Baptiste Daroussin
10 years ago b0f1d58
V
Fix pkg create when reading legacy message.
Vsevolod Stakhov
10 years ago dec57bc
V
Merge branch 'message-rework'
Vsevolod Stakhov
10 years ago 631ae91
V
More fixes to libpkg.
Vsevolod Stakhov
10 years ago ef497f0
V
More rework for new pkg-message.
Vsevolod Stakhov
10 years ago 0bcc13c
V
Load message from ucl.
Vsevolod Stakhov
10 years ago 73772ce
B
Convert pkg_dir and pkg_config_file to khash
Baptiste Daroussin
10 years ago 89906ca
B
Convert pkg_files to khash
Baptiste Daroussin
10 years ago 942aa46
B
Remove debug printf
Baptiste Daroussin
10 years ago e27a13c
B
Use new checksum API when creating package
Baptiste Daroussin
10 years ago f29004d
B
Use new API to generate the checksums when recomputing with pkg check
Baptiste Daroussin
10 years ago 0cc4163
B
Complete pkg_checksum API and reduce duplicated code
Baptiste Daroussin
10 years ago 8f01347
B
Early support for pkg -r <rootdir> (no chroot involved)
Baptiste Daroussin
11 years ago 4f6eb5b
B
Allow pkg create -M ./plop.ucl -p ./plop.plist
Baptiste Daroussin
11 years ago f066765
B
Convert UTHASH to khash for hardlinks checking
Baptiste Daroussin
11 years ago c68e105
B
Use fflags set from plist
Baptiste Daroussin
11 years ago 3804ac3
M
Use the pre-existing progress bars rather than rolling our own
Matthew Seaman
11 years ago 284f9dd
B
Turn packing_finish into a regular cleanup function
Baptiste Daroussin
11 years ago 8443beb
B
Remove dead assignement
Baptiste Daroussin
11 years ago c3e5591
M
Prettify a bit.
Matthew Seaman
11 years ago ed6c984
M
Add a label to identify the counted quantity
Matthew Seaman
11 years ago 33eec32
M
Add some counter output while processing files and directories
Matthew Seaman
11 years ago 27879f5
B
Merge pull request #1113 from landonf/osx/release/0.1
Baptiste Daroussin
11 years ago 3eafef1
L
Use bsd_compat.h to provide faccessat().
Landon Fuller
11 years ago bbece3b
B
Return an error on pkg create when adding files
Baptiste Daroussin
11 years ago d54291b
B
Do not allow to create old packages anymore
Baptiste Daroussin
11 years ago cb4ce5c
B
Remove the ability to generate MD5 sums it is not needed anymore
Baptiste Daroussin
11 years ago fd3b7a1
B
Remove the ability to generate pkg_* packages
Baptiste Daroussin
11 years ago a177614
B
Cache developer_mode
Baptiste Daroussin
11 years ago f9dfaa7
B
Finish converting struct pkg into a proper structure
Baptiste Daroussin
11 years ago eab4f94
B
Make struct pkg a proper structure
Baptiste Daroussin
11 years ago 99c2768
B
Fix a remnant PKG_ARCH
Baptiste Daroussin
11 years ago 7052847
B
Only work with new abi by default
Baptiste Daroussin
11 years ago bb8cc38
B
Finish killing mtree
Baptiste Daroussin
11 years ago e73c495
B
pkg_dir is internal only, no need for accessors
Baptiste Daroussin
11 years ago 5066570
B
pkg_file is only used internally no need for accessors for other cases pkg_printf is enough
Baptiste Daroussin
11 years ago 7e21f29
B
Add a private function to retrive annotations
Baptiste Daroussin
11 years ago d8b3bb5
B
Remove more includes
Baptiste Daroussin
11 years ago 2c98893
B
Do not extract anymore mtrees
Baptiste Daroussin
11 years ago 7254325
B
Stop packaging mtrees
Baptiste Daroussin
11 years ago bffb229
B
Get rid of pkg_register_shlibs() and use pkg_analyse_files() in pkg create.
Bryan Drewery
11 years ago bfe76d6
M
Fix check_for_hardlink.
Maxim Ignatenko
11 years ago 58bcb25
B
Do not leak a fd
Baptiste Daroussin
11 years ago ee8d93c
B
Simplify a bit package creation using *at function
Baptiste Daroussin
11 years ago b2b5c50
B
Do not leak a fd
Baptiste Daroussin
11 years ago adf156e
B
Simplify a bit package creation using *at function
Baptiste Daroussin
11 years ago b6f7a42
B
Fix typo
Baptiste Daroussin
11 years ago a2e5ed1
B
Improve error message
Baptiste Daroussin
11 years ago d6e7b85
B
Explicitly pass when passmode should be used with libarchive
Baptiste Daroussin
11 years ago bf4a9a6
V
Fix symlinks checksums.
Vsevolod Stakhov
11 years ago 4f56f4b
V
Rename `is_hardlink` to `check_for_hardlink`.
Vsevolod Stakhov
11 years ago 04ab399
V
Fix is_hardlink definition.
Vsevolod Stakhov
11 years ago f27bcfa
V
Respect hardlinks during flatsize calculation.
Vsevolod Stakhov
11 years ago 31c55e0
M
Add a new function: pkg_create_from_manifest()
Matthew Seaman
11 years ago 1dfb285
V
Calculate the content of symlink passed.
Vsevolod Stakhov
11 years ago be6abed
B
Fix pkg create
Baptiste Daroussin
12 years ago a98946c
B
use pkg_asprintf instead of asprintf
Baptiste Daroussin
12 years ago 418df83
B
Merge categories, licenses, annotations into pkg->fields
Baptiste Daroussin
12 years ago 4feccaf
B
Convert struct pkg to mostly be a ucl_object_t and chase libucl changes
Baptiste Daroussin
12 years ago 3a72e6b
B
Properly set patch when creating package for a relocated package
Baptiste Daroussin
12 years ago 1185271
M
Merge branch 'master' into indexfile
Matthew Seaman
12 years ago 859bbf1
B
Propagate usage of ucl
Baptiste Daroussin
12 years ago 99f9cd1
B
Merge branch 'master' into fix-autoremove-completion
Brad Davis
12 years ago 5b00ee1
V
Merge branch 'master' into gsoc
Vsevolod Stakhov
12 years ago 8d30157
M
Merge branch 'master' of git://github.com/grembo/pkg into grembo-master
Matthew Seaman
12 years ago 651b2fb
M
Use MAX* cosistently
Michael Gmelin
12 years ago 91c1dcd
B
Switch manifest from yaml to ucl when parsing and emitting
Baptiste Daroussin
12 years ago 0f4041b
B
Disable support for autoplist in staging as it breaks meta ports
Bryan Drewery
12 years ago 08b6227
B
Merge pull request #543 from dag-erling/flatsize
Baptiste Daroussin
12 years ago ef92b53
D
When creating a package, compute the flatsize if it is not specified in the manifest. Note that there is just a short leap from here to allowing the sizes of individual files to be recorded in the manifest, but that requires an API change.
Dag-Erling Smørgrav
12 years ago 07af0bd
B
Move the "adding script" debug info into a more accurate place
Baptiste Daroussin
12 years ago f69ba38
B
Add some debug information when a package is created from a staging area
Baptiste Daroussin
12 years ago e3ad1c7
B
Fix registering shlibs with a stage directory
Baptiste Daroussin
12 years ago b876000
V
Add compact manifest to a package.
Vsevolod Stakhov
13 years ago 1e73231
V
Introduce flags for manifest emitting.
Vsevolod Stakhov
13 years ago 9ea699b
V
Use sbuf for emitting manifest.
Vsevolod Stakhov
13 years ago c9c31d1
B
Uses has to figure out manifest keys.
Baptiste Daroussin
13 years ago 37e975b
B
Fix pkg create
Baptiste Daroussin
13 years ago 40a6bba
M
Insert abstract metadata into local.sqlite
Matthew Seaman
13 years ago 6391db8
B
Fix memory corruption if www was passed directly in manifest
Baptiste Daroussin
13 years ago 7649153
B
Merge pull request #482 from vstakhov/master
Baptiste Daroussin
13 years ago bb6a616
V
Add cheksums computation for manifests.
Vsevolod Stakhov
13 years ago 53c8ad9
B
Add a compact booelan to the manifest emitter.
Baptiste Daroussin
13 years ago 0358022
A
Always check the return value of pkg_new().
Alexandre Perrin
13 years ago af169e2
A
Merge remote-tracking branch 'origin/master' into periodic
Alex Kozlov
13 years ago 677d1b3
B
Implement pkg create -O to create old package format (only from a stage directory)
Baptiste Daroussin
13 years ago fb11380
B
Update my copyright statements
Baptiste Daroussin
13 years ago d42ae05
B
Partially reverts commit 2d764f94d5e60965e18f9c63a8818b02a4b462c6.
Baptiste Daroussin
13 years ago f304cee
B
Bump shlib in preparation for pkg 1.1b1
Baptiste Daroussin
13 years ago 2d764f9
B
Allow pkg_set_from_file to trimcr, this allows pkg convert to 100% work
Baptiste Daroussin
13 years ago 8373678
B
Add a quick and dirty pkg convert able to convert the database from/to pkg_install
Baptiste Daroussin
13 years ago e67fbd2
B
Use new load function in pkg_compat
Baptiste Daroussin
13 years ago 1b62739
B
Add stubs in libpkg for upcoming old pkg creation support
Baptiste Daroussin
13 years ago 85acf72
M
Style: Add dash to first line of copyright header.
Matthew Seaman
13 years ago bfe0183
B
free() and pkg_free() can deal with NULL without need to check it before
Baptiste Daroussin
13 years ago 5febf55
R
Merge branch 'master' of git://github.com/pkgng/pkgng
Roman Naumann
13 years ago 838dd4c
M
Error when neither www or desc is defined in the manifest
Mark Lokowich
13 years ago e47fc82
M
Use unsigned types for bitmaps.
Matthew Seaman
13 years ago 6f3c8e5