aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/opkg/patches
Commit message (Collapse)AuthorAgeFilesLines
* opkg: switch to own fork to improve memory usageJo-Philipp Wich2017-02-1929-3431/+0
| | | | | | | | | | Switch to our own fork of opkg to significantly reduce the required amount of memory when updating lists or installing packages. Preliminary tests showed a usage drop of about 90% during these operations, from ~3.7MB with unmodified opkg to ~360KB with our custom fork. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* opkg: clarify messages and errors related to downloadsHannu Nyman2017-01-261-0/+61
| | | | | | | | | | | | | Clarify opkg's messages related to downloads: * more visible error message for package list download failure * separate error message for signature file download error * if wget returns 4, signal the network error more clearly * remove '.' from end of filenames and URLs * try signature check only if the package list was downloaded ok. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* opkg: vfork external gzip command to uncompress dataJo-Philipp Wich2016-12-273-22/+745
| | | | | | | | | | | | | | | | | | Opkg's builtin decompression code is unsuitable to process nested archives as it uses a single shared state and relies on undefined seek behaviour for pipes. Rework the extraction logic to use the external gzip command as I/O filter for decompressing data and remove the builtin inflate code entirely. This shrinks the final opkg binary by about 4KB and results in less runtime memory consumption due to efficient use of vfork() and less copy-on-write operations in the forked child. Rework by Felix: create a thread that relays data to the gzip process instead of using a fragile poll loop Signed-off-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* Revert "opkg: vfork external gzip command to uncompress data"Stijn Tintel2016-12-273-745/+22
| | | | | | This reverts commit 0090adcd5c94adad2168cd9b338f45827533c81d. It breaks reading package list in /tmp/opkg-lists, making it impossible to install packages from feeds in snapshots.
* opkg: vfork external gzip command to uncompress dataJo-Philipp Wich2016-12-263-22/+745
| | | | | | | | | | | | | | | | | | Opkg's builtin decompression code is unsuitable to process nested archives as it uses a single shared state and relies on undefined seek behaviour for pipes. Rework the extraction logic to use the external gzip command as I/O filter for decompressing data and remove the builtin inflate code entirely. This shrinks the final opkg binary by about 4KB and results in less runtime memory consumption due to efficient use of vfork() and less copy-on-write operations in the forked child. Rework by Felix: create a thread that relays data to the gzip process instead of using a fragile poll loop Signed-off-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* opkg: run prerm scripts for the old version also on upgradeJonas Gorski2016-11-211-0/+73
| | | | | | | | | To make sure we properly restart services on upgrade we need to call the prerm script of the old package, in case the init script changes (or vanishes). Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Acked-by: Jo-Philipp Wich <jo@mein.io>
* opkg: set PKG_UPGRADE also when running scripts for the old packageJonas Gorski2016-11-214-14/+15
| | | | | | | | Allow scripts from the package to be upgraded to be aware of being upgraded. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> Acked-by: Jo-Philipp Wich <jo@mein.io>
* Revert "opkg: use vfork on gz_open by default (FS#120)"Jo-Philipp Wich2016-08-281-20/+0
| | | | | | | | | | This reverts commit 763f5d787316ec1b041450a644ecd9416f11e94f. Currently the vfork() code path in opkg is broken and relies on unsupported ftello() / fseeko() operations on pipes - we need to restructure the code before we can reconsider this approach. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* Revert "opkg: disable the use of vfork for the host build"Jo-Philipp Wich2016-08-281-12/+7
| | | | | | | | | | This reverts commit 02e3c718e9ad0c14aa3cf359ba2a4763e81df805. Currently the vfork() code path in opkg is broken and relies on unsupported ftello() / fseeko() operations on pipes - we need to restructure the code before we can reconsider this approach. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* opkg: disable the use of vfork for the host buildFelix Fietkau2016-08-281-7/+12
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* opkg: use vfork on gz_open by default (FS#120)Felix Fietkau2016-08-281-0/+20
| | | | | | Reduces memory consumption and binary size Signed-off-by: Felix Fietkau <nbd@nbd.name>
* opkg: fix use-after-free with duplicate packages on the command lineJo-Philipp Wich2016-04-231-0/+11
| | | | | | | | | When the same package file is specified multiple times on the opkg install command line, the name pointer on the argv array becomes stale after the package structures have been merged, leading to invalid memory accesses upon install. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* opkg: Fix handling of sha256sums for conffilesJohn Crispin2016-03-041-0/+14
| | | | | | | | | MD5s are shorter than SHA256, so reading buffer has to be bigger to read the whole hash. Signed-off-by: Michal Hrusecky <michal.hrusecky@nic.cz> SVN-Revision: 48917
* opkg: Make opkg understand old md5John Crispin2016-03-011-19/+36
| | | | | | | | | | Opkg now uses sha256 by default and expects them. Making it optionally understand md5s also and detect md5 sum so we can migrate from configuration that used md5. Signed-off-by: Michal Hrusecky <Michal.Hrusecky@nic.cz> SVN-Revision: 48867
* opkg: Extend 'opkg list' command to optionally display package sizeJohn Crispin2015-09-161-0/+74
| | | | | | | | | | | | | | | | 'opkg list' command only displays the available packages' name, version and description. It would be useful to also see the approximate size of the available package. This patch extends "opkg list" command with "--size" to optionally show also the *.ipk size. * Default behaviour is to list the available packages as earlier: "name - version - description" * with "--size" the output of is "name - version - size - description". Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> SVN-Revision: 46980
* opkg: expose lists_dir option as command line argumentJo-Philipp Wich2015-09-141-0/+39
| | | | | | | | | | | | Expose the "lists_dir" configuration file option as command line switch so that we can override it for the Image Builder environment. Also add a more standard PKG_MAINTAINER variable while touching the Makefile. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 46911
* opkg: Fix --force-checksum when using SHA256John Crispin2015-06-051-0/+31
| | | | | | | | | | Allow installing packages with mismatching SHA256 checksums via $ opkg install --force-checksum $PACKAGE Signed-off-by: Florian Fieber <florian@florianfieber.de> SVN-Revision: 45904
* opkg: fix md5 related #ifdef (thx, swalker)Felix Fietkau2015-04-141-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45447
* opkg: drop md5 in favour of sha256John Crispin2015-04-142-0/+973
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 45437
* opkg: add patch to circumvent signature checks on the command lineFelix Fietkau2015-04-061-0/+70
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45285
* opkg: add patch for supporting signature checking through usignFelix Fietkau2015-04-061-0/+91
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45284
* opkg: make PKG_UPGRADE available during preinst hookJohn Crispin2014-12-081-16/+19
| | | | | | | | https://dev.openwrt.org/ticket/18479 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43581
* opkg: the PKG_UPGRADE env was not set properlyJohn Crispin2014-12-021-2/+2
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43493
* opkg: indicate upgrade vs installJohn Crispin2014-09-111-0/+46
| | | | | | | | | when running the postinst trigger we set PKG_UPGRADE=1 if this is an upgrade and not an install. Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 42468
* opkg: introduce a --force-checksum cmdline flag to be ale to ignore ↵Jo-Philipp Wich2014-05-141-0/+85
| | | | | | | | mismatching md5sums Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 40766
* opkg: do not add blank "Provides:" fields to package metadataFelix Fietkau2013-12-131-0/+11
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39039
* opkg: ignore empty fields in package listsSteven Barth2013-10-141-0/+16
| | | | | | | | | | This is to work around issues with package list generators creating empty fields in some environments. Based on a patch by Paul Selkrik <pselkrik@isc.org> Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 38390
* opkg: add build variant with signature supportSteven Barth2013-09-261-8/+8
| | | | SVN-Revision: 38220
* packages: clean up the package folderJohn Crispin2013-06-2114-0/+1092
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37007