You are not logged in.

#1 2016-12-25 10:14:03

adamlau
Member
Registered: 2009-01-30
Posts: 418

[SOLVED] FAIL: test/pacman/tests/hook-target-list.py 1

Rebuilding pacman. test-suite.log:

=========================================
   pacman 5.0.1: ./test/test-suite.log
=========================================

# TOTAL: 508
# PASS:  500
# SKIP:  1
# XFAIL: 6
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

SKIP: test/scripts/makepkg-template_test.sh
===========================================

cp: can't stat './test/scripts/makepkg-template-tests': No such file or directory
find: ‘./makepkg-template-tests’: No such file or directory
1..0
SKIP: test/scripts/makepkg-template_test.sh
# All 0 tests successfully run.

PASS: test/pacman/tests/deprange001
===================================

1..1
# Running 'deprange001'
# ==> Generating test environment
# ==> Running test
# ==> Checking rules
    1..2
    not ok 1 - PACMAN_RETCODE=1
    not ok 2 - !PKG_EXIST=pkg3
not ok 1 - dependency ranges should be satisfied by the same package # TODO
XFAIL: test/pacman/tests/deprange001.py 1 - dependency ranges should be satisfied by the same package # TODO

FAIL: test/pacman/tests/hook-target-list
========================================

1..1
# Running 'hook-target-list'
# ==> Generating test environment
# ==> Running test
# ==> Checking rules
    1..3
    ok 1 - PACMAN_RETCODE=0
    ok 2 - PKG_EXIST=foo
    not ok 3 - FILE_CONTENTS=var/log/hook-output|file/bar\nfile/foo\nfoo\n
not ok 1 - Hook with NeedsTargets
FAIL: test/pacman/tests/hook-target-list.py 1 - Hook with NeedsTargets

PASS: test/pacman/tests/replace110
==================================

1..1
# Running 'replace110'
# ==> Generating test environment
# ==> Running test
# ==> Checking rules
    1..7
    ok 1 - !PKG_EXIST=dummy
    ok 2 - PKG_EXIST=replacement
    ok 3 - FILE_EXIST=etc/dummy.conf
    not ok 4 - !FILE_MODIFIED=etc/dummy.conf
    ok 5 - !FILE_PACNEW=etc/dummy.conf
    not ok 6 - !FILE_PACSAVE=etc/dummy.conf
    ok 7 - FILE_EXIST=bin/dummy
not ok 1 - Replace a package with a file in 'backup' (local modified) # TODO
XFAIL: test/pacman/tests/replace110.py 1 - Replace a package with a file in 'backup' (local modified) # TODO

PASS: test/pacman/tests/sync-update-package-removing-required-provides
======================================================================

1..1
# Running 'sync-update-package-removing-required-provides'
# ==> Generating test environment
# ==> Running test
# ==> Checking rules
    1..3
    not ok 1 - PACMAN_RETCODE=0
    not ok 2 - PKG_VERSION=feature|2-1
    not ok 3 - PKG_VERSION=pkg1|2-1
not ok 1 - Upgrade a package that loose a provides entry which moves to a dedicated package # TODO
XFAIL: test/pacman/tests/sync-update-package-removing-required-provides.py 1 - Upgrade a package that loose a provides entry which moves to a dedicated package # TODO

PASS: test/pacman/tests/sync403
===============================

1..1
# Running 'sync403'
# ==> Generating test environment
# ==> Running test
# ==> Checking rules
    1..4
    not ok 1 - PACMAN_RETCODE=0
    not ok 2 - PKG_EXIST=pkg1
    ok 3 - !PKG_EXIST=pkg2
    not ok 4 - PKG_EXIST=pkg3
not ok 1 - Choice between two providers (2) # TODO
XFAIL: test/pacman/tests/sync403.py 1 - Choice between two providers (2) # TODO

PASS: test/pacman/tests/sync406
===============================

1..1
# Running 'sync406'
# ==> Generating test environment
# ==> Running test
# ==> Checking rules
    1..6
    not ok 1 - PACMAN_RETCODE=0
    not ok 2 - PKG_EXIST=kdelibs
    ok 3 - PKG_EXIST=qt
    not ok 4 - PKG_EXIST=phonon
    not ok 5 - PKG_EXIST=kdeapp
    not ok 6 - PKG_VERSION=qt|4.6.1-1
