OpenSP-1.5.2
http://www.linuxfromscratch.org/blfs/vi ... pensp.html
Requires sgml-common-0.6.3 (above) to be mounted
downloaded:
http://downloads.sourceforge.net/openja ... 5.2.tar.gz
The compiling was done with the changes to /etc/profile described
here, to set compiler and linker flags.
Code: Select all
sed -i 's:32,:253,:' lib/Syntax.cxx
sed -i 's:LITLEN 240 :LITLEN 8092:' unicode/{gensyntax.pl,unicode.syn}
./configure $PUPPYCOMPILE --disable-static --disable-doc-build --enable-default-catalog=/etc/sgml/catalog --enable-http --enable-default-search-path=/usr/share/sgml
make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2
make check
The BLFS page says that "As many as eight of the 22 tests may fail. Do not be alarmed."
Hmm...
Code: Select all
====================
9 of 23 tests failed
====================
make[3]: *** [check-TESTS] Error 1
make[3]: Leaving directory `/mnt/sdb2/sources/input-OpenSP-1.5.2/OpenSP-1.5.2/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/mnt/sdb2/sources/input-OpenSP-1.5.2/OpenSP-1.5.2/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/mnt/sdb2/sources/input-OpenSP-1.5.2/OpenSP-1.5.2'
make: *** [check] Error 2
#
OK, I guess at 9 failures it is permitted to be alarmed.
Looking at the OpenJade/OpenSP homepage
http://openjade.sourceforge.net/download.html
I notice that "The latest stable release of OpenSP is 1.5.1."
Methinks the Beyond Linux From Scratch boffins may be a wee overambitious.
Trying
OpenSP-1.5.1 according to
http://www.linuxfromscratch.org/blfs/vi ... pensp.html:
Code: Select all
patch -Np1 -i ../OpenSP-1.5.1-LITLEN-1.patch
patch -Np1 -i ../OpenSP-1.5.1-gcc34-1.patch
./configure $PUPPYCOMPILE --disable-static --enable-http --enable-default-catalog=/etc/sgml/catalog --enable-default-search-path=/usr/share/sgml
make pkgdatadir=/usr/share/sgml/OpenSP-1.5.1
make check
Aw, nuts:
Code: Select all
In file included from ArcEngine.cxx:20:
../include/InternalInputSource.h:37: error: extra qualification 'OpenSP::InternalInputSource::' on member 'asInternalInputSource'
make[1]: *** [ArcEngine.lo] Error 1
make[1]: Leaving directory `/mnt/sdb2/sources/input-OpenSP-1.5.1/OpenSP-1.5.1/lib'
make: *** [check-recursive] Error 1
#
Let's try recompiling OpenSP-1.5.1 but using the header include/InternalInputSource.h from 1.5.2:
Code: Select all
====================
8 of 22 tests failed
====================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/mnt/sdb2/sources/input-OpenSP-1.5.1/OpenSP-1.5.1/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/mnt/sdb2/sources/input-OpenSP-1.5.1/OpenSP-1.5.1/tests'
make: *** [check-recursive] Error 1
#
Ah, success! At least, it
says we can live with only eight errors...
(take the "before" snapshot)
Continuing:
Code: Select all
new2dir make pkgdatadir=/usr/share/sgml/OpenSP-1.5.1 install
From new2dir I did dir2pet directly, it created an exe, dev, doc, and nls .pet package.
Code: Select all
ln -v -sf onsgmls /usr/bin/nsgmls
ln -v -sf osgmlnorm /usr/bin/sgmlnorm
ln -v -sf ospam /usr/bin/spam
ln -v -sf ospcat /usr/bin/spcat
ln -v -sf ospent /usr/bin/spent
ln -v -sf osx /usr/bin/sx
ln -v -sf osx /usr/bin/sgml2xml
ln -v -sf libosp.so /usr/lib/libsp.so
(take the "after" snapshot, apply the Clipper script)
The unified sourcedir produced by the Clipper script was then manually divided (i.e. drag'n'drop'ped using Rox-Filer) into doc, dev, and nls sourcedir's by visual comparison with the output .pet's of new2dir, except:
1. new2dir placed a duplicate of symlink /usr/lib/libosp.so in the dev .pet, but I'm making just the single copy of it in the exe .pet (where its target, libosp.so.4.0.0, resides), i.e. no duplicate in the dev .pet. If libosp.so *should* reside in the DEV, hopefully someone will so advise...
2. The symlinks are present in this exe .pet produced by the Clipper script, which are not in the new2dir-version exe .pet due to their being created after new2dir was run.