summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg/opkg.inc
Commit message (Collapse)AuthorAgeFilesLines
* opkg: Merge opkg.inc into recipe and tidy upPaul Barker2015-02-031-76/+0
| | | | | | | | | | | | | There is no benefit to having a separate .inc file when we only support one version of opkg. The .inc file had multiple do_install_append functions and several variables were defined out of the usual order. This arrangement should be better. (From OE-Core rev: ab3cc175649dbea6f434bb0f6ee1346f5f0e701a) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-arch-config: Renamed from opkg-config-basePaul Barker2015-02-031-1/+1
| | | | | | | | | The name 'opkg-arch-config' is much more descriptive. (From OE-Core rev: d0cb4fb3aab1d6041f88fa564e5d745629316ae2) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: Add runtime dep on gnupg if 'gpg' is in PACAKGECONFIGPaul Barker2014-08-231-1/+1
| | | | | | | | | | | The 'opkg-key' utility requires gpg to manage the list of trusted keys. The ability to verify package signatures is not much use without the ability to add keys to the trusted list... (From OE-Core rev: ebd7dce320dfdbac449b60e23cfe41125b658319) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Globally replace 'base_contains' calls with 'bb.utils.contains'Otavio Salvador2014-04-251-1/+1
| | | | | | | | | | | The base_contains is kept as a compatibility method and we ought to not use it in OE-Core so we can remove it from base metadata in future. (From OE-Core rev: d83b16dbf0862be387f84228710cb165c6d2b03b) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Globally replace oe.utils.contains to bb.utils.containsOtavio Salvador2014-04-251-1/+1
| | | | | | | | | | | BitBake has the exact same code as oe.utils.contains so there's no reason to duplicate it. We now rely on the bb.utils.contains code for metadata. (From OE-Core rev: 93499ebc46547f5bf6dcecd5a786ead9f726de28) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg/dpkg: remove the postinstallsLaurentiu Palcu2014-03-071-27/+1
| | | | | | | | | | | Just use the run-postinsts recipe for running first boot postinstalls. [YOCTO #5666] (From OE-Core rev: 2dadf775f619571c273ea20eb8d3fdd7ba656052) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg/opkg-utils/chkconfig: Clean up u-a-cworth referencesRichard Purdie2014-01-191-1/+0
| | | | | | | | | Catch some u-a-cworth references that slipped through the move of u-a to opkg-utils and its rename to -opkg. (From OE-Core rev: a9ff0bbac5ae0688525c71f0a358f0750a277269) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: No longer PROVIDES update-alternativesPaul Barker2014-01-191-9/+3
| | | | | | | | | The new provider is the opkg-utils recipe. (From OE-Core rev: c63d241d15608ac431a1d716ec84ef568928cf85) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Replace one-line DESCRIPTION with SUMMARYPaul Eggleton2014-01-021-3/+3
| | | | | | | | | | | | | | A lot of our recipes had short one-line DESCRIPTION values and no SUMMARY value set. In this case it's much better to just set SUMMARY since DESCRIPTION is defaulted from SUMMARY anyway and then the SUMMARY is at least useful. I also took the opportunity to fix up a lot of the new SUMMARY values, making them concisely explain the function of the recipe / package where possible. (From OE-Core rev: b8feee3cf21f70ba4ec3b822d2f596d4fc02a292) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/recipes: More optimal DISTRO_FEATURES referencesRichard Purdie2013-12-051-1/+1
| | | | | | | | | Using the contains function results in more optimal sstate checksums resulting in better cache reuse as we as more consistent code. (From OE-Core rev: 9c93526756e7cbbff027c88eb972f877bcb1f057) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: Don't use update-alternativesPaul Barker2013-11-241-7/+4
| | | | | | | | | | | The symlink from 'opkg' to 'opkg-cl' doesn't need to be created with update-alternatives as there isn't any alternative. Instead it can be created by hand in do_install_append. (From OE-Core rev: c28bb9126eed92c13a50a2557eb48402a9d12537) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: Add PACKAGECONFIG optionsPaul Barker2013-11-241-7/+10
| | | | | | | | | | | Instead of hardcoding EXTRA_OECONF to disable things, we add PACKAGECONFIG options for gpg, curl, ssl-curl, openssl, sha256 and pathfinder. By default all these options are disabled. (From OE-Core rev: 7d227c5764d71f21432a6a56dc4616c5b917c42c) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: Update to version 0.2.0Paul Barker2013-11-241-1/+0
| | | | | | | (From OE-Core rev: d29a55e170b721d8844984ab50d2f08926c42edb) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* systemd-compat-units: run-postinsts fix script linkAndreas Müller2013-10-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | in commit fe039170236080291c0220476a5809774f82ee5c Author: Muhammad Shakeel <muhammad_shakeel@mentor.com> Date: Wed Oct 2 10:55:32 2013 +0000 systemd-compat-units: Use correct run-postinsts script link OE-Core commit 75a14923da1ba91eddde47f0907345c19c82d6f0 has moved run-postinsts script execution from S98 to S99 in rcS.d. run-postinsts.service should check for this script and run it on first boot rather than S98run-postinsts, which is for opkg/dpkg. the link was corrected but the mentioned commit is not available. Instead of reverting, we use the same variable as opkg for init script ordering and drop a note in case somebody wants to change default. (From OE-Core rev: 7aabc9408fb382f0ae39f9932b6d9ac391528b76) Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: putting the service files into PNRoy Li2013-10-301-0/+1
| | | | | | | | (From OE-Core rev: f0ec7f81c1951211f049c342fd6bd1cad424564a) Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: Use systemd service for first boot configurationMuhammad Shakeel2013-09-301-2/+19
| | | | | | | | | | | | | Currently opkg uses a script to configure packages during first time boot. This script is present in rcS.d and when 'sysvinit' is disabled this script doesn't execute. For systemd only distros this newly added service will run the opkg configure during first boot only. (From OE-Core rev: fdcfcea5b8eae1769a217f8efea9c02f037f63fa) Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg.inc: remove the obsolete POSTLOG variableChen Qi2013-08-161-2/+0
| | | | | | | | | | | | | With the current implementation of postinst logging mechanism, the location for log file is configured via the POSTINST_LOGFILE variable. The POSTLOG variable is obsolete now, thus removing it. (From OE-Core rev: 6aaf2d5c51eb4ee6acbb85fd4aa5f44406907bc2) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg.inc: remove the obsolete REDIRECT_CMDChen Qi2013-08-031-2/+0
| | | | | | | | | | The REDIRECT_CMD variable is now obsolete, remove it. (From OE-Core rev: cba8f3257bb645dafdfa7c672bbdc4b0f0c094e6) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: put libopkg header files into libopkg-devPaul Barker2013-06-181-1/+1
| | | | | | | | | | The header files for libopkg belong in the package libopkg-dev rather than opkg-dev where they are placed by default. (From OE-Core rev: f79cd4208340b56afc044d8e3abc72d43d395062) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: modify the run-postinst script to enable postinst loggingChen Qi2013-05-231-1/+6
| | | | | | | | | | | | | | | | Enable postinst logging by checking the configuration in ${sysconfdir} /default/postinst. In this way, the postinst logging is enabled if 'debug-tweaks' is in IMAGE_FEATURES, and at the same time, we avoid unnecessary rebuilt if IMAGE_FEATURES is changed. [YOCTO #4262] (From OE-Core rev: 35be6ffc19a5156aa029397707f1e6869684b821) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: remove unnecessary extra leading slash in run-postinstsJonathan Liu2013-05-211-1/+1
| | | | | | | | (From OE-Core rev: 047826f034f00c2402c0a078b5c918019fcf36a4) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg.inc: don't hardcode /var/lib/opkgLaurentiu Palcu2013-04-111-1/+1
| | | | | | | (From OE-Core rev: 9caf1f2540f0419c1301cc21777f97c6671fd844) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dpkg, opkg, rpm-postinsts: avoid repackaging when changing IMAGE_FEATURESPaul Eggleton2013-04-111-0/+1
| | | | | | | | | | | | | | | | | | Recipes cannot depend on the value of IMAGE_FEATURES; in this case the result is do_package task signatures changing every time IMAGE_FEATURES changes, causing a large number of task re-executions. The implementation of the log capturing really needs to be changed to capture these in a different place and possibly not even conditional upon IMAGE_FEATURES at all, but this will be invasive at this point in the development cycle. For now, remove the variable dependencies to fix the immediate problem. Fixes [YOCTO #4246]. (From OE-Core rev: b4fbe4095de447ef4e426128bafaf8a292fa63e1) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* dpkg, opkg, rpm-postinst: fix overwriting the run-postinstall scriptLaurentiu Palcu2013-04-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | If multiple package managers are installed in the image, they will overwrite each other's run-postinsts script, resulting in postinstalls not beeing run at all at first boot. What this patch does: * checks whether opkg/dpks/rpm is actually used to install the packages and, only after, creates the run-postinsts script; * brings dpkg recipe in sync with opkg: moves the script creation from do_install to postinstall; * move creation of run-postinsts script (rpm-postinsts recipe) to the postinstall scriptlet in order to better control the creation of the script according to the package manager used; [YOCTO #4231] [YOCTO #4179] (From OE-Core rev: d7fd56df0a4954954d6d0764ae06beb869e6b99a) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: save output of postinst scripts when image first bootKang Kai2013-03-071-1/+4
| | | | | | | | | | | | | | | | | | When image feature "debug-tweaks" enabled, save output of postinstall scripts to log file /var/log/postinstall.log when image first boot. And the log file can be configured. It also needs image feature "package-management" enabled. If not, package run-postinsts will be installed and then all packages will be configured by it. Command 'opkg configure' outputs nothing. [YOCTO #3223] (From OE-Core rev: 378504c1c0ab1e0e09950b37effc04221b928236) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* ipk: use OPKGLIBDIR in all placesMartin Jansa2013-02-061-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | * it's not recommended to change this value, because it breaks upgrade path on target (all old u-a alternatives are forgot in old OPKGLIBDIR value * but make it consistent, so if someone really want to change that, then setting OPKGLIBDIR_distro in distro.conf would be enough * without this there were at least 4 places to change: rootfs_ipk: opkglibdir variable (notice that I've removed /opkg from it to correspond with EXTRA_OECONF option used in opkg recipes package_ipk: ${target_rootfs}${localstatedir}/lib/opkg/ hardcoded in package_install_internal_ipk opkg-collateral: value in lists file opkg: EXTRA_OECONF for all 3 classes, FILES_libopkg, do_install * validated with buildhistory that without OPKGLIBDIR explicitly set the output is the same and that after setting OPKGLIBDIR_forcevariable := "${libdir}" everything including empty directory from package_ipk is moved to libdir (From OE-Core rev: cf0aa9c4fdae8855803e96b1922d54a2431795d3) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-native: obey virtual/update-alternatives-nativeChristopher Larson2013-01-071-2/+8
| | | | | | | | (From OE-Core rev: 1f9d979ca60eca2277f53f24dc59f9ab18e81195) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: Drop unnecessary FILESDIR settingRichard Purdie2012-11-211-2/+0
| | | | | | (From OE-Core rev: e869731f80d8c0059b44a7029543b8943fd07653) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: drop PACKAGE_ARCH setting for update-alternatives-cworthMartin Jansa2012-11-211-2/+1
| | | | | | | | | | | | * there is warning about update-alternatives-cworth ipk being overwritten in "all" feed when opkg is built for more architectures * see https://bugzilla.yoctoproject.org/show_bug.cgi?id=3390 for details (From OE-Core rev: 969d10d0aa5537a119ed9be9e8321dbd73d160fe) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes-devtools: replace virtclass-native(sdk) with class-native(sdk)Robert Yang2012-11-021-4/+4
| | | | | | | | | | | | | The overrides virtclass-native and virtclass-nativesdk are deprecated, which should be replaced by class-native and class-nativesdk. [YOCTO #3297] (From OE-Core rev: bb67ddeb2eed3e25c626a279ef53a7e8c7bfe6f2) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-native: remove spurious dependency on curl-nativePhil Blundell2012-10-021-2/+0
| | | | | | | | | | All variants of opkg are currently configured --disable-curl so there seems no point in depending on it. (From OE-Core rev: 875f1eb876c17c038a77bc7b7a5fed775d9fd3ea) Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nativesdk: Switch to using nativesdk as a prefix, not a suffixRichard Purdie2012-09-021-9/+6
| | | | | | | | | | | | | | | As discussed on the mailing lists, using a suffix to package names is hard and has lead to many recipes having to do PKGSUFFIX games. Its looking extremely hard to scale nativesdk much further without hacking many recipes. By comparison, using a prefix like multilib does works much better and doesn't involve "hacking" as many recipes. This change converts nativesdk to use a prefix using the existing multilib infrastructure. (From OE-Core rev: 81813c0e322dc04ce4b069117188d8a54dfddb8c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: use new update-alternativesMark Hatle2012-05-301-7/+6
| | | | | | | (From OE-Core rev: fc9c2fd512e592806b10d0273ca490c90072ff3f) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* nativesdk/misc: set PKGSUFFIX for correct variable name expansion.Lianhao Lu2012-03-231-1/+1
| | | | | | | | | | | Set PKGSUFFIX in nativesdk.bbclass for correct variable name expansion. This would fix bunch of "not shipped" packaging warnings in "-nativesdk" recipes. And also bumping the corresponding PR. (From OE-Core rev: c69268305e6f814800b64f3a4be724c40b41108c) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: rename postinst trigger scriptOtavio Salvador2012-03-131-4/+4
| | | | | | | | | | Use 'run-postinsts' as trigger script name as it describes better the intent of it. (From OE-Core rev: 9a0a106f64a913de593877bf47f79cb29ab87716) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: refactor packages for staticdevSaul Wold2012-01-241-3/+4
| | | | | | | (From OE-Core rev: 01bc511d772a47e34b2071393651a915c8ddb1b0) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: move common code & metadata into opkg.inc to reduce code duplicationSaul Wold2012-01-241-2/+41
| | | | | | | (From OE-Core rev: da70cc9f33845d62943afc78168e56931d0a9b15) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Convert to use direct access to the data store (instead of bb.data.*Var*())Richard Purdie2011-11-101-1/+1
| | | | | | | | | | | | | | | | | This is the result of running the following over the metadata: sed \ -e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \ -e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -i `grep -ril bb.data *` (From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: Bump SRCREV to 609Khem Raj2011-05-171-2/+6
| | | | | | | | | | Disable curl gpg ssl sha Backported from OE (From OE-Core rev: 905adf0e22afc18ab4088ba76011740002876e95) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Control over when package init scripts are runGary Thomas2011-04-241-0/+4
| | | | | | | | | | | | | | | | | | | When a package is built, some installation scripts must be performed on the target. In the case of a complete image, these scripts are run by a separate step at init time, but only during the first boot (other package install scripts can just be run when the package is installed on the target). This patch lets the distribution (or user) decide when these postponed install scripts should run. The default is normally near the end of init, but there may be times when it's beneficial to run them earlier so the "when" can be overridden. (From OE-Core rev: a46466893407d44dd16ab37ae70e1bee14bdde0a) Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg: Stop opkg-nativesdk providing update-alternatives-cwrorth and libopkgRichard Purdie2011-01-201-0/+3
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Major layout change to the packages directoryRichard Purdie2010-08-271-0/+33
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>