Skip to content

package names that contain x86_64 break xbps-install/xbps-remove #600

Description

@classabbyamp

xbps will successfully index a package with the name containing x86_64 but cannot install it (or sometimes can, but cannot uninstall it). I was unable to reproduce this with another architecture (like calling a package foo-aarch64-1.0_1) or with just a false revision (like foo_1-1.0_1).

mkdir -p pkg/foo/bar repo root
echo asdf > pkg/foo/bar/baz
cd repo
xbps-create -A noarch -n foo-x86_64-1.0_1 -s "foo pkg" ../pkg
xbps-rindex -d -a ./*.xbps
cd ..
xbps-install -r root -R repo -yvd foo-x86_64
[DEBUG] XBPS: 0.59.1 API: 20200221 GIT: UNSET
[DEBUG] Processing configuration directory: /tmp/xbps-test/root/etc/xbps.d
[DEBUG] Processing system configuration directory: /tmp/xbps-test/root/usr/share/xbps.d
[DEBUG] rootdir=/tmp/xbps-test/root
[DEBUG] metadir=/tmp/xbps-test/root/var/db/xbps
[DEBUG] cachedir=/tmp/xbps-test/root/var/cache/xbps
[DEBUG] confdir=/tmp/xbps-test/root/etc/xbps.d
[DEBUG] sysconfdir=/tmp/xbps-test/root/usr/share/xbps.d
[DEBUG] syslog=true
[DEBUG] bestmatching=false
[DEBUG] keepconf=false
[DEBUG] Architecture: x86_64
[DEBUG] Target Architecture: (null)
[DEBUG] Repository[0]=/tmp/xbps-test/repo
[DEBUG] [pkgdb] initialized ok.
[DEBUG] [rpool] checking `/tmp/xbps-test/repo' at index 0
[DEBUG] [repo] `/tmp/xbps-test/repo/x86_64-stagedata' open stagedata No such file or directory
[DEBUG] [rpool] `/tmp/xbps-test/repo' registered.
[DEBUG] [rpool] checking `/tmp/xbps-test/repo' at index 0
[DEBUG] xbps_transaction_install_pkg: trans_find_pkg foo-x86_64: 2
Package 'foo-x86_64' not found in repository pool.
[DEBUG] xbps_pkgdb_unlock: pkgdb_fd 3
[DEBUG] [pkgdb] released ok.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions