Commit Graph

64 Commits

Author SHA1 Message Date
Tony Theodore 917c39501e binutils: cleanup readelf 2018-04-08 12:19:02 +10:00
Tony Theodore 2a22eee58f binutils: remove pkgconf dependency (finally!) 2017-12-23 08:19:00 +11:00
Tony Theodore 8b0e6fc706 binutils: use MXE_DISABLE_DOC_OPTS and BUILD_DIR/SOURCE_DIR 2017-07-24 01:44:42 +10:00
Tony Theodore 8e7b8f210b binutils: update 2.25.1 --> 2.28
* fixes original 2.26 regression with iostreams dll
    ```
    $ make gcc STRIP_TOOLCHAIN= MXE_TARGETS=i686-w64-mingw32.shared
    [...]
    $ i686-w64-mingw32.shared-nm  usr/i686-w64-mingw32.shared/bin/libstdc++-6.dll | grep InitC1
    6fefa2d0 T __ZNSt8ios_base4InitC1Ev
    ```
* replaces #1737
* fixes #1758
* tested on all four targets
2017-07-15 00:30:52 +10:00
Viktor Szakats 45d34aaac7 more URL updates 2017-03-10 13:59:00 +00:00
Viktor Szakats e961e447fb URL updates 2017-03-04 10:33:47 +00:00
Boris Nagaev 74163f1794 add _WEBSITE and _DESCR fields to core packages
See https://github.com/mxe/mxe/issues/1422

Automation (Python 2 code): https://gist.github.com/9f5c315e5d0cf113d41dc454b7a0eb41
2016-12-22 22:25:48 +01:00
Tony Theodore c255ff8b5a Add options to strip toolchain, executables, and libs
Minimal implementation to strip the [largest files][lf-gist] by
default, mostly made up of gcc/binutils and test programs.

gdal and geos both produce large libraries, but the libs themselves
aren't worth stripping, it's the 20 odd programs produced by gdal
with those libs statically linked that consume the most space.

I'm leaving these undocumented as the defaults seems reasonable and
the interface may well change when we enable debug/release variants.

closes #985
closes #1249

[lf-gist]:https://github.com/mxe/mxe/issues/1249#issuecomment-193392038
2016-10-23 17:59:21 +03:00
Boris Nagaev 6adb5ade12 Copyright headers: point to LICENSE.md and shorten
The following script was applied:

    sed ':a;/part of MXE.$/{N;s/\n//;ba}' -i $(git grep -l 'part of MXE')

    sed 's/\(part of MXE\).*\(See index.html\)/\1. \2/' -i \
        $(git grep -l 'part of MXE.*See index.html')

    before='This file is part of MXE. See index.html for further information.'
    after='This file is part of MXE. See LICENSE.md for licensing information.'
    sed "s/$before/$after/" -i $(git grep -l 'part of MXE')

Then git grep 'index.html for further information' revealed two other files.
One of them was patched manually (patch.mk). Makefile has text
"See index.html for further information" unrelated to licensing.

See https://github.com/mxe/mxe/issues/1500#issuecomment-241340792
2016-08-27 12:31:29 +03:00
Tony Theodore 9f9c17c988 binutils: enable deterministic archives
see: https://wiki.debian.org/ReproducibleBuilds/TimestampsInStaticLibraries
2016-02-01 15:08:16 +11:00
Tony Theodore 94938b331e binutils: revert update and ignore 2.26
See:
http://lists.nongnu.org/archive/html/mingw-cross-env-list/2016-01/msg00013.html
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813144
2016-02-01 14:48:12 +11:00
Mark Brand bd5f44b810 binutils: update 2016-01-27 10:43:52 +01:00
Tony Theodore fc0ed34fb9 all packages: really use sha256 checksums 2015-09-23 18:32:58 +10:00
Tony Theodore a228c0488f all packages: switch to sha256 checksums
closes #871
2015-09-23 17:27:16 +10:00
Mark Brand 7882944eb9 binutils gcc: update 2015-07-30 11:48:43 +02:00
Mark Brand da03d9f55e binutils: update 2014-12-26 22:27:42 +01:00
Boris Nagaev 3a4964c4b7 add http mirrors to packages hosted at FTP
see http://lists.nongnu.org/archive/html/mingw-cross-env-list/2014-07/msg00002.html

