Bug 14048 - devtool: new recipe addition still keeps using the previous recipes variables in the new one
Summary: devtool: new recipe addition still keeps using the previous recipes variables...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.2 M4
Assignee: Shan Desai
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-09-18 08:07 UTC by Shan Desai
Modified: 2020-10-29 16:25 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shan Desai 2020-09-18 08:07:52 UTC
## System

Build Host: Debian 9 Stretch
Target Hardware: PHYTEC PhyBOARD Mira - iMX6 Quad Board
Open-Embedded branch: warrior
Bitbake Version: 1.42.0

## Initial Setup

- I ported my python3 app using the following command using `devtool`:
    devtool add python3-gpsfluxlite <github archive tarball>

which create the recipe for me in my $BUILDDIR/workspace/recipes/python3-gpsfluxlite

- I only changed the `RDEPENDS_${PN}` from `python-depname` to `${PYTHON_PN}-depname` in the recipe and added `systemd` installation script for the app.

- The build was successful and I wrapped up the recipe in my layer using `devtool reset python3-gpsfluxlite` && `devtool finish python3-gpsfluxlite ../to/my/layer` and it worked well

## Problem

- I wish to port another python3 app and I followed the same development workflow as above:
    devtool add python3-bnofluxlite <github archive tarball>

This time the Terminal kept mentioning the packages and dependencies still from gpsfluxlite (see logs):
    INFO: Scanning paths for packages & dependencies: gpsinfluxlite, bin/gpsinfluxlite


- upon editing the recipe `devtool edit-recipe python3-bnofluxlite` I still see remnants from the `gpsfluxlite` recipe (Pastebin link: https://pastebin.com/KmyENMRh of generated recipe)

  e.g. `S = "${WORKDIR}/gpsfluxlite-${PV}"` as well the `RDEPENDS` from the previous recipe.


The only workaround is to clean up the workspace and use `--srcrev` with `devtool add` to generate the correct recipe.


Seems like `devtool` isn't picking up or changing the downloaded tarball
Comment 1 Randy MacLeod 2020-09-24 07:40:40 UTC
Can you retest with master? Some changes to datastore have been made that may fix the issue.
Comment 2 Shan Desai 2020-10-29 16:25:17 UTC
Hi Randy,

I might be unfortunately late to reply to this issue.

I am bound by the Board Provider's (PHYTEC) environment. I might checkout the `master` branch and see if things don't break. If there are changes to the datastore on the master branch, I would like to mark this issue as RESOLVED.

thanks,
Shan