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 .
Same problem.
the problem here are that the m4 files are missing... /usr/bin/m4 -D__PN__=${PN} -D__PF__=${PF} ${FILESDIR}/${i}.m4 >${T}/${i}
# find /var/tmp/portage/dev-db/myodbc-3.51.12/ -iname *.m4 doesn't return anyting
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
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
(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.
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}/
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
*** Bug 226883 has been marked as a duplicate of this bug. ***
fixed in 3.51.26_p1127-r1
*** Bug 254794 has been marked as a duplicate of this bug. ***