we are trying to build opkg version 0.3.3 for rasberry-pi environment. I am able to build opkg successfully but with this build opkg-key utility is not generated.

I added gnupg and gpgme dependencies on RDEPENDS option of opkg_0.3.3.bb file but it did not work for us.

could you please let us know what configuration/dependency shall I add to build opkg-key along with opkg.


thanks.

  • No labels

8 Comments

  1. Hi Z-Nitin Patet,

    This is not yet officially available in RPi. Please share the steps you did and the results you are observing so that we can also give a try. By the way,  after adding gupnp and gpgme as dependencies, did the build failed or build succeded without generaintg opkg-key?

  2. Hi,

    Below are the steps I followed.

    Step 1:

     Edited this file meta-cmf-raspberrypi/recipes-core/packagegroups/packagegroup-rdk-oss-broadband.bbappend and added dependencies as shown in bold below.

    RDEPENDS_packagegroup-rdk-oss-broadband_append = " \
    iw \
    hostapd \
    linux-firmware-ralink \
    crda \
    ebtables \
    rtl8812au \
    rtl8192eu \
    tcpdump \
    ipset \
    gnupg \
    rtl88x2bu \
    gpgme \
    opkg \


    Step 2:

      Initial Error I got with libsolv.

           | configure: error: Package requirements (libsolv >= 0.6.25) were not met:
           |
           | Requested 'libsolv >= 0.6.25' but version of libsolv is 0.6.23

      When I upgraded manually to higher version then It fix this issue.


    Step 3:

    with the above steps opkg was getting built but without gpg option.  then I added gnupg and gppme dependencies on RDEPENDS of opkg_0.3.3.bb file as shown below.   

    RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config gnugp gpgme run-postinsts libarchive"

    opkg build fails for me with below error.

    ERROR: Nothing RPROVIDES 'gnupg-native' (but virtual:native:/home/ubuntu/rdkb-raspberry-pi/openembedded-core/meta/recipes-devtools/opkg/opkg_0.4.2.bb RDEPENDS on or otherwise requires it)
    NOTE: Runtime target 'gnupg-native' is unbuildable, removing...
    Missing or unbuildable dependency chain was: ['gnupg-native']
    ERROR: Required build target 'rdk-generic-broadband-image' has no buildable providers.
    Missing or unbuildable dependency chain was: ['rdk-generic-broadband-image', 'opkg-native', 'gnupg-native']


  3. HI Nitin Patet,

    Please upgrade to latest opkg and lilbsolv packages and try to compile and let us know are you facing any issues.
    http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-devtools/opkg   
    http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-extended/libsolv
     

    Thanks and Regards

    Srinivas

    1. Thanks Srinivas for sharing latest opkg and libsolv packages,

      with these packages I am able to built opkg with gpg enabled however I found few things.

      • option check_signature was commented ( i had to manually enabled it for signature validation)
      • opkg update fails with https server. Error What I got is 

        Collected errors:
         * opkg_validate_cached_file: Failed to download <https://path of packages.gz>/Packages.gz headers: HTTP response code said error.

         

      Could you please suggest what to do to fix opkg update issue.

      will these packages available with latest rdk-b repo as well ?

  4. Hi,


    Any solution/suggestion for the above query mentioned. 

    opkg update fails with https server. Error What I got is 

    Collected errors:
     * opkg_validate_cached_file: Failed to download <https://path of packages.gz>/Packages.gz headers: HTTP response code said error.

  5. not getting this error now. may be some env issue causing this.

    thanks

  6. Hi,

    we are trying to build rdkb for reference platform and we used rdk-next branch for building image.

    we were able to build image but opkg built along with image does not have ssl enabled and opkg-key is also missing in that build.

    we tried using opkg and opkg-utils package from below location but no luck.

    http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-devtools/opkg   
    http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-extended/libsolv

    could you please guide us to build opkg with ssl-enabled option along with opkg-key file.

    thanks

    Amit.

    1. Hi Z-Amit Kumar,

      Could you please confirm whether you have followed the below steps :

      The above steps will build opkg with ssl-enabled option along with opkg-key file

      Please let us know how it works for you.

      Regards,
      Priyankaa KVB