Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch option returning incorrect results #6

Open
p3lim opened this issue Sep 5, 2019 · 2 comments
Open

arch option returning incorrect results #6

p3lim opened this issue Sep 5, 2019 · 2 comments
Labels

Comments

@p3lim
Copy link

p3lim commented Sep 5, 2019

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
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.94. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the bug label Sep 5, 2019
@TerraTech
Copy link

@p3lim I believe this patch is relevant and will fix the errant behavior you are experiencing:
TerraTech@71f0c52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants