Bug 113538 - databases/unixODBC fails to copy required INI files for MySQL ODBC (creates useless empty INI files) - needed for OpenOffice
Summary: databases/unixODBC fails to copy required INI files for MySQL ODBC (creates u...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alejandro Pulver
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-10 19:30 UTC by User1001
Modified: 2007-09-30 22:10 UTC (History)
0 users

See Also:


Attachments
pkg-message (268 bytes, text/plain)
2007-06-10 19:30 UTC, User1001
no flags Details
file.diff (422 bytes, patch)
2007-06-10 19:30 UTC, User1001
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description User1001 2007-06-10 19:30:04 UTC

Installing unixODBC "as is" creates two empty INI files in /usr/local/etc,

Makefile:       -touch $(DESTDIR)${sysconfdir}/odbcinst.ini
Makefile:       -touch $(DESTDIR)${sysconfdir}/odbc.ini

In order to use ODBC with OpenOffice/MySQL ODBC, proper INI files are required. While the MySQL DRIVER is not built, the requisite INI files for MySQL DO exist in /Drivers/MySQL

./Drivers/MySQL/iodbc.ini
./Drivers/MySQL/odbc.ini

I am not sure what to do about the unixODBC/Makefile which creates the empty INI files, which are really useless as is. Perhaps the Makefile should be patched to NOT create the empty INI files, but I will leave that decision up to somebody else.

With the appropriate MySQL ODBC INI files in place, access to and use of MySQL databases from OpenOffice-2 works.

How-To-Repeat: 

make install
Comment 1 Alejandro Pulver freebsd_committer freebsd_triage 2007-09-30 21:13:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->alepulver

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-09-30 22:09:48 UTC
alepulver    2007-09-30 21:09:42 UTC

  FreeBSD ports repository

  Modified files:
    databases/unixODBC   Makefile pkg-plist 
  Added files:
    databases/unixODBC/files pkg-message.in 
  Log:
  - Install MySQL sample configuration files in EXAMPLESDIR.
  - Add pkg-message to let the user know about the example configuration files
    and how to use them.
  - Bump PORTREVISION.
  - Restrict CONFLICTS as portlint(1) suggests.
  - Clean up.
  
  PR:             ports/113538
  Submitted by:   "User1001" <supraexpress@globaleyes.net>
  Reworked by:    alepulver (myself)
  
  Revision  Changes    Path
  1.53      +14 -7     ports/databases/unixODBC/Makefile
  1.1       +9 -0      ports/databases/unixODBC/files/pkg-message.in (new)
  1.28      +4 -0      ports/databases/unixODBC/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Alejandro Pulver freebsd_committer freebsd_triage 2007-09-30 22:10:05 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!