Skip to contentSkip to conversation

Using local git repo for recipe development

DISCUSSION Patrick Voelker 2 participants 6 messages Oct 29, 2020 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I'm creating a new recipe for local development but when I do a 'devtool modify <recipe>' it always seems to make an empty directory (that contains only .git.)

Here's the relevant lines from my .bb file:
SRC_URI = "git:///home/pvoelker/bmc/dev/oem;protocol=file" SRCREV = "4db17f482b0bdcdcf5658c7d323cc563eb78556a" inherit autotools

Here's the warning from 'devtool modify':
WARNING: No source unpacked to S - either the phoenix-oem recipe doesn't use any source or the correct source directory could not be determined

If I change either the SRC_URI or the SRCREV to be invalid, I get an error instead of a warning so it's definitely finding the local repo.

I can't figure out why none of the files in my commit are making it into the unpack directory. Any ideas or tips on debugging? I also tried using a .tar.gz file instead of a local git repo and had the same result.

#1 lore raw

On 10/29/20, 10:17 AM, "openbmc on behalf of Patrick Voelker" <[email protected] on behalf of [email protected]> wrote:

I'm creating a new recipe for local development but when I do a 'devtool modify <recipe>' it always seems to make an empty directory (that contains only .git.)

Here's the relevant lines from my .bb file:
SRC_URI = "git:///home/pvoelker/bmc/dev/oem;protocol=file"

I am not too sure but this should be file://, You may have to fix above line.

SRCREV = "4db17f482b0bdcdcf5658c7d323cc563eb78556a" inherit autotools

Here's the warning from 'devtool modify':
WARNING: No source unpacked to S - either the phoenix-oem recipe doesn't use any source or the correct source directory could not be determined

If I change either the SRC_URI or the SRCREV to be invalid, I get an error instead of a warning so it's definitely finding the local repo.

I can't figure out why none of the files in my commit are making it into the unpack directory. Any ideas or tips on debugging? I also tried using a .tar.gz file instead of a local git repo and had the same result.

#2 lore raw

Vijay, that didn't make any difference. I get the same result.

Quoted 36 lines

-----Original Message-----
From: Vijay Khemka [mailto:[email protected]]
Sent: Thursday, October 29, 2020 12:27 PM
To: Patrick Voelker; OpenBMC ([email protected])
Subject: Re: Using local git repo for recipe development

On 10/29/20, 10:17 AM, "openbmc on behalf of Patrick Voelker" <openbmc- [email protected] on behalf of [email protected]> wrote:

I'm creating a new recipe for local development but when I do a 'devtool
modify <recipe>' it always seems to make an empty directory (that contains only .git.)

Here's the relevant lines from my .bb file:
SRC_URI = "git:///home/pvoelker/bmc/dev/oem;protocol=file"

I am not too sure but this should be file://, You may have to fix above line.

SRCREV = "4db17f482b0bdcdcf5658c7d323cc563eb78556a" inherit autotools

Here's the warning from 'devtool modify':
WARNING: No source unpacked to S - either the phoenix-oem recipe
doesn't use any source or the correct source directory could not be determined

If I change either the SRC_URI or the SRCREV to be invalid, I get an error
instead of a warning so it's definitely finding the local repo.

I can't figure out why none of the files in my commit are making it into the
unpack directory. Any ideas or tips on debugging? I also tried using a .tar.gz file instead of a local git repo and had the same result.

#3 lore raw

What are you trying to achieve here, devtool is for local source and you already have local source, just build it from there.

On 10/29/20, 2:33 PM, "Patrick Voelker" <[email protected]> wrote:

Vijay, that didn't make any difference. I get the same result.

> -----Original Message-----
> From: Vijay Khemka [mailto:[email protected]]
> Sent: Thursday, October 29, 2020 12:27 PM
> To: Patrick Voelker; OpenBMC ([email protected])
> Subject: Re: Using local git repo for recipe development
>
>
>
> On 10/29/20, 10:17 AM, "openbmc on behalf of Patrick Voelker" <openbmc- > [email protected] on behalf of
> [email protected]> wrote:
>
> I'm creating a new recipe for local development but when I do a 'devtool
> modify <recipe>' it always seems to make an empty directory (that contains > only .git.)
>
> Here's the relevant lines from my .bb file:
> SRC_URI = "git:///home/pvoelker/bmc/dev/oem;protocol=file"
>
> I am not too sure but this should be file://, You may have to fix above line. >
> SRCREV = "4db17f482b0bdcdcf5658c7d323cc563eb78556a"
> inherit autotools
>
> Here's the warning from 'devtool modify':
> WARNING: No source unpacked to S - either the phoenix-oem recipe
> doesn't use any source or the correct source directory could not be > determined
>
> If I change either the SRC_URI or the SRCREV to be invalid, I get an error
> instead of a warning so it's definitely finding the local repo.
>
> I can't figure out why none of the files in my commit are making it into the
> unpack directory. Any ideas or tips on debugging? I also tried using a .tar.gz > file instead of a local git repo and had the same result.
>

#4 lore raw

My understanding is that if devtool can't find the source then bitbake won't be able to build it either.

Quoted 57 lines

