Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159026 - dev-db/myodbc-3.51.12 - pkg_config creates empty odbc.ini and odbcinst.ini
Summary: dev-db/myodbc-3.51.12 - pkg_config creates empty odbc.ini and odbcinst.ini
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low minor
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
: 226883 254794 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-24 10:50 UTC by Daniel Plaza
Modified: 2009-01-13 10:21 UTC (History)
2 users (show)

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


Attachments
diff to the actual ebuild (diff,1.79 KB, patch)
2007-09-04 22:10 UTC, GNUtoo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Plaza 2006-12-24 10:50:38 UTC
After installing myodbc emerge says: 

If this is a new install, please run the following command
to configure the MySQL ODBC drivers and sources:
einfo "emerge --config =dev-db/myodbc-3.51.12

  If I run this command I get:

Configuring pkg...Configuring pkg...

 * Building odbc.ini
/usr/bin/m4: /var/db/pkg/dev-db/myodbc-3.51.12/files/odbc.ini.m4: No such file or directory
 * Building odbcinst.ini
/usr/bin/m4: /var/db/pkg/dev-db/myodbc-3.51.12/files/odbcinst.ini.m4: No such file or directory
 * Installing MySQL ODBC driver ...                                   [ok]
 * Installing MySQL ODBC DSN ...                                      [ok]

  Result are empty odbc.ini and odbcinst.ini .
Comment 1 Doktor 2007-04-23 19:05:27 UTC
Same problem.
Comment 2 GNUtoo 2007-08-30 21:15:14 UTC
the problem here are that the m4 files are missing...
/usr/bin/m4 -D__PN__=${PN} -D__PF__=${PF} ${FILESDIR}/${i}.m4 >${T}/${i}
Comment 3 GNUtoo 2007-08-30 21:17:21 UTC
# find /var/tmp/portage/dev-db/myodbc-3.51.12/ -iname *.m4
doesn't return anyting
Comment 4 GNUtoo 2007-08-30 21:19:32 UTC
they are even missing from the package...
# equery files myodbc
[ Searching for packages matching myodbc... ]
* Contents of dev-db/myodbc-3.51.12:
/usr
/usr/bin
/usr/bin/myodbc3i
/usr/bin/myodbc3m
/usr/lib
/usr/lib/libmyodbc3-3.51.12.so
/usr/lib/libmyodbc3.a
/usr/lib/libmyodbc3.la
/usr/lib/libmyodbc3.so -> libmyodbc3-3.51.12.so
/usr/lib/libmyodbc3_r-3.51.12.so
/usr/lib/libmyodbc3_r.a
/usr/lib/libmyodbc3_r.la
/usr/lib/libmyodbc3_r.so -> libmyodbc3_r-3.51.12.so
/usr/share
/usr/share/doc
/usr/share/doc/myodbc-3.51.12
/usr/share/doc/myodbc-3.51.12/README.bz2

Comment 5 GNUtoo 2007-08-30 21:22:32 UTC
i have found them!!!
$ ls -l /usr/portage/dev-db/myodbc/files/
total 16
-rw-r--r-- 1 portage portage 517 2004-07-18 05:12 odbc.ini.m4
-rw-r--r-- 1 portage portage 233 2004-07-18 05:12 odbcinst.ini.m4

Comment 6 Daniel Plaza 2007-08-30 22:21:54 UTC
(In reply to comment #5)
> i have found them!!!
> $ ls -l /usr/portage/dev-db/myodbc/files/
> total 16
> -rw-r--r-- 1 portage portage 517 2004-07-18 05:12 odbc.ini.m4
> -rw-r--r-- 1 portage portage 233 2004-07-18 05:12 odbcinst.ini.m4
> 

The problem isn't missing files. The problem is that FILESDIR variable has not the expeted value "${PORTDIR}/${CATEGORY}/${PN}/files" in pkg_config function.
Comment 7 GNUtoo 2007-09-04 16:07:39 UTC
according to zlin in #gentoo-dev-help FILESDIR is not avaliable during pkg_config
so we must install theses 2 files somewhere
i didn't know where to install them so he advised me to inistall them in /usr/share/${P}/
Comment 8 GNUtoo 2007-09-04 22:10:22 UTC
Created attachment 130044 [details, diff]
diff to the actual ebuild

with the help of zlin we were able to:
->fix the bug
->inmprove the ebuild in order to have a better quoting
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-14 23:59:11 UTC
*** Bug 226883 has been marked as a duplicate of this bug. ***
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-11-01 09:41:32 UTC
fixed in 3.51.26_p1127-r1
Comment 11 Jean-Claude Repetto 2009-01-13 10:21:13 UTC
*** Bug 254794 has been marked as a duplicate of this bug. ***