Commit Graph

80 Commits (71906dea62558731f3fed96903626204eeae535c)

Author SHA1 Message Date
Jo-Philipp Wich 809cc25f9d include: unbreak conffiles, postinst & prerm exports
Changeset r43017 reworked the ipkg control metadata generation but broke
the export of conffiles, postinst and prerm defines.

Change the code back to rely on shvar and shexport, this is required to
properly output multiline contents.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43041 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-24 09:24:51 +00:00
Felix Fietkau e54e2b0509 build: only print skipped packages that were selected
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43023 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-22 08:57:50 +00:00
Felix Fietkau c52c5e1d12 kernel: use /bin/sh instead of bash to speed up processing of many kmod-* packages
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43022 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-22 08:57:45 +00:00
Felix Fietkau 09976aa562 build: clean up and optimize ipkg control generator code
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43017 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-22 08:57:16 +00:00
Felix Fietkau 066c26efc6 build: optimize printing of disabled packages
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43015 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-22 08:57:07 +00:00
Felix Fietkau 78e652f314 build: propagate package conflicts to opkg metadata
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42771 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-05 16:41:38 +00:00
John Crispin a0bbe0d6ce postinst trigger: the new postinst trigger broke IB
Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42571 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-16 11:56:19 +00:00
John Crispin 3caa9395b5 ipkg: add a default postinst/prerm script
the postinst script enables/starts the init.d scripts upon package installation
and installs the users required by the package.

the prerm script stops and disables the init.d scripts.

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42470 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-11 12:27:49 +00:00
John Crispin ca5a47c6d5 include: add a meta data field for required system user:group
this is in preparation of having services run as !root with
ACL'ed access to ubus.

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42469 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-11 12:27:26 +00:00
Jo-Philipp Wich 427b9953d2 build: fix removal of old .ipk files with CONFIG_PER_FEED_REPO
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42090 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-09 13:04:17 +00:00
Jo-Philipp Wich fdb795c3e4 build: introduce per feed repository support
This changeset implements a new menuconfig option to generate separate
repositories for each enabled package feed instead of one monolithic one.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42002 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-05 11:24:24 +00:00
Jo-Philipp Wich f920c0fa5c include: remove SDK exception from package install targets
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41459 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-02 11:39:28 +00:00
Felix Fietkau 31e661bebd build: allow packages to declare ABI versions to detect necessary package rebuilds
If a package directly depends on another package that recently changed
its ABI version, it will be cleaned up and rebuilt (assuming quilt is
not used).

