Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105254 - Colorer Lib - a Syntaxhighlight Libary
Summary: Colorer Lib - a Syntaxhighlight Libary
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Lowest enhancement (vote)
Assignee: PHP Bugs
URL: http://colorer.sourceforge.net/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 105255
  Show dependency tree
 
Reported: 2005-09-08 07:14 UTC by Martin Holzhauer
Modified: 2007-08-14 12:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
colorer-4_beta.ebuild (colorer-4_beta.ebuild,525 bytes, text/plain)
2005-09-08 07:15 UTC, Martin Holzhauer
Details
colorer-4_beta-r1.ebuild (colorer-4_beta-r1.ebuild,622 bytes, text/plain)
2005-09-12 12:43 UTC, Martin Holzhauer
Details
colorer-4_beta-r1.ebuild (colorer-4_beta-r1.ebuild,628 bytes, text/plain)
2005-09-12 14:08 UTC, Martin Holzhauer
Details
colorer-4_beta-r1.ebuild (colorer-4_beta-r1.ebuild,618 bytes, text/plain)
2005-09-12 15:47 UTC, Martin Holzhauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Holzhauer 2005-09-08 07:14:30 UTC
an Ebuild for the Colorer-take5 Syntax Highlighter Libary
Comment 1 Martin Holzhauer 2005-09-08 07:15:53 UTC
Created attachment 67936 [details]
colorer-4_beta.ebuild

colorer-4_beta.ebuild
i recomend dev-libs as category
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-09-08 08:54:51 UTC
Please do not use einstall, if not inevitable. Something like "make DESTDIR=${D}
install" should be used.
Comment 4 Martin Holzhauer 2005-09-12 12:43:16 UTC
Created attachment 68282 [details]
colorer-4_beta-r1.ebuild

