[pacman-dev] [PATCH v2] pacman+libalpm: print version names for conflicting packages

2019-11-27 Thread morganamilo
When ever pacman prints a conflict, it now prints pkgname-version, instead of just pkgname. alpm_conflict_t now carries pointers to alpm_pkg_t instead of just the names of each package. Fixes FS#12536 (point 2) --- v2: dupe each alpm_pkg_t diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h

[pacman-dev] [PATCH 2/2] remove: Don't follow symlinks in checking if a file can be removed

2019-11-27 Thread Ryan Gonzalez
Otherwise, symlinks to non-removable files will be logged as unable to be removed. Signed-off-by: Ryan Gonzalez --- lib/libalpm/remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 9030bfee..bb980e7d 100644 ---

[pacman-dev] [PATCH 1/2] util: Add _alpm_access_flags

2019-11-27 Thread Ryan Gonzalez
This changes _alpm_access* to use faccessat, which allows behavior flags to be passed. Signed-off-by: Ryan Gonzalez --- lib/libalpm/util.c | 18 -- lib/libalpm/util.h | 2 ++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/lib/libalpm/util.c

Re: [pacman-dev] [PATCH 2/3] libmakepkg: use readelf instead of file for finding ELF file types

2019-11-27 Thread Eli Schwartz
On 11/27/19 12:32 PM, Ethan Sommer wrote: >>> --- a/scripts/libmakepkg/tidy/strip.sh.in >>> +++ b/scripts/libmakepkg/tidy/strip.sh.in >>> @@ -111,22 +111,20 @@ tidy_strip() { >>> >>> local binary strip_flags >>> find . -type f -perm -u+w -print0 2>/dev/null | while IFS=

[pacman-dev] [PATCH v2] pacman: print error when -Fx is given invalid regex

2019-11-27 Thread morganamilo
When processing the targets for -Fx, compile all the regex ahead of time, printing an error for each that failed to compile. Then, if they all compiled successfully, continue with printing files. Signed-off-by: morganamilo --- v2: Add comment about why we

Re: [pacman-dev] [PATCH 2/3] libmakepkg: use readelf instead of file for finding ELF file types

2019-11-27 Thread Ethan Sommer
> > --- a/scripts/libmakepkg/tidy/strip.sh.in > > +++ b/scripts/libmakepkg/tidy/strip.sh.in > > @@ -111,22 +111,20 @@ tidy_strip() { > > > > local binary strip_flags > > find . -type f -perm -u+w -print0 2>/dev/null | while IFS= > > read -rd '' binary ; do > > -

Re: [pacman-dev] [PATCH 2/3] libmakepkg: use readelf instead of file for finding ELF file types

2019-11-27 Thread Eli Schwartz
On 11/26/19 4:29 PM, Ethan Sommer wrote: > Signed-off-by: Ethan Sommer > --- > scripts/libmakepkg/tidy/strip.sh.in | 26 -- > 1 file changed, 12 insertions(+), 14 deletions(-) > > diff --git a/scripts/libmakepkg/tidy/strip.sh.in > b/scripts/libmakepkg/tidy/strip.sh.in >

Re: [pacman-dev] [PATCH 1/3] libmakepkg: use extraction commands instead of file to find archive type

2019-11-27 Thread Eli Schwartz
On 11/26/19 4:29 PM, Ethan Sommer wrote: > Previously, to determine which command we should use to extract an > archive, we would run file and match the output against our list of > possible extraction commands > > Instead, run the archive through each extraction command's -t (--test) > flag, if