Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40217 - dev-db/mysqlnavigator fails to compile because of wrong line wraps
Summary: dev-db/mysqlnavigator fails to compile because of wrong line wraps
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Francesco R. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-02 13:18 UTC by Sven Wegener
Modified: 2006-07-22 09:06 UTC (History)
5 users (show)

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


Attachments
mysqlnavigator.ebuilds.patch for the ebuilds (mysqlnavigator.ebuilds.patch,704 bytes, patch)
2004-02-02 13:19 UTC, Sven Wegener
Details | Diff
about.cxx-long-lines.patch for files directory (about.cxx-long-lines.patch,29.41 KB, patch)
2004-02-02 13:20 UTC, Sven Wegener
Details | Diff
NEW ebuild (mysqlnavigator-1.4.2.ebuild,1.08 KB, text/plain)
2004-04-02 07:52 UTC, Antonio
Details
collected the previous patches to one for portage-tree (portage-mysqlnavigator.patch,31.72 KB, patch)
2004-09-01 08:28 UTC, Michael Haubenwallner (RETIRED)
Details | Diff
These are the fixed sources for dev-db/mysqlnavigator-1.4.1. Replace to sucessfully emerge. (fix.tar.bz2,11.25 KB, application/octet-stream)
2005-05-08 16:21 UTC, Angelo Arrifano (RETIRED)
Details
Patch for emerging dev-db/mysqlnavigator-1.4.1 successfully and without errors. (tar.bz2 compressed) (mysqlnavigator-1.4.1-gentoo-patch.diff.tar.bz2,14.22 KB, patch)
2005-05-09 07:18 UTC, Angelo Arrifano (RETIRED)
Details | Diff
more clean patch file (mysqlnavigator-1.4.1-gentoo-patches.tar.bz2,7.36 KB, application/octet-stream)
2005-07-11 07:22 UTC, Andre Hinrichs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Wegener gentoo-dev 2004-02-02 13:18:43 UTC
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
Comment 1 Sven Wegener gentoo-dev 2004-02-02 13:19:47 UTC
Created attachment 24831 [details, diff]
mysqlnavigator.ebuilds.patch for the ebuilds
Comment 2 Sven Wegener gentoo-dev 2004-02-02 13:20:22 UTC
Created attachment 24832 [details, diff]
about.cxx-long-lines.patch for files directory
Comment 3 Antonio 2004-03-03 09:14:26 UTC
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
Comment 4 Antonio 2004-04-02 07:51:25 UTC
I have correct ebuild for compile this package
Comment 5 Antonio 2004-04-02 07:52:07 UTC
Created attachment 28577 [details]
NEW ebuild

This is my ebuild for correct problem.
Comment 6 Ben Thomas 2004-04-03 06:54:51 UTC
ebuild with patch works for me, although I also get the "DUE_OLD_FUN" error. :)
Comment 7 Ben Torkington 2004-06-08 15:51:20 UTC
Any reason the new ebuild and patch haven't made it into portage?
Comment 8 Toon Verstraelen 2004-06-29 01:32:38 UTC
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.
Comment 9 Michael Haubenwallner (RETIRED) gentoo-dev 2004-09-01 08:28:48 UTC
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).
Comment 10 Antonio 2004-09-02 00:47:53 UTC
I have test ebuild with patch and install well.
When you put stable in portage ?
Comment 11 Stefan Vunckx 2004-10-05 13:53:14 UTC
just wanted to add that the patch works fine here too, thanks !!
Comment 12 Andrea 2004-10-21 09:32:16 UTC
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 ?
Comment 13 Mark 2004-11-18 20:42:54 UTC
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?
Comment 14 Simon Bühler 2005-01-11 17:43:37 UTC
yes please put this into portage!
had to add "inherit eutils" at the beginning of the ebuild to aviod an "epatch not found " error
Comment 15 matthew.cline 2005-03-06 10:01:28 UTC
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
Comment 16 Angelo Arrifano (RETIRED) gentoo-dev 2005-05-08 16:15:06 UTC
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.
Comment 17 Angelo Arrifano (RETIRED) gentoo-dev 2005-05-08 16:21:58 UTC
Created attachment 58415 [details]
These are the fixed sources for dev-db/mysqlnavigator-1.4.1. Replace to sucessfully emerge.
Comment 18 Angelo Arrifano (RETIRED) gentoo-dev 2005-05-09 07:18:23 UTC
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 19 Angelo Arrifano (RETIRED) gentoo-dev 2005-05-09 07:21:53 UTC
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.
Comment 20 Tobias Sager 2005-05-31 06:05:57 UTC
This could go to portage reading from the comments..
Comment 21 Tiago Freire 2005-06-01 13:43:31 UTC
looks like it is an ancient issue, with a simple fix. Is there a good reason for
it not to be added to portage?
Comment 22 Andre Hinrichs 2005-07-11 07:22:27 UTC
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.
Comment 23 Peter Doerfler 2005-08-09 02:33:55 UTC
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 
Comment 24 Francesco R. (RETIRED) gentoo-dev 2005-08-17 11:59:19 UTC
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.
Comment 25 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-08-17 12:34:01 UTC
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.
Comment 26 Jakub Moc (RETIRED) gentoo-dev 2006-07-22 09:06:51 UTC
  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.