Many FTP servers block connections from Tor and some
VPN servers. HTTP servers don't do this normally.

Example of failed FTP download attempt of binutils-2.24.tar.bz:
$ torsocks wget ftp://ftp.gnu.org/pub/gnu/binutils/binutils-2.24.tar.bz2
   --2014-07-20 13:26:48-- ftp://ftp.gnu.org/pub/gnu/binutils/binutils-2.24.tar.bz2
   => `binutils-2.24.tar.bz2'
   Resolving ftp.gnu.org (ftp.gnu.org)... 208.118.235.20
   Connecting to ftp.gnu.org (ftp.gnu.org)|208.118.235.20|:21... connected.
   Logging in as anonymous ... Logged in!
   ==> SYST ... done.    ==> PWD ... done.
   ==> TYPE I ... done.  ==> CWD (1) /pub/gnu/binutils ... done.
   ==> SIZE binutils-2.24.tar.bz2 ... 22716802
   ==> PASV ... done.    ==> RETR binutils-2.24.tar.bz2 ...
   Error in server response, closing control connection.
   Retrying.

Same package was downloaded via HTTP successfully:
$ torsocks wget http://ftp.gnu.org/pub/gnu/binutils/binutils-2.24.tar.bz2
    --2014-07-20 13:32:37-- http://ftp.gnu.org/pub/gnu/binutils/binutils-2.24.tar.bz2
    Resolving ftp.gnu.org (ftp.gnu.org)... 208.118.235.20
    Connecting to ftp.gnu.org (ftp.gnu.org)|208.118.235.20|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 22716802 (22M) [application/x-bzip2]
    Saving to: `binutils-2.24.tar.bz2'

    100%[=================>] 22,716,802   721K/s   in 24s

    2014-07-20 13:33:03 (915 KB/s) - `binutils-2.24.tar.bz2' saved [22716802/22716802]

Trying download from Tor Browser, I get error message:
425 Security: Bad IP connecting.

HTTP URLs were added to FTP URLs-only packages.
In many cases, ftp://ftp.gnu.org can be accessed
from http://ftp.gnu.org
If both URLs of a package are FTP, then one of them
was replaced with HTTP.

Command to check that those packages can be build successfully
if behind Tor:
$ torsocks make autoconf automake binutils bison cloog coreutils file freetds gcc gdb gettext gmp gnutls gperf isl libbluray libffi libgcrypt libgpg_error libidn libmicrohttpd libpng libxml2 libxslt m4 pthreads-w32 sed dcmtk mpfr

I've run the test above successfully.
2014-07-20 13:21:48 +04:00
John W. Eaton 540c9e8f32 packages binutils gcc: remove build tools from $(TARGET)/bin and use prefixed tools instead 2014-02-11 12:53:30 +11:00
Tony Theodore 1a9ad29fe6 mxe configury: build native pkgconf and centralise various conf files
Since we need pkgconf for Cflags.private support, it seems like a
logical place for these types of config files instead of being
spread over Makefile, binutils, and gcc.
2014-02-08 23:23:00 +11:00
Niels Kristian Bech Jensen e0d2bbb8db update package binutils 2013-12-04 13:26:54 +11:00
Tony Theodore bc6104ccca Makefile: move config.guess install from binutils 2013-09-12 17:25:13 +10:00
Tony Theodore 07cdf41da1 packages binutils dbus gcc gettext libiconv: enable/disable native builds 2013-08-28 03:24:06 +10:00
Volker Grabsch e412eb642d Move package versions from index.html back into the src/*.mk files
Most of the automatic conversion was done using the following Python script:

import os
import re
pkgs = sorted(mkfile[:-len('.mk')] for mkfile in os.listdir('src') if mkfile.endswith('.mk'))
with open('index.html', 'rb') as f:
    index = f.read()
pkgs_index = re.findall('<td class="package">([^<]*)</td>', index)
assert pkgs_index == pkgs
versions = dict(re.findall('<td id="([^"]*)-version">([^<]*)</td>', index))
assert sorted(versions.keys()) == pkgs
for pkg in pkgs:
    version = versions[pkg]
    with open('src/' + pkg + '.mk', 'rb') as f:
        mk = f.read()
    checksumpos = mk.index('\n$(PKG)_CHECKSUM ')
    versionline = '\n$(PKG)_VERSION  := %(version)s' % {'version': version}
    newmk = mk[:checksumpos] + versionline + mk[checksumpos:]
    with open('src/' + pkg + '.mk', 'wb') as f:
        f.write(newmk)
2013-07-22 01:41:31 +02:00
Tony Theodore b974ef08d8 add mingw-w64 runtime and pthreads implementation, update related toolchain files 2013-06-01 22:28:02 +10:00
Tony Theodore 6188de2ed3 various packages: remove grep workarounds for version sorting 2013-05-22 19:33:04 +10:00
Mark Brand 8468ce5e4c update package binutils 2013-03-27 20:26:19 +01:00
Mark Brand fb0455c873 update package binutils 2012-11-13 17:54:05 +01:00
Mark Brand 3952e80935 update package binutils 2012-10-22 21:54:47 +02:00
Tony Theodore 4ed13a9f30 all packages: use $(WGET) portability variable 2012-05-16 17:49:40 +10:00
Volker Grabsch 00f4690d3f Move full package names from src/*.mk into package list (index.html) 2012-03-29 21:41:44 +02:00
Volker Grabsch 7badad85c9 Move doc/index.html -> index.html 2012-03-29 12:14:15 +02:00
Volker Grabsch 7e6723adb5 Move $(PKG)_VERSION and $(PKG)_WEBSITE from src/*.mk into doc/index.html 2012-03-29 11:07:07 +02:00
Volker Grabsch defdff28f0 Rebrand to new project name MXE 2012-03-28 15:46:58 +02:00
Tony Theodore bbfed8a77a remove unused config.sub file 2011-11-30 22:05:53 +11:00
Tony Theodore 7d78ab8044 install target-specific autotools config.site file 2011-11-30 22:04:57 +11:00
Volker Grabsch 148931b4ae replaced $(BUILD) with a more direct and less brittle construct
For discussion, see the following email and its follow-ups:
http://lists.nongnu.org/archive/html/mingw-cross-env-list/2011-11/msg00112.html
2011-11-28 09:51:56 +01:00
Mark Brand ff98a17d4f take config.guess from binutils instead of gcc
binutils comes before gcc and also has a newer config.guess.
2011-11-27 22:13:09 +01:00
Mark Brand 465c0722d0 update package binutils 2011-11-21 14:30:02 +01:00
Volker Grabsch 536f9bf6bd Improved filtering of bad binutils versions 2011-11-15 16:30:46 +01:00
Tony Theodore ba14d03305 update broken download links in stable branch 2011-10-23 02:15:55 +11:00
Mark Brand b676e6880a upgrade package binutils 2010-12-08 15:56:23 +01:00
Volker Grabsch f9555eb7cb remove $(PKG)_IGNORE entries that are no longer needed 2010-10-04 15:06:01 +02:00
Volker Grabsch 633423723e improved version recognition of packages binutils and gcc 2010-05-20 22:38:49 +02:00
Volker Grabsch ae5abe910d ignore the old version 2.20 of package binutils 2010-04-19 00:14:57 +02:00
Volker Grabsch c46c7c32bf update package binutils (by Tony Theodore) 2010-04-19 00:12:24 +02:00
Volker Grabsch 71f83a7e0d point consequently to "doc/index.html" instead of "doc/index.html or doc/README" 2010-02-08 00:58:06 +01:00
Volker Grabsch 8a3233b044 simplified file markers 2010-01-16 23:02:02 +01:00
Volker Grabsch a2686d0a82 portability fix to packages binutils and gcc for MacOS 10.6 2009-11-12 01:24:47 +01:00
Volker Grabsch bf3e8fc970 update version of package binutils 2009-10-27 14:58:04 +01:00
Volker Grabsch f162381b1a improved version recognition, enable the notation of ignored (bad) package versions 2009-09-20 14:36:46 +02:00