summaryrefslogtreecommitdiffstats
path: root/tools/build-pkg.lua
Commit message (Collapse)AuthorAgeFilesLines
...
| * | build-pkg: pack Debian packages with xz not gzipBoris Nagaev2015-12-161-1/+2
| |/ | | | | | | fix #1068
* | build-pkg: add "plugins/" to mxe-source packageBoris Nagaev2015-12-151-0/+1
|/
* Merge pull request #1057 from LuaAndC/build-pkg-exit-statusTony Theodore2015-12-141-0/+5
|\ | | | | build-pkg: exit with code 1 if a package is broken
| * build-pkg: exit with code 1 if a package is brokenBoris Nagaev2015-12-131-0/+5
| |
* | Merge pull request #1058 from LuaAndC/build-pkg-no-empty-depsTony Theodore2015-12-141-3/+6
|\ \ | | | | | | build-pkg: do not provide empty dependency list
| * | build-pkg: do not provide empty dependency listBoris Nagaev2015-12-131-3/+6
| |/ | | | | | | | | | | | | | | | | | | Debian packages with "Depends: " do not work: > Reading package lists... Error! > E: Problem parsing dependency Depends > E: Error occurred while processing mxe-source (NewVersion2) > E: Problem with MergeList /var/lib/apt/lists/pkg.mxe.cc_repos_apt_debian_dists_wheezy_main_binary-amd64_Packages > E: The package lists or status file could not be parsed or opened.
* | Merge pull request #1056 from LuaAndC/build-empty-dependencies-of-nonemptyTony Theodore2015-12-141-5/+24
|\ \ | | | | | | build-pkg: build empty dependencies of non-empty
| * | build-pkg: build empty dependencies of non-emptyBoris Nagaev2015-12-131-5/+24
| |/ | | | | | | | | | | | | | | Otherwise empty dependency produces no .deb file preventing non-empty package from being installed. Example: non-empty package gcc depends on empty package mingw-w64.
* | build-pkg: flush stdout after echoingBoris Nagaev2015-12-131-0/+1
|/
* build-pkg: mxe.redjohn.tk -> pkg.mxe.ccBoris Nagaev2015-12-101-1/+1
|
* build-pkg: round argument of os.dateTony Theodore2015-11-161-1/+1
| | | | fixes #1001
* Merge branch 'build-pkg-dlls-and-empty' of https://github.com/LuaAndC/mxe ↵Tony Theodore2015-11-161-2/+46
|\ | | | | | | into LuaAndC-build-pkg-dlls-and-empty
| * build-pkg: report non-empty depending on emptyBoris Nagaev2015-11-091-0/+7
| | | | | | | | fix #968
| * build-pkg: do not pack empty packagesBoris Nagaev2015-11-091-1/+7
| | | | | | | | see #968
| * build-pkg: report shared items installing no .dllBoris Nagaev2015-11-091-0/+31
| | | | | | | | | | | | Report only if the item installs .a See https://github.com/mxe/mxe/pull/966#issuecomment-153712570
| * build-pkg: typoBoris Nagaev2015-11-091-1/+1
| |
* | Merge pull request #977 from LuaAndC/nonetworkTony Theodore2015-11-141-0/+1
|\ \ | | | | | | disable networking with LD_PRELOAD when build
| * | build-pkg: blacklist nonetwork.soBoris Nagaev2015-11-101-0/+1
| | |
* | | build-pkg: add EOL after last line in *.list fileBoris Nagaev2015-11-111-1/+1
|/ / | | | | | | fix #979
* | 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
* 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