[Openmcl-devel] minor issues arising from packaging CCL for Debian

Gary Byers gb at clozure.com
Tue Jan 29 14:43:28 PST 2013



On Tue, 29 Jan 2013, Faheem Mitha wrote:

>
> Hi,
>
> A couple of small things that came up while packaging CCL for Debian.
>
> We've decided to just go with packaging for i386 and amd64 for now. So, I've 
> trimmed the tarball down by removing some unneeded files. The relevant 
> section of the script is below. The files removed as as follows.
>
> rm -rf $SOURCE_TMP_DIR/cocoa-ide $SOURCE_TMP_DIR/objc-bridge
> $SOURCE_TMP_DIR/level-0/ARM $SOURCE_TMP_DIR/level-0/PPC
> $SOURCE_TMP_DIR/level-1/arm-* $SOURCE_TMP_DIR/level-1/ppc-*
> $SOURCE_TMP_DIR/compiler/ARM $SOURCE_TMP_DIR/compiler/PPC
> $SOURCE_TMP_DIR/examples/cocoa
>
> Does this look Ok?

If the goal is to make the tarball as small as possible for some
reason, you might be able to find a few more files that're specific
to other architectures/platforms.  I find some value in being able
to see source for other platforms and don't really care if I have
to check out/download a few KB more to do so.

I'm not sure what else to say here.

>
> Second, some of the populate.sh scripts used for generating the interfaces 
> are missing the executable bit. See the lines starting with "Fix script 
> permissions". I just checked this for i386 and amd64. There may be similar 
> issues with the other archs. If you want me to file an issue for this, let me 
> know.

If I were a Better Human Being, I would care about this.  (At least, I assume
that I would; I'm just guessing, of course.)

The only code in CCL that invokes these scripts does so via "sh -c ...".  I
try to imagine someone being stumped (or even mildly inconvenienced) by this
and I know that I should be able to, but I just can't.  Sorry.

>
> Please copy me on any reply. Thanks.
>                                                           Regards, Faheem
>
> ##########################################################################
>
> SOURCE_TMP_DIR=$(mktemp -u tmp_XXXXX)
> export CCL_VERSION=1.8
> export CCL_WEB_PATH=/release/$(CCL_VERSION)
>
> svn  -r $REV export svn://svn.clozure.com/openmcl/$CCL_WEB_PATH/source 
> $SOURCE_TMP_DIR
> svn export -r $REV svn://svn.clozure.com/openmcl/$CCL_WEB_PATH/x86-headers 
> $SOURCE_TMP_DIR/x86-headers
> svn export -r $REV svn://svn.clozure.com/openmcl/$CCL_WEB_PATH/x86-headers64 
> $SOURCE_TMP_DIR/x86-headers64
>
> # Remove unnecessary files
>
> rm -rf $SOURCE_TMP_DIR/cocoa-ide $SOURCE_TMP_DIR/objc-bridge 
> $SOURCE_TMP_DIR/level-0/ARM $SOURCE_TMP_DIR/level-0/PPC 
> $SOURCE_TMP_DIR/level-1/arm-* $SOURCE_TMP_DIR/level-1/ppc-* 
> $SOURCE_TMP_DIR/compiler/ARM $SOURCE_TMP_DIR/compiler/PPC 
> $SOURCE_TMP_DIR/examples/cocoa
>
> # Fix script permissions
>
> chmod -v ugo+x $SOURCE_TMP_DIR/x86-headers/gmp/C/populate.sh
> chmod -v ugo+x $SOURCE_TMP_DIR/x86-headers/jni/C/populate.sh
> chmod -v ugo+x $SOURCE_TMP_DIR/x86-headers64/gmp/C/populate.sh
> chmod -v ugo+x $SOURCE_TMP_DIR/x86-headers64/jni/C/populate.sh
> chmod -v ugo+x $SOURCE_TMP_DIR/x86-headers64/gnustep/C/populate.sh
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
>
>



More information about the Openmcl-devel mailing list