Package Details: namcap-git 3.2.7.10.g2090aa7-1

Git Clone URL: https://aur.archlinux.org/namcap-git.git (read-only)
Package Base: namcap-git
Description: A Pacman package analyzer (git)
Upstream URL: http://projects.archlinux.org/namcap.git/
Licenses: GPL
Conflicts: namcap
Provides: namcap
Submitter: None
Maintainer: keenerd
Last Packager: keenerd
Votes: 13
Popularity: 0.000218
First Submitted: 2007-07-25 02:57
Last Updated: 2016-08-19 15:09

Required by (11)

Sources (1)

Latest Comments

z3ntu commented on 2016-03-13 13:04

When will the tests/checks be fixed?

jamespharvey20 commented on 2015-08-03 07:19

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

The test_satisfied2 fail is introduced by 985f57e5.

jamespharvey20 commented on 2015-08-02 22:54

(Feature request) Warn (or error) on systemd files (outside of actual systemd package) going in /etc rather than /usr

A package's systemd .service/.socket/.target/.mount/.timer/.slice/.busname/.automount/.path files should be in /usr/lib/systemd/system

The system maintainer should be able to override any of these with the same name by placing them in /etc/systemd/system.

Probably makes sense to have this be a warning, since if a package (other than systemd) needs to override one of these files actually provided by systemd, its only choice would be to place the file in /etc. Unsure this ever happens. Maybe it's worth erroring about, instead.

jamespharvey20 commented on 2015-08-02 22:49

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

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

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

toni10 commented on 2015-02-15 09:17





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)

toni10 commented on 2015-02-15 09:16

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}
}

sl1pkn07 commented on 2014-12-27 10:14

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

All comments