-
Notifications
You must be signed in to change notification settings - Fork 112
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
Support FreeBSD build phase #1439
Merged
jabrown85
merged 1 commit into
buildpacks:main
from
gogolok:support_freebsd_build_phase
Dec 10, 2024
Merged
Support FreeBSD build phase #1439
jabrown85
merged 1 commit into
buildpacks:main
from
gogolok:support_freebsd_build_phase
Dec 10, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Robert Gogolok <robert.gogolok@stackit.cloud>
And this is the run on FreeBSD: $ uname -a
FreeBSD freebsd-desktop 14.2-RELEASE FreeBSD 14.2-RELEASE releng/14.2-n269506-c8918d6c7412 GENERIC amd64
$ gmake build
> Building lifecycle/lifecycle for freebsd/amd64...
mkdir -p /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle
GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w -X 'github.com/buildpacks/lifecycle/cmd.SCMRepository=github.com/buildpacks/lifecycle' -X 'github.com/buildpacks/lifecycle/cmd.SCMCommit=9409eec9' -X 'github.com/buildpacks/lifecycle/cmd.Version=0.20.4-13+9409eec9'" -o /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle/lifecycle -a ./cmd/lifecycle
> Creating phase symlinks for freebsd/amd64...
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle/detector
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle/analyzer
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle/restorer
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle/builder
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle/exporter
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle/rebaser
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle/creator
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle/extender
> Building lifecycle/launcher for freebsd/amd64...
mkdir -p /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle
GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w -X 'github.com/buildpacks/lifecycle/cmd.SCMRepository=github.com/buildpacks/lifecycle' -X 'github.com/buildpacks/lifecycle/cmd.SCMCommit=9409eec9' -X 'github.com/buildpacks/lifecycle/cmd.Version=0.20.4-13+9409eec9'" -o /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle/launcher -a ./cmd/launcher
test $(du -m /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-amd64/lifecycle/launcher|cut -f 1) -le 3
> Building lifecycle/lifecycle for freebsd/arm64...
mkdir -p /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle
GOARCH=arm64 CGO_ENABLED=0 go build -ldflags "-s -w -X 'github.com/buildpacks/lifecycle/cmd.SCMRepository=github.com/buildpacks/lifecycle' -X 'github.com/buildpacks/lifecycle/cmd.SCMCommit=9409eec9' -X 'github.com/buildpacks/lifecycle/cmd.Version=0.20.4-13+9409eec9'" -o /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle/lifecycle -a ./cmd/lifecycle
> Creating phase symlinks for freebsd/arm64...
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle/detector
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle/analyzer
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle/restorer
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle/builder
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle/exporter
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle/rebaser
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle/creator
ln -sf lifecycle /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle/extender
> Building lifecycle/launcher for freebsd/arm64...
mkdir -p /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle
GOARCH=arm64 CGO_ENABLED=0 go build -ldflags "-s -w -X 'github.com/buildpacks/lifecycle/cmd.SCMRepository=github.com/buildpacks/lifecycle' -X 'github.com/buildpacks/lifecycle/cmd.SCMCommit=9409eec9' -X 'github.com/buildpacks/lifecycle/cmd.Version=0.20.4-13+9409eec9'" -o /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle/launcher -a ./cmd/launcher
test $(du -m /home/gogo/workspace/github.com/buildpacks/lifecycle/out/freebsd-arm64/lifecycle/launcher|cut -f 1) -le 3
> Building lifecycle/lifecycle for linux/amd64...
... and so on ... |
jabrown85
approved these changes
Dec 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Make it possible to compile
lifecycle
andlauncher
for FreeBSD.Related
Context
It 'just compiles' for FreeBSD. That's it :-) Other functionality can be added afterwards (priv/user.go functionality, maybe tests, correct launch/bash.go to use /usr/local/bin/bash and others).
If you would want to test the build phase under Linux or macOS for example:
make build