Bug 224542 - [patch] devel/gmake: add knob for Scheme functions support in makefiles
Summary: [patch] devel/gmake: add knob for Scheme functions support in makefiles
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tijl Coosemans
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-12-23 13:49 UTC by Bertrand Petit
Modified: 2017-12-23 17:17 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (tijl)


Attachments
Patch adding a knob for the optional 'guile' feature compilation (582 bytes, patch)
2017-12-23 13:49 UTC, Bertrand Petit
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.