[Chicken-hackers] [PATCH][5] Some FFI improvements

2017-05-28 Thread lemonboy
Hello hackers, I'll be brief: - The first patch fixes a problem where we'd fail to consider the internal defines as toplevel ones, leading to a compiler error. - The second patch complements the first by rejecting more `define-` forms in non-toplevel contexts. - The third one is slightly beefier a

[Chicken-hackers] [PATCH] Re: Alternative egg installation directories

2017-05-28 Thread felix . winkelmann
Hello! Here a patch for this. CHICKEN_INSTALL_PREFIX overrides the bin, include or share directories when generating the install scripts. Note that the installed egg-info files refer to the new directory as well, so this is not the same as DESTDIR. chicken-status + chicken-uninstall will list an

Re: [Chicken-hackers] Alternative egg installation directories

2017-05-28 Thread felix . winkelmann
> Attached is a patch that adds an extra environment variable > (CHICKEN_INSTALL_BINDIR) to specify an alternative directory for > executables (please don't consider applying -- it only serves to > illustrate the situation). I don't think it is enough, though. Maybe > eggs will want to install do

[Chicken-hackers] Alternative egg installation directories

2017-05-28 Thread Mario Domenech Goulart
Hi, While porting salmonella to C5, I noticed that we don't have a way to install executables into an alternative "bin" directory. If we have an egg that installs a library and an executable, and if we set CHICKEN_INSTALL_REPOSITORY, the library will go to the directory pointed by CHICKEN_INSTALL

[Chicken-hackers] Regarding the hide declaration, #1376

2017-05-28 Thread megane
Hi, I was thinking maybe we could leave the declarations as they are and add an explicit counterpart for export. The implementation may be pretty easy to do by just updating the module export and what not lists. Maybe call the new syntax hide-export. I could try creating a patch if this sounds li

Re: [Chicken-hackers] [PATCH][5] Add missing syntax checks

2017-05-28 Thread Peter Bex
On Sat, May 27, 2017 at 11:04:05PM +0200, lemonboy wrote: > Hello hackers, > this patch does what it says on the tin and can be safely applied to > the 4 branch, > I didn't supply a separate patch in the hope the patch(1) deity > manages me to spare > this effort :) Good catch, however the syntax

[Chicken-hackers] [PATCH] [SECURITY] Fix segfault in C_i_length() on improper lists

2017-05-28 Thread Peter Bex
Hi all, I just noticed ticket #1375 is caused by an incorrect check in C_i_length which causes a segfault when passed an improper list. That means this could be a denial of service if (length) is used on user input. The attached patch applies both to master and chicken-5. Cheers, Peter From 76bb