diff options
author | Keri Harris <keri@gentoo.org> | 2009-01-16 08:42:13 +0000 |
---|---|---|
committer | Keri Harris <keri@gentoo.org> | 2009-01-16 08:42:13 +0000 |
commit | f42019e9b29e632011bad99314a9457908e245fa (patch) | |
tree | 38c4f513158f43c2051e6672c9a9c0c548f7d26c /dev-lang/yap/files | |
parent | remove never used, obsolete libvserver (diff) | |
download | gentoo-2-f42019e9b29e632011bad99314a9457908e245fa.tar.gz gentoo-2-f42019e9b29e632011bad99314a9457908e245fa.tar.bz2 gentoo-2-f42019e9b29e632011bad99314a9457908e245fa.zip |
Revbump to install docs and support dynamic-loading
(Portage version: 2.1.6.4/cvs/Linux 2.6.26-gentoo-r3 x86_64)
Diffstat (limited to 'dev-lang/yap/files')
-rw-r--r-- | dev-lang/yap/files/yap-5.1.3-bootdir.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-lang/yap/files/yap-5.1.3-bootdir.patch b/dev-lang/yap/files/yap-5.1.3-bootdir.patch new file mode 100644 index 000000000000..27c8c144803b --- /dev/null +++ b/dev-lang/yap/files/yap-5.1.3-bootdir.patch @@ -0,0 +1,59 @@ +--- Yap-5.1.3.orig/console/yap.c 2008-06-05 01:58:37.000000000 +1200 ++++ Yap-5.1.3/console/yap.c 2008-08-24 14:31:21.000000000 +1200 +@@ -82,6 +82,7 @@ + static int output_msg; + #endif + ++static char *YapBootDir = NULL; + static char BootFile[] = "boot.yap"; + static char InitFile[] = "init.yap"; + +@@ -595,11 +596,22 @@ + BootMode = parse_yap_arguments(argc,argv,iap); + + if (BootMode == YAP_FULL_BOOT_FROM_PROLOG) { ++ YapBootDir = getenv("YAPBOOTDIR"); ++ if (YapBootDir) { + #if HAVE_STRNCAT +- strncpy(boot_file, PL_SRC_DIR, 256); ++ strncpy(boot_file, YapBootDir, 256); + #else +- strcpy(boot_file, PL_SRC_DIR); ++ strcpy(boot_file, YapBootDir); + #endif ++ strcat(boot_file, "/"); ++ } ++ else { ++#if HAVE_STRNCAT ++ strncpy(boot_file, PL_SRC_DIR, 256); ++#else ++ strcpy(boot_file, PL_SRC_DIR); ++#endif ++ } + #if HAVE_STRNCAT + strncat(boot_file, BootFile, 256); + #else +@@ -649,11 +661,21 @@ + YAP_Functor fgoal; + YAP_Term goal, as[2]; + ++ if (YapBootDir) { + #if HAVE_STRNCAT +- strncpy(init_file, PL_SRC_DIR, 256); ++ strncpy(init_file, YapBootDir, 256); + #else +- strcpy(init_file, PL_SRC_DIR); ++ strcpy(init_file, YapBootDir); + #endif ++ strcat(init_file, "/"); ++ } ++ else { ++#if HAVE_STRNCAT ++ strncpy(init_file, PL_SRC_DIR, 256); ++#else ++ strcpy(init_file, PL_SRC_DIR); ++#endif ++ } + #if HAVE_STRNCAT + strncat(init_file, InitFile, 256); + #else |