Commit graph

52 commits

Author SHA1 Message Date
Matthias Schiffer
37cf77d946
treewide: fix build depends to refer to source package names
Build depends must refer to source packages rather than binary package
names.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2018-01-13 19:54:44 +01:00
Matthias Schiffer
3d71786154
build: move STAGING_DIR_HOSTPKG and BUILD_DIR_HOST back to a common directory for all targets
Using a single host package staging dir (and build dir) significantly speeds up
builds when multiple targets are built in succession, especially for large host
packages like NodeJS.

$(STAGING_DIR)/host is kept in addition to $(STAGING_DIR_HOSTPKG) in most
places; it is still used as destination for host files in Build/InstallDev.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-01-18 19:47:36 +01:00
Matthias Schiffer
12d0a66942
include/autotools.mk: use STAGING_DIR_HOSTPKG where appropriate
Make sure binaries install to STAGING_DIR_HOSTPKG are still found when
this variable is eventually modified.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-01-14 18:57:13 +01:00
Dirk Neukirchen
336e277e8b autotools: use correct version for gettext FIXUP
0.19.8.1 gettext-full uses "archive-version" of 0.19.8
to replace makros, leading to breakage of PKG_FIXUP:=gettext-version

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2016-10-13 20:25:42 +02:00
Felix Fietkau
1193dc4e05 include/autotools.mk: fix gettext installation path
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48421
2016-01-20 23:21:09 +00:00
Felix Fietkau
f8cdadc832 Revert "include/autoconf.mk: decouple host fixups from target fixups"
This reverts commit r48403

SVN-Revision: 48412
2016-01-20 20:46:20 +00:00
Felix Fietkau
d542d8e3c1 include/autoconf.mk: decouple host fixups from target fixups
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48403
2016-01-20 19:12:28 +00:00
Nicolas Thill
ce9b49046c include: improve 'gettext-version' fixup
* enclose the fixup in brackets
 * match anything in the call to AM_GNU_GETTEXT_VERSION
 * call it early (before autoreconf if both are specified)
 * chain a call to autoreconf since it messes with configure.ac

Signed-off-by: Nicolas Thill <nico@openwrt.org>