This helps with packages that have no stable ABI, e.g. libubox, ubus,
etc.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39720 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23 17:32:04 +00:00
Felix Fietkau 44743dc6b4 build: remove SourceFile and SourceURL from opkg metadata - they are useless without the corresponding openwrt package directory
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39038 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-12-13 10:40:19 +00:00
Jonas Gorski dd38ccf620 build: print missing dependency error to stderr
Allow to see the actual error even when compiling with V=w/V=1 only.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37388 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-18 11:29:18 +00:00
Felix Fietkau 61b763d414 build: add required exports for dependency tracking
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37387 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-18 11:18:37 +00:00
Felix Fietkau 0cc7b30e78 build: add kernel modules to package provides info (along with shared libs)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37385 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-07-18 10:47:00 +00:00
Jonas Gorski 63f47d5dbf include/package-ipkg.mk: print warnings/errors to stderr
Makes warnings/errors visible when building with V=w/V=1.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35715 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-21 11:45:20 +00:00
Felix Fietkau 28b1b94a65 build: reduce the size of package metadata a bit to keep package list files smaller
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34871 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-12-22 19:56:21 +00:00
Jo-Philipp Wich ee76e2804a buildroot: isolate the .install stamp files for build variants (#12279)
This fixes missing embedded packages if multiple build variants are selected in
the build config, e.g. missing ppp if CONFIG_PACKAGE_ppp=y and
CONFIG_PACKAGE_ppp-multilink=m .

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34106 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-11-07 16:15:22 +00:00
Hamish Guthrie a81ef914e0 licensing: Add licensing metadata to many packages
Two new variables are introduces to many packages, namely PKG_LICENSE and
PKG_LICENSE_FILES - there may be more than one license applied to packages,
and these are listed in the PKG_LICENSE variable and separated by spaces.
All relevant license files are also added to the PKG_LICENSE_FILES variable,
also space separated.

The licensing metadata is put into the bin/<platform>/packages/Packages file
for later parsing. A script for that is on it's way!


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33861 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-19 15:34:28 +00:00
Felix Fietkau 6683f47568 build: rework the package/install step - collect package install lists during package/compile, then install all packages at once
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33631 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-10-06 16:01:06 +00:00
Jo-Philipp Wich f1a3abbd19 [include] package-ipkg.mk: flag packages as "ok" after install
By flagging compile-time-installed packages as "ok", they can be differentiated
from runtime-installed packages on the target later on.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32739 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-07-15 19:29:43 +00:00
Felix Fietkau 88364f16c2 include/package-ipkg.mk: fix copying provides list introduced in r32332
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32358 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-14 18:09:54 +00:00
Jo-Philipp Wich 2a372d147f [include] package-ipkg.sh: copy the package provides list for all virtual PROVIDES
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32332 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-13 11:42:17 +00:00
Felix Fietkau bee3dd6a1b build: add checks for missing package dependencies
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32185 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-11 00:57:36 +00:00
Felix Fietkau 9db9b0ede7 build: generate a list of provided libraries for each ipkg file (includes provided libraries from packages that the exporting package depends on)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32172 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-06-10 20:27:41 +00:00
Nicolas Thill 145b0ef954 include/package-ipkg.mk: fix typo in r29449
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29497 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-10 22:02:50 +00:00
Gabor Juhos 68b5c56aed include/package-ipkg.mk: don't add vi backup files to packages
Also remove trailing whitespaces.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29449 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-05 17:27:00 +00:00
Nicolas Thill a133a1a62b include/package-ipkg.mk: fix typo
Fix a typo that caused packaging of an empty ./lib/upgrade/keep.d
directory when the package supplied conffiles

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28595 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-26 00:49:07 +00:00
Felix Fietkau 6f8262a64a build: move the SH_FUNC eval to the beginning of the opkg control file build command chain, not in front of every single command
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26432 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-03 02:10:32 +00:00
Felix Fietkau 8249039087 build: do not use shell calls to export empty opkg control files, speeds up package build and fixes some "Argument list too long" errors
Patch by Thomas Langer from #8450

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26431 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-03 02:07:59 +00:00
Jo-Philipp Wich 2af73d5a20 [include] deploy .ipk archives with --force-maintainer to ensure that configs are kept up-to-date in case they exist already for various reasons
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25915 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-06 23:52:13 +00:00
Jo-Philipp Wich 54e97dad67 [include] set Installed-Size to 0 when preparing control, its substituted by ipkg-build later on
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25022 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-16 22:18:35 +00:00
Jo-Philipp Wich 2a5914606c [include] package-ipkg.mk: add support for "essential" package flag, fix typo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23959 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-11 16:18:01 +00:00
Michael Büsch d4b77f3145 Lock copying to STAGING_DIR_ROOT. This fixes build failures for parallelized build.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23709 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-29 15:07:23 +00:00
Jo-Philipp Wich 0aedfbfd70 [include] package-ipkg.mk: build sysupgrade keepfile hints out of conffiles not yet present in the package.
This applies to config directories or files that do not exist but may be created by the
user after package installation.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23257 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-05 19:20:27 +00:00
Jo-Philipp Wich 6c7a71c78e [include] correct default package status info (install -> unknown) - fixes "opkg_conf_write_status_files: Internal error: package ... has a NULL dest"
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23222 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-04 17:20:49 +00:00
Jo-Philipp Wich 974c5831e0 [include] prime .ipk control files with Status: field to introduce hold for post flash installed packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23175 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-02 04:04:12 +00:00
Jo-Philipp Wich 30b7385634 [include] add support for flagging packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23172 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-02 03:21:33 +00:00
Gabor Juhos b587a7b92a package-ipkg.mk: use the BOARD variable in opkg cmdline if ARCH_PACKAGES is not defined
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23166 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-01 07:09:34 +00:00
Jo-Philipp Wich f10bd899e6 [package] opkg:
- implement --add-dest and --add-arch commandline options, this allows to run entirely without configuration
	- tweak default config location patch to not require a config in offline root mode
	- rename --force-run-hooks option to --force-postinstall, its a more appropriate name
	- utilize new opkg commandline options in package-ipkg.mk and remove config file generation


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23032 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-12 21:16:02 +00:00
Jo-Philipp Wich 0d80fe1320 [include] pass opkg offline root as command line arg, solves caching issues when switching between multiple subtargets, thanks Ralph Hempel for reporting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22990 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-09 21:05:51 +00:00
Jo-Philipp Wich d9386d548b [package] opkg: add --force-run-hooks option to run postinstall scripts in offline root mode, utilize it for host package install
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22960 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-06 19:58:05 +00:00
Jo-Philipp Wich e6b1eeef0c [buildroot] use opkg/host for package installation
- speeds up rebuild operations
	- aligns generated package list format with the one created by opkg on the target
	- fixes broken dependency handling in imagebuilder


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22949 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-06 02:15:46 +00:00
Felix Fietkau e045698909 speed up the ipkg build process some more by reordering commands
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22722 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-19 12:49:46 +00:00
Felix Fietkau 14be678094 speed up the build system by including include/shell.sh on shell commands only where necessary
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22720 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-19 12:49:37 +00:00
Jo-Philipp Wich 503d7a462b [buildsystem] revert r22372 and r22405, dependency on host libtool causes problems
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22406 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-28 02:18:16 +00:00
Jo-Philipp Wich fc7a57fa5d [buildsystem] use host opkg for installing packages in buildroot and ImageBuilder
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22372 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-23 19:49:19 +00:00
Hauke Mehrtens 5e7275d823 Some dependencies that are depending on target are not added into
the Depends line in the control file of the package.
For example +!(TARGET_brcm47xx||TARGET_brcm63xx):kmod-ssb does not
result in kmod-ssb for the x86 target or any other target.

This fixes #6874


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20553 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28 19:22:59 +00:00