Package Details: namcap-git 3.3.0.r0.gad8f115-1

Git Clone URL: https://aur.archlinux.org/namcap-git.git (read-only, click to copy)
Package Base: namcap-git
Description: A Pacman package analyzer
Upstream URL: https://gitlab.archlinux.org/pacman/namcap
Keywords: best-practices linter packaging pacman utility
Licenses: GPL
Conflicts: namcap
Provides: namcap
Submitter: None
Maintainer: PanisSupraOmnia
Last Packager: PanisSupraOmnia
Votes: 15
Popularity: 0.005433
First Submitted: 2007-07-25 02:57 (UTC)
Last Updated: 2022-05-29 21:05 (UTC)

Required by (7)

Sources (1)

Pinned Comments

PanisSupraOmnia commented on 2021-10-11 23:06 (UTC)

The orphan request was accepted, so I've adopted this package. I've updated it so it should install properly now; if there are any issues let me know!

Latest Comments

yan12125 commented on 2022-05-30 08:01 (UTC)

No problem, thanks for the update! I'm looking forward to updated extra/namcap as well :)

PanisSupraOmnia commented on 2022-05-29 20:16 (UTC)

Hey @yan12125, thanks for the fixes! Sorry it's taken me so long to respond, I just started a new job this month so I fell behind on other things like this. I did see about python-six before, but at the time was trying to verify that the solution really was to add to checkdepends, but now that I look at it again it does seem right. Now that namcap 3.3 has been released, I'll keep an eye for an update to the official PKGBUILD as well, to see if I should make any changes to align better with it.

yan12125 commented on 2022-05-17 12:55 (UTC)

Here's another PKGBUILD fix for a recent upstream change [1]: PATH="$srcdir/${pkgname}:$PATH" should be changed to PATH="$srcdir/${pkgname}/scripts:$PATH" as some scripts are moved.

[1] https://gitlab.archlinux.org/pacman/namcap/-/merge_requests/7

yan12125 commented on 2022-05-08 03:57 (UTC)

Tests fail as python-six is no longer installed via an indirect dependency:

FAIL: test_pydepends (Namcap.tests.package.test_pydepends.PyDependsTest)
Package with missing pacman dependency
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/namcap-git/src/namcap-git/Namcap/tests/package/test_pydepends.py", line 66, in test_pydepends
    self.assertEqual(w, [])
AssertionError: Lists differ: [('dependency-not-needed %s', 'python-six')] != []

First list contains 1 additional elements.
First extra element 0:
('dependency-not-needed %s', 'python-six')

- [('dependency-not-needed %s', 'python-six')]
+ []

Could you add python-six to checkdepends?

yan12125 commented on 2021-11-25 04:12 (UTC)

No problem and thanks for the update!

PanisSupraOmnia commented on 2021-11-22 22:22 (UTC)

Hey @yan12125, sorry for the delay! I was away from my computer when you commented and by the time I was back I'd completely forgotten, my bad. I've gone ahead and added systemd to checkdepends.

yan12125 commented on 2021-10-17 04:25 (UTC)

Thanks for picking this up! Could you add systemd to makedepends to fix the issue I mentioned below?

PanisSupraOmnia commented on 2021-10-11 23:06 (UTC)

The orphan request was accepted, so I've adopted this package. I've updated it so it should install properly now; if there are any issues let me know!

PanisSupraOmnia commented on 2021-09-21 01:03 (UTC)

I've sent @keenerd an email to see if he's still planning on actively maintaining this package. If I don't hear back in the next few days, I'll submit an orphan request.

SamLukeYes commented on 2021-09-10 10:53 (UTC)

Is this package still maintained?

yan12125 commented on 2020-07-24 03:12 (UTC)

Needs to add systemd to checkdepends, or check() fails with

chown: invalid group: ‘root:storage’

keenerd commented on 2017-11-23 14:07 (UTC)

Works for me.

sergey.orloff commented on 2017-11-15 13:36 (UTC)

Ran 81 tests in 45.730s FAILED (expected failures=1, unexpected successes=1) Test failed: <unittest.runner.TextTestResult run=81 errors=0 failures=0> error: Test failed: <unittest.runner.TextTestResult run=81 errors=0 failures=0> ==> ОШИБКА: Произошел сбой в check(). Прерывание...

timofonic commented on 2017-08-15 18:41 (UTC)

---------------------------------------------------------------------- Ran 81 tests in 79.364s FAILED (expected failures=1, unexpected successes=1) Test failed: <unittest.runner.TextTestResult run=81 errors=0 failures=0> error: Test failed: <unittest.runner.TextTestResult run=81 errors=0 failures=0> ==> ERROR: A failure occurred in check(). Aborting... :: failed to build namcap-git package(s)

z3ntu commented on 2016-03-13 13:04 (UTC)

When will the tests/checks be fixed?

jamespharvey20 commented on 2015-08-03 07:19 (UTC)