SVN-Revision: 44225
2015-01-31 08:15:51 +00:00
Jo-Philipp Wich
7074927533 autotools.mk: add a gettext-version PKG_FIXUP (#11236)
This fixup aligns the required gettext version in shipped macros to the one
available in $(STAGING_DIR_HOST).

SVN-Revision: 33708
2012-10-10 17:53:51 +00:00
Jo-Philipp Wich
d40fe9d24e autotools.mk: cope with Debian version strings in libtool
SVN-Revision: 32207
2012-06-11 21:50:50 +00:00
Jo-Philipp Wich
a5d34b8613 autotools.mk: fix autoreconf in subdirectories, thanks field_it for spotting this
SVN-Revision: 29835
2012-01-20 21:31:03 +00:00
Jo-Philipp Wich
d8d9130e45 autotools.mk: link config.rpath before running autoreconf, also touch ABOUT-NLS - needed by minidlna CVS version
SVN-Revision: 28464
2011-10-16 16:44:49 +00:00
Jo-Philipp Wich
e7b094e849 include: autotools.mk: do not fail in patch-libtool fixup if patch is already applied
SVN-Revision: 28419
2011-10-11 18:15:12 +00:00
Jo-Philipp Wich
bd982fb72c autotools.mk: implement PKG_FIXUP:=patch-libtool This change allows to apply OpenWrt, Buildroot and OE libtool fixes to packages which fail badly at autoreconf. The fixup covers the common libtool versions 1.5, 2.2 and 2.4 and automatically determines the correct version to use.
SVN-Revision: 27855
2011-08-01 00:22:53 +00:00
Jo-Philipp Wich
a65b43a46f autotools.mk: disable autoreconf recursion if more than one dir is given in PKG_AUTOMAKE_PATHS
SVN-Revision: 26589
2011-04-11 14:18:55 +00:00
Jo-Philipp Wich
073c5e0e74 add config.rpath and link it in autotools.mk if missing, some packages might need it, especially users of lib-link.m4 or iconv.m4
SVN-Revision: 25753
2011-02-27 15:39:27 +00:00
Jo-Philipp Wich
4fec7f7edb autotools.mk: -B is not passed on by autoreconf, use -I instead - fixes PKG_MACRO_PATHS
SVN-Revision: 25312
2011-02-02 18:18:38 +00:00
Jo-Philipp Wich
ec45087403 autotools.mk: introduce PKG_MACRO_PATHS and HOST_MACRO_PATHS which default to ./m4, add LIBTOOL to AM_TOOL_PATHS
SVN-Revision: 24830
2010-12-26 02:06:50 +00:00
Jo-Philipp Wich
f28b49208b autotools.mk: like libintl, make all libtool fixup packages depend on the libiconv stub
SVN-Revision: 24708
2010-12-19 04:41:18 +00:00
Jo-Philipp Wich
fd181101aa autotools.mk: add a (dummy) libintl build dependency to any package using the libtool fixup
SVN-Revision: 24700
2010-12-19 02:37:56 +00:00
Jo-Philipp Wich
c9f9fc8154 autotools.mk: remove HOST_BUILD_DEPENDS on libtool
SVN-Revision: 24676
2010-12-18 18:14:25 +00:00
Jo-Philipp Wich
4e19240b9b autotools.mk: set AUTOPOINT to "true", not all hosts have it install and it makes autoreconf fail if not present, it also needs cvs which isn't installed on all hosts either
SVN-Revision: 24664
2010-12-18 13:19:59 +00:00
Jo-Philipp Wich
a4350e3861 autotools.mk: touch NEWS, AUTHORS, COPYING and ChangeLog, automake wants them
SVN-Revision: 24588
2010-12-15 06:05:41 +00:00
Jo-Philipp Wich
249693d50b autotools.mk: always pass -I m4, some package don't seem to set correct AMFLAGS (or any at all..)
SVN-Revision: 24574
2010-12-15 01:24:16 +00:00
Jo-Philipp Wich
6489a9c575 autotools.mk: don't rely on shipped autogen.sh files
SVN-Revision: 24573
2010-12-15 01:14:14 +00:00
Jo-Philipp Wich
f3ac8849a5 autotools.mk: explicately pass toolchain versions of automake, autoconf, libtoolize, ... to autoreconf
SVN-Revision: 24570
2010-12-15 00:19:08 +00:00
Jo-Philipp Wich
dbf8d9c516 - implement hooks for hostbuilds - use host build hooks to implement fixups for host build - move separator declaration to rules.mk
SVN-Revision: 24551
2010-12-13 19:04:33 +00:00
Jo-Philipp Wich
135cfe50c9 autotools.mk: add yet another aclocal path
SVN-Revision: 24547
2010-12-13 16:05:53 +00:00
Jo-Philipp Wich
c48a705702 autotools.mk: support autoreconf at different paths, introduce PKG_AUTOMAKE_PATHS which defaults to '.'
SVN-Revision: 24534
2010-12-13 01:44:28 +00:00
Jo-Philipp Wich
bf9e9b6a91 rework aclocal handling, packages have issues writing through the symlink so keep the host aclocal as include path for now
SVN-Revision: 24474
2010-12-11 03:15:10 +00:00
Jo-Philipp Wich
88a1c20900 autotools.mk: let PKG_REMOVE_FILES default to aclocal.m4
SVN-Revision: 24458
2010-12-10 22:59:07 +00:00
Jo-Philipp Wich
3560c34214 autotools.mk: remove autom4ate.cache directory when autoreconf-ing
SVN-Revision: 24434
2010-12-10 16:28:20 +00:00
Felix Fietkau
ffbed0f08a support the autoreconf fixup without libtool
SVN-Revision: 24423
2010-12-10 15:20:51 +00:00
Jo-Philipp Wich
6541593b34 autotools.mk: introduce PKG_REMOVE_FILES to delete certain files after applying patches and before doing any fixups
SVN-Revision: 24348
2010-12-08 15:55:05 +00:00
Jo-Philipp Wich
fa3c5ac38a autotools.mk: remove GNUmakefile before running autoreconf (spotted libgcrypt++)
SVN-Revision: 24344
2010-12-08 11:55:41 +00:00
Jo-Philipp Wich
48b953fa1c autotools.mk: allow disabling autoreconf, remove libdir fixup
SVN-Revision: 24321
2010-12-08 02:24:21 +00:00
Jo-Philipp Wich
f3f3be3dfe autotools.mk: allow autogen.sh / autoreconf to fail (for now)
SVN-Revision: 24320
2010-12-08 01:19:52 +00:00
Jo-Philipp Wich
69aeb3a06c autotools.mk: if ./autogen.sh exists, call that. Call autoreconfig only if configure.in or configure.ac exists
SVN-Revision: 24319
2010-12-08 01:15:38 +00:00
Jo-Philipp Wich
591190e215 deploy the steamroller tactics and autoreconfigure any package carring the libtool fixup, this should solve a number of issues ranging from linking into the host, syntax errors in libtool and missing make targets
SVN-Revision: 24317
2010-12-08 00:54:14 +00:00
Jo-Philipp Wich
c10515db65 re-enable the libtool PKG_BUILD_DEPENDS for PKG_FIXUP and emit a deprecation warning. Packages must specify PKG_BUILD_DEPENDS:=libtool
SVN-Revision: 24246
2010-12-04 19:56:47 +00:00
Mirko Vogt
9a18fff28e ensure accidentally installed *.la-files (into $STAGING_DIR) are going to be removed afterwards - this actually should be done within respective package-Makefiles itself, however they need to stay compatible with libtool v1.5.x which is used in backfire, since it (may) require those files
SVN-Revision: 24241
2010-12-04 13:44:43 +00:00
Mirko Vogt
b599f7dc42 disable libtool fixups in trunk globally
SVN-Revision: 24234
2010-12-04 00:11:09 +00:00
Felix Fietkau
c4b3e38fc0 fix libtool fixup for libstdc++
SVN-Revision: 22732
2010-08-19 17:46:11 +00:00
Felix Fietkau
e10df8d2b5 add a new helper macro to deal with conditional ./configure flags
SVN-Revision: 20570
2010-03-29 03:38:40 +00:00
Lars-Peter Clausen
bd2e3ccd6f autotools.mk: Don't try to fixup .la files in the DevInstall host path, because those .la files shouldn't go there anyway.
SVN-Revision: 19785
2010-02-20 23:40:53 +00:00
Lars-Peter Clausen
d38ce9313b autotools.mk: Add PKG_LIBTOOL_PATHS variable.
PKG_LIBTOOL_PATHS can be used to specify to tell libtool_fixup where to look
for libtool scripts of a package. This is useful if a package has it's libtool
script in a non-standard location or has multiple libtool scripts.

The value should be a space seperated list of paths which are relative to
$(PKG_BUILD_DIR). It defautls to $(CONFIGURE_PATH).

SVN-Revision: 19713
2010-02-18 23:50:44 +00:00
Lars-Peter Clausen
93567fed7a autotools.mk: Add libstdc++ quirk to libtool_fixup_libdir. Fixes build of packages which use libtool and link against packages which link against libstdc++
SVN-Revision: 19399
2010-01-30 14:51:22 +00:00
Lars-Peter Clausen
246a5b334d More libtool madness: Every package which was using c++ and libtool fixup was linked against libstd++ even though if it should have been linked against uclibc++. This is fixed by providing a special version of libtool fixup for packages which should use uclibc++. Not pretty but functional. Packages linking against uclibc++ should use PKG_FIXUP:=libtool-ucxx instead of PKG_FIXUP:=libtool
Somebody should probably check all packages using c++ with a dependency on stdlibc++
if uclibc++ can be used instead now.

SVN-Revision: 16317
2009-06-04 00:20:01 +00:00
Felix Fietkau
34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
2009-04-17 14:09:46 +00:00
Lars-Peter Clausen
6f774d468f Change libtool fixup behaviour. Still ugly but it works until we have a real fix. It uses a InstallDev/Post hook to find all .la files which are going to be installed in the staging dir and prefixes every path in those files which starts with /usr/lib with $(STAGING_DIR).
SVN-Revision: 12586
2008-09-13 00:29:13 +00:00