2009/4/3 Parrot <[email protected]>:
> #442: Can't build a well-behaved Rakudo RPM without being able to specify 
> system
> library paths

I needed this patch to be able to work with an installed parrot:
(for this particular problem. There are far more worse problems than this)

--- origsrc/parrot-1.0.0/src/library.c  2009-03-08 21:11:36.000000000 +0000
+++ src/parrot-1.0.0/src/library.c      2009-03-31 17:14:56.213000000 +0000
@@ -189,6 +189,7 @@ parrot_init_library_paths(PARROT_INTERP)
         versionlib = VTABLE_get_string_keyed_str(interp, config_hash, libkey);
         entry = VTABLE_get_string_keyed_str(interp, config_hash, verkey);
         versionlib = Parrot_str_append(interp, versionlib, entry);
+        VTABLE_push_string(interp, paths, versionlib);
         entry = Parrot_str_concat(interp, versionlib,
CONST_STRING(interp, "/include/"), 0);
         VTABLE_push_string(interp, paths, entry);
     }
@@ -205,6 +206,7 @@ parrot_init_library_paths(PARROT_INTERP)
     entry = CONST_STRING(interp, "./");
     VTABLE_push_string(interp, paths, entry);
     if (!STRING_IS_NULL(versionlib)) {
+        VTABLE_push_string(interp, paths, versionlib);
         entry = Parrot_str_concat(interp, versionlib,
CONST_STRING(interp, "/library/"), 0);
         VTABLE_push_string(interp, paths, entry);
     }

-- 
Reini Urban
http://phpwiki.org/              http://murbreak.at/
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to