This splits the unixodbc package into separate packages (libodbc,
libodbccr, libodbcinst). This also keeps the unixodbc package for
backwards compatibility.
The Internet News Server driver (libnn) is omitted as the driver README
describes it as "in mid-hack"[1] and it is doubtful if there is any
real-world use for it.
This also updates the package license information and URL, and sets
PKG_BUILD_PARALLEL and HOST_BUILD_PARALLEL.
[1]: 9b31cd228d/Drivers/nn/README (L17-L19)
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Replace INCLUDE_PREFIX in config.h for host odbc_config instead of
specifying includedir to target configure.
This also updates the prefixes in unixodbc_conf.h to keep config.h and
unixodbc_conf.h in sync.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This uses the default InstallDev directory instead of a "tmp" directory
to transfer include files from the target package to host build.
Using a "tmp" directory implies that the files inside are safe to
delete, but without these include files the host build will not succeed.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Since the host odbc_config returns target-specific information, it
should be built and placed into target-specific locations.
This changes HOST_BUILD_DIR to be in $(BUILD_DIR)/host, and installs
odbc_config inside $(STAGING_DIR)/host.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
As unixodbc_conf.h is now generated by configure instead of
odbc_config[1], it is not necessary to use a custom copy of the header
file anymore.
[1]: be3341cdc6
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
'cp' fails with a text file busy error if it tries to overwrite an
executable file that is running. 'install' unlinks the file first, so
it will not cause the problem.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Save a copy of unixodbc_conf.h in STAGING_DIR to be used by host build.
Use STAGING_DIR/tmp/unixodbc instead of include.
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
For host compilation, the configure-generated config.h from the target
compilation is used in place of the host-generated file. When the
target package is compiled with clean-build, that file is gone. This
saves the file under $(STAGING_DIR), and fetch it from there.
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
When copying config.h from PKG_BUILD_DIR to HOST_BUILD_DIR, LIB_PREFIX
is set to /usr/lib. Then when odbc_config is run, it reports /usr/lib
as the --lib-dir, and in --libs as well, and dependent packages may
fail. Set it to $(STAGING_DIR)/usr/lib to make it right.
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Switched to HTTP as FTP can be problematic. uscan for example has issues
figuring out the latest version.
Added PKG_CPE_ID for proper CVE tracking.
Reorganized Makefile for consistency with other projects.
Add PKG_FIXUP:=autoreconf, needed to avoid host lib leakage on hosts
with unixodbc installed.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
[add PKG_FIXUP:=autoreconf - thanks jow]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
This reverts commit 6d6c15e1e9.
The package no longer cross-compiles when building for the x86/64 target
on an x86/64, resulting in the following error:
Package unixodbc is missing dependencies for the following libraries:
libc.so.6
libpthread.so.0
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Switched to HTTP as FTP can be problematic. uscan for example has issues
figuring out the latest version.
Added PKG_CPE_ID for proper CVE tracking.
Reorganized Makefile for consistency with other projects.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git
(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)
Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
build odbc_config for host so drivers may use it to figure out build
details, patch odbc_config to return target specific values from
unixodbc_conf.h.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This allows ODBC drivers to create odbcinst.ini-snippets in
/etc/odbcinst.ini.d/ which will be assembled into
/tmp/etc/odbcinst.ini. /etc/odbcinst.ini is provided as a symlink
pointing to /tmp/etc/odbcinst.ini
Hence the unixODBC-provided PostgreSQL driver was also given an
odbcinst.ini.d snippet.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>