Hi, dev-db/mysqlnavigator fails to compile because there are some lines wrong wrapped in src/mysql/about/about.cxx See attached patch for the ebuilds and a patch for the files directory. Sven
Created attachment 24831 [details, diff] mysqlnavigator.ebuilds.patch for the ebuilds
Created attachment 24832 [details, diff] about.cxx-long-lines.patch for files directory
In my system with this patch compile fine but it is normal this message ? ...... .......... config.status: executing depfiles commands make: opzione non valida -- D make: opzione non valida -- U make: opzione non valida -- E make: opzione non valida -- _ make: opzione non valida -- O make: opzione non valida -- L make: opzione non valida -- D make: opzione non valida -- _ make: opzione non valida -- F make: opzione non valida -- U make: opzione non valida -- N Usage: make [options] [target] ... Options: -b, -m Ignored for compatibility. -B, --always-make Unconditionally make all targets. -C DIRECTORY, --directory=DIRECTORY Change to DIRECTORY before doing anything. -d Print lots of debugging information. --debug[=FLAGS] Print various types of debugging information. -e, --environment-overrides Environment variables override makefiles. -f FILE, --file=FILE, --makefile=FILE Read FILE as a makefile. -h, --help Print this message and exit. -i, --ignore-errors Ignore errors from commands. -I DIRECTORY, --include-dir=DIRECTORY Search DIRECTORY for included makefiles. -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg. -k, --keep-going Keep going when some targets can't be made. -l [N], --load-average[=N], --max-load[=N] Don't start multiple jobs unless load is below N. -n, --just-print, --dry-run, --recon Don't actually run any commands; just print them. -o FILE, --old-file=FILE, --assume-old=FILE Consider FILE to be very old and don't remake it. -p, --print-data-base Print make's internal database. -q, --question Run no commands; exit status says if up to date. -r, --no-builtin-rules Disable the built-in implicit rules. -R, --no-builtin-variables Disable the built-in variable settings. -s, --silent, --quiet Don't echo commands. -S, --no-keep-going, --stop Turns off -k. -t, --touch Touch targets instead of remaking them. -v, --version Print the version number of make and exit. -w, --print-directory Print the current directory. --no-print-directory Turn off -w, even if it was turned on implicitly. -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE Consider FILE to be infinitely new. --warn-undefined-variables Warn when an undefined variable is referenced. This program built for i686-pc-linux-gnu Report bugs to <bug-make@gnu.org> >>> Install mysqlnavigator-1.4.2 into /var/tmp/portage/mysqlnavigator-1.4.2/image/ category dev-db
I have correct ebuild for compile this package
Created attachment 28577 [details] NEW ebuild This is my ebuild for correct problem.
ebuild with patch works for me, although I also get the "DUE_OLD_FUN" error. :)
Any reason the new ebuild and patch haven't made it into portage?
In the last ebuild, "emake -DUSE_OLD_FUNCTIONS=1" still has to be changed in "emake" without parameters. For the rest, the new ebuild seems to works fine. It would be nice to have this patch in portage.
Created attachment 38689 [details, diff] collected the previous patches to one for portage-tree I've collected the patches before to one patchfile, to be applied with '-p1' directly in portage-tree, with one additional fix: To use 'epatch', the line 'inherit eutils' was missing (seen in other ebuilds).
I have test ebuild with patch and install well. When you put stable in portage ?
just wanted to add that the patch works fine here too, thanks !!
Hello, I get this after appling the porta-tree patch : --------------------------------------------------------- mainwindowslotschema.cxx: In member function `void MainWindow::slot_create_database(int)': mainwindowslotschema.cxx:518: error: `mysql_create_db' undeclared (first use this function) mainwindowslotschema.cxx:518: error: (Each undeclared identifier is reported only once for each function it appears in.) mainwindowslotschema.cxx: In member function `void MainWindow::slot_delete_database(int)': mainwindowslotschema.cxx:608: error: `mysql_drop_db' undeclared (first use this function) /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3/bits/stl_map.h: At top level: ../../../pics/collapse.xpm:2: warning: `const char*collapse_xpm[18]' defined but not used ../../../pics/expand.xpm:2: warning: `const char*expand_xpm[18]' defined but not used ----------------------------- maybe for gcc-3.3.4 ?
ok so I go to /usr/portage. I do a patch -p1 < patchfile. Everything seems ok. The I do an emerge mysqlnavigator and get the following error. >>> md5 src_uri ;-) mysqlnavigator-1.4.2-gcc34.patch.tar.gz >>> Unpacking source... >>> Unpacking mysqlnavigator-1.4.2.tar.gz to /var/tmp/portage/mysqlnavigator-1.4.2/work >>> Unpacking mysqlnavigator-1.4.2-gcc34.patch.tar.gz to /var/tmp/portage/mysqlnavigator-1.4.2/work * Applying mysqlnavigator-1.4.2-gcc34.patch ... [ ok ] * Applying about.cxx-long-lines.patch ... * Failed Patch: about.cxx-long-lines.patch! * * Include in your bugreport the contents of: * * /var/tmp/portage/mysqlnavigator-1.4.2/temp/about.cxx-long-lines.patch-29704.out !!! ERROR: dev-db/mysqlnavigator-1.4.2 failed. !!! Function epatch, Line 402, Exitcode 0 !!! Failed Patch: about.cxx-long-lines.patch! !!! If you need support, post the topmost build error, NOT this status message. =========================================== /var/tmp/portage/mysqlnavigator-1.4.2/temp/about.cxx-long-lines.patch-29704.out says ***** about.cxx-long-lines.patch ***** ====================================== PATCH COMMAND: patch -p0 -g0 < /usr/portage/dev-db/mysqlnavigator/files/about.cxx-long-lines.patch ====================================== patching file src/mysql/about/about.cxx Hunk #1 FAILED at 82. 1 out of 1 hunk FAILED -- saving rejects to file src/mysql/about/about.cxx.rej ====================================== PATCH COMMAND: patch -p1 -g0 < /usr/portage/dev-db/mysqlnavigator/files/about.cxx-long-lines.patch ====================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- src/mysql/about/about.cxx.orig 2004-01-28 03:18:38.600810283 +0000 |+++ src/mysql/about/about.cxx 2004-01-28 03:18:49.195573104 +0000 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ====================================== PATCH COMMAND: patch -p2 -g0 < /usr/portage/dev-db/mysqlnavigator/files/about.cxx-long-lines.patch ====================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- src/mysql/about/about.cxx.orig 2004-01-28 03:18:38.600810283 +0000 |+++ src/mysql/about/about.cxx 2004-01-28 03:18:49.195573104 +0000 -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored ====================================== I cant find the src/mydql/ directory anywhere. BTW How long does it take for this to get into portage?
yes please put this into portage! had to add "inherit eutils" at the beginning of the ebuild to aviod an "epatch not found " error
I get the same error as comment #12. Should I open a new bug for this problem? Here is my emerge --info: Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 13 2005, 17:08:31)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -mtune=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/local/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X aac acpi alsa apm arts avi berkdb bitmap-fonts bzlib cddb cdr crypt cups curl emboss encode esd f77 fam flac foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imagemagick imlib innodb ipv6 ithreads java jpeg jpeg2k junit kde libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls nptl offensive oggvorbis opengl oss pam pdflib perlpic png pthreads python qt quicktime readline ruby sdl spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts vim-with-x xine xml xml2 xmms xprint xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
I successfully emerged dev-db/mysqlnavigator-1.4.1 after some minor modifications. here they are: about.cxx: ---------- line 85: instruction line is wrapped on some lines. correct unwrapping that lines. mainwindowslotschema.cxx ------------------------ due to mysql changes in their headers, line 10: add: #define USE_OLD_FUNCTIONS line 11: add: #include "mysql.h" this will make mysqlnavigator use old functions for compatibility hope this helps. ;) thanks to all gentoo team, aka miknix, a gentoo fan.
Created attachment 58415 [details] These are the fixed sources for dev-db/mysqlnavigator-1.4.1. Replace to sucessfully emerge.
Created attachment 58477 [details, diff] Patch for emerging dev-db/mysqlnavigator-1.4.1 successfully and without errors. (tar.bz2 compressed) This is dev-db/mysqlnavigator-1.4.1 patch for emerging it without errors.
Comment on attachment 58477 [details, diff] Patch for emerging dev-db/mysqlnavigator-1.4.1 successfully and without errors. (tar.bz2 compressed) this is the patch based on my minor alterations commented before.
This could go to portage reading from the comments..
looks like it is an ancient issue, with a simple fix. Is there a good reason for it not to be added to portage?
Created attachment 63145 [details] more clean patch file This is a tarball of two separate patches one for the about.cxx file and one for the mysql header fix. I've removed the unnecessary newline patches since they make the patch a bit complex. I hope this one is clear enough to find its way into CVS. I'd like to suggest to add this (or the last more complex) patch to CVS as soon as possible.
PING. I just patched the file manually to get it running (didn't look for the bugzilla entry before). Please put this into portage. Thanks, Peter
1st: Michael Hanselmann, please mark stable 1.4.2 on ppc (or remove stable to 1.4.1 ;) Ok, let's start: - mysqlnavigator-1.4.[21] now support >=dev-db/mysql-4.1.3 - applied blindly patch from #c22 (only compile test done, never run it, 1.4.2 has) - It's dead and burried upstream - mysqlnavigator-1.4.1 need big patches, 1.4.2 not (temporary they are in CVS). - 1.4.2 is now stable on x86 (the only other arch stable for 1.4.1) - Personally I want to keep one and only one version of this ebuild. Speak now or 1.4.1 will disappear from the tree soon.
Stable on ppc -- and that comment about CC: was meant for future, not about this bug. And please add the arch alias, not a specific developer.
17 Aug 2005; Francesco Riosa <vivo@gentoo.org> +files/mysqlnavigator-1.4.1-about.patch, +files/mysqlnavigator-1.4.1-mysql.patch, +files/mysqlnavigator-1.4.2-mysql-gt-4.1.3.patch, mysqlnavigator-1.4.1.ebuild, mysqlnavigator-1.4.2.ebuild: Fix bug #40217, add support for >=mysql-4.1.3 Closing.