colorer-4_beta-r1.ebuild
ok i hope this ebuild is better
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-09-12 12:53:34 UTC
(In reply to comment #4)

> ok i hope this ebuild is better

Thanks, we are planning to put pecl-colorer into our PHP overlay
(http://svn.gnqs.org/projects/gentoo-php-overlay/) for testing and into portage
later.

Wrt your ebuild, the licenses are still invalid, please read
http://dev.gentoo.org/~ciaranm/docs/mw-faq/license.txt again. ;)
Comment 6 Martin Holzhauer 2005-09-12 14:08:01 UTC
Created attachment 68290 [details]
colorer-4_beta-r1.ebuild

colorer-4_beta-r1.ebuild
ok now with || in license
Comment 7 Ciaran McCreesh 2005-09-12 15:14:24 UTC
Noooo! That's not how you do || stuff. You want "|| ( first second third )".

Other things:

* You can leave out the (R)DEPEND lines.
* http://dev.gentoo.org/~ciaranm/docs/mw-faq/emake.txt

Please reopen with a fixed ebuild.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-09-12 15:34:14 UTC
Before this generates even more bugspam, I'd like to that neither GPL nor LGPL
are valid licenses. Referring to
http://dev.gentoo.org/~ciaranm/docs/mw-faq/license.txt for the third and
hopefully last time. ;)
Comment 9 Martin Holzhauer 2005-09-12 15:47:56 UTC
Created attachment 68300 [details]
colorer-4_beta-r1.ebuild

i hope this was enough PITA
no with versionstring in all licenses
and only one || 
and emake

do not use einstall but use emake - very straight
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-09-12 23:57:20 UTC
Reopen.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2005-09-13 00:04:08 UTC
Re-assign.
Comment 12 Nathan Sullivan 2006-08-24 05:10:32 UTC
ok...ive just tested this ebuild against gcc-4.1, gcc-4.0.3 and gcc-3.4.4-r1 and it fails against all 3. it fails for the same reasons on gcc-4.x, but for an unrelated reason on gcc-3.4.4-r1 (it gets past where 4.x fails)...

errors follow:

=======================

gcc-4.x results:

gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/uncompr.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared/../zlib/uncompr.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/zutil.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared/../zlib/zutil.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/unzip.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared/../zlib/contrib/minizip/unzip.c
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/ioapi.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared/../zlib/contrib/minizip/ioapi.c
../shared/../zlib/contrib/minizip/ioapi.c: In function 'fill_fopen_filefunc':
../shared/../zlib/contrib/minizip/ioapi.c:174: warning: assignment from incompatible pointer type
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/Logging.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared/common/Logging.cpp
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/xmldom.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared/xml/xmldom.cpp
../shared/xml/xmldom.cpp: In member function 'Document* DocumentBuilder::parse(const byte*, int, const char*)':
../shared/xml/xmldom.cpp:34: warning: taking address of temporary
../shared/xml/xmldom.cpp:35: warning: taking address of temporary
../shared/xml/xmldom.cpp:36: warning: taking address of temporary
../shared/xml/xmldom.cpp:37: warning: taking address of temporary
../shared/xml/xmldom.cpp:38: warning: taking address of temporary
../shared/xml/xmldom.cpp: In member function 'String* DocumentBuilder::consumeAttributeValue()':
../shared/xml/xmldom.cpp:414: warning: comparison is always false due to limited range of data type
../shared/xml/xmldom.cpp: In member function 'String* DocumentBuilder::consumeQoutedValue()':
../shared/xml/xmldom.cpp:431: warning: comparison is always false due to limited range of data type
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/cregexp.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared/cregexp/cregexp.cpp
../shared/cregexp/cregexp.cpp: In member function 'EError CRegExp::setStructs(SRegInfo*&, const String&, int&)':
../shared/cregexp/cregexp.cpp:428: warning: taking address of temporary
../shared/cregexp/cregexp.cpp:429: warning: taking address of temporary
gcc -O3 -Wp,-I../shared/,-I../shared/../zlib/,-w -o objs/BitArray.o  -c -s   -D__unix__ -DCOLORER_FEATURE_HTTPINPUTSOURCE=FALSE ../shared/unicode/BitArray.cpp
../shared/unicode/BitArray.cpp: In destructor 'BitArray::~BitArray()':
../shared/unicode/BitArray.cpp:11: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp: In member function 'void BitArray::setBit(int)':
../shared/unicode/BitArray.cpp:20: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp: In member function 'void BitArray::clearBit(int)':
../shared/unicode/BitArray.cpp:25: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp: In member function 'void BitArray::addRange(int, int)':
../shared/unicode/BitArray.cpp:29: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp: In member function 'void BitArray::clearRange(int, int)':
../shared/unicode/BitArray.cpp:52: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp: In member function 'void BitArray::addBitArray(BitArray*)':
../shared/unicode/BitArray.cpp:73: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp:75: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp: In member function 'void BitArray::clearBitArray(BitArray*)':
../shared/unicode/BitArray.cpp:86: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp:87: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp: In member function 'void BitArray::intersectBitArray(BitArray*)':
../shared/unicode/BitArray.cpp:102: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp:103: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp: In member function 'void BitArray::addBitArray(char*, int)':
../shared/unicode/BitArray.cpp:110: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp: In member function 'void BitArray::clearBitArray(char*, int)':
../shared/unicode/BitArray.cpp:117: error: cast from 'int*' to 'int' loses precision
../shared/unicode/BitArray.cpp: In member function 'bool BitArray::getBit(int)':
../shared/unicode/BitArray.cpp:124: error: cast from 'int*' to 'int' loses precision
make[1]: *** [objs/BitArray.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/colorer-4_beta/work/src/colorer'
make: *** [colorer] Error 2

!!! ERROR: dev-libs/colorer-4_beta failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  colorer-4_beta.ebuild, line 22:   Called die

!!! emake failed
Comment 13 Nathan Sullivan 2006-08-24 05:11:28 UTC
gcc-3.4.4-r1 results:

objs/ConsoleTools.o: In function `ConsoleTools::RETest()':
ConsoleTools.cpp:(.text+0x548): warning: the `gets' function is dangerous and should not be used.
make[1]: Leaving directory `/var/tmp/portage/colorer-4_beta/work/src/colorer'
---------------- Building Colorer-take5 shared library
make -C src/libcolorer/ -f makefile.gcc
make[1]: Entering directory `/var/tmp/portage/colorer-4_beta/work/src/libcolorer'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
gcc ../colorer/objs/adler32.o ../colorer/objs/crc32.o ../colorer/objs/infblock.o ../colorer/objs/infcodes.o ../colorer/objs/inffast.o ../colorer/objs/inflate.o ../colorer/objs/inftrees.o ../colorer/objs/infutil.o ../colorer/objs/uncompr.o ../colorer/objs/zutil.o ../colorer/objs/unzip.o ../colorer/objs/ioapi.o ../colorer/objs/Logging.o ../colorer/objs/xmldom.o ../colorer/objs/cregexp.o ../colorer/objs/BitArray.o ../colorer/objs/Character.o ../colorer/objs/CharacterClass.o ../colorer/objs/String.o ../colorer/objs/DString.o ../colorer/objs/SString.o ../colorer/objs/StringBuffer.o ../colorer/objs/UnicodeTools.o ../colorer/objs/Encodings.o ../colorer/objs/Exception.o ../colorer/objs/MemoryChunks.o ../colorer/objs/InputSource.o ../colorer/objs/FileInputSource.o ../colorer/objs/HTTPInputSource.o ../colorer/objs/JARInputSource.o ../colorer/objs/SharedInputSource.o ../colorer/objs/Writer.o ../colorer/objs/StreamWriter.o ../colorer/objs/FileWriter.o ../colorer/objs/ParserFactory.o ../colorer/objs/ErrorHandlerWriter.o ../colorer/objs/FileErrorHandler.o ../colorer/objs/LineRegionsCompactSupport.o ../colorer/objs/LineRegionsSupport.o ../colorer/objs/RegionMapperImpl.o ../colorer/objs/StyledHRDMapper.o ../colorer/objs/TextHRDMapper.o ../colorer/objs/BaseEditor.o ../colorer/objs/Outliner.o ../colorer/objs/HRCParserImpl.o ../colorer/objs/HRCParserHelpers.o ../colorer/objs/TextParserImpl.o ../colorer/objs/TextParserHelpers.o ../colorer/objs/ConsoleTools.o ../colorer/objs/TextConsoleViewer.o ../colorer/objs/TextLinesStore.o ../colorer/objs/malloc.o -shared -o libcolorer.so -lstdc++
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.4/../../../../x86_64-pc-linux-gnu/bin/ld: ../colorer/objs/crc32.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../colorer/objs/crc32.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libcolorer.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/colorer-4_beta/work/src/libcolorer'
make: *** [colorer] Error 2

!!! ERROR: dev-libs/colorer-4_beta failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  colorer-4_beta.ebuild, line 22:   Called die

!!! emake failed
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-08-14 12:49:12 UTC
OK

- this still doesn't compile on amd64 even with current beta5. 

- the makefile scripts requires quite a bit of hacking to honor CXXFLAGS set by user, same for hardcoded gcc/gcc+ (won't crosscompile).

- compiling on x86 results in the following QA issues:

 * QA Notice: The following files contain runtime text relocations
 *  Text relocations force the dynamic linker to perform extra
 *  work at startup, waste system resources, and may pose a security
 *  risk.  On some architectures, the code may not even function
 *  properly, if at all.
 *  For more information, see http://hardened.gentoo.org/pic-fix-guide.xml
 *  Please include this file in your report:
 *  /var/tmp/portage/dev-libs/colorer-5_beta/temp/scanelf-textrel.log
 * TEXTREL usr/lib/libcolorer.so


 * QA Notice: The following shared libraries lack a SONAME
 *  /var/tmp/portage/dev-libs/colorer-5_beta/image/usr/lib/libcolorer.so

- Additionally it uses bundled, very outdated zlib-1.1.4 affected by highly critical vulnerability (see Bug 99751). 

I'm marking this as WONTFIX until the package gets into shape and the above stuff is fixed. Please, report the issues upstream.