Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/pkg.c  ·  View all commits
200 commits
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
6 days ago 920c183
D
check: Skip missing metadata
Dag-Erling Smørgrav
9 days ago 1629385
B
options: now that options are simple name/value tuples make them kvlist_t
Baptiste Daroussin
22 days ago a25ae64
B
options: remove %Od and %OD they where never used and populated
Baptiste Daroussin
22 days ago 903337f
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
I
libpkg: fix --register-only to populate config file contents
Isaac Freund
1 month ago 2ec66d7
B
pkg: messages improvements
Baptiste Daroussin
2 months ago b21ebf9
P
pkg: avoid a bunch of warnings
Pierre Pronchery
2 months ago cf901ce
B
reproducibility: fix regression in DL_SORT
Baptiste Daroussin
2 months ago 544d62c
B
memory: drastically reduce memory usage
Baptiste Daroussin
3 months ago 83243c7
I
libpkg: store ignored shlibs in manifest and db
Isaac Freund
3 months ago cd69108
S
Merge commit '2d18505bf79a2eb87e2e72bbc3e30b0cf7f6b15c'
Shawn Webb
4 months ago eacbab2
B
check: fix dangling if
Baptiste Daroussin
6 months ago 8bb9c9f
B
check: fix progress for -s
Baptiste Daroussin
6 months ago ae514d1
M
libpkg: Ignore mismatches of UF_ARCHIVE on FreeBSD
Mark Johnston
6 months ago 381cc0b
s
check: implement verification of file and dir metadata
strssndktn
6 months ago 48e6c12
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
M
libpkg: Respect the root dir when validating the checksum of a file
Mark Johnston
7 months ago 91abcd0
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
11 months ago ba89bd1
B
kv: insert all keyvalues directly sorted
Baptiste Daroussin
11 months ago c329d0a
B
pkg: for all lists insert elements sorted
Baptiste Daroussin
11 months ago abac190
B
add: attempt to further improve pkg add performances
Baptiste Daroussin
11 months ago 009e7a8
B
add: experiment with bsearch to see if it reduce the CPU bounding
Baptiste Daroussin
1 year ago d33f29c
B
utils: add charv_search
Baptiste Daroussin
1 year ago b4c8d82
B
prevent undefined behaviour (detected by UBSAN)
Baptiste Daroussin
1 year ago f8eb929
B
vec: convert pkg-message to vector
Baptiste Daroussin
1 year ago c01f2b7
B
vec: convert kvlist into vectors
Baptiste Daroussin
1 year ago 28aa748
B
upgrade: fix and simplify detection of upgrade requirements
Baptiste Daroussin
1 year ago e9ddeea
B
pkg: convert stringlist_t to charv_t
Baptiste Daroussin
1 year ago 3c90262
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 89d30c6
I
libpkg: add SHLIB_PROVIDE_IGNORE_{GLOB,REGEX} options
Isaac Freund
1 year ago 6ec1463
I
libpkg: only filter provided shlibs without lib prefix in analyze_elf()
Isaac Freund
1 year ago dfee49c
B
config: configure globabbly variables
Baptiste Daroussin
1 year ago 2ab58f8
B
pkg_addshlib: limit the number of call to pkg_config_get
Baptiste Daroussin
1 year ago e52dd97
B
config_files: plug a memory leak
Baptiste Daroussin
1 year ago 0fcd48e
B
manifest: sort lists to make them reproducible
Baptiste Daroussin
1 year ago fc571f9
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago bf1eb68
I
libpkg: disable Linuxulator shlib tracking by default
Isaac Freund
1 year ago 1e333d8
I
libpkg: scan /usr/lib32 for system libs if needed
Isaac Freund
1 year ago 189bb2a
I
libpkg: track lib32 and Linuxulator shlibs
Isaac Freund
1 year ago 3882f0f
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 25ee7d0
I
libpkg: add options to ignore required shlibs
Isaac Freund
1 year ago 16937e4
K
More leak fixes as well as skipped leaks.
Keve
1 year ago 306fc12
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 834d09c
K
Final round of low hanging leaks.
Keve
1 year ago 2cbdc3b
P
Fix MAINTAINER variable to point to pkg->maintainer
Pietro Cerutti
1 year ago 8186d23
S
Merge remote-tracking branch 'freebsd/main'
Shawn Webb
1 year ago 84c2214
B
altabi: rename the private field arch into altabi
Baptiste Daroussin
1 year ago 72cc0cd
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 851a6a4
r
pkg.c: change error message from dup2 to dup
rilysh
1 year ago 2461422
B
debug: cleanup debug message
Baptiste Daroussin
1 year ago b476314
B
debug: add a "package" workspace
Baptiste Daroussin
1 year ago ed02b1d
B
dependencies: make origin information optional
Baptiste Daroussin
1 year ago ab19386
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
libpkg: remove now unused pkg_recompute and pkgdb_reanalyse_shlibs
Baptiste Daroussin
2 years ago d839e6f
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 9856def
B
create: implement override_prefix
Baptiste Daroussin
2 years ago bc1137c
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago 5768655
B
API: fix an regression introduced with the C11 API
Baptiste Daroussin
2 years ago 93c7041
G
Fix typo probably fixing #2133
Gleb Popov
2 years ago fbeb91d
B
libpkg: replace pkg_set with a _Generic one
Baptiste Daroussin
3 years ago 10c1b55
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
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago fa6223f
B
lua script: fix packaging lua deinstall scripts
Baptiste Daroussin
3 years ago c754e31
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
B
fix upgrade performance issue
Baptiste Daroussin
3 years ago 7c47dfd
B
lua_scripts: convert type to string list
Baptiste Daroussin
3 years ago 6d0c152
B
messages: convert to tllist
Baptiste Daroussin
3 years ago 0b8ce04
B
Restore printing information abouts libs
Baptiste Daroussin
4 years ago ed16961
B
Skip @config files when checking the file checksums
Baptiste Daroussin
4 years ago 0627523
B
API: convert all abused hash table into stringlist
Baptiste Daroussin
4 years ago 9b49b83
B
libpkg: convert annotation to kvlist
Baptiste Daroussin
4 years ago a37bc66
B
API: remove ancient api pkg_get()
Baptiste Daroussin
4 years ago 2772d8a
B
libpkg: Convert licenses and categories to stringlist
Baptiste Daroussin
4 years ago b5eefda
B
hardlinks: rework handling of hardlinks
Baptiste Daroussin
4 years ago 70b98f1
E
config: Always error if we have duplicate config entries.
Emmanuel Vadot
4 years ago 421baf8
B
quality: plug plenty of memory leaks
Baptiste Daroussin
4 years ago ff0be3e
B
Use pkghash_get_value
Baptiste Daroussin
4 years ago ff7a207
B
pkg_open2: prevent a bad usage to happen
Baptiste Daroussin
4 years ago 584eae0
B
convert from khash to pkghash
Baptiste Daroussin
4 years ago 438bcc6
B
manifest: revert 27395aa508b46f317b24dbfdb4b4412386adf2d8
Baptiste Daroussin
4 years ago 9bceb3a
B
manifest: parse manifest by chunks
Baptiste Daroussin
4 years ago 27395aa
S
Merge branch 'upstream-master'
Shawn Webb
4 years ago 9b9eef5
B
pkg-message: now recognize ${PKGORIGIN} and ${MAINTAINER}
Baptiste Daroussin
5 years ago 5e291f8
S
Merge commit '74fd3389a4ee2611603ee8658d2f3b4182ace73e'
Shawn Webb
5 years ago b759c48
B
Use open_memstream p1
Baptiste Daroussin
5 years ago 383d27c
S
Merge remote-tracking branch 'upstream/master' into master
Shawn Webb
5 years ago 7e2225c
E
pkg query: Include the files and sum in '%X'
Emmanuel Vadot
5 years ago c337c10
E
pkg query: Fix '%X' to not use the version
Emmanuel Vadot
5 years ago ed15479
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
5 years ago d871ad5
E
query: Add %X to get the internal checksum of the package
Emmanuel Vadot
5 years ago 366e2df
B
Remove never used upgrade scripts
Baptiste Daroussin
6 years ago 5278d0b
B
Stop adding the CLOEXEC flag to pkg's rootfd.
Baptiste Daroussin
6 years ago ae4843a
B
Factorize some code, so simplify it.
Baptiste Daroussin
6 years ago 13f6366
B
Add support for scripts in lua
Baptiste Daroussin
6 years ago 485bdd9
B
remove dead code
Baptiste Daroussin
6 years ago 172a85c
B
Allow pkg-message to use variables
Baptiste Daroussin
6 years ago bac3482
M
Fix copy&paste mistake.
Mathieu Arnold
7 years ago 1b882c1
K
libpkg: Fix NULL check in pkg_is_config_file
Kyle Evans
7 years ago 3064423
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
Avoid getcwd calls
Vsevolod Stakhov
9 years ago f5a8e74
B
Prefer double linked list when appending data
Baptiste Daroussin
9 years ago bf4c200
B
Multiple dependency listing are now always fatal
Baptiste Daroussin
9 years ago af87443
V
Use dependencies formula in solver
Vsevolod Stakhov
9 years ago b0ea8d3
V
Use dependencies formula in solver
Vsevolod Stakhov
9 years ago 6c2aa59
B
convert pkg_option and pkg_conflicts to khash
Baptiste Daroussin
9 years ago ba73c4c
B
Reduce indentation
Baptiste Daroussin
9 years ago 216c2de
B
Remove useless code and duplicated code
Baptiste Daroussin
9 years ago bd5adf3
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
No need for a double linked list for files, messages and directories
Baptiste Daroussin
9 years ago 8e8f220
B
Add a link list for (reverse)dependencies which speeds up loops
Baptiste Daroussin
9 years ago 5ec313d
B
Replace libsbuf with utstring.h to improve portability
Baptiste Daroussin
9 years ago f93c045
B
Relax directory extraction
Baptiste Daroussin
9 years ago 79a1f54
B
Merge pull request #1449 from kdkd/master
Baptiste Daroussin
9 years ago be00b8b
K
Update the <9.2 compatiblity change to include setting FD_CLOEXEC.
Kevin Day
9 years ago fced418
K
FreeBSD before 9.2 does not have F_DUPFD_CLOEXEC, if it's not present revert to earlier behavior - non-atomic dup().
Kevin Day
9 years ago 4e9597d
B
Add a kh_find macro to simplify the code and avoid mistakes
Baptiste Daroussin
9 years ago 13b83fb
B
Add O_CLOEXEC when duplicating the rootfd
Baptiste Daroussin
10 years ago aa13a93
B
Add function to retrieve a given directory or file from a pkg
Baptiste Daroussin
10 years ago eeeed53
B
Make open_root_fd use the new global rootfd
Baptiste Daroussin
10 years ago 84ea3ae
B
When extracting packages if they were packed with relative path name, then prepend a '/' to the path
Baptiste Daroussin
10 years ago 01e323a
B
Fix potential use after free introduced while fixing memory leaks
Baptiste Daroussin
10 years ago 71e721d
B
Plug some memory leaks
Baptiste Daroussin
10 years ago c0ea706
B
Plug more memory leaks
Baptiste Daroussin
10 years ago 25ba61b
B
Rename precious to vital on suggestion from wblock@
Brad Davis
10 years ago 8ab7285
B
First pass at implementing precious packages
Brad Davis
10 years ago 103076e
B
add a new event: PKG_EVENT_FILE_MISSING
Baptiste Daroussin
10 years ago 1ecbb20
B
Fix typo
Baptiste Daroussin
10 years ago 84f3ca6
B
Check if a package is already installed by name, not by origin
Baptiste Daroussin
10 years ago 18070ea
B
Fix performance regression on files/directories
Baptiste Daroussin
10 years ago 45c1211
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
Correctly parse messages from the ports tree
Baptiste Daroussin
10 years ago bd0feb9
B
Make pkg info -D show correctly messages with new format
Baptiste Daroussin
10 years ago 58fd84e
B
Properly cleanup messages
Baptiste Daroussin
10 years ago c3c76c1
B
Rework messages to be fully context aware
Baptiste Daroussin
10 years ago 9ec411c
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
Avoid extra escaping of pkg-message.
Vsevolod Stakhov
10 years ago befb37c
V
Fix backward compatibility for pkg-message.
Vsevolod Stakhov
10 years ago cf3421c
V
Load package before calculating its digest.
Vsevolod Stakhov
10 years ago e14111c
V
Merge branch 'message-rework'
Vsevolod Stakhov
10 years ago 631ae91
V
Added logic to conditionally show messages.
Vsevolod Stakhov
10 years ago d2a08f9
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
Reduce a bit more code duplication
Baptiste Daroussin
10 years ago e297e36
B
Fix typo
Baptiste Daroussin
10 years ago 033b6c6
B
Reduce code duplication
Baptiste Daroussin
10 years ago 94851e4
B
Get rid of pkg_strel
Baptiste Daroussin
10 years ago ed5762b
B
Convert pkg_users pkg_groups to strings hash map
Baptiste Daroussin
10 years ago 2d6c6e0
B
Remove never used uidstr/gidstr
Baptiste Daroussin
10 years ago d7d8ada
B
Convert pkg_dir and pkg_config_file to khash
Baptiste Daroussin
10 years ago 89906ca
B
Convert *provides/*requires to khash
Baptiste Daroussin
10 years ago f4dcde2
B
Fix error message
Baptiste Daroussin
10 years ago d691576
B
Convert pkg_files to khash
Baptiste Daroussin
10 years ago 942aa46
B
Convert dependencies to khash.
Baptiste Daroussin
10 years ago 103ce1c
O
HBSD: fix format specifier in libpkg's pkg_vets(...)
Oliver Pinter
10 years ago 5bc1e90
B
Merge pull request #1294 from andrejzverev/fix
Baptiste Daroussin
10 years ago 404e39c
A
fix segmentation fault with pkg check -r
Andrej Zverev
10 years ago f52f7a0
B
Allow pkg add to work even if no version is specified in dependencies
Baptiste Daroussin
10 years ago 1118360
B
Merge pull request #1272 from ivadasz/master
Baptiste Daroussin
10 years ago 0297958
I
Fix two typos in pkg_vset(), to correspond to pkg_vget()'s code
Imre Vadász
10 years ago 966d0cb
V
Add dep_formula field.
Vsevolod Stakhov
10 years ago ad93098
B
Use new API to generate the checksums when recomputing with pkg check
Baptiste Daroussin
10 years ago 0cc4163
B
Prepare for multiple checksum formats supported for files
Baptiste Daroussin
10 years ago a4038bb
B
Complete pkg_checksum API and reduce duplicated code
Baptiste Daroussin
10 years ago 8f01347
B
Remove never used maniphest_schema_open functions
Baptiste Daroussin
10 years ago 38c8776
B
Remove pkg_reset function which has not been used for a while
Baptiste Daroussin
10 years ago 48354c8
B
Remove some dead code
Baptiste Daroussin
10 years ago b6e1557
B
More efficient cr trimming
Baptiste Daroussin
11 years ago 04e897b
B
Fix debug message
Baptiste Daroussin
11 years ago 2ba8a6b
B
Early support for pkg -r <rootdir> (no chroot involved)
Baptiste Daroussin
11 years ago 4f6eb5b
B
Fix emitting and parsing requires
Baptiste Daroussin
11 years ago f6a3a73
B
Add a place where to store requires
Baptiste Daroussin
11 years ago 79a5102
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
B
Turn packing_finish into a regular cleanup function
Baptiste Daroussin
11 years ago 8443beb
B
Check if a package is installed by name not by origin
Baptiste Daroussin
11 years ago e955688
B
The mtree is dead since pkg 1.3, remove now useless code
Baptiste Daroussin
11 years ago add6bd6
B
Cache developer_mode
Baptiste Daroussin
11 years ago f9dfaa7
B
Remove useless sbuf Remove useless accessor
Baptiste Daroussin
11 years ago 363b22e
B
Remove useless use of sbuf Remove useless accessors
Baptiste Daroussin
11 years ago 5e3dcb3
B
Remove useless use of sbuf Remove useless accessors
Baptiste Daroussin
11 years ago d2b47eb
B
Remove useless use of sbuf Remove useless accessor
Baptiste Daroussin
11 years ago 093841f
B
Do not use sbuf in pkg_dep and avoid accessors in library
Baptiste Daroussin
11 years ago e9eced8
B
Properly set uuid in case somewhere changes pkgname
Baptiste Daroussin
11 years ago 8cc2805
B
If pkg->uid is null when requested from pkg_get then generate it
Baptiste Daroussin
11 years ago 9e3b53b
B
pkg check -r should also compute checksum for symlinks
Baptiste Daroussin
11 years ago 291fd99
B
Only files starting with lib* should be considered as provided
Baptiste Daroussin
11 years ago 527bfcb
B
Remove debug printf
Baptiste Daroussin
11 years ago 143f87d
B
Finish converting struct pkg into a proper structure
Baptiste Daroussin
11 years ago eab4f94
B
Adapt pkg_is_valid
Baptiste Daroussin
11 years ago 6692e02
B
Finish adapting pkg_get
Baptiste Daroussin
11 years ago 2601976