Skip to content

Makefile invokes find with nonportable, non-POSIX -not option #24564

Closed
@riastradh

Description

@riastradh

Description

The Makefile runs find ... -not ... to derive GO_SOURCES:

GO_SOURCES += $(shell find $(GO_DIRS) -type f -name "*.go" -not -path modules/options/bindata.go -not -path modules/public/bindata.go -not -path modules/templates/bindata.go)

On some platforms such as NetBSD, the -not option is not supported. The portable and standard POSIX way to do this is with with !: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html

Gitea Version

ef92459

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

make

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions