A painless self-hosted Git service.

Edit Package gitea
https://gitea.io/

Gitea is a community managed fork of Gogs, lightweight code hosting solution written in Go and published under the MIT license.

Refresh
Refresh
Source Files
Filename Size Changed
README.SUSE 0000001388 1.36 KB
_service 0000001437 1.4 KB
_servicedata 0000000231 231 Bytes
apparmor-usr.bin.gitea 0000002578 2.52 KB
get-gitea-source.sh 0000003506 3.42 KB
gitea-1.20.5.tar.gz 0009380666 8.95 MB
gitea-apache-vhost.conf 0000000857 857 Bytes
gitea-apache.conf 0000000708 708 Bytes
gitea-docs-1.20.5.tar.gz 0002230198 2.13 MB
gitea-docs-1.20.5.tar.gz.asc 0000000833 833 Bytes
gitea-node_modules-1.20.5.tar.gz 0118692010 113 MB
gitea-rpmlintrc 0000000159 159 Bytes
gitea-user.conf 0000000105 105 Bytes
gitea.app.ini.patch 0000008300 8.11 KB
gitea.changes 0000459839 449 KB
gitea.firewall 0000000123 123 Bytes
gitea.firewalld 0000000185 185 Bytes
gitea.keyring 0000005397 5.27 KB
gitea.profile.csh 0000000030 30 Bytes
gitea.profile.sh 0000000031 31 Bytes
gitea.service 0000001949 1.9 KB
gitea.spec 0000010119 9.88 KB
vendor.tar.gz 0020904313 19.9 MB
Revision 142 (latest revision is 157)
Eric Schirra's avatar Eric Schirra (ecsos) accepted request 1115050 from Eric Schirra's avatar Eric Schirra (ecsos) (revision 142)
- Update to version 1.20.5:
  * Add 1.20.5 changelog (#27404)
  * Fix bug of review request number (#27406)
  * Fix git 2.11 error when checking IsEmpty (#27393) (#27396)
  * Allow get release download files and lfs files with oauth2 token format (#26430) (#27378)
  * Add logs for data broken of comment review (#27326) (#27344)
  * fix orphan check for deleted branch (#27310) (#27320)
  * Fix PushEvent NullPointerException jenkinsci/github-plugin (#27203) (#27249)
  * Fix z-index on markdown completion (#27237) (#27242)
  * Fix z-index on markdown completion (#27237) (#27238)
  * Update database-preparation and add note re: MariaDB (#27232) (#27235)
  * Quote table `release` in sql queries (#27205) (#27219)
  * Fix release URL in webhooks (#27182) (#27184)
  * Fix organization field being null in POST /orgs/{orgid}/teams (#27150) (#27167)
  * Fix organization field being null in POST /orgs/{orgid}/teams (#27150) (#27162)
  * Fix successful return value for `SyncAndGetUserSpecificDiff` (#27152) (#27156)
  * Improve actions docs related to `pull_request` event (#27126) (#27145)
  * fix pagination for followers and following (#27127) (#27138)
  * services/wiki: Close() after error handling (#27129) (#27137)
  * Fix issue templates when blank isses are disabled (#27061) (#27082)
  * Load reviewer before sending notification (#27063) (#27064)
  * Fix context cache bug & enable context cache for dashabord commits' authors(#26991) (#27017)
  * Use secure cookie for HTTPS sites (#26999) (#27013)
  * Correct the database.LOG_SQL default value in config cheat sheet (#26997) (#27002)
  * Fix INI parsing for value with trailing slash (#26995) (#27001)
Comments 6

Sauer's avatar

I spotted two problems with this package:

  • Templates do not work. 'journalctl -eu gitea' says 'permission denied' Solution: The apparmor profile needs to be updated to allow read access to /etc/gitea/templates/**.

  • The commit search functionality in /[owner]/[repo]/[commits]/branch/[branch] does not work

The user sees a 500 Server error

'journalctl -eu gitea' reports "Couldn't JIT the PCRE2 pattern x got -48"

The underlying problem is this:

  - gitea uses the command 'git log --grep=keyword'

  - git uses the PCRE2 library to grep

  - PCRE2 needs memory with write and execute permission

  - systemd denies that because of the setting MemoryDenyWriteExecute=yes in gitea.service

Solution1:

Now i know that it is not great to allow that for such a wide open application like gitea,
but i don't know any better way right now than to set MemoryDenyWriteExecute=no in gitea.service.

    If anyone has a better way to do this (allow w+x memory for git only) please reply.

Solution2:

Git has a compile time flag to disable LibPCRE2. One could use a differently compiled git and it should work, albeit slow(er).

Eric Schirra's avatar

For apparmor please contact michael@stroeder.com


Eric Schirra's avatar

Yes. Appamor or systemd hardening is broken since some weeks. Can you test point C: in README.SUSE? Are your errors gone now?


Dirk Mueller's avatar

thanks for the reports, I will take a look


Georg Pfuetzenreuter's avatar

Hi,

I am trying to build this package with the "bindata" tag which is recommended by Gitea https://docs.gitea.com/next/installation/install-from-source#build and will allow assets to be bundled instead of being fetched remotely. However I think to be facing an issue with the vendored modules:

[  134s] # code.gitea.io/gitea/modules/migration
[  134s] modules/migration/schemas_static.go:14:9: undefined: Assets

Do you happen to know about this?

There is an issue on GitHub but it seems we already use the suggested build process according to the linked sample spec file: https://github.com/go-gitea/gitea/issues/7997


Eric Schirra's avatar

The ticket was from me

Upstream doesn't really understand some things about epm and buiilserver. At least that's my impression. Help does not come either. Besides, they are changing things. Sometimes all dependencies are in there. Sometimes a few are missing.

And why do you want to change my build process?

It works without errors.

Among other things, because I do it the way I do it.

openSUSE Build Service is sponsored by