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.3.tar.gz 0009358844 8.93 MB
gitea-apache-vhost.conf 0000000857 857 Bytes
gitea-apache.conf 0000000708 708 Bytes
gitea-docs-1.20.3.tar.gz 0002224507 2.12 MB
gitea-docs-1.20.3.tar.gz.asc 0000000833 833 Bytes
gitea-node_modules-1.20.3.tar.gz 0118620916 113 MB
gitea-rpmlintrc 0000000159 159 Bytes
gitea-user.conf 0000000105 105 Bytes
gitea.app.ini.patch 0000008257 8.06 KB
gitea.changes 0000455787 445 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 0020903663 19.9 MB
Revision 140 (latest revision is 157)
Eric Schirra's avatar Eric Schirra (ecsos) accepted request 1104942 from Eric Schirra's avatar Eric Schirra (ecsos) (revision 140)
- Update to version 1.20.3:
  * Update 1.20.3 changelog (#26609) (#26610)
  * Use "input" event instead of "keyup" event for migration form (#26602) (#26605)
  * Do not use deprecated log config options by default (#26592) (#26600)
  * Fix project filter bugs (#26490) (#26558)
  * Add minimum polyfill to support "relative-time-element" in PaleMoon (#26575) (#26578)
  * Fix "issueReposQueryPattern does not match query" (#26556) (#26564)
  * Sync repo's IsEmpty status correctly (#26517) (#26560)
  * Fix typo of RunerOwnerID (#26508) (#26528)
  * Fix NuGet search endpoints (#25613) (#26499)
  * Fix dark theme highlight for "NameNamespace" (#26519) (#26527)
  * Use `hidden` over `clip` for text truncation (#26520) (#26522)
  * Set "type=button" for editor's toolbar buttons (#26510) (#26518)
  * Detect ogg mime-type as audio or video (#26494) (#26505)
  * Use `object-fit: contain` for oauth2 custom icons (#26493) (#26498)
  * Move dropzone progress bar to bottom to show filename when uploading (#26492) (#26497)
  * Fix storage path logic especially for relative paths (#26441) (#26481)
  * Add ThreadID parameter for Telegram webhooks (#25996) (#26480)
  * Close stdout correctly for "git blame" (#26470) (#26473)
  * Remove last newline from config file (#26468) (#26471)
  * Check first if minio bucket exists before trying to create it (#26420) (#26465)
  * Avoiding accessing undefined tributeValues #26461  (#26462)
  * Fix incorrect color of selected assignees when create issue (#26324) (#26372)
  * Improve profile readme rendering (#25988) (#26453)
  * Update upgrade documentation to add a check for deprecated configurations (#26451) (#26452)
  * Add transaction when creating pull request created dirty data (#26259) (#26437)
  * Call git.InitSimple for runRepoSyncReleases (#26396) (#26450)
  * Add changelog for 1.20.3 (#26373) (#26375)
  * minio: add missing region on client initialization (#26412) (#26438)
  * Fix wrong middleware sequence (#26428) (#26436)
  * Fix admin queue page title and fix CI failures (#26409) (#26421)
  * Add pull request review request webhook event (#26401) (#26407)
  * Introduce ctx.PathParamRaw to avoid incorrect unescaping (#26392) (#26405)
  * Fix incorrect sort link with  `.profile`  repository (#26374) (#26379)
  * Fix text truncate (#26354) (#26384)
  * Bypass MariaDB performance bug of the "IN" sub-query, fix incorrect IssueIndex (#26279) (#26368)
  * Display human-readable text instead of cryptic filemodes (#26352) (#26358)
  * [docs] Add missing backtick in quickstart.zh-cn.md (#26349) (#26357)
  * [docs] Fix Gmail configuration (#26356)
  * Fix API leaking Usermail if not logged in (#25097) (#26350)
  * Hide `last indexed SHA` when a repo could not be indexed yet (#26340) (#26345)
  * Remove backslashed newlines on markdown (#26344) (#26348)
  * Fix incorrect CLI exit code and duplicate error message (#26346) (#26347)
  * Fix log typo in task.go (#26337) (#26343)
  * Prevent newline errors with Debian packages (#26332) (#26342)
  * Fix bug with sqlite load read (#26305) (#26339)
  * Make git batch operations use parent context timeout instead of default timeout (#26325) (#26330)
  * Fix the wrong derive path (#26271) (#26318)
  * Fix the topic validation rule and suport dots (#26286) (#26303)
  * Support getting changed files when commit ID is `EmptySHA` (#26290) (#26316)
  * Upgrade x/net to 0.13.0 (#26301)
  * Clarify the logger's MODE config option (#26267) (#26281)
  * Fix due date rendering the wrong date in issue (#26268) (#26274)
  * Update Arch linux URL from community to extra (#26273) (#26276)
  * Use shared template for webhook icons (#26242) (#26246)
  * Fix pull request check list is limited (#26179) (#26245)
  * Don't autosize textarea in diff view (#26233) (#26244)
  * Fix attachment clipboard copy on insecure origin (#26224) (#26231)
  * Fixed incorrect locale references (#26218) (#26222)
  * Fix access check for org-level project (#26182) (#26223)
  * Fix commit compare style (#26209) (#26226)
  * Warn instead of reporting an error when a webhook cannot be found (#26039) (#26211)
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