Support FreeBSD build phase#1439
Merged
jabrown85 merged 1 commit intobuildpacks:mainfrom Dec 10, 2024
Merged
Conversation
Signed-off-by: Robert Gogolok <robert.gogolok@stackit.cloud>
Contributor
Author
|
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
This file contains hidden or 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
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
lifecycleandlauncherfor 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