summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb
Commit message (Collapse)AuthorAgeFilesLines
* opkg-utils: don't generate PN-dev and PN-staticdevRoss Burton2017-05-181-0/+4
| | | | | | | | | | | | | | | opkg-utils ends up in any opkg/rpm image with package management as it's the provider for update-alternatives. If dev-pkgs is enabled then opkg-utils-dev will get installed, which is empty but will subsequently pull python3-dev into the image (as opkg-utils-python depends on python3). As this can result in all of Python appearing in otherwise small images, don't generate these pointless packages. (From OE-Core rev: 5da7a0ba47d39612b08b4f71518b8384a3058b3f) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: move to Python 3Alexander Kanavin2017-05-181-2/+3
| | | | | | | | | | | The scripts were fixed to be compatible with py3 some time ago, but the shebang continued to refer to python 2.x. (From OE-Core rev: bb5718b631151cff840bcfa171ad4f8326c2132e) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: bump revisionChen Qi2017-03-111-2/+1
| | | | | | | | | | | | | | | | | | Bump to latest revision so that update-alternatives could detect priority conflict. Also, we could remove the following patch because opkg-utils has already fixed the problem in another way. 0001-Makefile-use-defined-bindir-and-mandir-as-installati.patch [YOCTO #8314] (From OE-Core rev: d6b04e12127dd65b96ac7f4509b829510ef21071) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: use D instead of OPKG_OFFLINE_ROOT in postrmAndré Draszik2017-01-161-2/+2
| | | | | | | | | | | | While both result in the same in this case, postrm should really be referring to $D as we do everywhere else. (From OE-Core rev: 7e459843e0371953d3d9d3ad05b019947ed7ca04) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: set CLEANBROKEN as upstream Makefile doesn't have clean targetRoss Burton2017-01-161-0/+2
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: bump SRCREV to 0.3.4 tagAlejandro del Castillo2017-01-161-3/+4
| | | | | | | | | | * Add patch that removes hardcoded installation directories. (From OE-Core rev: 60c9a970426cf9a9985fb70b4d896dc29ba2befd) Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Do not use --ignore-fail-on-non-empty with rmdirKhem Raj2017-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | --ignore-fail-on-non-empty is coreutils specific, and you are not always going to have coreutils on target systems especially small ones. They will use the busybox applet which does not support --ignore-fail-on-non-empty, use pipe and true to ignore the errorcode from rmdir instead Fixes upgrade errors on target e.g. rmdir: unrecognized option '--ignore-fail-on-non-empty' BusyBox v1.24.1 (2016-12-20 10:41:39 PST) multi-call binary. Usage: rmdir [OPTIONS] DIRECTORY... To remove package debris, try `opkg remove update-alternatives-opkg`. To re-attempt the install, try `opkg install update-alternatives-opkg`. Collected errors: * pkg_run_script: package "update-alternatives-opkg" postrm script returned status 1. * postrm_upgrade_old_pkg: postrm script for package "update-alternatives-opkg" failed (From OE-Core rev: 5ec8934a495e9b9a782889bc3a84936c8a381165) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: warn if update-alternatives finds priority conflictChen Qi2017-01-091-1/+2
| | | | | | | | | | | | | | | | | | | | If multiple providers for a utility have the same alternatives priority, which one would be chosen is determined by which one is installed later. Our alternatives system should be able to detect such problem and warn users so that potential problems could be avoided. Modify update-alternatives to warn users when detecting multiple providers with the same priority. [YOCTO #8314] (From OE-Core rev: 06cf956e3441868d69f81d6c034778d855ce1c98) (From OE-Core rev: 0b413d502868c89b7ddbe50a978317ffa774b3cc) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: clear update-alternatives database on uninstallAndré Draszik2016-11-231-0/+5
| | | | | | | | | | | | | | | | | | | | When uninstalling update-alternatives, it doesn't seem to make much sense to keep the update-alternatives database around. In particular when removing packaging data, e.g. due to read-only rootfs, update-alternatives is removed from the target file system. Leaving its database around serves no purpose in that case as there is no way to use it afterwards anyway. This frees close to 700KB of (uncompressed) space in a busybox based environment. (From OE-Core rev: b24a63d71b517af701dfedbc7f7b541d25af708f) Signed-off-by: André Draszik <adraszik@tycoint.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: update SRCREVAlejandro del Castillo2016-06-071-6/+4
| | | | | | | | | | | | | Drop patches now included in newer SRCREV. Update HOMEPAGE and PV version to better align with opkg. Current revision include: * Python 3 compatibility * Improved error handling (From OE-Core rev: 4b0b43f473ef12631daa577cdba39906f7d67cab) Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: re-do find/ls code to not fail on filenames with spacesDenys Dmytriyenko2016-04-091-1/+2
| | | | | | | (From OE-Core rev: e3e305135d258bee3ae30a2c7262b886d710b986) Signed-off-by: Denys Dmytriyenko <denys@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: opkg-build exit when fail to list files.Aníbal Limón2016-04-031-2/+2
| | | | | | | | | | | | | | | We have an issue when ls segfaults in some cases [1] so it's better to detect the failure at this level instead of continue the build process. [YOCTO #8926] [1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=8926#c0 (From OE-Core rev: ce62112523f06f6655f673436247b4902ab0a9c3) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: store alternatives in nonarch_libdirDaniel McGregor2016-01-191-1/+1
| | | | | | | | | | | opkg-utils-native stores alternative info in /usr/lib, so do the same on the target. (From OE-Core rev: 0afe5f74337dbfd302c221bf3c0fa9a22e6e7987) Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: add update-alternatives PACKAGECONFIGChristopher Larson2016-01-111-3/+9
| | | | | | | | | | | | This lets someone use a different update-alternatives-native provider. Without this available, they'll step on one another in the sysroot unconditionally, since we need to build opkg-utils-native for ipk based builds regardless. (From OE-Core rev: 0afb74e23ee9a1fcdd334865a5f7280526785a4c) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: use ${bindir} instead of hardcoding /usr/binAndré Draszik2015-07-311-0/+4
| | | | | | | (From OE-Core rev: 48e04a93c357fb494470d2f175e644a6f43a7d63) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-build: Ignore tar error due to hardlinks issue when creating ipk filesAlejandro Hernandez2015-07-121-2/+2
| | | | | | | | | | | | | | | | If a the number of hard links decreases or increases while creating the tar files used for an ipk package, tar fails with error code 1, we use hardlinks on package/ and packages-split/ to decrease disk usage, sometimes other parts of the build can cause a change in the link count, since this happens in a controlled environment we can safely ignore the error and continue to create the ipk file, fixed some typos from old version. [YOCTO #7933] (From OE-Core rev: 80e6f0e5782435157b9a2687ffe6cbd3b3033b47) Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-build: Ignore tar error due to hardlinks issue when creating ipk filesAlejandro Hernandez2015-07-091-1/+3
| | | | | | | | | | | | | If a the number of hard links decreases or increases while creating the tar files used for an ipk package, tar fails with error code 1, if this is the case we ignore the error and continue to create the ipk file [YOCTO #7933] (From OE-Core rev: d39e35a206c33f6062ebbaed4754a0559b28d766) Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Update SRCREVPaul Barker2014-12-231-1/+1
| | | | | | | | | | | | | | | The new upstream commit incorporates the following fix to update-alternatives from Chen Qi <Qi.Chen@windriver.com>: update-alternatives: avoid double slash problem The link path stored by update-alternatives should always be absolute and so we do not need to add an additional slash when joining to $OPKG_OFFLINE_ROOT. (From OE-Core rev: 49dca57255a61b05bb93dbc5d912a9d06d024058) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Update SRCREVPaul Barker2014-11-251-1/+1
| | | | | | | | | | A bug in the opkg-show-deps script is fixed. (From OE-Core rev: 5b8856c0f85b5c6870358152932f20b6346dbbac) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Update SRCREVPaul Barker2014-11-121-1/+1
| | | | | | | | | | update-alternatives now escapes '[' in expressions passed to sed. (From OE-Core rev: f41810a6cbdbb1c6c4df64a929fa4ee4747878bd) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Update SRCREVPaul Barker2014-08-021-1/+1
| | | | | | | | | | | | | opkg-build now checks whether tar supports the '--format' option before using '--format=gnu' so that packages can be build with both Busybox tar (no '--format' option) and GNU tar (defaults to posix format unless told otherwise on some distros). (From OE-Core rev: 99ed5ed0d2f43549e92481de388c69d65a897774) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Update SRCREVPaul Barker2014-06-011-1/+1
| | | | | | | | | | Recent changes in opkg-utils allow package files to be stored in a different directory to the package index if desired. (From OE-Core rev: 237b9700d449de03a3f5dc524c15709f46941cf9) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Update to latest git masterPaul Barker2014-03-071-1/+1
| | | | | | | | | | The latest commit in opkg-utils allows packages created by opkg-build to be read by dpkg-deb again. (From OE-Core rev: 219944af2700ce9dbc425fac384cd32b0a802123) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Add RPROVIDES/RREPLACES/RCONFLICTS to fix upgrade-pathMartin Jansa2014-01-281-1/+3
| | | | | | | | | | | * now with update-alternatives-cworth completely gone should correctly replace it on target as well (From OE-Core rev: 463e72e3125cc28a1494b42219808e925fdfe3d8) 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>
* opkg-utils: Remove strange PACKAGES native overrideRichard Purdie2014-01-191-3/+0
| | | | | | | | | This code makes no sense, native.bbclass clears PACKAGES anyway. Drop it. (From OE-Core rev: 9c8d9781794ed0886a79c8ce4544ba98be0ff858) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Add basic PACKAGECONFIG for python dependenciesRichard Purdie2014-01-191-3/+6
| | | | | | | | | | In small configurations its useful not to have python dependencies. This patch adds code to disable those using PACKAGECONFIG. This allows us to fix poky-tiny after the recent move of update-alternatives to opkg-utils. (From OE-Core rev: 0c0039048fd97cdd3cf28f9e1c829a716dfd68ea) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg/opkg-utils/chkconfig: Clean up u-a-cworth referencesRichard Purdie2014-01-191-0/+1
| | | | | | | | | 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-utils: Upgrade to latest git HEADPaul Barker2014-01-191-2/+7
| | | | | | | | | | | | | The latest version of opkg-utils PROVIDES virtual/update-alternatives via a script copied from opkg, packaged as update-alternatives-opkg. The nativesdk class is added to the recipe to ensure that nativesdk-update-alternatives-opkg is built. (From OE-Core rev: 1e2c38ce13f8e4b25d8656d237343380cbc970aa) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: tidy up recipePaul Eggleton2014-01-021-8/+10
| | | | | | | | | | * Update HOMEPAGE * Rearrange statements in logical order (From OE-Core rev: b180ede825dca8747c8c64dc2f23d64809a3ba95) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Replace one-line DESCRIPTION with SUMMARYPaul Eggleton2014-01-021-1/+1
| | | | | | | | | | | | | | 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>
* remove the unnecessary protocol parametersJackie Huang2013-08-301-1/+1
| | | | | | | | | | | It's not necessary to specify the protocol parameter when it's the default protocol for the fetcher, e.g. the default protocol for git fetcher it git, "protocol=git" isn't needed. (From OE-Core rev: a2bab241c64428d5109c3c5ac5de4463fbad70c5) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Update to newer git rev for bashism fixRichard Purdie2013-03-261-1/+1
| | | | | | | | | On systems with dash as /bin/sh there were failures in do_package_write_ipk due to bashisms in opkg-build. This newer revision contains a fix for this. (From OE-Core rev: 0e185b86e80989a7904292f5866540a049cc4daa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes-devtools: replace virtclass-native(sdk) with class-native(sdk)Robert Yang2012-11-021-2/+2
| | | | | | | | | | | | | 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-utils: bump SRCREV to latestMartin Jansa2012-10-241-2/+1
| | | | | | | (From OE-Core rev: 29da69b1d6f986ff186a7e97cb2e1d41cc7c2349) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Add needed python modules as RDEPENDSAndrei Gherzan2012-10-241-2/+2
| | | | | | | | (From OE-Core rev: ec4553832251615cee65e01e3fd261f5c7863b2e) Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: UPdate to version with python 2.6 fixRichard Purdie2012-07-191-2/+2
| | | | | | (From OE-Core rev: 3448537043ca96794f3b1b4ce3a6eb775c98124c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: bump SRCREVMartin Jansa2012-06-211-1/+1
| | | | | | | | | | | * there are 2 small fixes python-2.6 compatibility missing C option for opkg-build (From OE-Core rev: f7caea892cf66236bae854dcbaffec9d4a2d09a2) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: bump SRCREV for Packages cache fix and other fixesMartin Jansa2012-05-011-6/+1
| | | | | | | (From OE-Core rev: 5863e2ae81b7840d6cb9b80641a7fd69ce4d6f1f) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: Update to include a fix for version comparision issuesRichard Purdie2012-04-131-2/+2
| | | | | | | | | | | This brings the version comparision within opkg-utils into sync with that in opkg itself. [YOCTO #2233] (From OE-Core rev: 1964be5432c1c378e80d7f1dec0999a2be71853b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* opkg-utils: convert to git repo at git.yoctoproject.orgSaul Wold2012-02-011-0/+31
The svn.openmoko.org site seems to have become unstable, make a copy and convert to git at git.yoctoproject.org to preserve history [YOCTO #1867] (From OE-Core rev: b44717c29c4f50917570039adf896680d24bb216) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>