Skip to content

Optimizing FreeBSD Build#3603

Open
1111Windows wants to merge 73 commits into
SuperTux:masterfrom
1111Windows:master
Open

Optimizing FreeBSD Build#3603
1111Windows wants to merge 73 commits into
SuperTux:masterfrom
1111Windows:master

Conversation

@1111Windows
Copy link
Copy Markdown
Contributor

This PR is an improvement following #3513, and its changes are as follows:

  1. Copy dependencies to the lib folder.

2.Compress files directly in the build/out/usr folder to avoid requiring users to navigate to the out/usr folder when decompressing the files.

3.Resolve the issue: ld-elf.so.1: /usr/local/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/local/bin/git not defined.

4.Pass parameters to the program when running run.sh (if any).

Removed unused 'with' parameters from FreeBSD workflow.
Updated FreeBSD workflow to install dependencies and build.
Added bash installation to FreeBSD workflow and ensured bash is used in the build process.
Add installation of libraqm package for FreeBSD builds.
Updated FreeBSD CI workflow to include architecture and output directory changes.
@1111Windows
Copy link
Copy Markdown
Contributor Author

I've taken care of the rest, so we can merge now.

Comment thread .github/workflows/freebsd.yml
Comment thread .github/workflows/freebsd.yml
Comment thread .github/workflows/freebsd.yml
@swagtoy swagtoy force-pushed the master branch 2 times, most recently from 806ca6a to c12b71b Compare March 15, 2026 04:42
Copy link
Copy Markdown
Member

@swagtoy swagtoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delay on reviewing this...

Comment thread .github/workflows/freebsd.yml Outdated
@1111Windows
Copy link
Copy Markdown
Contributor Author

Apologies for the delay on reviewing this...

No worries, I was thinking about whether I should let you know on Matrix when I commit today (I've actually been putting this PR on hold for a while now, haha)

make install DESTDIR="./out" VERBOSE=1
cd out/usr
echo -e '#!/bin/sh\n' 'export LD_LIBRARY_PATH=./lib/:$LD_LIBRARY_PATH\n' './bin/supertux2 "$@"' >> run.sh
echo -e '#!/bin/sh\nexport DIRNAME="$(dirname "$(readlink -f "$0")")"\nexport SYSTEM_LD_LIBRARY_PATH="$LD_LIBRARY_PATH"\ncd "$DIRNAME"\nexport LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIRNAME/lib/"\n"$DIRNAME/bin/supertux2" "$@"' > run.sh
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: go back to space separating the \n via separate echo arguments

see if you can do \
this to make those multiline. It \
just aids in readibility :)

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.

2 participants