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

dist/fedora: Include file magic headers #69

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

brianredbeard
Copy link
Contributor

Due to differences in package names between Deb based systems, Arch
Linux, and RPM based systems the package containing the development
headers for file were missing from the Fedora dependencies script.

This includes the package file-devel, which is the package which
resolves the issue.

In Fedora, one can identify the package providing a specific file using
the verb "whatprovides" with the command dnf, e.g.:

[~]$ dnf whatprovides /usr/include/magic.h
Last metadata expiration check: 4 days, 0:23:05 ago on Fri 04 Dec 2020 09:06:53 AM PST.
file-devel-5.39-3.fc33.i686 : Libraries and header files for file development
Repo        : fedora
Matched from:
Filename    : /usr/include/magic.h

file-devel-5.39-3.fc33.x86_64 : Libraries and header files for file development
Repo        : @System
Matched from:
Filename    : /usr/include/magic.h

file-devel-5.39-3.fc33.x86_64 : Libraries and header files for file development
Repo        : fedora
Matched from:
Filename    : /usr/include/magic.h

If one is unsure of the specific path, globbing may be used (but must be
quoted):

dnf whatprovides "*/magic.h"

Resolves #48

Due to differences in package names between Deb based systems, Arch
Linux, and RPM based systems the package containing the development
headers for file were missing from the Fedora dependencies script.

This includes the package `file-devel`, which is the package which
resolves the issue.

In Fedora, one can identify the package providing a specific file using
the verb "whatprovides" with the command dnf, e.g.:

    [~]$ dnf whatprovides /usr/include/magic.h
    Last metadata expiration check: 4 days, 0:23:05 ago on Fri 04 Dec 2020 09:06:53 AM PST.
    file-devel-5.39-3.fc33.i686 : Libraries and header files for file development
    Repo        : fedora
    Matched from:
    Filename    : /usr/include/magic.h

    file-devel-5.39-3.fc33.x86_64 : Libraries and header files for file development
    Repo        : @System
    Matched from:
    Filename    : /usr/include/magic.h

    file-devel-5.39-3.fc33.x86_64 : Libraries and header files for file development
    Repo        : fedora
    Matched from:
    Filename    : /usr/include/magic.h

If one is unsure of the specific path, globbing may be used (but must be
quoted):

    dnf whatprovides "*/magic.h"

Resolves WerWolv#48
@WerWolv
Copy link
Owner

WerWolv commented Dec 8, 2020

Thanks for the fix!

@WerWolv WerWolv merged commit 4d87eef into WerWolv:master Dec 8, 2020
@Calinou
Copy link
Contributor

Calinou commented Dec 8, 2020

Weird, I actually didn't have file-devel installed. It works now, thanks 🙂

@brianredbeard brianredbeard deleted the issue-48-fix-fedora-error branch December 8, 2020 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build error on Fedora 33 (magic.h: No such file or directory)
3 participants