Yet another wish list

Leonard den Ottolander leonard at den.ottolander.nl
Thu Jan 22 14:21:26 UTC 2004


Hi,

I would like to see following additions/changes to the distro:
1) libmhash
2) libmcrypt
3) (mcrypt)
4) php built with --with-mcrypt and --with-mhash
5) (php with extra dbase functions)
6) mc built with support for larger syntax files
7) mc with included complete php.syntax file

Addenda:

1) a libmhash rpm is available at
http://www.ottolander.nl/opensource/mhash/libmhash.html . The rpms
available there currently lack a static library (libmhash.a). I will fix
this soon (currently have a test version that needs verifying against
the php build).
The mhash rpm by Michael Schwendt available at fedora US
(http://www.fedora.us/pkglists/1/stable/mhash-0.8.18-0.fdr.1.1.src.rpm.html) could be used instead, but I would suggest two changes. It lacks libmhash.la, which iiac is needed for dynamic linking. Also I would suggest to use the name libmhash instead of mhash, and reserve the name mhash for a package containing a command line tool, in analogy to libmcrypt and mcrypt.
(Also see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=104211)

2) a libmcrypt rpm is available at
http://www.ottolander.nl/opensource/mcrypt/mcrypt.html . (No bugzilla
RFE entry yet.)

3) an mcrypt rpm is available at the same location as 2) (bottom of the
page).

4) To enable mhash and mcrypt support in php change the spec file as
follows:
@@ -325,6 +325,8 @@
        --enable-dbx \
        --enable-dio \
        --enable-mcal \
+       --with-mcrypt \
+       --with-mhash \
        $*

 # Fixup the config_vars to not include the '-a' on lines which call
apxs.
(note the line wrap)
(Also see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=103735,
no request for mcrypt in php bugzillad yet.)

5) php_dbase.patch available at
http://www.ottolander.nl/opensource/dbase2mysql/dbase2mysql.html . This
patch adds some basic dbase functions for which hooks are already
available in the code. Also submitted upstream, but I haven't heard
anything for weeks...

6) mc currently crashes on import of syntax files that are too large
(https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112644).
Increasing MAX_WORDS_PER_CONTEXT to a value of 4096 suffices to import
the syntax file mentioned in 7):
--- mc-4.6.0/edit/syntax.c.000	2002-12-15 19:55:53.000000000 +0100
+++ mc-4.6.0/edit/syntax.c	2003-12-26 01:06:51.000000000 +0100
@@ -42,7 +42,7 @@

 #define UNKNOWN_FORMAT "unknown"
 
-#define MAX_WORDS_PER_CONTEXT	1024
+#define MAX_WORDS_PER_CONTEXT	4096
 #define MAX_CONTEXTS		128
 
 #define RULE_ON_LEFT_BORDER 1
7) A complete(?) php syntax file can be found at
http://www.ottolander.nl/opensource/mc/syntax.html . (Also see
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=112645)

Bye,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research






More information about the fedora-devel-list mailing list