Commit Graph

182 Commits

Author SHA1 Message Date
Tony Theodore 8aa5ccc123 Merge pull request #1071 from LuaAndC/build-pkg-dummy-for-requirements
build-pkg: fix .deb installation
2015-12-16 12:09:17 +11:00
Tony Theodore 3d00ea3748 Merge pull request #1072 from LuaAndC/build-pkg-full-filelist
build-pkg: update list of files back from .tar.xz
2015-12-16 12:05:43 +11:00
Tony Theodore 272f0c12fb Merge pull request #1070 from LuaAndC/deb-xz
build-pkg: pack Debian packages with xz not gzip
2015-12-16 12:03:43 +11:00
Boris Nagaev 33121e8d36 build-pkg: update list of files back from .tar.xz
fix #1067
2015-12-16 03:15:51 +03:00
Boris Nagaev 789545ff1a build-pkg: fix .deb installation
The installation failed with the following note:

> Noting disappearance of mxe-requirements,
> which has been completely replaced.

Add an empty file mxe-requirements.dummy.$release
to prevent this.
2015-12-16 03:06:37 +03:00
Boris Nagaev 5d3ce0ab6b build-pkg: pack Debian packages with xz not gzip
fix #1068
2015-12-16 03:03:59 +03:00
Boris Nagaev 5d5ad4a36c build-pkg: add "plugins/" to mxe-source package 2015-12-16 02:59:28 +03:00
Tony Theodore f16645ed7a Merge pull request #1054 from LuaAndC/fix-patch-tool-diffs
patch-tool-mxe: do not replace object id with 000
2015-12-14 18:50:27 +11:00
Tony Theodore 698feee203 Merge pull request #1057 from LuaAndC/build-pkg-exit-status
build-pkg: exit with code 1 if a package is broken
2015-12-14 18:40:35 +11:00
Tony Theodore 6118133150 Merge pull request #1058 from LuaAndC/build-pkg-no-empty-deps
build-pkg: do not provide empty dependency list
2015-12-14 18:39:58 +11:00
Tony Theodore ef6e50a11a Merge pull request #1056 from LuaAndC/build-empty-dependencies-of-nonempty
build-pkg: build empty dependencies of non-empty
2015-12-14 18:38:58 +11:00
Boris Nagaev 32fd160246 build-pkg: flush stdout after echoing 2015-12-14 00:22:36 +03:00
Boris Nagaev 686afc35ec build-pkg: build empty dependencies of non-empty
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.
2015-12-14 00:20:23 +03:00
Boris Nagaev 610569dc2e patch-tool-mxe: do not replace object id with 000
Previously patch-tool-mxe produced the following diffs:

    diff --git a/CMakeLists.txt b/CMakeLists.txt
    index 0000000..0000000 100644
    --- a/CMakeLists.txt
    +++ b/CMakeLists.txt

patch tool refused to apply this patch:

    The next patch would create the file CMakeLists.txt,
    which already exists!  Assume -R? [n]

This commit replaces 0000000..0000000 with 1111111..2222222.
2015-12-13 18:02:58 +03:00
Boris Nagaev c9d3201b16 build-pkg: do not provide empty dependency list
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.
2015-12-13 16:48:52 +03:00
Boris Nagaev cb8a1ae7f3 build-pkg: exit with code 1 if a package is broken 2015-12-13 16:23:00 +03:00
Tony Theodore aa6896f31c s3-fetch-and-sync: note mirror.mxe.cc 2015-12-11 12:20:24 +11:00
Boris Nagaev 005441e935 build-pkg: mxe.redjohn.tk -> pkg.mxe.cc 2015-12-11 02:45:21 +03:00
Tony Theodore 32b76a932d s3-fetch-and-sync: add IPv6 address and gateway 2015-12-10 15:36:57 +11:00
Tony Theodore bdb7e57d89 Merge pull request #1016 from LuaAndC/patch-tool-improvements
Patch tool improvements
2015-12-04 16:11:43 +11:00
Boris Nagaev d5a35d7463 patch-tool-mxe: do not download dependencies 2015-12-03 02:01:34 +03:00
Boris Nagaev 8fe0680679 patch-tool-mxe: replace commit hash with zeros
Decrease patch diff size.

See #983
2015-11-29 15:44:07 +03:00
Boris Nagaev 711a99a580 patch-tool-mxe: replace object names with zeros
Decrease patch diff size.

See #983
2015-11-29 15:43:30 +03:00
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