summaryrefslogtreecommitdiffstats
path: root/tools/build-pkg.lua
Commit message (Collapse)AuthorAgeFilesLines
* build-pkg: blacklist {installed,lib}/.gitkeepBoris Nagaev2017-09-241-0/+4
| | | | | | | | | | | | | | | | The following files are installed by both cmake-conf and mxe-conf: usr/i686-w64-mingw32.shared/installed/.gitkeep usr/i686-w64-mingw32.static/installed/.gitkeep usr/x86_64-unknown-linux-gnu/installed/.gitkeep usr/x86_64-unknown-linux-gnu/lib/.gitkeep usr/x86_64-w64-mingw32.shared/installed/.gitkeep usr/x86_64-w64-mingw32.static/installed/.gitkeep In all cases a package installs other files to the same library, so these .gitkeep files can be safely added to the blacklist. See https://github.com/mxe/mxe/issues/1886#issuecomment-331719282
* Merge pull request #1903 from LuaAndC/misspellBoris Nagaev2017-09-241-1/+1
|\ | | | | fix typos found by misspell tool
| * fix typos found by misspell toolBoris Nagaev2017-09-241-1/+1
| |
* | build-pkg: ignore all copies of nonetwork.soBoris Nagaev2017-09-241-1/+4
|/ | | | See https://github.com/mxe/mxe/issues/1886#issuecomment-325927308
* more URL updatesViktor Szakats2017-03-101-1/+1
|
* build-pkg: disable usr/share/gtk-docBoris Nagaev2017-03-051-0/+1
| | | | | | This path is buggy. Packages installing files there have options --disable-gtk-doc and --disable-gtk-doc-html, but they don't help.
* build-pkg: system requirements are recommendationsBoris Nagaev2016-10-121-7/+16
| | | | | | ... not dependencies. fix #1537
* move CNAME to docs/Boris Nagaev2016-08-271-1/+0
| | | | See https://github.com/mxe/mxe/issues/1500
* move index.html to docs/Boris Nagaev2016-08-271-2/+1
| | | | See https://github.com/mxe/mxe/issues/1500
* mv versions.json build-matrix.html assets docs/Boris Nagaev2016-08-271-2/+0
| | | | See https://github.com/mxe/mxe/issues/1500
* rename doc/ to docs/Boris Nagaev2016-08-271-1/+1
| | | | See https://github.com/mxe/mxe/issues/1500
* Copyright headers: point to LICENSE.md and shortenBoris Nagaev2016-08-271-2/+1
| | | | | | | | | | | | | | | | | | | The following script was applied: sed ':a;/part of MXE.$/{N;s/\n//;ba}' -i $(git grep -l 'part of MXE') sed 's/\(part of MXE\).*\(See index.html\)/\1. \2/' -i \ $(git grep -l 'part of MXE.*See index.html') before='This file is part of MXE. See index.html for further information.' after='This file is part of MXE. See LICENSE.md for licensing information.' sed "s/$before/$after/" -i $(git grep -l 'part of MXE') Then git grep 'index.html for further information' revealed two other files. One of them was patched manually (patch.mk). Makefile has text "See index.html for further information" unrelated to licensing. See https://github.com/mxe/mxe/issues/1500#issuecomment-241340792
* build-pkg: fix crash if package breaks in 1st passBoris Nagaev2016-08-021-4/+7
| | | | fix https://github.com/mxe/mxe/issues/1471
* build-pkg: track all files including gitignoredBoris Nagaev2016-07-201-1/+1
| | | | See https://github.com/mxe/mxe/pull/1443#issuecomment-233181951
* build-pkg: add env. var to change targetsBoris Nagaev2016-06-111-0/+12
| | | | MXE_BUILD_PKG_TARGETS
* build-pkg: prefix evn. vars with "MXE_BUILD_PKG"Boris Nagaev2016-06-111-6/+7
| | | | to distinguish them from environment variables of MXE itself.
* build-pkg: limit number of retries of downloadingBoris Nagaev2016-05-021-2/+17
| | | | fix #1308
* build-pkg, second pass: fix fail on broken packageBoris Nagaev2016-04-201-6/+8
| | | | | | | | If a package is found to be broken on the first pass, then prev_files = nil, because this structure is filled only for non-broken packages. See https://github.com/mxe/mxe/pull/1243#issuecomment-211137555
* build-pkg: provide more info about removed filesBoris Nagaev2016-04-201-3/+25
|
* build-pkg: detect broken symlink and removed fileBoris Nagaev2016-04-201-1/+11
|
* build-pkg: use "git add" with --allBoris Nagaev2016-04-201-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | From the warning produced by "git add ." after removing a file with "rm": > warning: You ran 'git add' with neither '-A (--all)' or '--ignore-removal', > whose behaviour will change in Git 2.0 with respect to paths you removed. > Paths like 'foo.txt' that are > removed from your working tree are ignored with this version of Git. > > * 'git add --ignore-removal <pathspec>', which is the current default, > ignores paths you removed from your working tree. > > * 'git add --all <pathspec>' will let you also record the removals. > > Run 'git status' to check the paths you removed from your working tree. $ git status --porcelain D foo.txt $ git add --all . $ git status --porcelain D foo.txt $ git --version git version 1.9.1
* build-pkg: exit with non-zero if second pass failsBoris Nagaev2016-04-201-2/+9
|
* build-pkg: provide a way to disable second passBoris Nagaev2016-04-201-4/+9
|
* build-pkg: add second passBoris Nagaev2016-04-201-9/+78
| | | | | | | | | | | | | | The second pass is done after the first one. During the second pass, an item is built in tree of files from all other items. It checks that: * packages can be built in any order satisfying dependencies; * a package can be rebuilt after its dependee. For both cases, not only build status is checked but also two sets of files are compared. Currently content of files is not checked, only their existance in both passes. See #1111
* build-pkg: move function isBuilt()Boris Nagaev2016-04-201-12/+12
| | | | It will be used in buildItem()
* build-pkg, buildItem(): log pass (first, second)Boris Nagaev2016-04-201-2/+2
|
* build-pkg: provide a way to mute removeEmptyDirs()Boris Nagaev2016-04-201-2/+5
|
* build-pkg: add argument pass=first to build funcsBoris Nagaev2016-04-201-14/+24
|
* build-pkg: move top-level code to main() functionBoris Nagaev2016-04-201-32/+36
|
* build-pkg: set MXE_DIR automaticallyBoris Nagaev2016-01-251-7/+8
| | | | | | | Produce a warning if MXE_DIR != /usr/lib/mxe When making a debug build, it is better to get a warning than set MXE_DIR manually each time.
* build-pkg: ignore installed/.gitkeep fileBoris Nagaev2016-01-171-1/+1
| | | | | | | It produced the following erroneous warning: > Item x86_64-unknown-linux-gnu~mxe-conf > built item x86_64-unknown-linux-gnu~.gitkeep.
* build-pkg: log and remove empty directoriesBoris Nagaev2016-01-171-0/+17
|
* build-pkg: touch usr/*/installed/* in build orderBoris Nagaev2016-01-171-6/+30
| | | | See https://git.io/vuDJY
* build-pkg: refactor function makeItem2Index()Boris Nagaev2016-01-171-7/+10
|
* build-pkg: prevent accidental rebuildsBoris Nagaev2016-01-171-0/+4
| | | | touch all installed/* files after checkout.
* build-pkg: resolve merge conflicts manuallyBoris Nagaev2016-01-171-3/+22
| | | | | | | `git merge -s recursive -X ours` turned out to fail on binary files. (I can't reproduce this behaviour in test repo, maybe it is Git's bug.) So I switched to `checkout --ours`, which worked in that case.
* build-pkg: reorder functionsBoris Nagaev2016-01-171-6/+6
| | | | gitCheckout() will use gitCommit()
* build-pkg: check exit status of "git commit"Boris Nagaev2016-01-171-2/+4
|
* build-pkg: make sure checkout and merge succeedBoris Nagaev2016-01-171-3/+3
|
* build-pkg: merge "resolves" conflictsBoris Nagaev2016-01-171-9/+5
| | | | | | | | | | | Result of build by previous commit: https://gist.github.com/32309209c467853deedc If a conflict happens, build-pkg should "resolve" it by selecting one of versions. Git has a merge strategy "recursive" with an option "ours" which does exactly what is needed but works only for two heads. That is why multi-merge was replaced by multiple merges of two heads.
* build-pkg: make pkg without independent packagesBoris Nagaev2016-01-171-1/+41
| | | | | | | This is an implementation of detection of undeclared requiremenets using Git branches. See #1111
* build-pkg: check-requirements MXE_TARGETS=...Boris Nagaev2016-01-171-1/+2
| | | | | | | | | check-requirements creates directories usr/<target> for all targets. By default, MXE_TARGETS=i686-w64-mingw32.static, so it creates a directory for i686-w64-mingw32.static only. (Currently this doesn't affect history in usr/.git as git ignores empty directories.)
* build-pkg: make sure usr/.git doesn't existBoris Nagaev2016-01-171-0/+1
|
* build-pkg: move git user config to varBoris Nagaev2016-01-171-3/+3
|
* build-pkg: fix warnings of LuaCheckBoris Nagaev2016-01-171-24/+26
| | | | Warnings fixed: https://gist.github.com/b563dfd7708e1ef209b4
* move patching functions and targets to patch.mkBoris Nagaev2016-01-081-0/+1
| | | | | See https://github.com/mxe/mxe/pull/1134#issuecomment-168873410 See https://github.com/mxe/mxe/pull/1134#issuecomment-169867926
* build-pkg: implement toposort internallyBoris Nagaev2016-01-011-17/+50
| | | | Instead of invoking tsort tool.
* build-pkg: check toposortBoris Nagaev2016-01-011-0/+25
|
* build-pkg: check each item builds one packageBoris Nagaev2016-01-011-0/+19
|
* Merge pull request #1071 from LuaAndC/build-pkg-dummy-for-requirementsbuild-2015-12-16Tony Theodore2015-12-161-1/+5
|\ | | | | build-pkg: fix .deb installation