summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_world_install.sh
Commit message (Collapse)AuthorAgeFilesLines
* redirect command stderr to stdoutMichael Olbrich2016-05-291-1/+1
| | | | | | | | | | | | | Redirect stderr to stdout for the actual autogen.sh, prepare, compile, install and opkg-build command. This preserves the chronological order of stdout vs. stderr when building packages in parallel with output sync enabled. As a side-effect, the stderr output of these commands won't show up on the console for quiet builds. But most of that is not really useful by itself anyways. And the resulting logfile is more readable now for the rest. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_python_cleanup: prefer *.pyc in __pycache__ over ↵Michael Olbrich2016-05-261-3/+3
| | | | | | existing (packaged) *.pyc files Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_python_cleanup: make sure shared libraries are not ↵Michael Olbrich2016-05-261-0/+4
| | | | | | executable Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_post: copy files with '--remove-destination'Michael Olbrich2015-11-071-1/+1
| | | | | | | | Otherwise overwriting broken symlinks with files will fail. This happens occasionally in sysroot target, e.g. with /bin/pidof from busybox and initng. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_python_cleanup: fix race conditionMichael Olbrich2015-10-271-2/+3
| | | | | | | | | If the while loop returns early, then 'find' can fail with a 'broken pipe' error. Add an error message to indicate the origin of the failure. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install: handle python3 pyc filesMichael Olbrich2015-09-211-0/+18
| | | | | | | | python3 generates __pycache__/<file>.*.pyc for <file>.py. However, <file>.pyc is needed if <file>.py is not installed. So move the files to meed the requirements. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* add helper to build python packagesMichael Olbrich2015-06-091-10/+26
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install: explicitly check if host-fakeroot is installed ↵Michael Olbrich2015-05-261-1/+1
| | | | | | | | | before using it Otherwise fakeroot can fail in parallel build when it is used before it is completely installed. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_post: fix race conditionMichael Olbrich2015-02-281-1/+4
| | | | | | | | | | | | | Just copying ${pkg_pkg_dir} recursively can fail. This can happen with -jeX when 'cp' is executed for two packages the same time: 'cp' first checks if a directory exists, and creates it if not. If two instances of 'cp' try this with the same directory at the same time, there is a race condition and the second 'cp' may fail to create the directory because it already exists. Avoid this by creating the directories first. 'mkdir -p' will just try to create the directories and ignores any EEXIST. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxdist: add --verbose option and start using itMichael Olbrich2012-07-291-2/+8
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_post: Darwin: Edit install name of binariesBernhard Walle2012-06-301-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch should solve the problem that binaries in $PTXDIST_SYSROOT_HOST/bin must be able to find their libraries in $PTXDIST_SYSROOT_HOST/lib. On ELF systems that problem is solved by using rpath. However, rpath doesn't exist (works different) on Darwin that uses the Mach-O binary format. After copying the files to $PTXDIST_SYSROOT_HOST, we do following: - For every library (lib/*.*.dylib), we change the install name from /lib/libfoo.x.dylib to $PTXDIST_SYSROOT_HOST/lib/libfoo.x.dylib. That way programs linked against that library can be executed immediately, even in the build directory before installation to $PTXDIST_SYSROOT_HOST. That's the call of "install_name_tool -id". - For every library (lib/*.*.dylib) and executable (bin/*), we change the install name of dependent libraries to point to $PTXDIST_SYSROOT_HOST/lib. The call of "otool -L" lists the dependent libraries (like "readelf -d" on ELF systems) and the call "install_name_tool -change" changes it. That step is necessary because multiple libraries and binaries can be built and installed at the same time, so the binary is already built before "install_name_tool -id" is invoked. That way I'm finally able to build host-qemu with host-glib and host-gettext-dummy (that provides -lintl which host-glib uses). Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_pack: complain lessMichael Olbrich2012-05-141-1/+3
| | | | | | assume there is nothing to install if no source dir is defined Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install_pack: fix removing empty directoriesMichael Olbrich2012-02-021-2/+2
| | | | | | | Use "find -depth ..." instead of "rmdir -p". Otherwise too many directories may be removed if nothing is installed. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* ptxd_make_world_install: create /usr/share/misc directoryMichael Olbrich2011-05-041-1/+1
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] do nothing in install if the build directory is undefined.Michael Olbrich2010-10-271-2/+12
| | | | | | | This makes it possible to use the default install stage for packages that have no sources. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [generic] don't use "find -executable"Marc Kleine-Budde2010-08-211-1/+1
| | | | | | | | ...which is not supported by older versions of "find", use "-perm /111" instead. Reported-by: Erwin Rol <erwin@erwinrol.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* ptxd_make_world_install: replace binconfig stuff before copying to sysrootMichael Olbrich2010-08-151-3/+3
| | | | | | | | Some configure scripts may look for <pkg>-config in <sysroot>/usr/bin This can happen when setting --<pkg>dir=<sysroot>/usr. So having '@SYSROOT@' in <sysroot>/usr/bin/<pkg>-config is not good. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] move rpath fixup to install.unpackMichael Olbrich2010-05-031-9/+10
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] only copy target *-config to ${PTXDIST_SYSROOT_CROSS}/binMichael Olbrich2010-04-241-2/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] use chrpath in ptxd_make_world_install_unpack to fix the rpath of ↵Michael Olbrich2010-04-231-0/+8
| | | | | | host-tools Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] fix *.prl files like *.laMichael Olbrich2010-04-231-1/+5
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] fix all paths in *.la *-config etc.Michael Olbrich2010-04-231-5/+17
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] create install.[un]pack stages to support devel packagesMichael Olbrich2010-04-221-3/+43
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] refactor install scipt and move pkgdir/sysroot magic to install.postMichael Olbrich2010-04-151-29/+26
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] use fakeroot when availableMichael Olbrich2010-04-071-17/+10
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [install] cleanup ptxd_make_world_install_targetMichael Olbrich2010-04-071-7/+7
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_install] don't create fakeroot environmentMarc Kleine-Budde2010-03-181-3/+3
| | | | | | This hopefully fixes the problem with failing targetinstall stages. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_] provide and use variable for the fakeroot environmentMarc Kleine-Budde2010-03-101-3/+5
| | | | | | | This patch introduces the variable "pkg_fake_env" which holds the fakeroot environment. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] save fakeroot dataMichael Olbrich2010-03-051-1/+4
| | | | Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
* [ptxd_make_world_common] activate binconfig_globMarc Kleine-Budde2010-01-101-0/+6
| | | | | | | This patch activates the binconfig_glob mechanism as described in commit 61211865e20efac9042ad89a9a5c28e4bc0d3100. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world] rename pkg_pkgdir -> pkg_pkg_dirMarc Kleine-Budde2009-11-091-9/+9
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] only have two install functionsMarc Kleine-Budde2009-11-091-10/+5
| | | | | | one for target the other for host and cross pacakges. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] fix error messageMarc Kleine-Budde2009-11-091-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] move sysroot calculation into ptxd_make_world_commonMarc Kleine-Budde2009-11-091-12/+4
| | | | | | | ..and introduce the variable: "pkg_sysroot_dir" which points to the package's sysroot. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world] new variable <PKG>_INSTALL_OPTMarc Kleine-Budde2009-11-061-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The install stage consists basically of: make DESTDIR=<PKG>_PKGDIR <PKG>_INSTALL_OPT With default "install" for <PKG>_INSTALL_OPT. This can be overwritten or extended from a pacakge. There are (at least) two reasons for this: 1) "make install" installs too mouch, you don't want to install everything. example: MII_DIAG_INSTALL_OPT := install-mii-diag 2) The package doesn't understand DESTDIR. It uses INSTALL_ROOT instead. example: QT4_INSTALL_OPT := INSTALL_ROOT=$(QT4_PKGDIR) The variable <PKG>_PKGDIR comes predefined from PTXdist and can be used. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] don't use fakeroot for cross- packagesMarc Kleine-Budde2009-11-041-1/+1
| | | | | | it's only used for target packages Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxdist] add klibc- packages infrastructureJon Ringle2009-11-041-3/+11
| | | | | | Signed-off-by: Jon Ringle <jon@ringle.org> [mkl: split into smaller patches, add support for generic extract stage] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world] put pkg_config vars environemnt of every stageMarc Kleine-Budde2009-08-071-0/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] activate .pc file mangler, don't add sysroot in ↵Marc Kleine-Budde2009-08-061-1/+8
| | | | | | | | | pkg-config-wrapper anymore pkg-config's .pc file are now relocatable, the pkg-config-wrapper isn't needed anymore. Thus it's disabled now. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* [ptxd_make_world_install] delete pkg_pkgdir properly before "make install"Marc Kleine-Budde2009-07-081-1/+1
| | | | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10949 33e552b5-05e3-0310-8538-816dae2090ed
* [ptxd_make_world_install] provide generic install functionMarc Kleine-Budde2009-06-151-0/+98
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10795 33e552b5-05e3-0310-8538-816dae2090ed