Skip to contentSkip to conversation

PRserver support broken in Dora?

DISCUSSION Holger Hans Peter Freyther 3 participants 4 messages Mar 27, 2014 – May 12, 2014

lore
Share & tools
lore
#0 lore raw

Good Morning,

I am sorry to be a bit vagued. I have an in-house application, I modified the CONFFILES_${PN} line of app-name_git.bb and then issued bitbake app-name. My expectation was that somehow the signature will be different app-name will be re-built and the resulting PKGR will be r1.X+1.

In practice nothing is being re-built. JaMa pointed out I can use the "bitbake -S" option to display the signature but when doing "bitbake -S app-name" nothing relevant will be printed on the screen. I tried to use strace to see if it writes to a file but the trace is way too long to find something relevant.

My local.conf is added below. Could it be that the AUTOPR handling in Dora is broken? Any idea of where I can look at to see why the revisions are never incremented?

holger

change to the recipe:
@@ -13,7 +13,7 @@ DEPENDS = "qtbase libsystemd-qt tufao1"
inherit qmake5

FILES_${PN} += "${systemd_unitdir}"

-CONFFILES_${PN} = "${sysconfdir}/sysctl.d/99-sysmocom-forwarding.conf" +CONFFILES_${PN} = "${sysconfdir}/sysctl.d/99-sysmocom-forwarding.conf ${sysconfdir}/somedir"

do_install() {
# Install the main application

local.conf:
MACHINE ??= "sysmobts-v2"
DISTRO ?= "poky"
PACKAGE_CLASSES ?= "package_ipk" EXTRA_IMAGE_FEATURES = "debug-tweaks" USER_CLASSES ?= "buildstats image-mklibs image-prelink" PATCHRESOLVE = "noop"

BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K" 

CONF_VERSION = "1"

DISTRO_FEATURES_append = " systemd "
VIRTUAL-RUNTIME_init_manager = "systemd"

MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"

FULL_OPTIMIZATION="-O2 -pipe ${DEBUG_FLAGS} -fno-omit-frame-pointer" DEBUGFILEDIRECTORY-dbg = "/usr/lib/debug" PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" PRSERV_HOST = "localhost:0"

INHERIT += "rm_work"

#1 lore raw
Quoted 11 lines · Holger Hans Peter Freyther

I am sorry to be a bit vagued. I have an in-house application, I modified the CONFFILES_${PN} line of app-name_git.bb and then issued bitbake app-name. My expectation was that somehow the signature will be different app-name will be re-built and the resulting PKGR will be r1.X+1.

In practice nothing is being re-built. JaMa pointed out I can use the "bitbake -S" option to display the signature but when doing "bitbake -S app-name" nothing relevant will be printed on the screen. I tried to use strace to see if it writes to a file but the trace is way too long to find something relevant.

Quoted 3 lines

My local.conf is added below. Could it be that the AUTOPR handling in Dora is broken? Any idea of where I can look at to see why the revisions are never incremented?

Looking at the code, I suspect this is a bug which still exists in master. I think fix is to find this in meta/classes/package.bbclass:

# Since bitbake can't determine which variables are accessed during package
# iteration, we need to list them here:
PACKAGEVARS = "FILES RDEPENDS RRECOMMENDS SUMMARY DESCRIPTION RSUGGESTS RPROVIDES RCONFLICTS PKG ALLOW_EMPTY pkg_postinst pkg_postrm INITSCRIPT_NAME INITSCRIPT_PARAMS DEBIAN_NOAUTONAME ALTERNATIVE PKGE PKGV PKGR USERADD_PARAM GROUPADD_PARAM"

and add CONFFILES to that list. The sstate checksum will then reflect changes to CONFFILES.

Can you see if that helps?

Cheers,

Richard

#3 lore raw
In reply to Holger Hans Peter Freyther
Quoted 7 lines · Holger Hans Peter Freyther

Good Morning,

I am sorry to be a bit vagued. I have an in-house application, I modified the CONFFILES_${PN} line of app-name_git.bb and then issued bitbake app-name. My expectation was that somehow the signature will be different app-name will be re-built and the resulting PKGR will be r1.X+1.

Quoted 5 lines

In practice nothing is being re-built. JaMa pointed out I can use the "bitbake -S" option to display the signature but when doing "bitbake -S app-name" nothing relevant will be printed on the screen. I tried to use strace to see if it writes to a file but the trace is way too long to find something relevant.

STAMPS_DIR (tmp-eglibc/stamps)

Quoted 51 lines

My local.conf is added below. Could it be that the AUTOPR handling in Dora is broken? Any idea of where I can look at to see why the revisions are never incremented?

holger

change to the recipe:

(quoted diff) +1 -1
@@ -13,7 +13,7 @@ DEPENDS = "qtbase libsystemd-qt tufao1"
 inherit qmake5
 
 FILES_${PN} += "${systemd_unitdir}"
 
-CONFFILES_${PN} = "${sysconfdir}/sysctl.d/99-sysmocom-forwarding.conf"
+CONFFILES_${PN} = "${sysconfdir}/sysctl.d/99-sysmocom-forwarding.conf ${sysconfdir}/somedir"
 
 do_install() {

# Install the main application

local.conf:
MACHINE ??= "sysmobts-v2"
DISTRO ?= "poky"
PACKAGE_CLASSES ?= "package_ipk" EXTRA_IMAGE_FEATURES = "debug-tweaks" USER_CLASSES ?= "buildstats image-mklibs image-prelink" PATCHRESOLVE = "noop"

BB_DISKMON_DIRS = "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K" 

CONF_VERSION = "1"

DISTRO_FEATURES_append = " systemd "
VIRTUAL-RUNTIME_init_manager = "systemd"

MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"

FULL_OPTIMIZATION="-O2 -pipe ${DEBUG_FLAGS} -fno-omit-frame-pointer" DEBUGFILEDIRECTORY-dbg = "/usr/lib/debug" PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src" PRSERV_HOST = "localhost:0"

INHERIT += "rm_work"

Signature · 4 lines
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
In reply to Richard Purdie

On Thu, Mar 27, 2014 at 08:28:49AM +0000, Richard Purdie wrote:

Hi,

Quoted 1 line

Can you see if that helps?

sorry. I never got around to test it. I notice that you added a commit to poky on the 7th of April. I assume the issue is resolved?

holger