Bug 224542

Summary: [patch] devel/gmake: add knob for Scheme functions support in makefiles
Product: Ports & Packages Reporter: Bertrand Petit <bsdpr>
Component: Individual Port(s)Assignee: Tijl Coosemans <tijl>
Status: New ---    
Severity: Affects Only Me CC: bsdpr
Priority: --- Keywords: patch
Version: LatestFlags: bugzilla: maintainer-feedback? (tijl)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch adding a knob for the optional 'guile' feature compilation none

Description Bertrand Petit 2017-12-23 13:49:49 UTC
Created attachment 189055 [details]
Patch adding a knob for the optional 'guile' feature compilation

The attached patch add a knob which optionally enable the compilation of gmake with the 'guile' feature, it provides the evaluation of Scheme functions within makefiles.
Comment 1 Tijl Coosemans freebsd_committer freebsd_triage 2017-12-23 15:02:39 UTC
The problem is that lang/guile2 depends on devel/gmake so this patch introduces a circular dependency.
Comment 2 Bertrand Petit 2017-12-23 17:17:17 UTC
(In reply to Tijl Coosemans from comment #1)

That is obviously a difficult problem. I'm not versed into the arcane arts of the ports infrastructure, would it be possible to automatically build the port in several stages when the SCHEME option is enabled and guile not yet installed?

Stage 1: build and install gmake after disabling the SCHEME option.
Stage 2: clean the stage 1 build.
Stage 3: build again with the option enabled (this would pull the guile dependency) but do not install yet.
Stage 4: forcibly delete the stage 1 installation.
Stage 5: install the stage 3 build.