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 0000001425 1.39 KB
_servicedata 0000000231 231 Bytes
apparmor-usr.bin.gitea 0000002578 2.52 KB
get-gitea-source.sh 0000003506 3.42 KB
gitea-1.21.4.tar.gz 0009534078 9.09 MB
gitea-apache-vhost.conf 0000000857 857 Bytes
gitea-apache.conf 0000000708 708 Bytes
gitea-docs-1.21.4.tar.gz 0002291616 2.19 MB
gitea-docs-1.21.4.tar.gz.asc 0000000566 566 Bytes
gitea-node_modules-1.21.4.tar.gz 0134305783 128 MB
gitea-rpmlintrc 0000000159 159 Bytes
gitea-user.conf 0000000105 105 Bytes
gitea.app.ini.patch 0000008349 8.15 KB
gitea.changes 0000527969 516 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 0000010461 10.2 KB
vendor.tar.gz 0021548608 20.6 MB
Revision 149 (latest revision is 157)
Eric Schirra's avatar Eric Schirra (ecsos) accepted request 1139427 from Eric Schirra's avatar Eric Schirra (ecsos) (revision 149)
- Update to version 1.21.4:
  * Add changelog for 1.21.4 (#28812)
  * Render code block in activity tab (#28816) (#28818)
  * Use refname:strip-2 instead of refname:short when syncing tags (#28797) (#28811)
  * Rework markup link rendering (#26745) (#28803)
  * Forbid removing the last admin user (#28337) (#28793)
  * Fix links in issue card (#28806) (#28807)
  * Fix `GetCommitStatuses` (#28787) (#28804)
  * Use correct `has error` check for internal responses (#28796) (#28798)
  * Fix nil pointer panic when exec some gitea cli command (#28791) (#28795)
  * Fix when private user following user, private user will not be counted in his own view (#28037) (#28792)
  * Update github.com/cloudflare/circl (#28789) (#28790)
  * Speed up loading the dashboard on mysql/mariadb (#28546) (#28784)
  * Modernize merge button (#28140) (#28786)
  * Fix schedule tasks bugs (#28691) (#28780)
  * Require token for GET subscription endpoint (#28765) (#28778)
  * Assign pull request to project during creation (#28227) (#28775)
  * Fix issue dependencies (#27736) (#28776)
  * Fix button size in "attached header right" (#28770) (#28774)
  * Fix `convert.ToTeams` on empty input (#28426) (#28767)
  * Require token for GET subscription endpoint (#28765) (#28768)
  * Show description as tooltip instead of title for labels (#28754) (#28766)
  * Hide code related setting options in repository when code unit is disabled (#28631) (#28749)
  * Add -F to commit search to treat keywords as strings (#28744) (#28748)
  * Concatenate error in `checkIfPRContentChanged` (#28731) (#28737)
  * Add download attribute to release attachments (#28739) (#28740)
  * Suggest to use Type=simple for systemd service (#28717) (#28722)
  * Fix incorrect URL for "Reference in New Issue" (#28716) (#28723)
  * Avoid unnecessary 500 panic when a commit doesn't exist (#28719) (#28721)
  * Improve frontend guideline (#28711) (#28713)
  * Fix panic when parsing empty pgsql host (#28708) (#28709)
  * Fix wrapping of label list (#28684) (#28688)
  * Make template `DateTime` show proper tooltip (#28677) (#28683)
  * Fix: system webhooks API bug (#28531) (#28666)
  * Fix alpine package files are not rebuilt (#28638) (#28665)
  * Upgrade xorm to new version which supported update join for all supported databases (#28590) (#28668)
  * Avoid cycle-redirecting user/login page (#28636) (#28658)
  * fix empty ref for cron workflow runs (#28640) (#28647)
  * Remove unnecessary syncbranchToDB with tests (#28624) (#28629)
  * Improve document for ARTIFACT_RETENTION_DAYS (#28646) (#28648)
  * switch destination directory for apt signing keys (#28639) (#28642)
  * Improve 1.21 document for Database Preparation (#28643) (#28644)
  * Extend description for ARTIFACT_RETENTION_DAYS (#28626) (#28630)
  * Use known issue IID to generate new PR index number when migrating from GitLab (#28616) (#28618)
  * Refactor CORS handler (#28587) (#28611)
  * Revert "improve possible performance bottleneck (#28547)" (#28593) (#28608)
  * Fix the scroll behavior for emoji/mention list (#28597) (#28601)
  * Fix flex container width (#28603) (#28605)
  * Include heap pprof in diagnosis report to help debugging memory leaks (#28596) (#28599)
  * Fix wrong due date rendering in issue list page (#28588) (#28591)
  * Fix `status_check_contexts` matching bug (#28582) (#28589)
  * Fix 405 method not allowed CORS / OIDC (#28583) (#28586)
  * Fix 500 error of searching commits (#28576) (#28579)
  * improve possible performance bottleneck (#28547) (#28578)
  * Use information from previous blame parts (#28572) (#28577)
  * Update mermaid for 1.21 (#28571)
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