Ticket #1208 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Run Packagekitd failed

Reported by: tick@… Owned by: thomas@…
Priority: high Milestone:
Component: Applications & Dependencies Version: current svn head
Severity: normal Keywords:
Cc: buglog@… Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

Strangely cannot turn on Packagekit.
Packagekit: 720a6ad1454e6c649f793300dbcc5adfda3ba0a5
opkg: 3985
-- BB files ----
~/moko/local/packages/packagekit>cat packagekit_git.bb
DESCRIPTION = "PackageKit? package management abstraction"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg"
RDEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg"
PV = "0.1+git${SRCREV}"
PR = "r5"

SRC_URI = "git://anongit.freedesktop.org/git/packagekit;protocol=git"

SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg"

do_configure_prepend() {

touch gtk-doc.make

}
do_stage () {

autotools_stage_all

}

FILES_${PN} += "${libdir}/packagekit-backend/*.so
${datadir}/dbus-1/system-services/"


~/moko/local/packages/opkg>cat opkg_svn.bb
DESCRIPTION = "Open Package Manager"
DESCRIPTION_libipkg = "Open Package Manager Library"
SECTION = "base"
LICENSE = "GPL"
DEPENDS = "gpgme (>=1.0.0)"
PV = "r${SRCREV}"

SRC_URI = "svn://svn.openmoko.org/trunk/src/target/;module=opkg;proto=http"

S = "${WORKDIR}/opkg"
SRCREV = "${AUTOREV}"

inherit autotools pkgconfig

do_stage() {

autotools_stage_all

}

PACKAGES =+ "libopkg-dev libopkg"

FILES_libopkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so"
FILES_libopkg = "${libdir}/*.so.*"


root@fic-gta02:~$ dbus-launch sh
root@fic-gta02:~$ ipkg list | grep -e opkg -e packagekit
libopkg-dev - svn-r0 - Openmoko Package Manager
libopkg0 - svn-r0 - Openmoko Package Manager
opkg - r3985-r0 - Open Package Manager
opkg - r3972-r0 - Open Package Manager
opkg-dbg - r3985-r0 - Open Package Manager
opkg-dev - r3985-r0 - Open Package Manager
packagekit - 0.1+git3+720a6ad1454e6c649f793300dbcc5adfda3ba0a5-r5 - PackageKit?
package management abstraction
packagekit-dbg - 0.1+git3+720a6ad1454e6c649f793300dbcc5adfda3ba0a5-r5 -
PackageKit? package management abstraction
packagekit-dev - 0.1+git3+720a6ad1454e6c649f793300dbcc5adfda3ba0a5-r5 -
PackageKit? package management abstraction
packagekit-doc - 0.1+git3+720a6ad1454e6c649f793300dbcc5adfda3ba0a5-r5 -
PackageKit? package management abstraction
root@fic-gta02:~$ cat /etc/PackageKit/
cat: Read Error: Is a directory
root@fic-gta02:~$ cat /etc/PackageKit/PackageKit.conf
# Only the system administrator should modify this file, ordinary users
# should not have to change anything.

[Daemon]

# Log transactions to the database
# default=yes
TransactionLogging?=yes

# Shut down the daemon after this many seconds idle. 0 means don't shutdown.
# default=60
ShutdownTimeout?=60

# Default backend, as chosen in the configure script. This will be used where
# no --backend="foo" option is given to the daemon.
# default=opkg
DefaultBackend?=opkg

root@fic-gta02:~$ packagekitd&
root@fic-gta02:~$ * ERROR *
TI:13:34:03 TH:0x35008 FI:pk-main.c FN:main,232

  • cannot continue, backend invalid

[1] + Done(1) packagekitd
root@fic-gta02:~$

Change History

comment:1 Changed 11 years ago by thomas@…

Please try running packatekitd --verbose

comment:2 Changed 11 years ago by tick@…

The backend of opkg is missing.

After building the latest packagekit it's even worse.
root@fic-gta02:~$ ipkg install packagekit
Installing packagekit (0.1+git4+f7b03c1ce39a010eb150d3dc1c584ba89cbc1c6e-r5) to
root...
Downloading
http://192.168.0.200/build/deploy/glibc/ipk/armv4t//packagekit_0.1+git4+f7b03c1ce39a010eb150d3dc1c584ba89cbc1c6e-r5_armv4t.ipk
Nothing to be done
An error ocurred, return value: 1.
Collected errors:
ERROR: Cannot satisfy the following dependencies for packagekit:

update-rc.d

comment:3 Changed 11 years ago by tick@…

  • Status changed from new to closed
  • Resolution set to fixed

EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg
--enable-opkg"

adding --enable-opkg will solve this issue.

The second issue is because I lost some feeds, and it will be ok when I add them
back

Note: See TracTickets for help on using tickets.