All of lore.kernel.org
 help / color / mirror / Atom feed
* QA rdepends issue when building xerces-c
@ 2013-05-23 16:53 Hartmut Behrens
  2013-05-23 19:55 ` Hartmut Behrens
  0 siblings, 1 reply; 4+ messages in thread
From: Hartmut Behrens @ 2013-05-23 16:53 UTC (permalink / raw)
  To: yocto

Dear Yocto users,

I created a recipe for xerces-c (see below), and when bitbaking, the
error "ERROR: QA Issue: xerces-c rdepends on xerces-c-dev" is
produced.

I added RPROVIDES_${PN} += "xerces-c-dev" to the recipe, incremented
the PR number, and baked again but still without success.

I also tried INSANE_SKIP_${PN} += "dev-so" without any luck.

Might you know how to solve this?

The recipe:

DESCRIPTION = "Xerces-c is a validating xml parser written in C++"
HOMEPAGE = "http://xerces.apache.org/xerces-c/"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
PR = "r6"

SRC_URI = "file://xerces-c-${PV}.tar.gz"
SRC_URI[md5sum] = "6a8ec45d83c8cfb1584c5a5345cb51ae"

S = "${WORKDIR}/xerces-c-${PV}"

inherit autotools lib_package pkgconfig gettext

RPROVIDES_${PN} += "xerces-c-dev"


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

* Re: QA rdepends issue when building xerces-c
  2013-05-23 16:53 QA rdepends issue when building xerces-c Hartmut Behrens
@ 2013-05-23 19:55 ` Hartmut Behrens
  2013-05-24  9:27   ` Paul Eggleton
  0 siblings, 1 reply; 4+ messages in thread
From: Hartmut Behrens @ 2013-05-23 19:55 UTC (permalink / raw)
  To: yocto

On Thu, May 23, 2013 at 6:53 PM, Hartmut Behrens
<hartmut.behrens@gmail.com> wrote:
> I also tried INSANE_SKIP_${PN} += "dev-so" without any luck.
>
> Might you know how to solve this?

So including INSANE_SKIP_${PN} = "dev-deps" does the trick.

I tried playing around with FILES (shown below), but can't quite get
it right. The error that is issued then is "ERROR: QA Issue: non
-dev/-dbg/-nativesdk package contains symlink .so ..."

FILES_${PN} = "${bindir}/* ${libdir}/*"
FILES_${PN}-dev = "${includedir} ${libdir}/libxerces-c.so"


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

* Re: QA rdepends issue when building xerces-c
  2013-05-23 19:55 ` Hartmut Behrens
@ 2013-05-24  9:27   ` Paul Eggleton
  2013-05-24  9:38     ` Paul Eggleton
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggleton @ 2013-05-24  9:27 UTC (permalink / raw)
  To: Hartmut Behrens; +Cc: yocto

On Thursday 23 May 2013 21:55:13 Hartmut Behrens wrote:
> On Thu, May 23, 2013 at 6:53 PM, Hartmut Behrens
> <hartmut.behrens@gmail.com> wrote:
> > I also tried INSANE_SKIP_${PN} += "dev-so" without any luck.
> > 
> > Might you know how to solve this?
> 
> So including INSANE_SKIP_${PN} = "dev-deps" does the trick.
> 
> I tried playing around with FILES (shown below), but can't quite get
> it right. The error that is issued then is "ERROR: QA Issue: non
> -dev/-dbg/-nativesdk package contains symlink .so ..."
> 
> FILES_${PN} = "${bindir}/* ${libdir}/*"
> FILES_${PN}-dev = "${includedir} ${libdir}/libxerces-c.so"

FYI, files are selected for each package by looking through the PACKAGES 
variable and for each package in turn the value of FILES is checked. The first 
package whose FILES matches a file, gets the file.

The default value of PACKAGES is "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-
doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"; thus FILES_${PN} can be broad if 
the earlier packages pick out the files they need to specifically.

In most cases the default values work perfectly. What you really need to do is 
determine which file it is that gets added to the -dev package and put that 
elsewhere. You should not need to change FILES_${PN}, just FILES_${PN}-dev (or 
other packages as appropriate).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: QA rdepends issue when building xerces-c
  2013-05-24  9:27   ` Paul Eggleton
@ 2013-05-24  9:38     ` Paul Eggleton
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2013-05-24  9:38 UTC (permalink / raw)
  To: Hartmut Behrens; +Cc: yocto

On Friday 24 May 2013 10:27:43 Paul Eggleton wrote:
> On Thursday 23 May 2013 21:55:13 Hartmut Behrens wrote:
> > On Thu, May 23, 2013 at 6:53 PM, Hartmut Behrens
> > 
> > <hartmut.behrens@gmail.com> wrote:
> > > I also tried INSANE_SKIP_${PN} += "dev-so" without any luck.
> > > 
> > > Might you know how to solve this?
> > 
> > So including INSANE_SKIP_${PN} = "dev-deps" does the trick.
> > 
> > I tried playing around with FILES (shown below), but can't quite get
> > it right. The error that is issued then is "ERROR: QA Issue: non
> > -dev/-dbg/-nativesdk package contains symlink .so ..."
> > 
> > FILES_${PN} = "${bindir}/* ${libdir}/*"
> > FILES_${PN}-dev = "${includedir} ${libdir}/libxerces-c.so"
> 
> FYI, files are selected for each package by looking through the PACKAGES
> variable and for each package in turn the value of FILES is checked. The
> first package whose FILES matches a file, gets the file.
> 
> The default value of PACKAGES is "${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-
> doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}"; thus FILES_${PN} can be broad
> if the earlier packages pick out the files they need to specifically.
> 
> In most cases the default values work perfectly. What you really need to do
> is determine which file it is that gets added to the -dev package and put
> that elsewhere. You should not need to change FILES_${PN}, just
> FILES_${PN}-dev (or other packages as appropriate).

I should add I did try to build xerces-c using this recipe with a few tweaks, 
and it failed at do_configure because /usr/include was being referred to in the 
configure script (in check for unicode libraries). I didn't take it further 
than that.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

end of thread, other threads:[~2013-05-24  9:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 16:53 QA rdepends issue when building xerces-c Hartmut Behrens
2013-05-23 19:55 ` Hartmut Behrens
2013-05-24  9:27   ` Paul Eggleton
2013-05-24  9:38     ` Paul Eggleton

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.