Skip to content

bump ikemen go#15306

Draft
Tovarichtch wants to merge 1 commit intobatocera-linux:masterfrom
Tovarichtch:bumpikemen
Draft

bump ikemen go#15306
Tovarichtch wants to merge 1 commit intobatocera-linux:masterfrom
Tovarichtch:bumpikemen

Conversation

@Tovarichtch
Copy link
Collaborator

That one was complex, with errors within upstream repo. This is the best I could do. Feel free to do better and close this PR if needed.

That one was complex, with errors within upstream repo. This is the best I could do. Feel free to do better and close this PR if needed.
Copy link
Collaborator

@dmanlfc dmanlfc left a comment

Choose a reason for hiding this comment

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

looks ok

endef

$(eval $(golang-package))
$(eval $(generic-package))
Copy link
Collaborator

Choose a reason for hiding this comment

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

why doesn't the golang package option work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Upstream go.mod has a broken pseudo-version (deleted commit). With golang-package, Buildroot runs go mod vendor automatically during the download phase, before any patch can be applied and fails. There's no hook to fix go.mod before that. generic-package lets us patch go.mod first, then vendor manually in configure. In short, golang-package runs the go mod vendor too early

GOFLAGS="-mod=vendor -modcacherw" \
$(GO_BIN) build -trimpath -v \
-ldflags "-s -w" \
-o $(@D)/bin/Ikemen_GO_Linux \
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should also cater for Ikemen_GO_LinuxArm too

Copy link
Collaborator Author

@Tovarichtch Tovarichtch Feb 7, 2026

Choose a reason for hiding this comment

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

The -o flag controls the output filename (not tied to the target architecture). Cross-compilation is handled by HOST_GO_TARGET_ENV which sets GOARCH. My understanding is a bit basic, but the binary is then renamed to ikemen in INSTALL_TARGET_CMDS regardless of platform. Name doesn't matter here, I could change it to anything else... iirc

I just bypass the build.sh with -o. Issue is upstream

Copy link
Collaborator

Choose a reason for hiding this comment

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

doesn't build here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

i see the branch is development since this is work in progress it may be better to wait...

@dmanlfc dmanlfc marked this pull request as draft February 8, 2026 09:56
@Tovarichtch Tovarichtch added the 44 label Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants