All of lore.kernel.org
 help / color / mirror / Atom feed
* Runtime Dependencies dependent on lowercase recipe name?
@ 2017-08-23 17:41 Torsten Sievers
  2017-08-24 10:13 ` Gianfranco Costamagna
  0 siblings, 1 reply; 2+ messages in thread
From: Torsten Sievers @ 2017-08-23 17:41 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1968 bytes --]

Hi everybody,

i am using Poky/Pyro for one of my projects. The chosen Package Format is
RPM.

After some hours of debugging in ran into this pretty interesting behaviour
were i would guess it is a bug...

My starting point was a really simple  HelloWorld Recipe:
---------- snip ----------------
$ cat helloworld_0.1.bb
DESCRIPTION = "Simple helloworld application"
LICENSE = "CLOSED"
RDEPENDS_${PN}+="procps"
do_compile() {
             echo 'int main(int argc, char **argv) { return 0; }' >
helloworld.c
             ${CC} ${LDFLAGS} helloworld.c -o helloworld
}

do_install() {
             install -d ${D}${bindir}
             install -m 0755 helloworld ${D}${bindir}
}
---------- snap --------------

As you can see it does just compile a program that is immediately
returning.
However it introduces an arbitrary runtime dependency to procps
Building it results in an RPM that depends to procps

---------------snip -------------------
$ rpm -qpR helloworld-0.1-r0.cortexa7hf_neon_vfpv4.rpm
libc6 >= 2.25
procps
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
---------- snap --------------


Now the strange thing happens: copy the helloworld_0.1.bb to
Helloworld_0.1.bb
So the only difference is the lowercase vs capital "H" in the recipe name.

rebuild and look at the rpm dependencies
----------- snip --------------------------
$ rpm -qpR Helloworld-0.1-r0.cortexa7hf_neon_vfpv4.rpm
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
------------- snap ------------------------

both the libc as well as the procps dependencies are gone...
It is also gone in the spec-file and already forgotton in the
package_rpm.class

Other than the omitted dependencies the rpm looks fine. It contains the
binary as well as hashes etc...


Anybody can explain me if this is intended or do i run into a bug?

Many thanks and best regards
  Torsten

[-- Attachment #2: Type: text/html, Size: 2826 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Runtime Dependencies dependent on lowercase recipe name?
  2017-08-23 17:41 Runtime Dependencies dependent on lowercase recipe name? Torsten Sievers
@ 2017-08-24 10:13 ` Gianfranco Costamagna
  0 siblings, 0 replies; 2+ messages in thread
From: Gianfranco Costamagna @ 2017-08-24 10:13 UTC (permalink / raw)
  To: yocto, torstensievers

Hello,

>Now the strange thing happens: copy the helloworld_0.1.bb to
>Helloworld_0.1.bb
>So the only difference is the lowercase vs capital "H" in the recipe name.

welcome to the club!

https://bugzilla.yoctoproject.org/show_bug.cgi?id=11592

Hopefully we will have a big red warning/error when we use capital letters again :)

G.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-24 10:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23 17:41 Runtime Dependencies dependent on lowercase recipe name? Torsten Sievers
2017-08-24 10:13 ` Gianfranco Costamagna

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.