Commit Graph

159 Commits

Author SHA1 Message Date
Boris Nagaev 06ff4c57b0 patch-tool-mxe: omit signature with git version
Signature is a string like:

    --
    1.9.1

Decrease patch diff size.

See #983
2015-11-29 15:42:09 +03:00
Boris Nagaev eb332fde2e patch-tool-mxe: git format-patch *--no-numbered*
Decrease patch diff size.

See #983
2015-11-29 15:16:56 +03:00
Boris Nagaev cfb73654d3 fix "patch-tool-mxe init" for gcc
gcc (and maybe other packages) has both $(PKG)_FILE and
$(PKG)_FILE_$(BUILD). Previously the following error occurred:

 $ ./tools/patch-tool-mxe init gcc
 ./tools/patch-tool-mxe: line 57: [: too many arguments

see #983
2015-11-29 15:16:51 +03:00
Boris Nagaev baf62f66bb patch-tool-mxe: fix getting patch_name
Previous implementation failed with "set -o nounset":
 ./tools/patch-tool-mxe: line 10: $3: unbound variable

see #983
2015-11-29 15:16:46 +03:00
Boris Nagaev 499ae65452 patch-tool-mxe: do not replace author with "MXE"
Replace existing "From: MXE" with "From: fix@me".
Authors of such patches can be found using git history.

see #983
2015-11-29 15:16:31 +03:00
Tony Theodore 9c000cf49c cleanup style 2015-11-21 13:55:08 +11:00
Boris Nagaev 0438b8627c suppress git commit error in Travis
See #924
See https://travis-ci.org/mxe/mxe/builds/91781012#L99
2015-11-19 09:39:39 +03:00
Tony Theodore 1e4c381a4c Merge pull request #924 from LuaAndC/travis-build-pulls
fix travis builds for pull requests
2015-11-18 20:53:22 +11:00
Tony Theodore 5f26c231ea build-pkg: round argument of os.date
fixes #1001
2015-11-16 20:45:11 +11:00
Tony Theodore 8fd14ebfb6 Merge branch 'build-pkg-dlls-and-empty' of https://github.com/LuaAndC/mxe into LuaAndC-build-pkg-dlls-and-empty 2015-11-16 12:37:19 +11:00
Tony Theodore e41907e7f4 Merge pull request #977 from LuaAndC/nonetwork
disable networking with LD_PRELOAD when build
2015-11-14 22:49:12 +11:00
Boris Nagaev 18b8aa1c9c build-pkg: add EOL after last line in *.list file
fix #979
2015-11-11 03:32:27 +03:00
Boris Nagaev 68f74e9651 build-pkg: blacklist nonetwork.so 2015-11-10 11:19:45 +03:00
Boris Nagaev 8448d43531 disable networking with LD_PRELOAD when build
see #969
2015-11-10 11:19:45 +03:00
Boris Nagaev 3fc69a3a39 build-pkg: report non-empty depending on empty
fix #968
2015-11-10 01:33:55 +03:00
Boris Nagaev c2c0c26761 build-pkg: do not pack empty packages
see #968
2015-11-10 01:33:55 +03:00
Boris Nagaev 718b89a06e build-pkg: report shared items installing no .dll
Report only if the item installs .a

See https://github.com/mxe/mxe/pull/966#issuecomment-153712570
2015-11-10 01:33:55 +03:00
Boris Nagaev bf6aa9b550 build-pkg: typo 2015-11-10 01:33:55 +03:00
Boris Nagaev 8708cf1ed3 build-pkg: improve the progress printer accuracy
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.
2015-11-09 05:04:29 +03:00
Boris Nagaev fec25ef451 build-pkg: separate progress printing code 2015-11-09 05:04:29 +03:00
Boris Nagaev 28b75d2b58 build-pkg: print progress
Example:

[  4/100] The build is expected to complete in 0.3 hours, on Thu Oct 29 23:03:27 2015
2015-11-09 05:04:29 +03:00
Boris Nagaev 2bdd26e490 build-pkg: add logging function echo
echo is format + print
log is echo('[build-pkg]', ...)
2015-11-09 05:04:29 +03:00
Boris Nagaev af25251ae9 build-pkg: exclude usr and settings.mk from source 2015-10-28 03:19:56 +03:00
Boris Nagaev eac808245f build-pkg: use current date as Debian patch version
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.
2015-10-28 02:46:12 +03:00
Boris Nagaev 0886967de8 build-pkg: replace _ with . in versions
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.
2015-10-28 02:46:12 +03:00
Boris Nagaev 97a8038a8b build-pkg: add package mxe-source
close #946
2015-10-28 02:46:04 +03:00
Boris Nagaev c0b7e48c29 build-pkg: rename makeMxeRequirementsDeb
rename makeMxeRequirementsDeb to makeMxeRequirementsPackage
2015-10-28 02:45:37 +03:00
Boris Nagaev f50add7fc0 build-pkg: refactor package building function
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().
2015-10-28 02:45:37 +03:00
Boris Nagaev ac1543115b build-pkg: find build arch with dpkg-architecture 2015-10-28 02:45:36 +03:00
Boris Nagaev 36cddeb56d build-pkg: refactor Debian control generating
Function debianControl() takes parameters of the Debian package
and returns the contents of the Debian control file.
2015-10-28 02:45:36 +03:00
Boris Nagaev 69220922e5 build-pkg: don't pre-download if MXE_MAX_ITEMS
MXE_MAX_ITEMS is used mostly for debugging purposes.
Waiting all packages to download (2Gb) is boring.
2015-10-28 02:45:36 +03:00
Tony Theodore eec1eb66cf build-pkg: keep deb-control files 2015-10-25 12:23:29 +11:00
Boris Nagaev 4ed7cd1b1e build-pkg: use config.guess to get native target 2015-10-25 12:23:28 +11:00
Boris Nagaev 987f8a09de build-pkg: don't blacklist usr/share/cmake 2015-10-25 12:23:28 +11:00
Boris Nagaev 894df38048 build-pkg: log cross-target dependencies
Don't log dependencies on native target.
2015-10-25 12:23:28 +11:00
Boris Nagaev 1c3e1e9a3b build-pkg: pass MXE_TARGETS to "make pkg"
"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.
2015-10-25 12:23:28 +11:00
Boris Nagaev 79717d12cc build-pkg: fix test for library format
Fix warnings like:

    [build-pkg]     File usr/x86_64-unknown-linux-gnu/lib/libyasm.a
    (x86_64-unknown-linux-gnu~yasm): not recognized library
2015-10-25 12:23:28 +11:00
Boris Nagaev f15fc358a6 build-pkg: add function searching for a substring
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.
2015-10-25 12:23:28 +11:00
Boris Nagaev 856f1d3b09 update build-pkg.lua for toolchain re-org
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
2015-10-25 12:23:28 +11:00
Boris Nagaev 477f909947 build-pkg: rename local var "item" to "member"
I want to use name "item" for something else.
2015-10-25 12:23:28 +11:00
Tony Theodore 7c43d12a11 build-pkg: remove most of the COMMON_FILES
Source: https://github.com/mxe/mxe/pull/925#issuecomment-147992049

see #925
2015-10-25 12:23:28 +11:00
Tony Theodore 8e7e506d28 tools: note source of make-shared-from-static 2015-10-22 18:15:46 +11:00
Boris Nagaev 3aa54e03c6 build-pkg: don't use numeric owner, group in tar
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
2015-10-16 03:30:31 +03:00
Boris Nagaev 254b1bb9d6 build-pkg: check-requirements before downloading
Don't wait for downloading completed if something is wrong
with dependencies.

see #908
2015-10-16 03:30:31 +03:00
Boris Nagaev 3b52cf6053 build-pkg: use gmake or gnumake if available
see #901
see 4743e7939d10d9983e01f085c94b24e4c317811d
2015-10-16 03:30:31 +03:00
Boris Nagaev 37a2ce66c4 build-pkg: use gtar or gnutar if available
close #901
2015-10-16 03:30:31 +03:00
Boris Nagaev d57e5c58c8 travis-push: make sure "git commit" succeeded 2015-10-13 12:36:23 +03:00
Boris Nagaev d64c26e6f2 travis: commit and push only if GH_TOKEN is set
This allows to enable travis build for a pull request without failing it.
This is useful to check at leat that Makefile syntax is correct.
2015-10-13 12:34:34 +03:00
Boris Nagaev 0ae57b9c37 build-pkg: add MXE_CONF_PKGS to deps of packages
close #890
2015-09-29 23:58:24 +03:00
Boris Nagaev ef9c905457 build-pkg: add a note about fakeroot ipc problem
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.
2015-09-27 13:44:40 +03:00