Commit Graph

6414 Commits

Author SHA1 Message Date
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 85d472be18 ucl: fix shared build
libtool could not find -lwinmm and produced the following message:

*** Warning: linker path does not have real file for library -lwinmm.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libwinmm and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/lib/mxe/usr/lib/gcc/i686-w64-mingw32.shared/5.2.0/../../../../i686-w64-mingw32.shared/lib//libwinmm.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.

After that, it created a static library instead of shared one.
Even -no-undefined did not help.
2015-11-09 05:02:38 +03:00
Boris Nagaev c299dc4ce3 add package ucl 2015-11-09 05:02:38 +03:00
Timothy Gu 20bf529ce9 Merge pull request #973 from remyroy/master
Adding Cataclysm: Dark Days Ahead in the list of projects who use MXE
2015-11-08 16:59:17 -08:00
Rémy Roy 7430375d1e Adding Cataclysm: Dark Days Ahead in the list of projects who use MXE 2015-11-08 15:21:16 -05:00
MXEBot as Travis CI 9d48d71644 Update versions.json 2015-11-05 18:46:58 +00:00
Mark Brand b3496f2ff8 gmp: update 2015-11-05 16:56:09 +01:00
MXEBot as Travis CI 010a934725 Update versions.json 2015-11-02 20:19:09 +00:00
Mark Brand 85b18836ef sqlite: update 2015-11-02 21:18:03 +01:00
MXEBot as Travis CI a559429fc2 Update versions.json 2015-11-01 13:31:45 +00:00
Tony Theodore 96ca43cdbc Merge pull request #958 from tonytheodore/threads
Building pthreads inline with gcc and enable optional posix threads in libgcc
2015-11-02 00:31:23 +11:00
Tony Theodore 30b7b7164f enbale MXE_GCC_THREADS and allow target spec <triplet>.<link>.<threads>
* enables optional c++11 <thread>, <mutex>, and <future> in libgcc
* avoid double build advice:
  http://sigrok.org/gitweb/?p=sigrok-util.git;a=blob;f=cross-compile/mingw/README;h=248af546f939a81855dda33142d834eecf2979c2;hb=HEAD#l44
* not heavily tested but should be released for feedback
2015-10-31 20:18:21 +11:00
Tony Theodore 05380b49b7 gcc pthreads: build pthreads and mingw-w64 headers inline and enable libgomp
* fixes "~winpthreads changes ~pthread_signal.h" etc. reported by build-pkg
  mingw-w64 installs dummy headers if winpthreads isn't built
* enables libgomp to avoid double-build (see #331)
* no change in openmp-validation (still 20 failures - taken with a grain of
  salt as the batch file test runner isn't a reliable perl substitute)
* pthreads virtual package kept for future testing
2015-10-31 20:18:21 +11:00
Tony Theodore 0ad42f9aa4 Merge pull request #959 from LuaAndC/build-pkg-install-source
build-pkg: install source, refactoring and other improvements
2015-10-28 11:31:08 +11: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 6b1a7962cf Makefile: filter out MXE_CONF_PKGS for inter-target deps 2015-10-27 21:29:47 +11:00
Tony Theodore ba7c553c66 mxe-conf: add CMAKE_PREFIX_PATH to toolchain file
see #904
2015-10-27 20:59:44 +11:00
MXEBot as Travis CI 4d9bddf04a Update versions.json 2015-10-27 09:05:43 +00:00
Mark Brand dd6bf281dc dbus: update 2015-10-27 10:01:14 +01:00
Tony Theodore ca6a84316a Merge branch 'enginefeeder101-issue690' 2015-10-27 17:06:50 +11:00
Engine Feeder 2b396da560 postgresql: fix socket error checking for mingw
When the client library of PostgreSQL is compiled with a MinGW-w64
environment the resulting libpq does not work. This has been reported
upstream with two bug reports and a patch was submitted by
Michael Cronenworth <mike(at)cchtml(dot)com> (1) but it has not been
picked up by upstream.

This is confirmed to build on Arch Linux x64 with targets:

x86_64-w64-mingw32.static and i686-w64-mingw32.static

and works under Wine, Windows 7 and Windows 10 (both 32/64bit binaries)

(1) http://www.postgresql.org/message-id/520EBC3D.1010103@cchtml.com

fixes #690
2015-10-27 17:05:47 +11:00
Tony Theodore 3f96743b43 aspell: disable curses support 2015-10-27 12:13:09 +11:00
MXEBot as Travis CI 03a941bfc4 Update versions.json 2015-10-25 02:02:48 +00:00
Tony Theodore ffca3f5b83 Merge pull request #925 from tonytheodore/toolchain
Toolchain re-org - target dependencies
2015-10-25 13:02:30 +11:00
Tony Theodore 99ff9ca3fe gendef: install to target specific prefix 2015-10-25 12:23:29 +11:00
Tony Theodore eec1eb66cf build-pkg: keep deb-control files 2015-10-25 12:23:29 +11:00
Tony Theodore 16e8f7d773 .gitignore: also ignore debian control files 2015-10-25 12:23:29 +11:00
Tony Theodore 3a462ae25c Makefile: clean files created by build-pkg 2015-10-25 12:23:28 +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 a8ed815d82 Makefile: add print-deps-for-build-pkg target with inter-target deps 2015-10-25 12:23:28 +11:00
Tony Theodore c96a007c6a gcc: cleanup lib installation 2015-10-25 12:23:28 +11:00
Tony Theodore 9732e4dc29 pkgconf yasm: enable native builds and consolidate rules 2015-10-25 12:23:28 +11:00