Making Hugo available on as many architectures as possible
Build problems on armel and arm64 architectures
- https://db.debian.org/machines.cgi
abel.debian.org, asachi.debian.org, porterbox
彎路:
正確 solution: using schroot in debian.org porterboxes, https://dsa.debian.org/doc/schroot/
armel:
=== RUN TestTplGoFuzzReports
--- FAIL: TestTplGoFuzzReports (0.05s)
template_test.go:141: #2 Test 1 should have errored
FAIL
FAIL github.com/spf13/hugo/tpl 0.310s
arm64:
# TODO: Add "hugo-docs" package in the future
obj-aarch64-linux-gnu/bin/hugo -s docs -d public/html --uglyURLs
2016/01/12 00:33:24 function not implemented
debian/rules:9: recipe for target 'override_dh_auto_build' failed
- https://github.com/spf13/hugo/issues/1772
- https://github.com/go-fsnotify/fsnotify/issues/112
- syscall: audit missing syscalls on linux/arm64 https://github.com/golang/go/issues/10235
Debugging
Use gccgo to make Hugo available on even more architectures
- go-md2man: Enable the build for gccgo platforms: https://bugs.debian.org/785649
Using go-md2man as an example:
Pull request to dh-make-golang:
- https://github.com/Debian/dh-make-golang/pull/36
- Allow the use of gccgo on architectures without golang-go #36
Appendix: 彎路, trying to test on porterbox without using schroot
Lots of problems
https://github.com/gitlabhq/gitlabhq/issues/4272#issuecomment-22074932
Solution: apt-get install golang-src
Go package installation failing for unknown certificate authority http://stackoverflow.com/questions/26844958/go-package-installation-failing-for-unknown-certificate-authority
How to entirely disable SSL certificate checks in Mercurial / TortoiseHg? http://stackoverflow.com/questions/5366869/how-to-entirely-disable-ssl-certificate-checks-in-mercurial-tortoisehg
https://www.mercurial-scm.org/wiki/CACertificates#Debian.2FUbuntu.2FGentoo.2FArch_Linux