-----Original Message-----
From: Vijay Khemka [mailto:[email protected]]
Sent: Thursday, October 29, 2020 3:10 PM
To: Patrick Voelker; OpenBMC ([email protected])
Subject: Re: Using local git repo for recipe development

What are you trying to achieve here, devtool is for local source and you already have local source, just build it from there.

On 10/29/20, 2:33 PM, "Patrick Voelker" <[email protected]> wrote:

    Vijay, that didn't make any difference.  I get the same result.

    > -----Original Message-----
    > From: Vijay Khemka [mailto:[email protected]]
    > Sent: Thursday, October 29, 2020 12:27 PM
    > To: Patrick Voelker; OpenBMC ([email protected])
    > Subject: Re: Using local git repo for recipe development
    >
    >
    >
    > On 10/29/20, 10:17 AM, "openbmc on behalf of Patrick Voelker"

<openbmc-

Quoted 4 lines

[email protected] on behalf of [email protected]> wrote:

I'm creating a new recipe for local development but when I do a

'devtool

Quoted 1 line

modify <recipe>' it always seems to make an empty directory (that

contains

Quoted 10 lines

only .git.)

Here's the relevant lines from my .bb file:
SRC_URI = "git:///home/pvoelker/bmc/dev/oem;protocol=file"

I am not too sure but this should be file://, You may have to fix above line.

SRCREV = "4db17f482b0bdcdcf5658c7d323cc563eb78556a" inherit autotools

Quoted 6 lines

Here's the warning from 'devtool modify':
WARNING: No source unpacked to S - either the phoenix-oem recipe
doesn't use any source or the correct source directory could not be determined

If I change either the SRC_URI or the SRCREV to be invalid, I get an

error

Quoted 3 lines

instead of a warning so it's definitely finding the local repo.

I can't figure out why none of the files in my commit are making it into

the

Quoted 1 line

unpack directory. Any ideas or tips on debugging? I also tried using

a .tar.gz

Quoted 2 lines

file instead of a local git repo and had the same result.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Hm. I wasn't setting the S variable in my .bb. Apparently, that's what was missing. I didn't see that as required when reading the Yocto docs.

Thanks for the assistance!

Quoted 85 lines

-----Original Message-----
From: Brandon Wyman [mailto:[email protected]]
Sent: Thursday, October 29, 2020 3:48 PM
To: Patrick Voelker
Subject: Re: Using local git repo for recipe development

Quoted 1 line · Patrick Voelker

My understanding is that if devtool can't find the source then bitbake won't

be able to build it either.

Quoted 30 lines
Quoted 30 lines

-----Original Message-----
From: Vijay Khemka [mailto:[email protected]]
Sent: Thursday, October 29, 2020 3:10 PM
To: Patrick Voelker; OpenBMC ([email protected])
Subject: Re: Using local git repo for recipe development

What are you trying to achieve here, devtool is for local source and you already have local source, just build it from there.

On 10/29/20, 2:33 PM, "Patrick Voelker" <[email protected]> wrote:

     Vijay, that didn't make any difference.  I get the same result.

     > -----Original Message-----
     > From: Vijay Khemka [mailto:[email protected]]
     > Sent: Thursday, October 29, 2020 12:27 PM
     > To: Patrick Voelker; OpenBMC ([email protected])
     > Subject: Re: Using local git repo for recipe development
     >
     >
     >
     > On 10/29/20, 10:17 AM, "openbmc on behalf of Patrick Voelker"

<openbmc-
> [email protected] on behalf of > [email protected]> wrote:
>
> I'm creating a new recipe for local development but when I do a
'devtool

Quoted 8 lines
Quoted 8 lines

> modify <recipe>' it always seems to make an empty directory (that
contains
> only .git.)
>
> Here's the relevant lines from my .bb file:
> SRC_URI = "git:///home/pvoelker/bmc/dev/oem;protocol=file"
>
> I am not too sure but this should be file://, You may have to fix above

line.

Quoted 6 lines
Quoted 6 lines

>
> SRCREV = "4db17f482b0bdcdcf5658c7d323cc563eb78556a"
> inherit autotools
>
> Here's the warning from 'devtool modify':
> WARNING: No source unpacked to S - either the phoenix-oem

recipe

Quoted 2 lines
Quoted 2 lines

> doesn't use any source or the correct source directory could not be > determined

I am not sure if you are hitting that S issue I noted for a build, but maybe this is informative for that particular error:

https://gerrit.openbmc-project.xyz/c/openbmc/meta-phosphor/+/37704

meta-phosphor: fix S with trailing slash

Upstream OE added a warning when S has a trailing slash.  Remove the trailing S from the flagged recipes to avoid the warning.

Change-Id I457e7ee021b40b206bd3cd25d4cafe49854682a4
Quoted 6 lines
Quoted 6 lines

>
> If I change either the SRC_URI or the SRCREV to be invalid, I get an
error
> instead of a warning so it's definitely finding the local repo. >
> I can't figure out why none of the files in my commit are making it

into

Quoted 6 lines
Quoted 6 lines

the
> unpack directory. Any ideas or tips on debugging? I also tried using
a .tar.gz
> file instead of a local git repo and had the same result. >