And here is another version: https://github.com/edacval/aur-gogs
Adjustments:
built without symbols and debug info
binary is now under /usr/bin
static files under /usr/share/gogs
GOGS_HOME at /srv/gogs
config in default gogs location: $GOGS_HOME/custom/conf/app.ini
working dir and repos : GOGS_HOME
No patches anymore. app.ini now contains just the overrides from default builtin values.
Search Criteria
Package Details: gogs 1:0.13.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/gogs.git (read-only, click to copy) |
---|---|
Package Base: | gogs |
Description: | Self Hosted Git Service written in Go |
Upstream URL: | https://gogs.io |
Keywords: | git go gogs |
Licenses: | MIT |
Submitter: | kureikain |
Maintainer: | krumelmonster |
Last Packager: | dcelasun |
Votes: | 50 |
Popularity: | 0.000000 |
First Submitted: | 2014-05-12 08:56 (UTC) |
Last Updated: | 2023-08-10 14:22 (UTC) |
Dependencies (9)
- git (git-gitAUR, git-glAUR)
- pam (pam-selinuxAUR)
- go (go-gitAUR, gcc-go-gitAUR, go-sylixosAUR, gcc-go-snapshotAUR, gcc-go) (make)
- mariadb (mysql55AUR, mysql56AUR, mytop-gitAUR, mysql81AUR, mysql57AUR, mysql80AUR, mysqlAUR, mariadb-lts, percona-server) (optional) – MariaDB support
- memcached (memcached-gitAUR) (optional) – MemCached support
- openssh (openssh-gitAUR, openssh-dotconfigAUR, openssh-dotconfig-binAUR, openssh-selinuxAUR, openssh-hpn-shimAUR, openssh-gssapiAUR) (optional) – GIT over SSH support
- postgresql (postgresql-12AUR, postgresql15-docsAUR, postgresql15AUR, postgresql-gitAUR, postgresql17-docsAUR, postgresql17AUR, postgresql13AUR) (optional) – PostgreSQL support
- redis (redis-testingAUR, redis-gitAUR, keydbAUR, valkey) (optional) – Redis support
- sqlite (sqlite-fossilAUR) (optional) – SQLite support
Required by (0)
Sources (3)
Latest Comments
« First ‹ Previous 1 .. 4 5 6 7 8 9 10 11 12 13 14 .. 18 Next › Last »
edacval commented on 2017-03-19 20:32 (UTC) (edited on 2017-03-19 20:58 (UTC) by edacval)
Martchus commented on 2017-03-19 18:09 (UTC)
Here is an adjusted version of the package: https://github.com/Martchus/PKGBUILDs/tree/master/gogs/default
It provides the latest version (0.10.18). I also did some adjustments to fix things I didn't like about the way the current package works. Most importantly:
* binary is now under /usr/bin
* and only static files under /usr/share/gogs
* config is now under /etc/gogs instead of /srv/...
* logs are now under /var/log/gogs
* working dir and repos are now under /var/lib/gogs
* patches are formatted appropriately
* dependencies in base or base-devel are removed
However, I didn't use Gogs before and I'm still testing. But it seems to run fine so far with that configuration.
nougad commented on 2017-03-18 21:06 (UTC)
Diff to get latest gogs release:
diff --git a/PKGBUILD b/PKGBUILD
index 307970d..1119444 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=gogs
_pkgname=${pkgname}
-pkgver=0.9.113
+pkgver=0.10.18
pkgrel=1
epoch=1
pkgdesc="Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language."
@@ -31,8 +31,8 @@ source=('gogs.service.patch'
"$_pkgname-$pkgver::https://${_gourl}/archive/v${pkgver}.tar.gz")
sha512sums=(834e95fe9bcfa291a573ad1fa43f41bbed844658a918ff4fcf53ab8a44a296206ee4003eab1d9a2785c9126be077022f4907846d2eb6c5d64050b5e81ce47f44
- dd88280d0ae028085d5834e7579477257331287f6892ec9489a6ba07f1c1f9f993a2b23513ea128ddf523b69ead2be9c309833ad22901a6a6ec6180720ee81bd
- 45527934b2a7b12730cbcbe4f6c92e49d3a59369cb6380ead25809340d02ac9f38f4370c0a9d1e3a84dd59dc0ab77c6b6e2c2217d95ffcb69f9a035ccf042549)
+ 739a8921aa117e8e9fda07a3087953fe96e8cf1cb174af8bbcb9acc02226b04bbd732692dd711ca36dd188a2862e0fcdc2da5d794677baf802cf174b02899238
+ aedf45900c85d260466e3db906e0320454c0a987198dc3101400d0d73d11b074d19594d655af8ac848ac14d27fa2a9adbfe09b6f055b28d72bb6d3e2f88b4cec)
_goroot="/usr/lib/go"
@@ -63,13 +63,6 @@ prepare() {
mv "$srcdir/$_pkgname-${pkgver}" $GOPATH/src/${_gourl}
- # Glide
- msg2 "Download dependencies via Glide"
- cd $GOPATH/src/${_gourl}
- glide cc
- glide update
- glide install
-
# Execute patch
msg2 "Execute patches"
patch -Np1 -i "$srcdir/app.ini.patch" "$GOPATH/src/${_gourl}/conf/app.ini"
diff --git a/app.ini.patch b/app.ini.patch
index b0c100f..9738e03 100644
--- a/app.ini.patch
+++ b/app.ini.patch
@@ -1,24 +1,24 @@
-7c7
+8c8
< RUN_USER = git
---
> RUN_USER = gogs
-12c12
-< ROOT =
----
-> ROOT = /srv/gogs/repo
-135c135
+61c61
< STATIC_ROOT_PATH =
---
> STATIC_ROOT_PATH = /usr/share/themes/gogs/default
-137c137
+63c63
< APP_DATA_PATH = data
---
> APP_DATA_PATH = /srv/gogs/data
-160c160
+71c71
+< ROOT =
+---
+> ROOT = /srv/gogs/repo
+168c168
< PATH = data/gogs.db
---
> PATH = /srv/gogs/sqlite/gogs.db
-292c292
+310c310
< ROOT_PATH =
---
> ROOT_PATH = /var/log/gogs
runical commented on 2017-03-14 10:08 (UTC)
We have been out of date for one and a half month now and on version 0.10.8. Wicast, can you please give a sign of life and tell us if you need help? There are probably people here who would be willing to co-maintain the package with you if that would help.
duckbrain commented on 2017-02-25 19:24 (UTC)
This patch seems to have worked for me to update it to the latest version. I compiled and tested on x86_64 and armv7.
https://gist.github.com/duckbrain/8e6693e67899d46c6ddc600adb5eac52
As mentioned by @maddie, all I did was update to the newest release, remove the 3 glide lines, and remove the glide makedepends.
maddie commented on 2017-02-15 03:17 (UTC) (edited on 2017-02-15 03:19 (UTC) by maddie)
Is this package still being maintained?
0.9.141 is out, now glide is removed in favor of vendor. The glide section in PKGBUILD should be removed in order to have gogs built successfully.
Tintifax commented on 2016-12-20 11:56 (UTC)
Looks still broken. Full output here: http://pastebin.com/jfVdChjj
nougad commented on 2016-12-01 23:59 (UTC)
I get the same error.
Scrolling up I see the msg:
# github.com/gogits/gogs/vendor/golang.org/x/net/html/charset
vendor/golang.org/x/net/html/charset/charset.go:42: undefined: encoding.Encoder
vendor/golang.org/x/net/html/charset/charset.go:45: undefined: encoding.HTMLEscapeUnsupported
which is basically fixed by running glide cc before (see https://github.com/gogits/gogs/issues/3707)
When I run glide cc before I run into the following problem (see full error below):
It looks like it's related to https://github.com/gogits/gogs/issues/3683
The v0.9.97 was released this on Sep 1 - The bug fixed Sep 23. Looks like only a new release would fix the problem.
I applied the patch locally ( https://github.com/gogits/gogs/commit/2bec8a4f1ef6b48220a0010c1482e561abd55810 ) and was able to build the package.
$ cat models.go.patch
InsertOne(interface{}) (int64, error)
Iterate(interface{}, xorm.IterFunc) error
Sql(string, ...interface{}) *xorm.Session
- Where(string, ...interface{}) *xorm.Session
+ Where(interface{}, ...interface{}) *xorm.Session
}
modifications to PKGBUILD:
source=('gogs.service.patch'
'app.ini.patch'
+ 'models.go.patch'
"$_pkgname-$pkgver::https://${_gourl}/archive/v${pkgver}.tar.gz")
sha512sums=(834e95fe9bcfa291a573ad1fa43f41bbed844658a918ff4fcf53ab8a44a296206ee4003eab1d9a2785c9126be077022f4907846d2eb6c5d64050b5e81ce47f44
800bba8c0d01bacb43846572f5ade2d1a04b0093f70c991b3cc80bd39b14eb02bb3534890666ff1bbbd9a23e97453f2f136648f7f23d5f829239ab7b4258f6ca
+ 35eb343ce1158fbb45d0007d107e5dc88d58b83e4cf4b72273969055620cce19f6374bfef4212b066dd45d75083ef0f199effbcc832c0ee4ad27501ea8fbe226
4ea51d7dc3f70a352765c9e736ebbf290b652253309f44ab08c6c95a96b033356db954d0da22cea754c346537af2c24f3239fcbb7c1babf9161f710d75b4e9e5)
patch -Np1 -i "$srcdir/gogs.service.patch" "$GOPATH/src/${_gourl}/scripts/systemd/gogs.service"
+ patch -Np1 -i "$srcdir/models.go.patch" "$GOPATH/src/${_gourl}/models/models.go"
}
Full excerpt:
# github.com/gogits/gogs/models
models/access.go:84: cannot use x (type *xorm.Engine) as type Engine in argument to accessLevel:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/access.go:94: cannot use x (type *xorm.Engine) as type Engine in argument to hasAccess:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/access.go:245: cannot use x (type *xorm.Engine) as type Engine in argument to r.recalculateAccesses:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/action.go:194: cannot use x (type *xorm.Engine) as type Engine in argument to newRepoAction:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/action.go:217: cannot use x (type *xorm.Engine) as type Engine in argument to renameRepoAction:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/action.go:568: cannot use x (type *xorm.Engine) as type Engine in argument to transferRepoAction:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/action.go:586: cannot use x (type *xorm.Engine) as type Engine in argument to mergePullRequestAction:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/issue.go:154: cannot use x (type *xorm.Engine) as type Engine in argument to issue.loadAttributes:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/issue.go:231: cannot use x (type *xorm.Engine) as type Engine in argument to i.hasLabel:
*xorm.Engine does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/issue.go:312: cannot use e (type *xorm.Session) as type Engine in argument to issue.getLabels:
*xorm.Session does not implement Engine (wrong type for Where method)
have Where(interface {}, ...interface {}) *xorm.Session
want Where(string, ...interface {}) *xorm.Session
models/issue.go:312: too many errors
mkdir -p $WORK/github.com/gogits/gogs/vendor/github.com/Unknwon/paginater/_obj/
cd /srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/Unknwon/paginater
/srv/aur/gogs/src/build/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/gogits/gogs/vendor/github.com/Unknwon/paginater.a -trimpath $WORK -p github.com/gogits/gogs/vendor/github.com/Unknwon/paginater -complete -buildid 051849d0b68d9a837faccd348575b93c8a4ad1a0 -D _/srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/Unknwon/paginater -I $WORK -pack ./paginater.go
mkdir -p $WORK/github.com/gogits/gogs/vendor/gopkg.in/editorconfig/editorconfig-core-go.v1/_obj/
mkdir -p $WORK/github.com/gogits/gogs/vendor/gopkg.in/editorconfig/
cd /srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/gopkg.in/editorconfig/editorconfig-core-go.v1
/srv/aur/gogs/src/build/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/gogits/gogs/vendor/gopkg.in/editorconfig/editorconfig-core-go.v1.a -trimpath $WORK -p github.com/gogits/gogs/vendor/gopkg.in/editorconfig/editorconfig-core-go.v1 -complete -buildid 8d1bc43b4d401f0d350447b5c3aae7c460a80050 -importmap gopkg.in/ini.v1=github.com/gogits/gogs/vendor/gopkg.in/ini.v1 -D _/srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/gopkg.in/editorconfig/editorconfig-core-go.v1 -I $WORK -I /srv/aur/gogs/src/build/pkg/linux_amd64 -pack ./editorconfig.go
mkdir -p $WORK/github.com/gogits/gogs/vendor/github.com/gogits/cron/_obj/
cd /srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/gogits/cron
/srv/aur/gogs/src/build/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/gogits/gogs/vendor/github.com/gogits/cron.a -trimpath $WORK -p github.com/gogits/gogs/vendor/github.com/gogits/cron -complete -buildid 09995a2f36c16b19b8adf89712bed5fc7a4caaa9 -D _/srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/gogits/cron -I $WORK -pack ./constantdelay.go ./cron.go ./doc.go ./parser.go ./spec.go
mkdir -p $WORK/github.com/gogits/gogs/vendor/github.com/urfave/cli/_obj/
mkdir -p $WORK/github.com/gogits/gogs/vendor/github.com/urfave/
cd /srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/urfave/cli
/srv/aur/gogs/src/build/go/pkg/tool/linux_amd64/compile -o $WORK/github.com/gogits/gogs/vendor/github.com/urfave/cli.a -trimpath $WORK -p github.com/gogits/gogs/vendor/github.com/urfave/cli -complete -buildid 4518143d9ac4151794dcdd0e4aab9cd4408a7740 -D _/srv/aur/gogs/src/build/src/github.com/gogits/gogs/vendor/github.com/urfave/cli -I $WORK -pack ./app.go ./category.go ./cli.go ./command.go ./context.go ./errors.go ./flag.go ./flag_generated.go ./funcs.go ./help.go
==> ERROR: A failure occurred in build().
Aborting...
cinaed666 commented on 2016-11-26 15:41 (UTC)
nicoulaj: I have the same issue at the moment. Exact same error.
Pinned Comments
Martchus commented on 2020-08-24 14:06 (UTC)
The release 0.12.0 will change various configuration variables, e.g.
ROOT_URL
is changed toEXTERNAL_URL
. Please read the official changelog before reporting any issues: https://github.com/gogs/gogs/releases/tag/v0.12.0Further notes from myself:
ROOT_URL
did not work at all for me anymore. So it is apparently not just deprecated (as the changelog states).STATIC_ROOT_PATH
. It looks like this directory is simply not required at all anymore because files are built into the executable. Overrides should be possible by placing files into the working directory (should be/var/lib/gogs/public
with the default config provided by this package; haven't tested yet).Martchus commented on 2017-06-12 22:24 (UTC) (edited on 2020-08-24 14:22 (UTC) by Martchus)
Important note: You likely want to use the official Gitea package instead.
Gitea - a fork of Gogs - has been added to the official repositories: https://www.archlinux.org/packages/community/x86_64/gitea
That means for Arch Linux the decision has been made to support Gitea rather than Gogs. Hence I suggest everyone to use Gitea instead of Gogs for new installations. I've been testing Gitea for a while myself now and it works well. So I'm also going to switch fully to Gitea myself.
Nevertheless I'll continue maintaining this package for a while now to support old installations. However, I'm not doing any fine-tuning for this package anymore.
Further notes
gitea
and the official package the usergit
. So that has to be changed in the config and for the ownership of/var/lib/gitea
.~~~ The official package now uses the usergitea
similar to my initial packaging was done.