Submitted an email "[PATCH] Add a test for systemd files in /etc/systemd/system/" to arch-projects@archlinux.org and keenerd@gmail.com. Please let me know if you didn't receive the personal email. The list rejected my message with an uninformative message "Message rejected by filter rule match".

jamespharvey20 commented on 2015-08-03 00:29 (UTC)

The test_satisfied2 fail is introduced by 985f57e5.

jamespharvey20 commented on 2015-08-02 22:49 (UTC)

Unexpected failure in check(). Full output at: http://pastebin.com/vRKRYaSx Pertinent below: ====================================================================== FAIL: test_satisfied2 (Namcap.tests.test_depends.DependsTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/build/namcap-git/src/namcap-git/Namcap/tests/test_depends.py", line 68, in test_satisfied2 self.assertEqual(w, expected_w) AssertionError: Lists differ: [] != [('dependency-already-satisfied %s', 'python')] Second list contains 1 additional elements. First extra element 0: ('dependency-already-satisfied %s', 'python') - [] + [('dependency-already-satisfied %s', 'python')] ---------------------------------------------------------------------- Ran 80 tests in 6.184s FAILED (failures=1, expected failures=2)

yan12125 commented on 2015-03-02 10:38 (UTC)

Also, currently only "$PKGEXT" == ".pkg.tar.xz" can pass the tests in check(). Neither '.pkg.tar' nor '.pkg.tar.gz' is OK.

yan12125 commented on 2015-03-02 10:11 (UTC)

Please add --tags to `git describe` so that unannotated tags are considered, too.

toni10 commented on 2015-02-15 09:17 (UTC)

This worked for me:: # Apps Packages for Chakra, part of www.chakra-project.org # Maintainer: H W Tovetjärn (totte) <totte@tott.es> # Contributor: Rémy Oudompheng <remy@archlinux.org> # Hugo Doria <hugo@archlinux.org> pkgname=namcap pkgver=3.2.5 pkgrel=2 pkgdesc="A Pacman package analyzer" arch=('any') url="http://projects.archlinux.org/namcap.git/" license=('GPL') depends=('python' 'pyalpm>=0.5' 'licenses' 'binutils' 'elfutils' 'python-pyelftools') makedepends=('python-distribute') source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz) sha1sums=('5fb93f267766aaf9b399387af374f624849caf25') prepare() { sed 's|libalpm.so.8|libalpm.so.9|g' -i ${pkgname}-${pkgver}/Namcap/tests/package/test_sodepends.py } build() { cd ${srcdir}/${pkgname}-${pkgver} python setup.py build } check() { cd ${srcdir}/${pkgname}-${pkgver} env PARSE_PKGBUILD_PATH=${srcdir}/${pkgname}-${pkgver} \ PATH=${srcdir}/${pkgname}-${pkgver}:$PATH \ python setup.py test } package() { cd ${srcdir}/${pkgname}-${pkgver} python setup.py install --root=${pkgdir} } ---------------------------------------------------------------------- Ran 77 tests in 10.104s OK (expected failures=2)

sl1pkn07 commented on 2014-12-27 10:14 (UTC)

solved with prepare() { sed 's|libalpm.so.8|libalpm.so.9|g' -i ${pkgname}/Namcap/tests/package/test_sodepends.py } but get another check fail: .... test_kdeprograms_files_b (Namcap.tests.package.test_kdeprograms.KdeProgramsTest) ... expected failure test_kdeprograms_files_c (Namcap.tests.package.test_kdeprograms.KdeProgramsTest) ... unexpected success ... FAILED (expected failures=1, unexpected successes=1) upstream need update to pacman 4.2 greetings

sl1pkn07 commented on 2014-12-27 10:07 (UTC)

check failed: Package with missing pacman dependency ... FAIL http://sl1pkn07.wtf/paste/view/5230ac7e greetings

sl1pkn07 commented on 2014-12-27 10:01 (UTC)

env PARSE_PKGBUILD_PATH="$srcdir/${pkgname}-${pkgver}" \ PATH="$srcdir/${pkgname}-${pkgver}:$PATH" \ this line is wrong, is without '-${pkgver}' greetings

einseenai commented on 2012-02-04 11:36 (UTC)

+1 to pyalpm-git dependency :P

xyproto commented on 2011-10-12 10:22 (UTC)

Please depend on pyalpm-git. +1

fs4000 commented on 2011-09-10 15:03 (UTC)

This should depend on pyalpm-git instead of python.

remyoudompheng commented on 2011-02-16 23:30 (UTC)

Hello, I have pushed to namcap git repo changes that make it use python3. Please modify the PKGBUILD accordingly.

commented on 2010-10-27 22:58 (UTC)

Updated so it runs namcap-clean (minus maintainer tag, which is only for official repos IIRC). How ironic, the old PKGBUILD didn't pass namcap tests, if only because it was so old. Things have been deprecated since then (eg. $startdir).

haawda commented on 2010-07-06 21:38 (UTC)

This PKGBUILD needs some love. Please use a template (/usr/share/pacman/PKGBUILD-git), do not use $startdir and delete the last line.