summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* build-pkg: improve the progress printer accuracyBoris Nagaev2015-11-091-5/+34
| | | | | | | There are 20 huge packages like gcc that are compiled for a half of the build time. The time left expected by the progess printer changes dramatically after building a huge package. Information about huge packages smoothes the changes.
* build-pkg: separate progress printing codeBoris Nagaev2015-11-091-12/+28
|
* build-pkg: print progressBoris Nagaev2015-11-091-1/+13
| | | | | | Example: [ 4/100] The build is expected to complete in 0.3 hours, on Thu Oct 29 23:03:27 2015
* build-pkg: add logging function echoBoris Nagaev2015-11-091-1/+5
| | | | | echo is format + print log is echo('[build-pkg]', ...)
* build-pkg: exclude usr and settings.mk from sourceBoris Nagaev2015-10-281-2/+0
|
* build-pkg: use current date as Debian patch versionBoris Nagaev2015-10-271-1/+4
| | | | | | | Example: "4_1_3" -> "4.1.3-20151028". Adding build-unique (making two builds in one day is unlikely) Debian patch version tells APT that the package was updated.
* build-pkg: replace _ with . in versionsBoris Nagaev2015-10-271-1/+1
| | | | | | Underscores in versions were previously replaced with dashes. Example: 4_1_3 -> 4-1-3 (package winpcap). "-3" is interpreted as Debian patch version, which is wrong.
* build-pkg: add package mxe-sourceBoris Nagaev2015-10-271-1/+31
| | | | close #946
* build-pkg: rename makeMxeRequirementsDebBoris Nagaev2015-10-271-3/+3
| | | | rename makeMxeRequirementsDeb to makeMxeRequirementsPackage
* build-pkg: refactor package building functionBoris Nagaev2015-10-271-74/+58
| | | | | | Move common code (making a directory, control file, running tar, dpkg-deb, etc) to function makePackage(). This function is used by functions makeDeb() and makeMxeRequirementsDeb().
* build-pkg: find build arch with dpkg-architectureBoris Nagaev2015-10-271-2/+3
|
* build-pkg: refactor Debian control generatingBoris Nagaev2015-10-271-24/+36
| | | | | Function debianControl() takes parameters of the Debian package and returns the contents of the Debian control file.
* build-pkg: don't pre-download if MXE_MAX_ITEMSBoris Nagaev2015-10-271-1/+3
| | | | | MXE_MAX_ITEMS is used mostly for debugging purposes. Waiting all packages to download (2Gb) is boring.
* build-pkg: keep deb-control filesTony Theodore2015-10-251-0/+3
|
* build-pkg: use config.guess to get native targetBoris Nagaev2015-10-251-1/+2
|
* build-pkg: don't blacklist usr/share/cmakeBoris Nagaev2015-10-251-1/+5
|
* build-pkg: log cross-target dependenciesBoris Nagaev2015-10-251-0/+8
| | | | Don't log dependencies on native target.
* build-pkg: pass MXE_TARGETS to "make pkg"Boris Nagaev2015-10-251-2/+3
| | | | | | | "make target~pkg" doesn't work if target is not in MXE_TARGETS. I believe such behaviout to be a feature not a bug, because it seems to work faster with lesser MXE_TARGETS.
* build-pkg: fix test for library formatBoris Nagaev2015-10-251-1/+6
| | | | | | | Fix warnings like: [build-pkg] File usr/x86_64-unknown-linux-gnu/lib/libyasm.a (x86_64-unknown-linux-gnu~yasm): not recognized library
* build-pkg: add function searching for a substringBoris Nagaev2015-10-251-2/+6
| | | | | | str:match(pattern) treats pattern as a regular expression. str:find(substring, 1, true) searches for a substring. The latter is needed to check if a filename contains a target.
* update build-pkg.lua for toolchain re-orgBoris Nagaev2015-10-251-178/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Remove common packages. Common packages served a replacement for native target. Now we have native target and don't need common packages. Existing common files (ncurses) have to be fixed. 2. Package -> Item. Item means a string "target~package". All functions which used packages now use items. 3. One build list instead of 4 build lists. All items are sorted and built together without separation by target. 4. No module-global variable "target". All functions using target now get "item" and target is extracted from item. All remaining module-global variables don't change (are constants) or are created in the bottom of the module. 5. MXE_MAX_PACKAGES -> MXE_MAX_ITEMS see #925 see #919
* build-pkg: rename local var "item" to "member"Boris Nagaev2015-10-251-2/+2
| | | | I want to use name "item" for something else.
* build-pkg: remove most of the COMMON_FILESTony Theodore2015-10-251-28/+0
| | | | | | Source: https://github.com/mxe/mxe/pull/925#issuecomment-147992049 see #925
* tools: note source of make-shared-from-staticTony Theodore2015-10-221-0/+3
|
* build-pkg: don't use numeric owner, group in tarBoris Nagaev2015-10-161-1/+1
| | | | | | | | File ownership is set as string "root/root" in Debian files. So numeric owners are converted to strings anyway. On FreeBSD numeric group "0" is converted to "wheel" instead of "root". see #901
* build-pkg: check-requirements before downloadingBoris Nagaev2015-10-161-0/+1
| | | | | | | Don't wait for downloading completed if something is wrong with dependencies. see #908
* build-pkg: use gmake or gnumake if availableBoris Nagaev2015-10-161-22/+23
| | | | | see #901 see 4743e7939d10d9983e01f085c94b24e4c317811d
* build-pkg: use gtar or gnutar if availableBoris Nagaev2015-10-161-4/+19
| | | | close #901
* build-pkg: add MXE_CONF_PKGS to deps of packagesBoris Nagaev2015-09-291-1/+3
| | | | close #890
* build-pkg: add a note about fakeroot ipc problemBoris Nagaev2015-09-271-0/+7
| | | | | | I faced with the problem after running build-pkg on this machine many-many times. Finally I found this method how to fix it without restarting the machine.
* build-pkg: use --[[ ... ]] syntax for long commentBoris Nagaev2015-09-271-17/+19
|
* build-pkg: rename testCommand to executeBoris Nagaev2015-09-211-3/+3
| | | | see #874
* build-pkg: pre-download all packagesBoris Nagaev2015-09-201-0/+2
| | | | | | | Run `make download -j 6 -k` until it downloads all packages successfully before running further steps. close #855
* build-pkg: check *.a files with nmBoris Nagaev2015-09-201-0/+13
| | | | | close #858 see #854
* build-pkg: add function testCommandBoris Nagaev2015-09-201-0/+9
| | | | | This function runs a command and return whether it finished successfully.
* Merge pull request #860 from LuaAndC/build-pkg-file-dereferenceTony Theodore2015-09-171-23/+17
|\ | | | | build-pkg: improve launching file tool
| * build-pkg: add option --brief to "file" commandBoris Nagaev2015-09-161-23/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Option --brief tells "file" not to prepend filenames to output lines. Using this option is better than parsing standard format of output of "file" with a regular expression. Some filenames contain ":". This confuses the regular expression: [build-pkg] i686-w64-mingw32.static Can't get type of file usr/i686-w64-mingw32.static/share/ gtk-doc/html/libgda-4.0/gen:sql_identifiers.html (libgda). file says "usr/i686-w64-mingw32.static/share/gtk-doc/html/ libgda-4.0/gen:sql_identifiers.html: HTML document, ASCII text"
| * build-pkg: catch symlinks with bad extensionsBoris Nagaev2015-09-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Example: usr/i686-w64-mingw32.static/bin/luajit This file must have '.exe' in name, but build-pkg doesn't catch this error, because it's type was "symbolic link to luajit-2.0.4". With option --dereference, "file" follows symlinks. For usr/i686-w64-mingw32.static/bin/luajit it returns "PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows".
* | build-pkg: report DLL files in /lib/Boris Nagaev2015-09-161-0/+3
|/ | | | | see #393 see #826
* build-pkg: no build mxe-requirements with fakerootBoris Nagaev2015-09-131-2/+2
| | | | | | | | | mxe-requirements package doesn't install any files therefore fakeroot is not required. Because no files were created with fakeroot, database file `deb.fakeroot' did not exist. close #840
* Merge pull request #845 from LuaAndC/build-pkg-fix-filenames-with-spacesTony Theodore2015-09-121-1/+17
|\ | | | | Build pkg fix filenames with spaces
| * build-pkg: remove quotes from filenames with spaceBoris Nagaev2015-09-121-0/+4
| | | | | | | | close #842
| * build-pkg: report not existing filesBoris Nagaev2015-09-121-1/+13
| | | | | | | | See #842
* | build-pkg: add env. var. MXE_DIRBoris Nagaev2015-09-101-1/+6
| |
* | build-pkg: add env. var. MXE_NO_DEBSBoris Nagaev2015-09-101-6/+21
|/ | | | | | | | To prevent build-pkg from creating deb packages, set environment variable MXE_NO_DEBS to 1 In this case fakeroot and dpkg-deb are not needed. Add a comment about MXE_MAX_PACKAGES.
* build-pkg: change path to .list file of commonBoris Nagaev2015-09-051-1/+1
| | | | | | | "%s.common-list" -> "common-%s.list" New style of name is closer to name format of other packages: "target-pkg.list".
* build-pkg: add more checks for generated filesBoris Nagaev2015-09-051-6/+73
| | | | | | | | | | | * PE32 files without .exe or .dll * .exe or .dll files which are not in PE32 format * files with other target in name * changed files * file belongs to the same target -- add a dependency * otherwise: log this message with label 'error' close #822
* build-pkg: create a variable with list of targetsBoris Nagaev2015-09-041-4/+10
|
* build-pkg: blacklist usr/<target>/share/(doc|info)Boris Nagaev2015-09-041-0/+2
| | | | Another directories with documentation.
* build-pkg: use git to find new/changed filesBoris Nagaev2015-09-041-24/+45
| | | | close #818