Open notifiarr-bot opened 1 year ago
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
Unfortunately this is a problem in the package creation tool we use. I do not have any easy way to fix this. :(
Upstream issue: https://github.com/jordansissel/fpm/issues/1880
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.
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.
The last command works fine with the -f
argument. I'm using that in the jail currently.
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.
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
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. https://github.com/jordansissel/fpm/pull/2064
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