Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jun 2017 18:31:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 220020] net/kea : pgsql upgrade script incorrect path
Message-ID:  <bug-220020-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220020

            Bug ID: 220020
           Summary: net/kea : pgsql upgrade script incorrect path
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: hrs@FreeBSD.org
          Reporter: matt.xtaz@gmail.com
             Flags: maintainer-feedback?(hrs@FreeBSD.org)
          Assignee: hrs@FreeBSD.org

When trying to upgrade the pgsql database using the kea tools you get an er=
ror:

$ kea-admin lease-upgrade pgsql -u kea -p password -n kea -d
/usr/local/share/kea/scripts/
Lease DB version reported before upgrade: 3.1
Processing /usr/local/share/kea/scripts//pgsql/upgrade_1.0_to_2.0.sh file...
.: cannot open
/wrkdirs/usr/ports/net/kea/work/kea-1.2.0/src/bin/admin/admin-utils.sh: No =
such
file or directory
Processing /usr/local/share/kea/scripts//pgsql/upgrade_2.0_to_3.0.sh file...
.: cannot open
/wrkdirs/usr/ports/net/kea/work/kea-1.2.0/src/bin/admin/admin-utils.sh: No =
such
file or directory
Lease DB version reported after upgrade: 3.1

It looks as if the port is incorrectly filling in the directory paths etc in
those shell scripts:

if [ -e ${prefix}/share/kea/scripts/admin-utils.sh ]; then
    . ${prefix}/share/kea/scripts/admin-utils.sh
else
    . /wrkdirs/usr/ports/net/kea/work/kea-1.2.0/src/bin/admin/admin-utils.sh
fi

This is kea as built within my own poudriere jail.

Also as a seperate issue (does this affect upstream?) I would expect there =
to
be a 3.0 to 3.1 upgrade script considering the latest database schema versi=
on
is 3.1? In the kea source you have this:

# ls upgrade_*
upgrade_1.0_to_2.0.sh    upgrade_2.0_to_3.0.sh    upgrade_3.0_to_3.1.sh.in
upgrade_1.0_to_2.0.sh.in upgrade_2.0_to_3.0.sh.in

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220020-13>