Hi,

I am trying to add a new library (libssh2) to the my packages in user.collection.  Currently, everything is working (configuration, compilation, staging, etc) except for the packaging.  I have not customized the package names or order at all, and the following is output during the packaging stage:

NOTE: Running task 252 of 255 (ID: 12, /home/andrew/gumstix/gumstix-oe/user.collection/packages/libssh2/libssh2_0.15.bb, do_package_write_ipk)
NOTE: package libssh2-0.15: started
NOTE: package libssh2-0.15-r0: task do_package_write_ipk: started
Packaged contents of libssh2-dbg into /home/andrew/gumstix/gumstix-oe/tmp/deploy/uclibc/ipk/armv5te/libssh2-dbg_0.15-r0_armv5te.ipk
Packaged contents of libssh2 into /home/andrew/gumstix/gumstix-oe/tmp/deploy/uclibc/ipk/armv5te/libssh2-1_0.15-r0_armv5te.ipk
Packaged contents of libssh2-doc into /home/andrew/gumstix/gumstix-oe/tmp/deploy/uclibc/ipk/armv5te/libssh2-doc_0.15-r0_armv5te.ipk
Packaged contents of libssh2-dev into /home/andrew/gumstix/gumstix-oe/tmp/deploy/uclibc/ipk/armv5te/libssh2-dev_0.15-r0_armv5te.ipk
NOTE: Not creating empty archive for libssh2-locale-0.15-r0
NOTE: package libssh2-0.15-r0: task do_package_write_ipk: completed

Each of the above ipk files is created, but when I try to build an image containing libssh2 I get:

| Collected errors:
| Cannot find package libssh2.
| Check the spelling or perhaps run 'ipkg update'

The following is the recipe for libssh2:

DESCRIPTION = "A C library implementing the SSH2 protocol"
HOMEPAGE = "http://www.libssh2.org/wiki/index.php/Main_Page"
LICENSE = "BSD"
SECTION = "libs/network"
PRIORITY = "optional"
PR = "r0"
DEPENDS = "openssl zlib"

SRC_URI = "http://prdownloads.sourceforge.net/libssh2/${P}.tar.gz"

inherit autotools

EXTRA_OECONF = "--with-openssl=${STAGING_LIBDIR}/.. \
                --with-libz=${STAGING_LIBDIR}/.. \
               "

do_stage() {
    install -m 0644 include/libssh2.h ${STAGING_INCDIR}/libssh2.h
    install -m 0644 include/libssh2_publickey.h ${STAGING_INCDIR}/libssh2_publickey.h
    install -m 0644 include/libssh2_sftp.h ${STAGING_INCDIR}/libssh2_sftp.h
    oe_libinstall -a -so libssh2 ${STAGING_LIBDIR}
}

The custom image recipe is very straight forward as well:

require packages/images/gumstix-minimal-image.bb

IMAGE_INSTALL += " \
    cron \
    ntp \
    ntpdate \
    lighttpd \
    php \
    libssh2 \
    motd \
    syslog-ng \
    "

Does anyone know what might be causing this?  One thought I had was the -1 that is appended to libssh2 in the package name ( libssh2-1_0.15-r0_armv5te.ipk), since other libraries seem to have the interface major version number appended directly to the name (e.g. libz1_1.2.3-r2_armv5te.ipk), but I don't know how to fix it if this is the problem.  The dash may also just be to provide separation since the package name ends with a number.

Thanks,

Andrew