[packagekit] Daemon exits after `pkcon get repos`
Richard Hughes
hughsient at gmail.com
Sat Nov 17 02:51:25 PST 2007
On Fri, 2007-11-16 at 14:26 -0700, Boyd Timothy wrote:
> On Nov 16, 2007 11:55 AM, Richard Hughes <hughsient at gmail.com> wrote:
> > On Fri, 2007-11-16 at 11:25 -0700, Boyd Timothy wrote:
> > > It crashes when calling pk_transaction_db_sql_statement () at
> > > pk-transaction-db.c:196
>
> Okay, I tracked this one down. It appears that ${localstatedir} in
> configure.ac is not being expanded properly. Since localstatedir is
> just defined to be [prefix]/var, what ends up happening when using
> AC_DEFINE_UNQUOTED () is that PK_DB_DIR gets added to config.h as
> this:
>
> ${prefix}/var/lib/PackageKit
>
> instead of
>
> /usr/local/var/lib/PackageKit
>
> ...and of course the daemon has no idea what ${prefix} means, so file
> operations on it fail. So, I've removed the AC_DEFINE_UNQUOTED from
> configure.ac and added a -DPK_DB_DIR to src/Makefile.am and this
> solves the problem.
>
> For more information about this apparently long-time existing problem,
> see: http://www.gnu.org/software/autoconf/manual/html_node/Defining-Directories.html
Brilliant, thanks dude.
Richard.
More information about the PackageKit
mailing list