Skip to content
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

www-apps/gitea #6

Open
neoteknic opened this issue Nov 13, 2018 · 6 comments
Open

www-apps/gitea #6

neoteknic opened this issue Nov 13, 2018 · 6 comments

Comments

@neoteknic
Copy link

Error on emerge :
code.gitea.io/gitea/vendor/gopkg.in/testfixtures.v2
make: *** [Makefile:253: gitea] Error 1
make: Leaving directory '/var/tmp/portage/www-apps/gitea-1.6.0_rc2/work/gitea-1.6.0_rc2/src/code.gitea.io/gitea'

  • ERROR: www-apps/gitea-1.6.0_rc2::lmiphay failed (compile phase):
  • emake failed

GCC : 8.2, kernel ovh : 4.11.0-xxxx-std-ipv6-64

@lmiphay
Copy link
Owner

lmiphay commented Nov 13, 2018

Hi @neoteknic

That compiles fine for me on two different servers with:

$ go version
go version go1.10.3 linux/amd64
$

Anything else in your build log?

...
go build -i -v  -tags 'bindata pam sqlite' -ldflags ' -w -X "main.Version=1.6.0_rc2"' -o gitea
... 
...

code.gitea.io/gitea/vendor/golang.org/x/text/encoding/traditionalchinese
code.gitea.io/gitea/vendor/golang.org/x/text/encoding/unicode
code.gitea.io/gitea/vendor/gopkg.in/testfixtures.v2
code.gitea.io/gitea/modules/markup/external
...

@neoteknic
Copy link
Author

neoteknic commented Nov 14, 2018

Hi @lmiphay

go version go1.11.2 linux/amd64

emerge -pv go
[ebuild R ] dev-lang/go-1.11.2:0/1.11.2::gentoo USE="-gccgo" 0 KiB

my build log after emerge -u gitea (I have gitea 1.5.2 gentoo no overlay) :
....
code.gitea.io/gitea/vendor/golang.org/x/text/encoding/traditionalchinese
code.gitea.io/gitea/vendor/golang.org/x/text/encoding/unicode
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/scorch
code.gitea.io/gitea/vendor/github.com/klauspost/cpuid
code.gitea.io/gitea/vendor/gopkg.in/testfixtures.v2
code.gitea.io/gitea/vendor/github.com/klauspost/compress/flate
code.gitea.io/gitea/vendor/github.com/klauspost/crc32
code.gitea.io/gitea/vendor/github.com/facebookgo/clock
code.gitea.io/gitea/vendor/github.com/facebookgo/stats
code.gitea.io/gitea/vendor/github.com/urfave/cli
code.gitea.io/gitea/vendor/github.com/shurcooL/sanitized_anchor_name
code.gitea.io/gitea/vendor/github.com/chaseadamsio/goorgeous
code.gitea.io/gitea/vendor/golang.org/x/text/encoding/htmlindex
code.gitea.io/gitea/vendor/github.com/klauspost/compress/gzip
code.gitea.io/gitea/vendor/golang.org/x/net/html/charset
make: *** [Makefile:253: gitea] Error 1
make: Leaving directory '/var/tmp/portage/www-apps/gitea-1.6.0_rc2/work/gitea-1.6.0_rc2/src/code.gitea.io/gitea'

  • ERROR: www-apps/gitea-1.6.0_rc2::lmiphay failed (compile phase):
  • emake failed
  • If you need support, post the output of emerge --info '=www-apps/gitea-1.6.0_rc2::lmiphay',
  • the complete build log and the output of emerge -pqv '=www-apps/gitea-1.6.0_rc2::lmiphay'.
  • The complete build log is located at '/var/tmp/portage/www-apps/gitea-1.6.0_rc2/temp/build.log'.
  • The ebuild environment file is located at '/var/tmp/portage/www-apps/gitea-1.6.0_rc2/temp/environment'.
  • Working directory: '/var/tmp/portage/www-apps/gitea-1.6.0_rc2/work/gitea-1.6.0_rc2'
  • S: '/var/tmp/portage/www-apps/gitea-1.6.0_rc2/work/gitea-1.6.0_rc2'

@lmiphay
Copy link
Owner

lmiphay commented Nov 14, 2018

Hi @neoteknic

Yes, confirmed when I unmask go 1.11.1, the result is an unstable build.

go version go1.11.1 linux/amd64 

gitea only specify a lower go version here: https://docs.gitea.io/en-us/install-from-source/

Part of it might be sandbox related writes to e.g.:

code.gitea.io/gitea/vendor/github.com/chaseadamsio/goorgeous
go build runtime/cgo: open /usr/lib/go/pkg/linux_amd64/runtime/cgo.a: permission denied
code.gitea.io/gitea/vendor/github.com/blevesearch/bleve/index/scorch

Patching out the -i passed to go build does give me an successful build - but I will need to investigate how safe that isl:

--- gitea-1.6.0_rc2.ebuild      2018-11-14 11:00:49.517105142 +0000
+++ gitea-1.6.0_rc2-r1.ebuild   2018-11-14 11:01:16.609201376 +0000
@@ -28,7 +28,9 @@
 src_prepare() {
        default
        sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
-               -e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
+               -e "s/-ldflags '-s/-ldflags '/" \
+               -e "s/GOFLAGS := -i -v/GOFLAGS := -v/" \
+               src/${EGO_PN}/Makefile || die
 }

Ref: golang/go#24674

@neoteknic
Copy link
Author

Can you update the ebuild on the overlay ? I will test it. Of course a RC is not really "safe".

@lmiphay
Copy link
Owner

lmiphay commented Nov 22, 2018

Ok gitea-1.6.0_rc2-r1.ebuild is up there now.

It starts and appears to run fine for me. Let me know if you see any issues.

@lmiphay
Copy link
Owner

lmiphay commented Nov 24, 2018

And the actual 1.6.0 release is there now.

And appears to be running fine for me without the -i flag - here is the migration from an 1.5.3 instance:

2018/11/24 15:40:25 [I] Migration: add issue_dependencies
2018/11/24 15:40:25 [I] Migration: protect each scratch token
2018/11/24 15:40:25 [W] Unable to drop columns in SQLite
2018/11/24 15:40:25 [I] Migration: add review
2018/11/24 15:40:25 [I] Migration: add must_change_password column for users table

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants