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

FreeBSD Package is ... Linux? #1877

Closed
TheDiscordian opened this issue Jul 22, 2021 · 4 comments · Fixed by #1878 or CryptonightCanada/ipfs-desktop#1
Closed

FreeBSD Package is ... Linux? #1877

TheDiscordian opened this issue Jul 22, 2021 · 4 comments · Fixed by #1878 or CryptonightCanada/ipfs-desktop#1
Labels
kind/stale need/author-input Needs input from the original author

Comments

@TheDiscordian
Copy link
Member

TheDiscordian commented Jul 22, 2021

  • OS: FreeBSD
  • Version of IPFS Desktop: 0.16.1

Describe the bug
FreeBSD package is labelled as "linux", and install yields pkg: wrong architecture: Linux:5:x86:64 instead of FreeBSD:13:amd64. I noticed the package name also includes "linux" in it.

To Reproduce
Steps to reproduce the behavior:

  1. Download the "FreeBSD" package here
  2. pkg add ./ipfs-desktop-0.16.1-linux-x64.freebsd

Expected behavior
Package installs.

Additional context
Discovered in this thread.

I extracted the archive, and it really does look like a Linux binary, not a FreeBSD binary:

$ file ipfs-desktop 
ipfs-desktop: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=8e2a5573ce751fd59276672df63d46e4158cac08, not stripped
@TheDiscordian TheDiscordian added the need/triage Needs initial labeling and prioritization label Jul 22, 2021
lidel added a commit that referenced this issue Jul 23, 2021
@lidel
Copy link
Member

lidel commented Jul 23, 2021

I believe this is a binary optimized for Linux interop layer provided by FreeBSD:
https://docs.freebsd.org/en/books/handbook/linuxemu/

Note that linux binary support needs to be enabled first:

By default, Linux® libraries are not installed and Linux® binary compatibility is not enabled. Linux® libraries can either be installed manually or from the FreeBSD Ports Collection.

I opened #1878 to clarify this requirement.
Lmk if this solves the issue.

@lidel lidel added need/author-input Needs input from the original author and removed need/triage Needs initial labeling and prioritization labels Jul 23, 2021
@TheDiscordian
Copy link
Member Author

Yeah looks good to me! Much clearer

@github-actions
Copy link
Contributor

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2021

This issue was closed because it is missing author input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/stale need/author-input Needs input from the original author
Projects
None yet
2 participants