From: Rene Wagner Date: Wed, 16 Aug 2006 20:43:18 +0000 (+0200) Subject: alsa-driver: really fix upgrade path. X-Git-Tag: familiar-v0.8.4~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a1b926030f393413278f09abd0cfbadc2078be36;p=familiar-h63xx-build.git alsa-driver: really fix upgrade path. Signed-off-by: Rene Wagner --- diff --git a/org.handhelds.familiar/classes/package_ipk.bbclass b/org.handhelds.familiar/classes/package_ipk.bbclass index 6d3e1eb..485f341 100644 --- a/org.handhelds.familiar/classes/package_ipk.bbclass +++ b/org.handhelds.familiar/classes/package_ipk.bbclass @@ -60,6 +60,8 @@ python package_ipk_install () { raise bb.build.FuncFailed } +EPOCH ?= "" + python do_package_ipk () { import copy # to back up env data import sys @@ -138,7 +140,7 @@ python do_package_ipk () { raise bb.build.FuncFailed("unable to open control file for writing.") fields = [] - fields.append(["Version: %s-%s\n", ['PV', 'PR']]) + fields.append(["Version: %s%s-%s\n", ['EPOCH', 'PV', 'PR']]) fields.append(["Description: %s\n", ['DESCRIPTION']]) fields.append(["Section: %s\n", ['SECTION']]) fields.append(["Priority: %s\n", ['PRIORITY']]) diff --git a/org.handhelds.familiar/packages/alsa/alsa-driver_0.9.6-hh4c.bb b/org.handhelds.familiar/packages/alsa/alsa-driver_0.9.6-hh4c.bb index 9a784c7..4a07949 100644 --- a/org.handhelds.familiar/packages/alsa/alsa-driver_0.9.6-hh4c.bb +++ b/org.handhelds.familiar/packages/alsa/alsa-driver_0.9.6-hh4c.bb @@ -2,13 +2,11 @@ DESCRIPTION = "Alsa Drivers" MAINTAINER = "Rene Wagner " SECTION = "base" LICENSE = "GPL" -PR = "r9" -DEPENDS += "fakeroot-native virtual/kernel" +EPOCH = "1:" +PR = "r11" -RPROVIDES = "${@linux_module_packages('h3600-uda1341 uda1341', d)}" -RCONFLICTS = "${@linux_module_packages('h3600-uda1341 uda1341', d)}" -RREPLACES = "${@linux_module_packages('h3600-uda1341 uda1341', d)}" +DEPENDS += "fakeroot-native virtual/kernel" SRC_URI = "ftp://ftp.handhelds.org/packages/alsa-driver/alsa-driver-${PV}.tar.gz \ file://sound.p.patch;patch=1 \ @@ -18,6 +16,15 @@ SRC_URI = "ftp://ftp.handhelds.org/packages/alsa-driver/alsa-driver-${PV}.tar.gz inherit autotools module update-rc.d +RPROVIDES_${PN} += "${@linux_module_packages('h3600-uda1341 uda1341', d)}" +RCONFLICTS_${PN} += "${@linux_module_packages('h3600-uda1341 uda1341', d)}" +RREPLACES_${PN} += "${@linux_module_packages('h3600-uda1341 uda1341', d)}" + +# the same for old style naming... +RPROVIDES_${PN} += "kernel-module-h3600-uda1341-2.4.19-rmk6-pxa1-hh37 kernel-module-h3600-uda1341-2.4.19-rmk6-pxa1-hh37" +RCONFLICTS_${PN} += "kernel-module-h3600-uda1341-2.4.19-rmk6-pxa1-hh37 kernel-module-h3600-uda1341-2.4.19-rmk6-pxa1-hh37" +RREPLACES_${PN} += "kernel-module-h3600-uda1341-2.4.19-rmk6-pxa1-hh37 kernel-module-h3600-uda1341-2.4.19-rmk6-pxa1-hh37" + INITSCRIPT_NAME = "alsa-driver" INITSCRIPT_PARAMS = "start 29 S . stop 29 0 6 1 ."