Project

General

Profile

Task #5322

Build contrib modules

Added by Ivan Lezhnjov over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
High
Start date:
10/28/2016
Due date:
% Done:

100%

Estimated time:

Description

Building contrib modules fails with the following error message:

Building contrib 
make -f Makefile -j1
Makefile:5: ../src/Makefile.global: No such file or directory
make: *** No rule to make target '../src/Makefile.global'.  Stop.
Command '['/bin/sh', '/tmp/tmpxgmn5skk', 'make', '-f', 'Makefile', '-j1']' returned non-zero exit status 2

The problem here seems to be that src/contrib/Makefile includes ../src/Makefile.global via a relative path and the snapcraft make plugin wasn't designed for this use case.

Our options are:

  • either patch the source code or
  • write a custom make plugin or
  • report this as a bug to snapcraft developers

and then hope they fix it. The latter is ideal, though, because PostgreSQL may not be the only program that includes a Makefile in a Makefile.

Also available in: Atom PDF