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.6.tar.gz 0009516138 9.08 MB
gitea-apache-vhost.conf 0000000857 857 Bytes
gitea-apache.conf 0000000708 708 Bytes
gitea-docs-1.21.6.tar.gz 0002295492 2.19 MB
gitea-docs-1.21.6.tar.gz.asc 0000000566 566 Bytes
gitea-node_modules-1.21.6.tar.gz 0134296189 128 MB
gitea-rpmlintrc 0000000159 159 Bytes
gitea-user.conf 0000000105 105 Bytes
gitea.app.ini.patch 0000008349 8.15 KB
gitea.changes 0000533741 521 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 0000010465 10.2 KB
vendor.tar.gz 0021556297 20.6 MB
Revision 152 (latest revision is 157)
Eric Schirra's avatar Eric Schirra (ecsos) accepted request 1149793 from Eric Schirra's avatar Eric Schirra (ecsos) (revision 152)
- Update to version 1.21.6:
  * Add Changelog v1.21.6 (#29335)
  * Fix XSS vulnerabilities (#29336)
  * Don't show third-party JS errors in production builds (#29303) (#29333)
  * Remove SSH workaround (#27893) (#29332)
  * Only log error when tag sync fails (#29295) (#29327)
  * Use general token signing secret (#29205) (#29325)
  * Fix SSPI user creation (#28948) (#29323)
  * Improve the `issue_comment` workflow trigger event (#29277) (#29322)
  * Discard unread data of `git cat-file` (#29297) (#29310)
  * Implement some action notifier functions (#29173) (#29308)
  * Prevent double use of `git cat-file` session. (#29298) (#29301)
  * Fix gitea-action user avatar broken on edited menu (#29190) (#29307)
  * Fix error display when merging PRs (#29288) (#29309)
  * Fix missing link on outgoing new release notifications (#29079) (#29300)
  * Fix debian InRelease Acquire-By-Hash newline (#29204) (#29299)
  * Always write proc-receive hook for all git versions (#29287) (#29291)
  * Do not show delete button when time tracker is disabled (#29257) (#29279)
  * Fix missed edit issues event for actions (#29237) (#29251)
  * Disallow merge when required checked are missing (#29143) (#29268)
  * Workaround to clean up old reviews on creating a new one (#28554) (#29264)
  * Fix bug when the linked account was disactived and list the linked accounts (#29263)
  * Explained where create issue/PR template (#29035)
  * Do not use lower tag names to find releases/tags (#29261) (#29262)
  * Convert visibility to number (#29226) (#29244)
  * Load outdated comments when (un)resolving conversation on PR timeline (#29203) (#29221)
  * Make submit event code work with both jQuery event and native event (#29223) (#29234)
  * Only delete scheduled workflows when needed (#29091) (#29235)
  * Fix push to create with capitalize repo name (#29090) (#29206)
  * rm outdated docs from some languages (#27530) (#29208)
  * Refactor git version functions and check compatibility (#29155) (#29157)
  * Rework spellchecking, add lint-spell (#29112)
  * Use ghost user if user was not found (#29161) (#29169)
  * Refactor issue template parsing and fix API endpoint (#29069) (#29140)
  * Dont load Review if Comment is CommentTypeReviewRequest (#28551) (#29160)
  * Refactor parseSignatureFromCommitLine (#29054) (#29108)
  * Fix swift packages not resolving (#29095) (#29102)
  * Fix incorrect link to swift doc and swift package-registry login command (#29096) (#29103)
  * Avoid showing unnecessary JS errors when there are elements with different origin on the page (#29081) (#29089)
  * Fix gitea-origin-url with default ports (#29085) (#29088)
  * Improve user experience for outdated comments (#29050) (#29086)
  * Fix orgmode link resolving (#29024) (#29076)
  * fix: Elasticsearch: Request Entity Too Large #28117 (#29062) (#29075)
  * Hide code links on release page if user cannot read code (#29064) (#29066)
  * Fix typos in the documentation (#29048) (#29056)
  * Do not render empty comments (#29039) (#29049)
  * labels and licenses are directories (#29037)
  * Avoid sending update/delete release notice when it is draft (#29008) (#29025)
  * Wrap contained tags and branches again (#29021) (#29026)
  * Fix incorrect button CSS usages (#29015) (#29023)
  * Strip trailing newline in markdown code copy (#29019) (#29022)
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