build.sh fails on Fedora because dpkg is missing #2798

Closed
opened 2025-12-21 21:07:44 +01:00 by backuprepo · 2 comments
Owner

Originally created by @heylix on GitHub (Mar 14, 2021).

Building current master fails on Fedora.

$ ./build.sh -t native -p linux.amd64
which: no dpkg in (/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/heylix/.dotnet/tools:/home/heylix/.local/bin:/home/heylix/bin)
Cross-building is not supported for native builds, use 'docker' builds on amd64 for cross-building.

Same with the fedora target.

Originally created by @heylix on GitHub (Mar 14, 2021). Building current master fails on Fedora. ``` $ ./build.sh -t native -p linux.amd64 which: no dpkg in (/usr/lib64/ccache:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/heylix/.dotnet/tools:/home/heylix/.local/bin:/home/heylix/bin) Cross-building is not supported for native builds, use 'docker' builds on amd64 for cross-building. ``` Same with the fedora target.
backuprepo 2025-12-21 21:07:44 +01:00
  • closed this issue
  • added the
    stale
    bug
    labels
Author
Owner

@Harnish commented on GitHub (Apr 21, 2021):

I am building a patch like this. Can someone with arm64 and armhf tell me what "uname -m" outputs?

` do_build_native() {

  • if $( uname -m ; then
    echo "Cross-building is not supported for native builds, use 'docker' builds on amd64 for cross-building."
    exit 1
    fi
    @@ -43,7 +43,7 @@ do_build_native() {
    }

do_build_docker() {

  • if $( uname -m ; then
    echo "Docker-based builds only support amd64-based cross-building; use a 'native' build instead."
    exit 1
    fi`
@Harnish commented on GitHub (Apr 21, 2021): I am building a patch like this. Can someone with arm64 and armhf tell me what "uname -m" outputs? ` do_build_native() { - if [[ ! -f $( which dpkg ) || $( dpkg --print-architecture | head -1 ) != "${PLATFORM##*.}" ]]; then + if [[ $( uname -m | head -1 ) != "${PLATFORM##*.}" ]]; then echo "Cross-building is not supported for native builds, use 'docker' builds on amd64 for cross-building." exit 1 fi @@ -43,7 +43,7 @@ do_build_native() { } do_build_docker() { - if [[ -f $( which dpkg ) && $( dpkg --print-architecture | head -1 ) != "amd64" ]]; then + if [[ $( uname -m | head -1 ) != "x86_64" ]]; then echo "Docker-based builds only support amd64-based cross-building; use a 'native' build instead." exit 1 fi`
Author
Owner

@stale[bot] commented on GitHub (Aug 21, 2021):

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@stale[bot] commented on GitHub (Aug 21, 2021): This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments. If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label. This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on [Matrix or Social Media](https://docs.jellyfin.org/general/getting-help.html).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#2798
No description provided.