[PR #4446] [MERGED] Add BSDmakefile to prevent errors when make is called under FreeBSD #17377

Closed
opened 2025-11-02 13:01:32 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4446
Author: @mqudsi
Created: 7/14/2018
Status: Merged
Merged: 7/16/2018
Merged by: @jonasfranz

Base: masterHead: bsd-make


📝 Commits (3)

  • 402de2b Add BSDmakefile to prevent errors when make is called under FreeBSD
  • a56c3c6 Merge branch 'master' into bsd-make
  • c64b5c6 Merge branch 'master' into bsd-make

📊 Changes

1 file changed (+51 additions, -0 deletions)

View changed files

BSDmakefile (+51 -0)

📄 Description

The syntax of the gitea Makefile is not platform-agnostic and is
specific to the GNU version of make. BSD platforms such as FreeBSD
ship with bmake (BSD make) as their default make program; attempting
to compile gitea by simply executing make causes a wall of errors to
show as a result of syntax incompatible with BSD make.

If a file named BSDmakefile is present, bmake will give it
preference over a generic Makefile. This BSDmakefile is taken from
the BSD-licensed gmake-proxy project, which transparently proxies
all make commands to gmake (GNU make) on systems where bmake is
the default, and if gmake is not installed an error message is
displayed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4446 **Author:** [@mqudsi](https://github.com/mqudsi) **Created:** 7/14/2018 **Status:** ✅ Merged **Merged:** 7/16/2018 **Merged by:** [@jonasfranz](https://github.com/jonasfranz) **Base:** `master` ← **Head:** `bsd-make` --- ### 📝 Commits (3) - [`402de2b`](https://github.com/go-gitea/gitea/commit/402de2b8603fbf39dac5e10abed7b4fb7b5c4d50) Add BSDmakefile to prevent errors when `make` is called under FreeBSD - [`a56c3c6`](https://github.com/go-gitea/gitea/commit/a56c3c61592c4b9ff845c087b14509006feb85f1) Merge branch 'master' into bsd-make - [`c64b5c6`](https://github.com/go-gitea/gitea/commit/c64b5c6c9fdf4a1cd1ae76bbffbf9dcf04de44fd) Merge branch 'master' into bsd-make ### 📊 Changes **1 file changed** (+51 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `BSDmakefile` (+51 -0) </details> ### 📄 Description The syntax of the gitea Makefile is not platform-agnostic and is specific to the GNU version of `make`. BSD platforms such as FreeBSD ship with bmake (BSD make) as their default `make` program; attempting to compile gitea by simply executing `make` causes a wall of errors to show as a result of syntax incompatible with BSD make. If a file named `BSDmakefile` is present, `bmake` will give it preference over a generic `Makefile`. This `BSDmakefile` is taken from [the BSD-licensed `gmake-proxy` project](https://github.com/neosmart/gmake-proxy), which transparently proxies all `make` commands to `gmake` (GNU make) on systems where `bmake` is the default, and if `gmake` is not installed an error message is displayed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 13:01:32 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17377