Skip to content

Conversation

@henderkes
Copy link
Collaborator

What does this PR do?

and rename folders from pkgroot/$arch-$os/zig-$arch-$os to pkgroot/$arch-$os/zig

Copy link
Owner

@crazywhalecc crazywhalecc left a comment

Choose a reason for hiding this comment

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

I noticed the other packages would have the same issue here, and these are working with using extract-files to solve this. So far so good for me, but for unification it looks better to refactor them all in 3.0.


SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")"
BUILDROOT_ABS="$(realpath "$SCRIPT_DIR/../../buildroot/include" 2>/dev/null || true)"
BUILDROOT_ABS="$(realpath "$SCRIPT_DIR/../../../buildroot/include" 2>/dev/null || true)"
Copy link
Owner

Choose a reason for hiding this comment

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

How about using BUILD_INCLUDE_PATH variable? We call zig-cc.sh inside SPC can use it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That would make it a problem with docker. or when the env variable was set at oen time but then unset at another We need to use relative paths unfortunately.

Copy link
Owner

@crazywhalecc crazywhalecc Sep 8, 2025

Choose a reason for hiding this comment

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

// ConsoleApplication.php
require_once ROOT_DIR . '/src/globals/internal-env.php';

// internal-env.php
putenv('BUILD_INCLUDE_PATH=' . BUILD_INCLUDE_PATH);

It shouldn't have issue with docker, it's pre-defined in SPC startup, and it said in env.ini: these variables cannot be changed anywhere.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, you mean like passing the environment variable into the script. I thought you meant hardcoding it at the time of running install-pkg. That makes sense.

@henderkes henderkes merged commit 953ed83 into main Sep 8, 2025
10 checks passed
@henderkes henderkes deleted the fix-zig branch September 8, 2025 09:00
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