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 0000001431 1.4 KB
_servicedata 0000000231 231 Bytes
apparmor-usr.bin.gitea 0000002578 2.52 KB
get-gitea-source.sh 0000004363 4.26 KB
gitea-1.21.11.tar.gz 0009537537 9.1 MB
gitea-apache-vhost.conf 0000000857 857 Bytes
gitea-apache.conf 0000000708 708 Bytes
gitea-docs-1.21.11.tar.gz 0002328488 2.22 MB
gitea-docs-1.21.11.tar.gz.asc 0000000566 566 Bytes
gitea-node_modules-1.21.11.tar.gz 0133179644 127 MB
gitea-rpmlintrc 0000000159 159 Bytes
gitea-user.conf 0000000105 105 Bytes
gitea.app.ini.patch 0000008349 8.15 KB
gitea.changes 0000543438 531 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 0000010466 10.2 KB
vendor.tar.gz 0021657704 20.7 MB
Latest Revision
Eric Schirra's avatar Eric Schirra (ecsos) accepted request 1168414 from Eric Schirra's avatar Eric Schirra (ecsos) (revision 157)
- Update to version 1.21.11:
  * Fix cache bug (#30510)
  * Update 1.21.11 changelog (#30403)
  * Fix code owners will not be mentioned when a pull request comes from a forked repository (#30476) (#30497)
  * Fix commit status cache which missed target_url (#30426) (#30445)
  * Avoid losing token when updating mirror settings (#30429) (#30466)
  * Change the default maxPerPage for gitbucket (#30392) (#30471)
  * Fix mirror error when mirror repo is empty (#30432) (#30467)
  * fix: Fix to delete cookie when AppSubURL is non-empty (#30375) (#30468)
  * Use db.ListOptions directly instead of Paginator interface to make iteasier to use and fix performance of /pulls and /issues (#29990) (#30447)
  * Upgrade go-sqlite to v1.14.22 (#30462)
  * Fix rename branch 500 when the target branch is deleted but exist in database (#30430) (#30437)
  * Check the token's owner and repository when registering a runner (#30406) (#30412)
  * Avoid user does not exist error when detecting schedule actions when the commit author is an external user  (#30357) (#30408)
  * Update actions variables documents (#30394) (#30404)
  * No global variables (#30402)
  * Add changelog for 1.21.11 (#30314)
  * Performance optimization for git push (#30104) (#30354)
  * Fix create commit status (#30225) (#30340)
  * Fix possible renderer security problem(#30136) (#30315)
  * Close file in the Upload func (#30262) (#30269)
  * Add -u git to docs when using docker exec with root installation (#29314) (#30264)
  * Fixes #27605: inline math blocks can't be preceeded/followed by alphanumerical characters (#30175) (#30250)
  * Add -u git to docs when using docker exec with root installation (#29314) (#30258)
  * Fix missing 0 prefix of GPG key id (#30245) (#30247)
  * Include encoding in signature payload (#30174) (#30181)
  * Move from `max( id )` to `max( index )` for latest commit statuses (#30076) (#30155)
  * Load attachments for code comments (#30124) (#30126)
  * Fix gitea doctor will remove repo-avatar files when execute command storage-archives (#30094) (#30120)
  * Fix possible data race on tests (#30093) (#30108)
  * Fix duplicate migrated milestones (#30102) (#30105)
  * Fix panic for fixBrokenRepoUnits16961 (#30068) (#30100)
  * Update katex to 0.16.10 (#30089)
  * Fix incorrect SVGs (#30087)
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