There is some canonicalisation that happens to module names in other
places (e.g. converting (srfi 1) -> srfi-1), so I think this needs to
use the existing routine for that. How about the attached patch?

Evan
>From 8dbc6a7b17bfceb8d8058a9868c8b7c9e93f27b0 Mon Sep 17 00:00:00 2001
From: Evan Hanson <ev...@foldling.org>
Date: Fri, 31 Aug 2018 20:31:36 +1200
Subject: [PATCH] Allow list-notation for modules property in egg files

---
 chicken-install.scm | 1 +
 egg-compile.scm     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/chicken-install.scm b/chicken-install.scm
index 3a44f2f4..5d66a77c 100644
--- a/chicken-install.scm
+++ b/chicken-install.scm
@@ -42,6 +42,7 @@
 (import (chicken tcp))
 (import (chicken port))
 (import (chicken platform))
+(import (chicken internal))
 (import (chicken io))
 (import (chicken sort))
 (import (chicken time))
diff --git a/egg-compile.scm b/egg-compile.scm
index 35c871b4..0efa98d2 100644
--- a/egg-compile.scm
+++ b/egg-compile.scm
@@ -310,7 +310,7 @@
         ((install-name)
          (set! oname (->string (arg info 1 name?))))
         ((modules)
-         (set! mods (map ->string (cdr info))))
+         (set! mods (map library-id (cdr info))))
         ((component-dependencies)
          (set! cdeps (append cdeps (map ->dep (cdr info)))))
         ((source-dependencies)
-- 
2.11.0

_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to