not ok 1 - phonon/qt issue (2) # TODO
XFAIL: test/pacman/tests/sync406.py 1 - phonon/qt issue (2) # TODO

PASS: test/pacman/tests/upgrade078
==================================

1..1
# Running 'upgrade078'
# ==> Generating test environment
# ==> Running test
# ==> Checking rules
    1..11
    not ok 1 - PACMAN_RETCODE=0
    not ok 2 - PKG_DEPENDS=git|curl
    not ok 3 - PKG_DEPENDS=git|expat
    not ok 4 - PKG_DEPENDS=git|perl
    ok 5 - PKG_DEPENDS=perl|glibc
    not ok 6 - PKG_EXIST=git
    not ok 7 - PKG_VERSION=git|1.7.6-1
    not ok 8 - PKG_VERSION=curl|7.21.7-1
    not ok 9 - PKG_VERSION=glibc|2.1.4-4
    ok 10 - PKG_VERSION=perl|5.14.1-3
    ok 11 - PKG_VERSION=expat|2.0.1-6
not ok 1 - -U --recursive upgrades outdated dependencies # TODO
XFAIL: test/pacman/tests/upgrade078.py 1 - -U --recursive upgrades outdated dependencies # TODO

From alpm-hooks: NeedsTargets = Causes the list of matched trigger targets to be passed to the running hook on stdin. pacman build log up to the make check tests: http://pastebin.com/0XVmUZZ7. pacman-git c40ee73b outputs no alpm build warnings or errors, but fails with the same test.

# gtk-update-icon-cache.hook

