Hi ! Please find attached an ebuild for maxdb-devutils. This is needed to build maxdb from sources. MaxDb is a enterprise grade DB-system that was formaly known as SAPDB and is now maintained by mysql. The goal of this ebuild is to build maxdb on gentoo from the sources and not installing the binaries. I will submit the ebuild and patches for maxdb itself a little bit later (when i finished testing) Please be patient as this is my first ebuild. regards Mundi Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 25993 [details] maxdb-devtools-src-7.5.0.8.ebuild (new package)
Created attachment 26771 [details] maxdb-devtools-src-7.5.0.8-r1.ebuild (new version) changed the download path to the original ftp adress from sap.
Created attachment 26853 [details] maxdb-devtools-src-7.5.0.8-r2.ebuild (new version) fixed a bug in the depend list (python). sorry for this
Created attachment 27721 [details] Configure file for MaxDB Web server
Created attachment 27722 [details] MaxDB Web server startup script
Created attachment 29242 [details] maxdb-devtools-src-7.5.0.8-r3.ebuild (new version) Fixed a bug regarding the creation of the global SAP DB Registry (/usr/spool/sql/config). Thanks Aelus for reporting the bug in the forum
Created attachment 45562 [details] maxdb-devtools-src-528670.ebuild (new ebuild) This is the new version of the maxdb-buildtools that are needed to build the maxdb system from sources. This version is needed if you whant to install maxdb 7.5.0.18. I sucessfully build a maxdb on a 2004.2 type and on a 1.4 typ installation. regards mundi
Created attachment 48473 [details] maxdb-devtools-src-533920.ebuild (new ebuild)
I tried to build the tools, but get the following error message: make[3]: Entering directory `/gentoo/build/portage/maxdb-devtools-src-533920/work/TOOLSRC/sys/src/base/ptoc/ptoc' cc -DLINUX -DI386 -DSYSV -DCC -O -g -fPIC -DOPTIMIZING -DFLEX -DJOCHEN -o ptoc ptoc.c Version.c ptoc.c:69: error: conflicting types for 'malloc' ptoc.c:69: error: conflicting types for 'malloc' ptoc.c: In function `main': ptoc.c:300: warning: passing arg 2 of `signal' from incompatible pointer type ptoc.c:301: warning: passing arg 2 of `signal' from incompatible pointer type ptoc.c: At top level: ptoc.c:721: warning: static declaration of 'init_globals' follows non-static declaration ptoc.c:287: warning: previous implicit declaration of 'init_globals' was here ptoc.c:735: warning: static declaration of 'sete' follows non-static declaration ptoc.c:724: warning: previous implicit declaration of 'sete' was here make[3]: *** [ptoc] Error 1 make[3]: Leaving directory `/gentoo/build/portage/maxdb-devtools-src-533920/work/TOOLSRC/sys/src/base/ptoc/ptoc' make[2]: *** [csys] Error 2 make[2]: Leaving directory `/gentoo/build/portage/maxdb-devtools-src-533920/work/TOOLSRC/sys/src/base/ptoc' make[1]: *** [ptocall] Error 2 make[1]: Leaving directory `/gentoo/build/portage/maxdb-devtools-src-533920/work/TOOLSRC/sys/src/base' make: *** [base] Error 2
Hi! I found the following problem when I tried to use the native interface for Pytho DBI with maxdb. Unicode error when loading native libraries for Python DBI. I have sucessfully built latest maxdb-webtools-src and maxdb-webtools. When I tried to load /opt/sdb/programs/lib/python2.3/sdb/sqlmodule.so library into python, then I got the following error message: undefined symbol: PyUnicodeUCS2_FromUnicode I found a conditional define in the following header files: ./TOOLSRC/sys/src/extern/python/sdk-py22/unicodeobject.h ./TOOLSRC/sys/src/extern/python/sdk-py23/unicodeobject.h Line 79-81: #if Py_UNICODE_SIZE >= 4 #define Py_UNICODE_WIDE #endif It seems when building the devtools Py_UNICODE_SIZE is not defined, so the libraries for python are built with UCS2 support, not with UCS4. This causes the problem with python on gentoo linux. (I am using python version 2.4) I removed the conditional define, (removed lines 79 and 81, and left only #define Py_UNICODE_WIDE) and rebuilt maxdb-devtools-src and maxdb-src, then the new DBI libraries for python are working, and they are built with UCS4 support. Regards, Peter Nemeth
Created attachment 66327 [details] maxdb-devtools-src-562049.ebuild (new ebuild) This is the version needed to build maxdb version 7.6.0.12 from sources
Hi I have recently switched from gcc-3.3.6 to gcc-4.4 (on Gentoo linux). In order to compile this ebuild, I needed to patch ptoc.c. I'll attach the patch as file and add the patch to the current ebuild as comment: --- maxdb-devtools-src-562049.ebuild.ori 2005-12-18 03:10:31.000000000 +0100 +++ maxdb-devtools-src-562049.ebuild 2005-12-18 03:03:00.000000000 +0100 @@ -51,6 +51,7 @@ unpack ${A} || die cd ${WORKDIR}/${SRC_DEVTOOLDIR} + epatch ${FILESDIR}/ptoc-gcc3.4.patch ./configure }
Created attachment 74977 [details, diff] Patch to compile ptoc.c with gcc-3.4.4-r1
funny me mentioning that I work on Gentoo linux - on a gentoo bugzilla ;-) It's definteley getting late...
Created attachment 76377 [details] maxdb-devtools-src-562049-r1.ebuild (new ebuild) New ebuild for maxdb-devtools. This version is meant to be used with gcc >=3.4.4. The ebuild and the patch that it uses make the patch by Urs Joss obsolete. Thanks Urs for your work and your testing !
Created attachment 76378 [details, diff] maxdb-devtools-src-562049.patch (used by maxdb-devtools-src-562049-r1.ebuild) patch to make devtools compile with gcc 3.4.4 and to make it use the CFLAGS form /etc/make.conf
Comment on attachment 74977 [details, diff] Patch to compile ptoc.c with gcc-3.4.4-r1 Thanks a lot for your work, mundi!
(this is an automated message based on filtering criteria that matched this bug) Hello, The Gentoo Team would like to firstly thank you for your ebuild submission. We also apologize for not being able to accomendate you on a timely manor. There are simply too many new packages. Allow me to use this opportunity to introduce you to Gentoo Sunrise. The sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to commit to and all users can have ebuilds reviewed by Gentoo devs for entry into the overlay. So, the sunrise team is suggesting that you look into this and submit your ebuild to the overlay where even *you* can commit to. =) Because this is a mass message, we are also asking you to be patient with us. We anticipate a large number of requests in a short time. Thanks, On behalf of the Gentoo Sunrise Team, Jeremy. [1]: http://www.gentoo.org/proj/en/sunrise/ [2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
mysql team is not interested, dropping from cc