Summary: | Colorer Lib - a Syntaxhighlight Libary | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Holzhauer <wood-worker> |
Component: | New packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED WONTFIX | ||
Severity: | enhancement | CC: | nathan |
Priority: | Lowest | Keywords: | EBUILD |
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://colorer.sourceforge.net/ | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 105255 | ||
Attachments: |
colorer-4_beta.ebuild
colorer-4_beta-r1.ebuild colorer-4_beta-r1.ebuild colorer-4_beta-r1.ebuild |
Description
Martin Holzhauer
2005-09-08 07:14:30 UTC
Created attachment 67936 [details]
colorer-4_beta.ebuild
colorer-4_beta.ebuild
i recomend dev-libs as category
Please do not use einstall, if not inevitable. Something like "make DESTDIR=${D} install" should be used. Please fix the following and reopen: * http://dev.gentoo.org/~ciaranm/docs/mw-faq/hardcoded.txt * http://dev.gentoo.org/~ciaranm/docs/mw-faq/license.txt * http://dev.gentoo.org/~ciaranm/docs/mw-faq/redundant.txt (src_compile) * http://dev.gentoo.org/~ciaranm/docs/mw-faq/einstall.txt Created attachment 68282 [details]
colorer-4_beta-r1.ebuild
colorer-4_beta-r1.ebuild
ok i hope this ebuild is better
(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. ;) Created attachment 68290 [details]
colorer-4_beta-r1.ebuild
colorer-4_beta-r1.ebuild
ok now with || in license
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. 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. ;) 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
Reopen. Re-assign. 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 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 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. |