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 txz package says architecture is Linux #352

Open
notifiarr-bot opened this issue Oct 14, 2023 · 8 comments
Open

FreeBSD txz package says architecture is Linux #352

notifiarr-bot opened this issue Oct 14, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@notifiarr-bot
Copy link

I may just be an idiot (probably) but can anyone help me figure out how to install this in a freebsd jail? I'm not great on freebsd. I downloaded the unpackerr.amd64.freebsd.gz but tar doesn't want to unzip it. I extracted it on windows and its just a file called unpackerr.amd64.freebsd. If I extract that, it looks like a bunch of binary files. If i try to use the txz, i get this:
Installing unpackerr-0.9.8-365...
pkg: wrong architecture: Linux:5:x86:64 instead of FreeBSD:13:amd64
any help would be appreciated

Origin user: kleptoroth
Origin message: Discord Server Link
Reporting user: twitchcaptain
Reporting message: Discord Server Link

@davidnewhall
Copy link
Collaborator

This can at least be worked around with -f.

root@freebsd:~david # pkg add -f unpackerr-0.12.0_547.amd64.txz
Installing unpackerr-0.12.0-547...
pkg: wrong architecture: Linux:5:x86:64 instead of FreeBSD:13:amd64
Extracting unpackerr-0.12.0-547: 100%
root@freebsd:~david # unpackerr
[INFO] 2024/01/17 20:42:08 Unpackerr v0.12.0 Starting! PID: 893, UID: 0, GID: 0, Now: 2024-01-17 20:42:08 -0800 PST
[INFO] 2024/01/17 20:42:08 ==> GoLift Discord: https://golift.io/discord <==
[INFO] 2024/01/17 20:42:08 ==> Startup Settings <==
[INFO] 2024/01/17 20:42:08  => Sonarr Config: 0 servers

@davidnewhall
Copy link
Collaborator

Unfortunately this is a problem in the package creation tool we use. I do not have any easy way to fix this. :(
Upstream issue: jordansissel/fpm#1880

@davidnewhall davidnewhall added the bug Something isn't working label Jan 18, 2024
@eegeeZA
Copy link

eegeeZA commented Jun 4, 2024

I get pkg: archive_read_open_filename(unpackerr.amd64.freebsd.gz): Unrecognized archive format when trying with v0.13.1 either the unpackerr.amd64.freebsd.gz or the unzipped version.

@davidnewhall
Copy link
Collaborator

davidnewhall commented Jun 8, 2024

When trying what, exactly? Does 0.12.0 work? Does the package file work? unpackerr-0.13.1_613.amd64.txz

The other files are binaries. Only the txz file will work with the pkg command.

@eegeeZA
Copy link

eegeeZA commented Jun 8, 2024

image
The last command works fine with the -f argument. I'm using that in the jail currently.

@davidnewhall
Copy link
Collaborator

Note: To add proper dbus (X11) support to FreeBSD binaries and packages, we need to compile the app on freebsd instead of Linux. Since we'll compile it on freebsd, we can also package it on freebsd. Once we do that, we should no longer get this error.

Adding X11 support to FreeBSD (and Linux) requires a number of other changes too.

@nijave
Copy link

nijave commented Aug 8, 2024

fpm seems to assume it's being packaged on a FreeBSD system https://github.com/jordansissel/fpm/blob/main/lib/fpm/package/freebsd.rb#L95

root@OPNsense:~ # uname -s
FreeBSD
root@OPNsense:~ # uname -r
13.2-RELEASE-p11

nick@nick-desktop:~$ uname -s
Linux
nick@nick-desktop:~$ uname -r
6.9.12-200.fc40.x86_64

Although it seems like the architecture part (amd64) will still be wrong

@davidnewhall
Copy link
Collaborator

Thanks @nijave! I spent more time than I should have looking for that piece of code you linked. I updated it and submitted a pull request. Hopefully it gets noticed and merged at some point. jordansissel/fpm#2064

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

4 participants