• Bug#1101206: unixodbc: missing odbc_config tool

    From Andreas Hasenack@21:1/5 to All on Mon Mar 24 23:00:01 2025
    Package: unixodbc
    Version: 2.3.12-2
    Severity: normal

    Dear maintainer,

    I got a bug filed[1] in Ubuntu saying that the odbc_config tool is
    missing from the packaging. It seems that's on purpose, because since
    2.3.9-1 this tool is even listed in d/not-installed. I checked a bit
    more history but couldn't find a reason. Incidentally, "make install"
    installs it just fine in /usr/bin.

    This is trivial to fix, and I'm happy to provide a patch, but first I
    would like to check with you if this was indeed on purpose, or just an oversight.

    Thanks!



    1. https://bugs.launchpad.net/ubuntu/+source/unixodbc/+bug/2103828

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hugh McMaster@21:1/5 to Andreas Hasenack on Thu Apr 3 10:10:01 2025
    Control: -1 wontfix

    Hi Andreas,

    Sorry for the delayed reply. I've just returned from a 2-week vacation.

    On 25/03/2025 8:52 am, Andreas Hasenack wrote:
    Package: unixodbc
    Version: 2.3.12-2
    Severity: normal

    Dear maintainer,

    I got a bug filed[1] in Ubuntu saying that the odbc_config tool is
    missing from the packaging. It seems that's on purpose, because since
    2.3.9-1 this tool is even listed in d/not-installed. I checked a bit
    more history but couldn't find a reason. Incidentally, "make install" installs it just fine in /usr/bin.

    Debian never packaged odbc_config because the script got several things
    wrong. See #422207 [1] for more details.

    odbc_config is also incompatible with Debian's multi-arch support, as it
    only supports the host architecture.

    This is trivial to fix, and I'm happy to provide a patch, but first I
    would like to check with you if this was indeed on purpose, or just an oversight.

    Thanks!



    1. https://bugs.launchpad.net/ubuntu/+source/unixodbc/+bug/2103828>
    Anyone wanting to link with the odbc, odbccr or odbcinst libraries
    should use pkg-config to get the headers and libraries as required.

    Packaging the script would also break multi-arch support.

    Here is a minimal example using cmake:

    cmake_minimum_required(VERSION 3.31)
    project(unixodbc_test)
    include(FindPkgConfig)
    pkg_check_modules(ODBC REQUIRED odbc)

    Kind regards,

    Hugh

    [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=422207

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Hasenack@21:1/5 to hugh.mcmaster@outlook.com on Thu Apr 3 15:50:01 2025
    Hello Hugh,

    thank you very much for your response.

    On Thu, Apr 3, 2025 at 4:59 AM Hugh McMaster <hugh.mcmaster@outlook.com> wrote:

    Control: -1 wontfix

    Hi Andreas,

    Sorry for the delayed reply. I've just returned from a 2-week vacation.

    On 25/03/2025 8:52 am, Andreas Hasenack wrote:
    Package: unixodbc
    Version: 2.3.12-2
    Severity: normal

    Dear maintainer,

    I got a bug filed[1] in Ubuntu saying that the odbc_config tool is
    missing from the packaging. It seems that's on purpose, because since 2.3.9-1 this tool is even listed in d/not-installed. I checked a bit
    more history but couldn't find a reason. Incidentally, "make install" installs it just fine in /usr/bin.

    Debian never packaged odbc_config because the script got several things wrong. See #422207 [1] for more details.

    odbc_config is also incompatible with Debian's multi-arch support, as it
    only supports the host architecture.

    This is trivial to fix, and I'm happy to provide a patch, but first I
    would like to check with you if this was indeed on purpose, or just an oversight.

    Thanks!



    1. https://bugs.launchpad.net/ubuntu/+source/unixodbc/+bug/2103828>
    Anyone wanting to link with the odbc, odbccr or odbcinst libraries
    should use pkg-config to get the headers and libraries as required.

    Packaging the script would also break multi-arch support.

    Here is a minimal example using cmake:

    cmake_minimum_required(VERSION 3.31)
    project(unixodbc_test)
    include(FindPkgConfig)
    pkg_check_modules(ODBC REQUIRED odbc)

    I'll relay this back into the ubuntu bug, and advise we won't be
    changing this then.

    Thanks again for your kind response.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)