Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631754 - sys-apps/pacman - error: failed to initialize alpm library (could not find or read directory: /var/lib/pacman/)
Summary: sys-apps/pacman - error: failed to initialize alpm library (could not find or...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Nils Freydank
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-22 19:20 UTC by tonemgub
Modified: 2017-10-27 15:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tonemgub 2017-09-22 19:20:38 UTC
The package compiles, but there appears to be a bug. The database cannot be initialized, so it's impossible to use pacman.

error: failed to initialize alpm library (could not find or read directory: /var/lib/pacman/)
Comment 1 Nils Freydank 2017-09-30 10:51:45 UTC
Hi, please create /var/chroot/archlinux (e.g. via mkdir) as a workaround.

This will be fixed in -r1, but I’ll wait with that until I have another patch upstream (work in progress).

Sorry for the inconvenience.
Comment 2 Larry the Git Cow gentoo-dev 2017-10-27 15:57:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c3cbbadd99e9e4cc8014b99d74fe76ab943bf0bb

commit c3cbbadd99e9e4cc8014b99d74fe76ab943bf0bb
Author:     Nils Freydank <holgersson@posteo.de>
AuthorDate: 2017-10-27 15:56:06 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2017-10-27 15:57:38 +0000

    sys-apps/pacman: Rev bump to fix CVE-2016-5434 (bug #585940)
    
    Closes: https://bugs.gentoo.org/633742
    Closes: https://bugs.gentoo.org/631754
    
    Package-Manager: Portage-2.3.11, Repoman-2.3.3
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 .../pacman/files/pacman-5.0.2-CVE-2016-5434.patch  | 136 +++++++++++++++++++++
 sys-apps/pacman/metadata.xml                       |   3 +
 sys-apps/pacman/pacman-5.0.2-r1.ebuild             | 112 +++++++++++++++++
 3 files changed, 251 insertions(+)