On Mon, 2020-08-24 at 18:29 -0500, Mark Hatle wrote:
@@ -2396,6 +2399,14 @@ addtask do_package_setscene
>  python do_packagedata () {
>      src = d.expand("${PKGDESTWORK}")
>      dest = d.expand("${WORKDIR}/pkgdata-pdata-input")
> +
> +    bb.build.exec_func("package_get_auto_pr", d)
> +    # Store this for later retrieval
> +    data_file = src + d.expand("/${PN}_prservice.oe_nohash")
> +    with open(data_file, 'w') as fd:
> +        fd.write('PRAUTO: %s\n' % d.getVar('PRAUTO'))
> +        fd.write('PRSERV_PV_AUTOINC: %s\n' % d.getVar("PRSERV_PV_AUTOINC"))
> +
>      oe.path.copyhardlinktree(src, dest)
>  }

My instinct here is to drop this oe_nohash file and instead, run a 

sed -i -e "s@${PRSERV_PV_AUTOINC}@val@g" -e "s@${PRAUTO}@val2@g"

over the files in dest to expand out the values.

You can then drop much of the other changes trying to expand these
things out. We don't know what out of tree things are also using the
pkgdata files and I'm not sure we should force everything through the
API either.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#141809): 
https://lists.openembedded.org/g/openembedded-core/message/141809
Mute This Topic: https://lists.openembedded.org/mt/76396872/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to