[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/share/icons/*/
Target = !usr/share/icons/*/?*

[Action]
Description = Updating icon theme caches...
When = PostTransaction
Exec = /usr/share/libalpm/scripts/gtk-update-icon-cache
NeedsTargets

So executing the hook will fail as it will not have the trigger targets passed to it?

/var/abs/core $ grep -rnw '.' -e "NeedsTargets"
./texinfo/texinfo-remove.hook:10:NeedsTargets
./texinfo/texinfo-install.hook:11:NeedsTargets
/var/abs/extra $ grep -rnw '.' -e "NeedsTargets"
./gtk3/gtk-update-icon-cache.hook:13:NeedsTargets
./gconf/gconf-remove.hook:10:NeedsTargets
./gconf/gconf-install.hook:11:NeedsTargets
./dkms/hook.install:14:NeedsTargets
./dkms/hook.remove:16:NeedsTargets
/var/abs/community $ grep -rnw '.' -e "NeedsTargets"
./ghc/ghc-unregister.hook:12:NeedsTargets
./ghc/ghc-register.hook:12:NeedsTargets

There are only a few packages affected, yet I would prefer that all tests pass. Is there a workaround/resolution?

Last edited by adamlau (2016-12-26 16:37:22)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#2 2016-12-25 15:22:51

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: [SOLVED] FAIL: test/pacman/tests/hook-target-list.py 1

The test passes fine here; check the output from pacman to see why it failed for you.  You can use the debug branch of my repo (https://github.com/andrewgregory/pacman) and run:

make PY_LOG_FLAGS=--debug=2 check

Offline

#3 2016-12-25 18:42:53

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: [SOLVED] FAIL: test/pacman/tests/hook-target-list.py 1

Thanks for the debug build:

 FAIL: test/pacman/tests/hook-target-list
========================================

1..1
# Running 'hook-target-list'
# ==> Generating test environment
# ==> Running test
# debug: pacman v5.0.1-118-g4f004 - libalpm v10.0.1
# debug: config: attempting to read file /tmp/pactest-xuirNH/etc/pacman.conf
# debug: config: new section 'options'
# debug: config: finished parsing /tmp/pactest-xuirNH/etc/pacman.conf
# debug: setup_libalpm called
# debug: option 'logfile' = /tmp/pactest-xuirNH//var/log/pacman.log
# debug: option 'gpgdir' = /etc/pacman.d/gnupg/
# debug: option 'hookdir' = /tmp/pactest-xuirNH/etc/pacman.d/hooks/
# debug: option 'cachedir' = /tmp/pactest-xuirNH/var/cache/pacman/pkg/
# debug: "foo-1.0-1.pkg.tar.gz.sig" is not readable: No such file or directory
# debug: "foo-1.0-1.pkg.tar.gz.sig" is not readable: No such file or directory
# debug: sig data: <from .sig>
# debug: "foo-1.0-1.pkg.tar.gz.sig" is not readable: No such file or directory
# debug: sig path foo-1.0-1.pkg.tar.gz.sig could not be opened
# debug: missing optional signature
# debug: opening archive foo-1.0-1.pkg.tar.gz
# debug: starting package load for foo-1.0-1.pkg.tar.gz
# debug: sorting package filelist for foo-1.0-1.pkg.tar.gz
# debug: adding package 'foo'
# debug: loading package cache for repository 'local'
# debug: added 0 packages to package cache for db 'local'
# debug: adding package foo-1.0-1 to the transaction add list
# debug: "bar-1.0-1.pkg.tar.gz.sig" is not readable: No such file or directory
# debug: "bar-1.0-1.pkg.tar.gz.sig" is not readable: No such file or directory
# debug: sig data: <from .sig>
# debug: "bar-1.0-1.pkg.tar.gz.sig" is not readable: No such file or directory
# debug: sig path bar-1.0-1.pkg.tar.gz.sig could not be opened
# debug: missing optional signature
# debug: opening archive bar-1.0-1.pkg.tar.gz
# debug: starting package load for bar-1.0-1.pkg.tar.gz
# debug: sorting package filelist for bar-1.0-1.pkg.tar.gz
# debug: adding package 'bar'
# debug: adding package bar-1.0-1 to the transaction add list
# loading packages...
# resolving dependencies...
# debug: resolving target's dependencies
# debug: started resolving dependencies
# debug: checkdeps: package foo-1.0-1
# debug: finished resolving dependencies
# debug: started resolving dependencies
# debug: checkdeps: package bar-1.0-1
# debug: finished resolving dependencies
# looking for conflicting packages...
# debug: looking for conflicts
# debug: check targets vs targets
# debug: check targets vs targets
# debug: check targets vs db and db vs targets
# debug: check targets vs db
# debug: check db vs targets
# debug: checking dependencies
# debug: checkdeps: package foo-1.0-1
# debug: checkdeps: package bar-1.0-1
# debug: returning error 32 from alpm_db_get_pkg : could not find or read package
# debug: returning error 32 from alpm_db_get_pkg : could not find or read package
# debug: sorting by dependencies
# debug: started sorting dependencies
# debug: sorting dependencies finished
# debug: returning error 32 from alpm_db_get_pkg : could not find or read package
# debug: returning error 32 from alpm_db_get_pkg : could not find or read package
# 
# Packages (2) bar-1.0-1  foo-1.0-1
# 
# 
# :: Proceed with installation? [Y/n] debug: using cachedir: /tmp/pactest-xuirNH/var/cache/pacman/pkg/
# debug: using cachedir: /tmp/pactest-xuirNH/var/cache/pacman/pkg/
# 
# checking keyring...
# checking package integrity...
# loading package files...
# checking for file conflicts...
# debug: looking for file conflicts
# debug: searching for file conflicts: foo
# debug: searching for filesystem conflicts: foo
# debug: searching for file conflicts: bar
# debug: searching for filesystem conflicts: bar
# debug: parsing hook file /tmp/pactest-xuirNH/etc/pacman.d/hooks/hook.hook
# :: Running pre-transaction hooks...
# (1/1) hook.hook
# debug: executing "bin/sh" under chroot "/tmp/pactest-xuirNH/"
# bin/sh: printf: not found
# bin/sh: printf: not found
# bin/sh: printf: not found
# debug: call to waitpid succeeded
# error: command failed to execute correctly
# :: Processing package changes...
# debug: installing packages
# installing foo...
# debug: adding package foo-1.0-1
# debug: extracting files
# debug: opening archive foo-1.0-1.pkg.tar.gz
# debug: skipping extraction of '.PKGINFO'
# debug: extracting /tmp/pactest-xuirNH/file/
# debug: extracting /tmp/pactest-xuirNH/file/foo
# debug: updating database
# debug: adding database entry 'foo'
# debug: writing foo-1.0-1 DESC information back to db
# debug: writing foo-1.0-1 FILES information back to db
# debug: adding entry 'foo' in 'local' cache
# installing bar...
# debug: adding package bar-1.0-1
# debug: extracting files
# debug: opening archive bar-1.0-1.pkg.tar.gz
# debug: skipping extraction of '.PKGINFO'
# debug: extract: skipping dir extraction of /tmp/pactest-xuirNH/file/
# debug: extracting /tmp/pactest-xuirNH/file/bar
# debug: updating database
# debug: adding database entry 'bar'
# debug: writing bar-1.0-1 DESC information back to db
# debug: writing bar-1.0-1 FILES information back to db
# debug: adding entry 'bar' in 'local' cache
# debug: running ldconfig
# debug: executing "/usr/bin/ldconfig" under chroot "/tmp/pactest-xuirNH/"
# debug: call to waitpid succeeded
# debug: parsing hook file /tmp/pactest-xuirNH/etc/pacman.d/hooks/hook.hook
# debug: unregistering database 'local'
# debug: freeing package cache for repository 'local'
# ==> Checking rules
    1..3
    ok 1 - PACMAN_RETCODE=0
    ok 2 - PKG_EXIST=foo
    not ok 3 - FILE_CONTENTS=var/log/hook-output|file/bar\nfile/foo\nfoo\n
not ok 1 - Hook with NeedsTargets
FAIL: test/pacman/tests/hook-target-list.py 1 - Hook with NeedsTargets

This section...

bin/sh: printf: not found

...looks odd. I'll look into into it. EDIT: gtk-update-icon-cache seems to install fine (pacman-git) regardless..

# pacman -U --debug gtk-update-icon-cache-3.22.5-1-x86_64.pkg.tar.xz 
debug: pacman v5.0.1-117-gc40ee - libalpm v10.0.1
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 39: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 42: including /etc/pacman.d/mirrorlist
debug: config: new section 'community'
debug: config file /etc/pacman.conf, line 48: including /etc/pacman.d/mirrorlist
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': https://mirrors.kernel.org/archlinux/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for extra repository
debug: adding new server URL to database 'extra': https://mirrors.kernel.org/archlinux/extra/os/x86_64
debug: registering sync database 'community'
debug: database path for tree community set to /var/lib/pacman/sync/community.db
debug: "/var/lib/pacman/sync/community.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/community.db.sig could not be opened
debug: missing optional signature
debug: setting usage of 15 for community repository
debug: adding new server URL to database 'community': https://mirrors.kernel.org/archlinux/community/os/x86_64
loading packages...
debug: "gtk-update-icon-cache-3.22.5-1-x86_64.pkg.tar.xz.sig" is not readable: No such file or directory
debug: "gtk-update-icon-cache-3.22.5-1-x86_64.pkg.tar.xz.sig" is not readable: No such file or directory
debug: sig data: <from .sig>
debug: "gtk-update-icon-cache-3.22.5-1-x86_64.pkg.tar.xz.sig" is not readable: No such file or directory
debug: sig path gtk-update-icon-cache-3.22.5-1-x86_64.pkg.tar.xz.sig could not be opened
debug: missing optional signature
debug: opening archive gtk-update-icon-cache-3.22.5-1-x86_64.pkg.tar.xz
debug: starting package load for gtk-update-icon-cache-3.22.5-1-x86_64.pkg.tar.xz
debug: found mtree for package gtk-update-icon-cache-3.22.5-1-x86_64.pkg.tar.xz, getting file list
debug: finished mtree reading for gtk-update-icon-cache-3.22.5-1-x86_64.pkg.tar.xz
debug: sorting package filelist for gtk-update-icon-cache-3.22.5-1-x86_64.pkg.tar.xz
debug: adding package 'gtk-update-icon-cache'
debug: loading package cache for repository 'local'
debug: added 272 packages to package cache for db 'local'
warning: gtk-update-icon-cache-3.22.5-1 is up to date -- reinstalling
debug: adding package gtk-update-icon-cache-3.22.5-1 to the transaction add list
resolving dependencies...
debug: resolving target's dependencies
debug: started resolving dependencies
debug: checkdeps: package gtk-update-icon-cache-3.22.5-1
debug: finished resolving dependencies
looking for conflicting packages...
debug: looking for conflicts
debug: check targets vs targets
debug: check targets vs targets
debug: check targets vs db and db vs targets
debug: check targets vs db
debug: check db vs targets
debug: checking dependencies
debug: checkdeps: package gtk-update-icon-cache-3.22.5-1
debug: sorting by dependencies
debug: started sorting dependencies
debug: sorting dependencies finished

Packages (1) gtk-update-icon-cache-3.22.5-1

Total Installed Size:  0.03 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y 
debug: using cachedir: /var/cache/pacman/pkg/
debug: using cachedir: /var/cache/pacman/pkg/
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
debug: looking for file conflicts
debug: searching for file conflicts: gtk-update-icon-cache
debug: searching for filesystem conflicts: gtk-update-icon-cache
checking available disk space...
debug: checking available disk space
debug: discovered mountpoint: /var
debug: discovered mountpoint: /tmp
debug: discovered mountpoint: /sys/kernel/security
debug: discovered mountpoint: /sys/kernel/debug
debug: discovered mountpoint: /sys/kernel/config
debug: discovered mountpoint: /sys/fs/pstore
debug: discovered mountpoint: /sys/fs/cgroup/systemd
debug: discovered mountpoint: /sys/fs/cgroup/pids
debug: discovered mountpoint: /sys/fs/cgroup/net_cls
debug: discovered mountpoint: /sys/fs/cgroup/memory
debug: discovered mountpoint: /sys/fs/cgroup/freezer
debug: discovered mountpoint: /sys/fs/cgroup/devices
debug: discovered mountpoint: /sys/fs/cgroup/cpuset
debug: discovered mountpoint: /sys/fs/cgroup/cpu,cpuacct
debug: discovered mountpoint: /sys/fs/cgroup/blkio
debug: discovered mountpoint: /sys/fs/cgroup
debug: discovered mountpoint: /sys
debug: discovered mountpoint: /run/user/1000
debug: discovered mountpoint: /run
debug: discovered mountpoint: /proc/sys/fs/binfmt_misc
debug: discovered mountpoint: /proc
debug: discovered mountpoint: /home
debug: discovered mountpoint: /dev/shm
debug: discovered mountpoint: /dev/pts
debug: discovered mountpoint: /dev/mqueue
debug: discovered mountpoint: /dev/hugepages
debug: discovered mountpoint: /dev
debug: discovered mountpoint: /
debug: loading fsinfo for /
debug: partition /, needed 0, cushion 5121, free 4552094
debug: parsing hook file /usr/share/libalpm/hooks/99-linux.hook
debug: parsing hook file /usr/share/libalpm/hooks/gio-querymodules.hook
debug: parsing hook file /usr/share/libalpm/hooks/update-mime-database.hook
debug: parsing hook file /usr/share/libalpm/hooks/update-ca-trust.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk-query-immodules-3.0.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk-update-icon-cache.hook
debug: parsing hook file /usr/share/libalpm/hooks/udev-hwdb.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk-query-immodules-2.0.hook
debug: parsing hook file /usr/share/libalpm/hooks/glib-compile-schemas.hook
debug: parsing hook file /usr/share/libalpm/hooks/99-linux-CUSTOM.hook
:: Processing package changes...
debug: installing packages
reinstalling gtk-update-icon-cache...
debug: reinstalling package gtk-update-icon-cache-3.22.5-1
debug: removing old package first (gtk-update-icon-cache-3.22.5-1)
debug: removing 9 files
debug: unlinking /usr/share/libalpm/scripts/gtk-update-icon-cache
debug: keeping directory /usr/share/libalpm/scripts/ (in new package)
debug: unlinking /usr/share/libalpm/hooks/gtk-update-icon-cache.hook
debug: keeping directory /usr/share/libalpm/hooks/ (contains files)
debug: keeping directory /usr/share/libalpm/ (contains files)
debug: keeping directory /usr/share/ (contains files)
debug: unlinking /usr/bin/gtk-update-icon-cache
debug: keeping directory /usr/bin/ (contains files)
debug: keeping directory /usr/ (contains files)
debug: removing database entry 'gtk-update-icon-cache'
debug: removing entry 'gtk-update-icon-cache' from 'local' cache
debug: extracting files
debug: opening archive gtk-update-icon-cache-3.22.5-1-x86_64.pkg.tar.xz
debug: skipping extraction of '.PKGINFO'
debug: skipping extraction of '.BUILDINFO'
debug: extract: skipping dir extraction of /usr/
debug: extract: skipping dir extraction of /usr/share/
debug: extract: skipping dir extraction of /usr/bin/
debug: extracting /usr/bin/gtk-update-icon-cache
debug: extract: skipping dir extraction of /usr/share/libalpm/
debug: extract: skipping dir extraction of /usr/share/libalpm/scripts/
debug: extract: skipping dir extraction of /usr/share/libalpm/hooks/
debug: extracting /usr/share/libalpm/hooks/gtk-update-icon-cache.hook
debug: extracting /usr/share/libalpm/scripts/gtk-update-icon-cache
debug: updating database
debug: adding database entry 'gtk-update-icon-cache'
debug: writing gtk-update-icon-cache-3.22.5-1 DESC information back to db
debug: writing gtk-update-icon-cache-3.22.5-1 FILES information back to db
debug: adding entry 'gtk-update-icon-cache' in 'local' cache
debug: running ldconfig
debug: executing "/usr/bin/ldconfig" under chroot "/"
debug: call to waitpid succeeded
debug: parsing hook file /usr/share/libalpm/hooks/99-linux.hook
debug: parsing hook file /usr/share/libalpm/hooks/gio-querymodules.hook
debug: parsing hook file /usr/share/libalpm/hooks/update-mime-database.hook
debug: parsing hook file /usr/share/libalpm/hooks/update-ca-trust.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk-query-immodules-3.0.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk-update-icon-cache.hook
debug: parsing hook file /usr/share/libalpm/hooks/udev-hwdb.hook
debug: parsing hook file /usr/share/libalpm/hooks/gtk-query-immodules-2.0.hook
debug: parsing hook file /usr/share/libalpm/hooks/glib-compile-schemas.hook
debug: parsing hook file /usr/share/libalpm/hooks/99-linux-CUSTOM.hook
debug: unregistering database 'local'
debug: freeing package cache for repository 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'community'

Last edited by adamlau (2016-12-25 21:14:47)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#4 2016-12-25 23:53:41

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [SOLVED] FAIL: test/pacman/tests/hook-target-list.py 1

where does your /bin/sh point?

Offline

#5 2016-12-26 06:21:45

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: [SOLVED] FAIL: test/pacman/tests/hook-target-list.py 1

/bin/sh -> mksh. Symlinked back to bash and the test passed. Does pacman require /bin/sh -> bash?


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#6 2016-12-26 11:33:37

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: [SOLVED] FAIL: test/pacman/tests/hook-target-list.py 1

Nope - it just requires a POSIX compatible shell that has the printf builtin. 

Try adding this to your configure

--with-scriptlet-shell=/usr/bin/bash

(I'm assuming the same shell is used for hooks...)

Offline

#7 2016-12-26 14:55:17

apg
Developer
Registered: 2012-11-10
Posts: 211

Re: [SOLVED] FAIL: test/pacman/tests/hook-target-list.py 1

--with-scriptlet-shell won't help the test failure.  pacman doesn't require bash or a printf builtin, just that it be configured to use a POSIX-compatible shell (some of Arch's scripts probably specifically require bash though).  The test suite just requires printf as a builtin because it sets up a minimal chroot to run the tests in.  Unless you've changed the configuration in the PKGBUILD, you should already be using --with-scriptlet-shell=/usr/bin/bash and that test failure is harmless.

Offline

#8 2016-12-26 16:38:07

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: [SOLVED] FAIL: test/pacman/tests/hook-target-list.py 1

Issue understood. Thanks all.


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

Board footer

Powered by FluxBB