Commit Graph

27 Commits

Author SHA1 Message Date
Rosen Penev b914fd47ca unixodbc: fix compilation with GCC14
Wrong pointer type.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2024-05-16 23:45:53 -07:00
Jeffery To 14c8d269be unixodbc: Update to 2.3.12
This also adds a test.sh script for the packages feed CI.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-30 13:25:58 -07:00
Jeffery To 9563c6f018 unixodbc: Split libraries package into separate packages
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>
2023-10-30 13:25:58 -07:00
Jeffery To 80aeb31082 unixodbc: Copy pgsqlodbc.ini instead of creating it dynamically
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-30 13:25:58 -07:00
Jeffery To 3ab793f09e unixodbc: Use default includedir for target configure
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>
2023-10-30 13:25:58 -07:00
Jeffery To b0699060c9 unixodbc: Use default build recipes
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2023-10-30 13:25:58 -07:00
Jeffery To ec2ca90dc1 unixodbc: Use InstallDev directory to transfer include files
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>
2023-10-30 13:25:58 -07:00
Jeffery To 61de50de5f unixodbc: Change host build directories to be target-specific
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>
2023-10-30 13:25:58 -07:00
Jeffery To f3d25a7472 unixodbc: Remove custom unixodbc_conf.h
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>
2023-10-30 13:25:58 -07:00
Eneas U de Queiroz 47f98d7030
unixodbc: use 'install' when copying host binaries
'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>
2021-08-11 16:59:20 -03:00
Rosen Penev 4184fb950c
unixodbc: update to 2.3.9
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-01 16:24:00 -08:00
Eneas U de Queiroz 2593eabd6b treewide: Capitalize submenus
Fixed a typo in tcpreplay.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2019-07-25 09:35:40 +08:00
Eneas U de Queiroz c6caa108cb unixodbc: save unixodbc_conf.h for host build
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>
2018-12-12 08:53:30 -02:00
Eneas U de Queiroz e4693dd939 unixodbc: fix clean-build compilation
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>
2018-12-06 12:03:02 -02:00
Eneas U de Queiroz 8dc012dfad unixodbc: Fix LIB_PREFIX in host build
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>
2018-12-06 10:30:17 -02:00
Rosen Penev 414df31c74 unixodbc: Update to 2.3.7
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>
2018-10-19 19:56:06 +03:00
Stijn Tintel f225f1fd49 Revert "unixodbc: Update to 2.3.7"
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>
2018-10-19 19:24:23 +03:00
Rosen Penev 6d6c15e1e9 unixodbc: Update to 2.3.7
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>
2018-09-10 12:55:07 -07:00
Daniel Golle b8f0e2ca38 unixodbc: fix host build
Fixed #4705

Reported-by: Michael Braun <michael-dev@fami-braun.de>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-08-30 19:27:40 +02:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
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>
2017-08-29 21:41:14 -07:00
Daniel Golle 5cc52f06aa unixodbc: fix cross-compile drivers
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>
2017-07-08 12:44:20 +02:00
Daniel Golle 32989cc486
unixodbc: auto-generate odbcinst.ini
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>
2017-07-02 20:47:26 +02:00
heil a5c153d7d3 unixodbc:
- corect fetch url

Signed-off-by: heil <heil@terminal-consulting.de>
2016-01-25 14:06:18 +01:00
heil 29195f5b98 unixodbc: bump to version 2.3.4
Signed-off-by: heil <heil@terminal-consulting.de>
2015-09-06 23:53:35 +02:00
heil da89247736 unixodbc: update to 2.3.3
Signed-off-by: heil <heil@terminal-consulting.de>
2015-08-24 10:40:38 +02:00
Jiri Slachta e7f1cac1bf unixodbc: change PKG_SOURCE_URL to sourceforge
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2014-10-07 14:50:13 +02:00
Thomas Heil 7f705d4b28 unixodbc: import from oldpackages, add myself as maintainer, add license
information, update to v2.3.2

Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2014-07-12 13:35:04 +02:00