Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 762970 - dev-go/gox Platforms_1_9 patch
Summary: dev-go/gox Platforms_1_9 patch
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-01 20:24 UTC by Michael Lawrence
Modified: 2021-01-04 23:55 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gox platform diff (platform.go.diff.txt,623 bytes, text/plain)
2021-01-01 20:24 UTC, Michael Lawrence
Details
patched platform go. (platform.go,5.29 KB, patch)
2021-01-04 22:54 UTC, Michael Lawrence
Details | Diff
diff version (platform.go.diff.txt,2.36 KB, patch)
2021-01-04 23:54 UTC, Michael Lawrence
Details | Diff
seeing is beliving (luet-build-gox-windows-linux-arm64.PNG,850.96 KB, image/png)
2021-01-04 23:55 UTC, Michael Lawrence
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Lawrence 2021-01-01 20:24:42 UTC
Created attachment 680545 [details]
gox platform diff

author isnt taking pulls 
has dozens of feature pulls. 


minor patch to get gox to build more. 

arm64 windows upstream is staged to roll out but matter of hosting on arm64/windows. 

however arm32 windows builds etc. for rpi3/4 etc should suffice.
Comment 1 Michael Lawrence 2021-01-01 20:32:33 UTC
also if using gentoo on rpi4 , can cross build from windows if being especially  too lazy to reboot desktop to Gentoo can sshfs bins in a pinch and push or not wanting to wait on rpi4's sometimes slow.... compile times. 
 
Games what else can one do while emerge grinds on multiple nodes. 
and Friday MMO nights.... 

hand hack patch i use on either windows/linux when I want gox to build more system targets.
Comment 2 Jonas Stein gentoo-dev 2021-01-02 01:40:14 UTC
Do not reopen, see #736806.
Comment 3 Emily Rowlands 2021-01-02 12:01:09 UTC
Could you provide some (appropriately redacted/summarised) information as to what bug 736806 says, since I am unable to view it?
Comment 4 Michael Lawrence 2021-01-04 22:54:01 UTC
Created attachment 681061 [details, diff]
patched platform go.
Comment 5 Michael Lawrence 2021-01-04 23:54:59 UTC
Created attachment 681070 [details, diff]
diff version

http://gpo.zugaina.org/sys-apps/fchroot 
vmware osboxes gentoo kde for a test vm , arm64 chroot riscv chroot gentoo 
centos vm  (eiser to roll back than my real install on desktop or personal laptop. )

however work laptop is i5 so it will run not as nice as the amd64 rig at home.. and if its a larger golang pkg build its likely to crash less i run the 
after hours 
job and use desktop/personal laptop for more fun things... 

or rebuild gox on windows pc with platform.go 

get-ego-vendor  will drop bsd/linux aix windows x64/x86 arm   win-arm64 still being worked by go team ..  but partially in their .. 
but if i wish i can make least a craptastic gosum test go-lang test ebuild while chewing on lunch ... 
(go-ebuild-gen > a cargo-ebuild clone oh yes plz) however least if handcuffed to windows can least skel out ebuild @ lunch ok proof /poc... 


point being this is a purely optional patch i normally  shim this in on local boxes ie desktop gentoo install  , window install etc.. 

adds the ***possibilities**  of more platforms out . its a bit of a luck based but 
if being super lazy can easily make arm64 items for gentoo rpi4 easily ..  not have damn'd rpi4 locked up for 12 hours while it builds..  as some may/may not have ebuilds yet or deprecated ebuilds. 

*** but why horde a fix.... **** adventure awaits *** more fun to go arround.

{"linux", "cool-new-cpu-kind", true},
  ie if gentoo makes a apple-m1-arm64 build for macbooks etc .. or some other new arch .. / sub-arch 
IE gentoo adds a new cpu arch slap it in if go-lang upstream adds support. 

FOX64-MIPS our fictional arch : {"linux", "FOX64-MIPS", true}, and roll the dice , if it were to build lucky.. 

one cares to test a new compile out option ie a new platform from gox one can slap it in 
long as upstream golang has it it a builder or supported 
will more than likely build 

it can be hit or miss... 

but the ability to perhaps??? build for more targets is better than nothing 

MottainaiCI many of the sub packages Mudler @ gentoo sabayon... etc.org will Franken build for windows and more linux platforms than ever intended. 
on windows / gentoo etc..  using windows/gentoo  

(https://github.com/MottainaiCI )

others will build bsd/arches linux/arches , so interesting results... 

its not 100% but for a lowly user it sure beats nothing... 


point being devs could append more arches in with SED FOO etc. as user opts etc..  to add support to make golang pkgs from AMD64/etc for other useful targets. 




	Platforms_1_12 = append(Platforms_1_11, []Platform{
		{"linux", "ppc64", true},
		{"windows", "arm", true},
		{"windows", "arm64", true},
		{"aix", "ppc64", true},
	}...)
	Platforms_1_13 = append(Platforms_1_11, []Platform{
		{"linux", "cool-new-cpu-kind", true},
	}...)
Comment 6 Michael Lawrence 2021-01-04 23:55:32 UTC
Created attachment 681073 [details]
seeing is beliving