Skip to content

Commit

Permalink
Solve more bookworm bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed May 11, 2023
1 parent fe77a8d commit 78a0466
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
build_type: [debug, release]
build_image: ["debian:bookworm-slim", "debian:bullseye-slim", "alpine:3.17"]
build_image: ["debian:bookworm-slim", "debian:bullseye-slim"] # TODO: "alpine:3.17"

env:
DEBIAN_FRONTEND: noninteractive
Expand Down
2 changes: 1 addition & 1 deletion source/ports/py_port/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ message(STATUS "Port ${target}")

if(NOT OPTION_BUILD_GUIX)
find_package(Python3 COMPONENTS Interpreter REQUIRED)
install(CODE "execute_process(COMMAND pip3 install ${CMAKE_CURRENT_SOURCE_DIR})")
install(CODE "execute_process(COMMAND pip3 install --break-system-packages ${CMAKE_CURRENT_SOURCE_DIR})")
endif()

#
Expand Down
9 changes: 5 additions & 4 deletions tools/metacall-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ sub_apt(){
sub_python(){
echo "configure python"
cd $ROOT_DIR
sub_apt_install_hold python3 libpython3.9 # libpython3.11
sub_apt_install_hold python3 libpython3.11
}

# Ruby
Expand All @@ -86,7 +86,7 @@ sub_ruby(){
cd $ROOT_DIR

$SUDO_CMD apt-get update
sub_apt_install_hold ruby2.7 libruby2.7 # ruby3.1 libruby3.1
sub_apt_install_hold ruby3.1 libruby3.1
}

# NetCore
Expand Down Expand Up @@ -163,7 +163,7 @@ sub_nodejs(){
echo "configure node"

# Install NodeJS library
sub_apt_install_hold libnode72 # libnode108
sub_apt_install_hold libnode108
}

# TypeScript
Expand Down Expand Up @@ -214,7 +214,8 @@ sub_c(){

case ${LINUX_DISTRO} in
debian)
if [ "${VERSION}" == "unstable" ] || [ "${VERSION}" == "testing" ]; then
if [ "${VERSION}" == "unstable" ] || [ "${VERSION}" == "testing" ] || [[ "${VERSION_CODENAME}" == "bookworm" ]]; then
# TODO: For now, bookworm == sid, change when bookworm is released
CODENAME="unstable"
LINKNAME=""
else
Expand Down
2 changes: 1 addition & 1 deletion tools/runtime/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ COPY --from=builder /usr/local/lib/plugins /usr/local/lib/plugins
COPY --from=builder /usr/local/lib/node_modules/ /usr/local/lib/node_modules/

# Copy python dependencies (and port) from builder
COPY --from=builder /usr/local/lib/python3.9/dist-packages/metacall/ /usr/local/lib/python3.9/dist-packages/metacall/
COPY --from=builder /usr/local/lib/python3.11/dist-packages/metacall/ /usr/local/lib/python3.11/dist-packages/metacall/

# Copy headers from builder
COPY --from=builder /usr/local/include/metacall /usr/local/include/metacall
Expand Down

0 comments on commit 78a0466

Please sign in to comment.