Re: [arch-projects] [namcap] [PATCH 5/5] Fix shebangdepends rule for programs found in noncanonical locations

2020-01-18 Thread Eli Schwartz via arch-projects
On 1/17/20 8:19 AM, Vladimir Panteleev wrote:
> If the user has a non-canonical (i.e. symlinked on Arch) location in
> front of their $PATH, such as /usr/sbin, shutil.which will return
> locations with that path. This later causes the rule to fail to find
> the binary in any packages, causing spurious
> library-no-package-associated and dependency-not-needed warnings.
> 
> Fix this by resolving all symlinks for executables (using
> os.path.realpath) before trying to find them among installed packages.

FWIW a lot of software will break if you do this, not just namcap.
There's an exceedingly good reason why /usr/sbin and other symlink
directories are *not* added to the $PATH on archlinux, unless the user
has unwisely added it by hand.

-- 
Eli Schwartz
Bug Wrangler and Trusted User



signature.asc
Description: OpenPGP digital signature


Re: [arch-projects] [namcap] [PATCH 4/5] README: Document how to submit patches

2020-01-18 Thread Artur Juraszek via arch-projects

Vladimir Panteleev writes:

> ---
>  README | 10 --
>  1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/README b/README
> index 83b406b..b018466 100644
> --- a/README
> +++ b/README
> @@ -21,8 +21,14 @@ Minimal examples (very simple packages forged to exhibit 
> unexpected
>  behaviour from namcap) are also welcome to extend namcap's test suite.
>  
>  If you've a patch (fixing a bug or a new namcap module), then you can send 
> it 
> -to the arch-projects mailing list. Namcap development is managed with git, so
> -git-formatted patches are preferred. 
> +to the arch-projects mailing list.
> +
> +Namcap development is managed with git, so git-formatted patches are 
> preferred.
> +When sending patches to the mailing list, make sure to set a valid
> +subjectprefix, otherwise the email will be rejected by Mailman.  Git can be
> +configured as follows:
> +
> +git config format.subjectprefix namcap] [PATCH'

Looks like a typo, I believe it is?

>  
>  Namcap's source is available on:



signature.asc
Description: PGP signature