Skip to content

arch option returning incorrect results #6

@p3lim

Description

@p3lim

Running without -arch:

> apk-file bin/dig
FILE                                                             PACKAGE             BRANCH              REPOSITORY          ARCHITECTURE
/usr/bin/dig                                                     bind-tools          edge                main                aarch64
/usr/bin/dig                                                     bind-tools          edge                main                armhf
/usr/bin/dig                                                     bind-tools          edge                main                ppc64le
/usr/bin/dig                                                     bind-tools          edge                main                s390x
/usr/bin/dig                                                     bind-tools          edge                main                armv7
/usr/bin/dig                                                     bind-tools          edge                main                x86_64
/usr/sbin/digest-service                                         heimdal-libs        edge                main                x86_64
/usr/sbin/digest-service                                         heimdal-libs        edge                main                x86
/usr/sbin/digest-service                                         heimdal-libs        edge                main                aarch64
/usr/sbin/digest-service                                         heimdal-libs        edge                main                armhf
/usr/sbin/digest-service                                         heimdal-libs        edge                main                ppc64le
/usr/sbin/digest-service                                         heimdal-libs        edge                main                s390x
/usr/sbin/digest-service                                         heimdal-libs        edge                main                armv7
/usr/bin/dighosts                                                3proxy              edge                testing             x86_64
/usr/bin/dighosts                                                3proxy              edge                testing             aarch64
/usr/bin/dighosts                                                3proxy              edge                testing             armhf
/usr/bin/dighosts                                                3proxy              edge                testing             armv7
/usr/bin/dighosts                                                3proxy              edge                testing             x86
/usr/bin/dighosts                                                3proxy              edge                testing             ppc64le
/usr/bin/dighosts                                                3proxy              edge                testing             s390x
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           x86
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           armhf
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           armv7
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           aarch64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           ppc64le
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           ppc64le
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           s390x
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           x86
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           armv7
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           aarch64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           armhf
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           s390x
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           x86
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           armhf
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           armv7
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           aarch64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           ppc64le
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           ppc64le
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           s390x
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           x86
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           armv7
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           aarch64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           armhf
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           s390x

With -arch x86_64:

> apk-file -arch x86_64 bin/dig
FILE                                                             PACKAGE             BRANCH              REPOSITORY          ARCHITECTURE
/usr/sbin/digest-service                                         heimdal-libs        edge                main                x86_64
/usr/bin/dighosts                                                3proxy              edge                testing             x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           x86_64

/usr/bin/dig from the bind-tools package is not shown in the results, even though clearly stated it exists for the specified architecture when not using the -arch option.

Expected output:

FILE                                                             PACKAGE             BRANCH              REPOSITORY          ARCHITECTURE
/usr/bin/dig                                                     bind-tools          edge                main                x86_64
/usr/sbin/digest-service                                         heimdal-libs        edge                main                x86_64
/usr/bin/dighosts                                                3proxy              edge                testing             x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions