Re: [Cooker] Beta-test Mandrake Update Robot on your Cooker!
> engine.cpp:289: request for member `count' in `matches', which is of non-aggregate >type `_dbiIndexSet *' > engine.cpp:291: request for member `recs' in `matches', which is of non-aggregate >type `_dbiIndexSet *' > engine.cpp:291: `rpmdbGetRecord' undeclared (first use this function) > engine.cpp:313: `dbiFreeIndexRecord' undeclared (first use this function) > > [...] > > > - Dependencies added with: mailx, gnupg, crond, anacron, curl-lib > > beware, mailx is dangerous, you'd better use directly /usr/sbin/sendmail. > (see bugtraq for more) > Ok I got it to compile. Here is the patch needed if you want to compile on mdk 7.2, and if you want to compile on cooker because of the stricter g++ you will need to disable -Werror in the Makefile to directly fix the problem on line 591. I don't know the intention of whether this should return void or whether it should really return a value so I left that unfixed. -- Geoffrey Lee <[EMAIL PROTECTED]> 李長風 http://devel.mandrakesoft.com/~snailtalk ftp://devel.mandrakesoft.com/pub/people/snailtalk $/usr/games/fortune Anything that can go wrong will go Segmentation fault (core dumped) $ diff -u MandrakeUpdateRobot-0.8-old/AUTHORS MandrakeUpdateRobot-0.8/AUTHORS --- MandrakeUpdateRobot-0.8-old/AUTHORS Tue Feb 6 07:51:37 2001 +++ MandrakeUpdateRobot-0.8/AUTHORS Sun Feb 25 11:05:10 2001 @@ -1 +1,3 @@ Prana <[EMAIL PROTECTED]> +Patches from Pixel <[EMAIL PROTECTED]>, + Geoffrey Lee <[EMAIL PROTECTED]> diff -u MandrakeUpdateRobot-0.8-old/MandrakeUpdateRobot.spec MandrakeUpdateRobot-0.8/MandrakeUpdateRobot.spec --- MandrakeUpdateRobot-0.8-old/MandrakeUpdateRobot.specSun Feb 25 09:21:29 2001 +++ MandrakeUpdateRobot-0.8/MandrakeUpdateRobot.specSun Feb 25 11:16:36 2001 @@ -1,6 +1,6 @@ %define name MandrakeUpdateRobot %define version 0.8 -%define release 1mdk +%define release 2mdk Name: %{name} Summary: Console-based Mandrake update tool for automatic upgrade daemon in a large corporate network @@ -9,7 +9,7 @@ Copyright: GPL Group: System/Base URL: http://www.cyest.org -Source:%{name}-%{version}.tar.bz2 +Source:http://www.cyest.org/downloads/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version} BuildRequires: curl-devel Requires: curl-lib, gnupg >= 1.0.2-2mdk @@ -34,10 +34,12 @@ %setup -q %build -%make ### Note to Pixel - Uhmm.. I can't use this, exception handling must be enabled - try - catch #OPTIMIZE="$RPM_OPT_FLAGS" +### Use sed to fix the OPTIMIZE flags +OPTIMIZE=$(echo $RPM_OPT_FLAGS | sed -e s/fno-exceptions/fexceptions/) +%make %install [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} @@ -61,6 +63,12 @@ %{_sbindir}/* %changelog +* Sun Feb 25 2001 Geoffrey Lee <[EMAIL PROTECTED]> 0.8-2mdk +- Put a fix so that it acutally compiles on Mandrake 7.2 and compiles + on cooker if you remove -Werror. This is a known problem as up till + line 591 in engine.cpp it does not return for a function of bool type. +- Use our own build flags, but enable exception handling. + * Sat Feb 24 2001 Pixel <[EMAIL PROTECTED]> 0.8-1mdk - 0.8 - Merge Pixel's fix diff -u MandrakeUpdateRobot-0.8-old/engine.cpp MandrakeUpdateRobot-0.8/engine.cpp --- MandrakeUpdateRobot-0.8-old/engine.cpp Sun Feb 25 09:02:33 2001 +++ MandrakeUpdateRobot-0.8/engine.cpp Sun Feb 25 11:07:42 2001 @@ -295,7 +295,7 @@ { if (iterator) { - rpm_header = rpmdbNextIterator(iterator) + rpm_header = rpmdbNextIterator(iterator); #endif if (rpm_header) { diff -u MandrakeUpdateRobot-0.8-old/engine.h MandrakeUpdateRobot-0.8/engine.h --- MandrakeUpdateRobot-0.8-old/engine.hSun Feb 25 09:01:01 2001 +++ MandrakeUpdateRobot-0.8/engine.hSun Feb 25 11:04:08 2001 @@ -40,7 +40,7 @@ #include #include -#ifdef RPMDBI_PACKAGES +#ifndef RPMDBI_PACKAGES #include #endif
Re: [Cooker] Beta-test Mandrake Update Robot on your Cooker!
Okay, try again: http://www.cyest.org/downloads/MandrakeUpdateRobot-0.8-1mdk.src.rpm http://www.cyest.org/downloads/MandrakeUpdateRobot.spec http://www.cyest.org/downloads/MandrakeUpdateRobot-0.8.tar.bz2 Thanks, Prana Pixel wrote: > g++ -frtti -g -O2 -Werror -I/usr/include -I/usr/include/rpm -c util.cpp -o util.o > engine.cpp: In method `bool drakupdate::is_rpm_package_installed(string *, string *, >string *, string *)': > engine.cpp:287: `rpmdbFindPackage' undeclared (first use this function) > engine.cpp:287: (Each undeclared identifier is reported only once for each function >it appears in.) > engine.cpp:289: request for member `count' in `matches', which is of non-aggregate >type `_dbiIndexSet *' > engine.cpp:291: request for member `recs' in `matches', which is of non-aggregate >type `_dbiIndexSet *' > engine.cpp:291: `rpmdbGetRecord' undeclared (first use this function) > engine.cpp:313: `dbiFreeIndexRecord' undeclared (first use this function) > > [...] > > > - Dependencies added with: mailx, gnupg, crond, anacron, curl-lib > > beware, mailx is dangerous, you'd better use directly /usr/sbin/sendmail. > (see bugtraq for more) > > cu Pixel. -- Prana <[EMAIL PROTECTED]> http://www.cyest.org My GnuPG Key ID: 0x33343FD3 (2000-07-21) Key fingerprint = F1FB 1F76 8866 0F40 A801 D9DA 6BED 6641 3334 3FD3 http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x33343FD3
Re: [Cooker] Beta-test Mandrake Update Robot on your Cooker!
Hehehe.. that's odd. If you see my source code, it says this: #ifdef RPMDBI_PACKAGES #define RPM_VERSION_4 #else #define RPM_VERSION_3 #endif then I use #ifdef RPM_VERSION_4 ... and so on.. hrhmm ... what's wrong? What about the Makefile? Is it okay? Thanks, Prana Pixel wrote: > lets see ;pp > > > - Compatibility with RPM 4.0 is improved > > g++ -frtti -g -O2 -Werror -I/usr/include -I/usr/include/rpm -c util.cpp -o util.o > engine.cpp: In method `bool drakupdate::is_rpm_package_installed(string *, string *, >string *, string *)': > engine.cpp:287: `rpmdbFindPackage' undeclared (first use this function) > engine.cpp:287: (Each undeclared identifier is reported only once for each function >it appears in.) > engine.cpp:289: request for member `count' in `matches', which is of non-aggregate >type `_dbiIndexSet *' > engine.cpp:291: request for member `recs' in `matches', which is of non-aggregate >type `_dbiIndexSet *' > engine.cpp:291: `rpmdbGetRecord' undeclared (first use this function) > engine.cpp:313: `dbiFreeIndexRecord' undeclared (first use this function) -- Prana <[EMAIL PROTECTED]> http://www.cyest.org My GnuPG Key ID: 0x33343FD3 (2000-07-21) Key fingerprint = F1FB 1F76 8866 0F40 A801 D9DA 6BED 6641 3334 3FD3 http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x33343FD3
Re: [Cooker] Beta-test Mandrake Update Robot on your Cooker!
Prana <[EMAIL PROTECTED]> writes: [...] > I have updated Mandrake Update Robot to v0.8 and applied patches from > Pixel and probably solve the incompatibility between RPM v3 and RPM v4. > This one suppose to work for both RPM 3 and RPM 4. If it has a compile > problem with RPM 4, please let me know. [...] lets see ;pp > - Compatibility with RPM 4.0 is improved g++ -frtti -g -O2 -Werror -I/usr/include -I/usr/include/rpm -c util.cpp -o util.o engine.cpp: In method `bool drakupdate::is_rpm_package_installed(string *, string *, string *, string *)': engine.cpp:287: `rpmdbFindPackage' undeclared (first use this function) engine.cpp:287: (Each undeclared identifier is reported only once for each function it appears in.) engine.cpp:289: request for member `count' in `matches', which is of non-aggregate type `_dbiIndexSet *' engine.cpp:291: request for member `recs' in `matches', which is of non-aggregate type `_dbiIndexSet *' engine.cpp:291: `rpmdbGetRecord' undeclared (first use this function) engine.cpp:313: `dbiFreeIndexRecord' undeclared (first use this function) [...] > - Dependencies added with: mailx, gnupg, crond, anacron, curl-lib beware, mailx is dangerous, you'd better use directly /usr/sbin/sendmail. (see bugtraq for more) cu Pixel.
[Cooker] Beta-test Mandrake Update Robot on your Cooker!
Hiya guys, I have updated Mandrake Update Robot to v0.8 and applied patches from Pixel and probably solve the incompatibility between RPM v3 and RPM v4. This one suppose to work for both RPM 3 and RPM 4. If it has a compile problem with RPM 4, please let me know. Webpage: http://www.cyest.org/drakupdatetxt/ Changes: http://www.cyest.org/drakupdatetxt/ChangeLog SRPMS: http://www.cyest.org/downloads/MandrakeUpdateRobot-0.8-1mdk.src.rpm Source: http://www.cyest.org/downloads/MandrakeUpdateRobot-0.8.tar.bz2 It needs curl-lib: http://www.cyest.org/downloads/curl-lib-7.6-1mdk.i586.rpm http://www.cyest.org/downloads/curl-devel-7.6-1mdk.i586.rpm Day 8 - Feb 24, 2001 - This version is compatible with Linux Mandrake Cooker i586, alpha, sparc, and it's backward compatible with Linux Mandrake 7.1 - 7.2, and it's compatible with Corporate Server 1.0.1, Linux Mandrake 7.1 on Intel i586, Alpha, Sparc SPARC 7.1. - Designed for the upcoming Linux Mandrake 8.0. - IMPORTANT: Please delete the older /etc/drakupdatetxt.conf from prior versions first before installing this program - Fixed: MD5 and GnuPG signature checking - Fixed: Installation and its dependencies - Fixed: Use HTTP proxy tunnelling for certain proxy servers - The e-mail report generated by the robot is much more complete, with description of updates and vice versa - DrakUpdateSetup now offers HTTP tunneling option - Compatibility with RPM 4.0 is improved - Since I forgot to add rpmTransFree last time, now I added it - Dependencies added with: mailx, gnupg, crond, anacron, curl-lib - Added question if the user wants to put it in /etc/cron.daily - 1765 lines of code total (reduce some stuff, add some stuff) - Now study for my midterm exams Day 7 - Feb 12, 2001 - Compatibility with the new RPM 4.0 for Linux Mandrake Cooker, sync with DindinX's rpmdrake - TODO: rpmCheckSig ... Thanks, Prana -- Prana <[EMAIL PROTECTED]> http://www.cyest.org My GnuPG Key ID: 0x33343FD3 (2000-07-21) Key fingerprint = F1FB 1F76 8866 0F40 A801 D9DA 6BED 6641 3334 3FD3 http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x33343FD3