Skip to content

Unable to build from source (undocumented build requirements) #7900

Closed
@jmrothst

Description

@jmrothst
  • Gitea version (or commit ref): 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.9.0, 1.9.1
  • Git version: NA
  • Operating system: Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist: NA

Description

Using the source file download from the release tag (e.g. https://github.com/go-gitea/gitea/archive/v1.9.1.tar.gz), the bundled make files expect git to be installed, and that the extracted location is the result of a git checkout. Since neither of these is true, build fails when make executes git to determine the version.

Building without make using "go build -a -v -tags 'pam sqlite sqlite_unlock_notify'" is successful.

Why this is an issue is that I am trying to package gitea into RPM via mock in a chroot jail with minimal installed packages, and no network access to correctly identify all needed dependencies so that later usage of gitea will work in an environment where no internet access exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions