Skip to contentSkip to conversation

package error for custom devtool recipe

DISCUSSION Greg Wilson-Lindberg 2 participants 3 messages Oct 3, 2017

lore
Share & tools
lore
#0 lore raw

I've got a recipe that I'm trying to get working that was created by devtool:

# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional. # (Feel free to remove these comments when editing.)

# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is

# your responsibility to verify that the values are complete and correct.
#
# NOTE: multiple licenses have been detected; if that is correct you should separate
# these in the LICENSE value using & if the multiple licenses all apply, or | if there
# is a choice between the multiple licenses. If in doubt, check the accompanying
# documentation to determine which situation is applicable.
#
# The following license files were not able to be identified and are
# represented as "Unknown" below, you will need to check them yourself:
#   src/towitoko/COPYING
#   src/openct/LICENSE
#
LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1 \
                    file://src/towitoko/COPYING;md5=2fc60379096eee9073e3012488ba87cd \
                    file://src/openct/LICENSE;md5=ebc2e3e5ba280a30e3e1abd91a4a6c52"

SRC_URI = "https://downloads.sourceforge.net/acsccid/acsccid-${PV}.tar.bz2" SRC_URI[md5sum] = "ac77b3aeae0a11723c96c7f98769490e"
SRC_URI[sha256sum] = "1607591ee0df07c0157a71f6cb61e1e11fe1fa17331f02d2dff020db0e28c0ae"

DEPENDS = "flex-native libusb1 pcsc-lite"

# NOTE: if this software is not capable of being built in a separate build directory

# from the source, you should replace autotools with autotools-brokensep in the
# inherit line
inherit pkgconfig autotools

# Specify any options you want to pass to the configure script using EXTRA_OECONF:
EXTRA_OECONF = ""

I get some package errors when I build this:

ERROR: QA Issue: acsccid: Files/directories were installed but not shipped in any package:
/usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Info.plist /usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Linux/libacsccid.so
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
acsccid: 2 installed and not shipped files. [installed-vs-shipped]

I've added some FILES = lines to try to get rid of the error to no avail:

FILES_${PN} = "${libdir}/libacsccid.so"

or:

FILES_${PN} = ".libs/libacsccid.so"

or just:

FILES_${PN} = "libacsccid.so"

and:

PACKAGE_BEFORE_PN = "info"
FILES_${PN}-info = "Info.plist"

Where can I find what the specification is for the Info.plist & libacsccid.so files so that I can properly package them. I've looked in the log files but I haven't been able to find anywhere that has something that would look like what I need to use to specify packaging up the libacsccid.so and not even installing the Info.plist file.

Thanks in advanced
Greg

#1 lore raw

Hi Greg,

Quoted 15 lines · NZDT Greg Wilson-Lindberg

I get some package errors when I build this:

ERROR: QA Issue: acsccid: Files/directories were installed but not shipped in any package:
/usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Info.plist /usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Linux/libacsccid.so
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
acsccid: 2 installed and not shipped files. [installed-vs-shipped]

I've added some FILES = lines to try to get rid of the error to no avail:

FILES_${PN} = "${libdir}/libacsccid.so"

Quoted 7 lines

or:

FILES_${PN} = ".libs/libacsccid.so"

or just:

FILES_${PN} = "libacsccid.so"

The reason none of these work is that none of these actually match the file path (not to mention you are setting the value outright instead of adding to the existing value). The path you are trying to match is "/usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Linux/libacsccid.so" so the value you want is either exactly that path, or something like "${libdir}/pcsc/drivers/*/Contents/Linux/*.so". Also, instead of = use += so that you are adding to the existing value.

Quoted 4 lines

and:

PACKAGE_BEFORE_PN = "info"
FILES_${PN}-info = "Info.plist"

This isn't right - in PACKAGES (via PACKAGE_BEFORE_PN) you are placing "info" and then setting FILES_${PN}-info i.e. the package is named "${PN}-info". Probably the thing you want is to prepend this package to PACKAGES:

PACKAGES =+ "${PN}-info"

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw

Hi Paul,

Thanks for the corrections. I was working from examples from the book "Embedded Linux Systems with the Yocto Project" by Rudolf J. Streif and he left out the ${PN} in the file name. Including that makes sense now that I see your suggestions. It's now working correctly.

Thanks again,

Greg

________________________________
From: Paul Eggleton <[email protected]>
Sent: Monday, October 2, 2017 6:26:21 PM
To: Greg Wilson-Lindberg
Cc: [email protected]
Subject: Re: [yocto] package error for custom devtool recipe

Hi Greg,

Quoted 15 lines · NZDT Greg Wilson-Lindberg

I get some package errors when I build this:

ERROR: QA Issue: acsccid: Files/directories were installed but not shipped in any package:
/usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Info.plist /usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Linux/libacsccid.so
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
acsccid: 2 installed and not shipped files. [installed-vs-shipped]

I've added some FILES = lines to try to get rid of the error to no avail:

FILES_${PN} = "${libdir}/libacsccid.so"

Quoted 7 lines

or:

FILES_${PN} = ".libs/libacsccid.so"

or just:

FILES_${PN} = "libacsccid.so"

The reason none of these work is that none of these actually match the file path (not to mention you are setting the value outright instead of adding to the existing value). The path you are trying to match is "/usr/lib/pcsc/drivers/ifd-acsccid.bundle/Contents/Linux/libacsccid.so" so the value you want is either exactly that path, or something like "${libdir}/pcsc/drivers/*/Contents/Linux/*.so". Also, instead of = use += so that you are adding to the existing value.

Quoted 4 lines

and:

PACKAGE_BEFORE_PN = "info"
FILES_${PN}-info = "Info.plist"

This isn't right - in PACKAGES (via PACKAGE_BEFORE_PN) you are placing "info" and then setting FILES_${PN}-info i.e. the package is named "${PN}-info". Probably the thing you want is to prepend this package to PACKAGES:

PACKAGES =+ "${PN}-info"

Cheers,
Paul

--

Paul Eggleton
Intel Open Source Technology Centre