Skip to content

Commit

Permalink
chore(deps): Add libmagic as fallback for typecode-libmagic
Browse files Browse the repository at this point in the history
ScanCode's typecode-libmagic Python library needs a fallback
on platforms that do not have the library plugin capability,
notably linux/aarch64.

The library performs a file check files with data in particular
fixed formats, trying to guess the proper file format to perform
the necessary operation.

In Ubuntu image, libmagic1 system library and file utility are
the fallback requirements.

Signed-off-by: Helio Chissini de Castro <[email protected]>
  • Loading branch information
heliocastro committed Sep 29, 2023
1 parent 5389da0 commit 99903f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
coreutils \
curl \
dirmngr \
file \
gcc \
git \
git-lfs \
Expand All @@ -50,6 +51,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
libarchive-tools \
libffi-dev \
libgmp-dev \
libmagic1 \
libz-dev \
locales \
lzma \
Expand Down

0 comments on commit 99903f5

Please sign in to comment.