Commit Graph

32 Commits

Author SHA1 Message Date
Viktor Szakats 9ea0397bfc secure URLs
* also remove the last ftp:// URL, which was a mirror
2019-10-20 13:01:57 +11:00
Tony Theodore 01e2a64d00 cross packages: replace dependency gcc with cc 2017-12-23 08:19:00 +11:00
Viktor Szakats 45d34aaac7 more URL updates 2017-03-10 13:59:00 +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
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
Boris Nagaev 17e40d3884 use $(TEST_FILE) instead of $(2).c and other
The following script was applied:

    set -xue

    find src/ plugins/ -name '*.mk' -type f > mks

    # special cases for test file:
    # ls -d src/*-test* | sed 's@-test.*@@' | sort | uniq --repeated
    sed 's@$(2).c@$(PWD)/src/$(PKG)-test.c@g' -i \
        src/{boost,freeimage,hdf5,lapack,sdl,sdl_image,sdl_sound}.mk
    sed 's@$(2).f@$(PWD)/src/$(PKG)-test.f@g' -i src/lapack.mk
    sed 's@$(PWD)/$(2).pro@$(PWD)/src/$(PKG)-test.pro@g' -i \
        src/qt.mk plugins/examples/custom-qt-min/overrides.mk
    sed 's@$(2)-CMakeLists.txt@$(PWD)/src/$(PKG)-test-CMakeLists.txt@g' \
        -i src/{sdl_image,sdl_sound}.mk

    # check
    for base in $(ls -d src/*-test* | sed 's@-test.*@@' | sort | uniq --repeated); do
        ! grep -q '$(2)' "${base}.mk"
    done

    # other $(2)
    sed 's@$(2).cpp@$(TEST_FILE)@g' -i $(cat mks)
    sed 's@$(2).cxx@$(TEST_FILE)@g' -i $(cat mks)
    sed 's@$(2).c@$(TEST_FILE)@g' -i $(cat mks)
    sed 's@$(2).ml@$(TEST_FILE)@g' -i $(cat mks)
    sed 's@$(2).f@$(TEST_FILE)@g' -i $(cat mks)

    # check
    ! grep '$(2)' $(cat mks)

See https://github.com/mxe/mxe/issues/1452
2016-07-30 22:38:45 +03: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
Timothy Gu a5f7c3744e file: update and fix downloading
Fixes #773.
2015-07-26 21:24:19 -07:00
Timothy Gu 379c85fefa file: update 2015-06-18 19:32:02 -07:00
Timothy Gu d19c724cbc file: autoreconf before copying the directory to .native
Might fix compilation with automake 1.15.
2015-02-03 10:03:38 -08:00
Tony Theodore e4cc453afe file: update 2014-12-01 22:44:27 +11:00
Timothy Gu bb873231ba Merge pull request #435 from starius/master
add http mirrors to packages hosted at FTP
2014-07-22 19:33:04 -07:00
Timothy Gu 4f8b94cbbb file: update
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-07-22 19:27:57 -07:00
Timothy Gu 71f09d8a66 file: enable shared build
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
2014-07-22 19:26:40 -07: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
Tony Theodore 8de0584a23 many packages: explicitly disable shared builds
closes #369
2014-04-06 23:18:24 +10:00
Niels Kristian Bech Jensen 8850c908fc update package file 2013-12-04 17:35:14 +11:00
Mark Brand 6ea82c8274 update packages: cminpack file harfbuzz libircclient mpg123 netpbm 2013-10-08 22:50:28 +02: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 6371801538 update package file 2013-05-12 22:35:52 +10:00
Tony Theodore 485e4462f5 package file: update checksum after replaced tarball
http://mx.gw.com/pipermail/file/2013/001021.html
2013-01-05 19:04:33 +11:00
Mark Brand 3df3bc1a51 update package file 2013-01-03 17:36:46 +01: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 94aa65ad1a package file: reorganise and add test program
-use separate native build dir
-remove patch and use Make variable instead
-add test program
2012-03-13 23:49:42 +11:00
Mark Brand 473dd3fd79 upgrade package file 2012-02-21 22:57:50 +01:00
Mark Brand aca1f5d8fe update packages file xine-lib 2012-01-02 10:53:33 +01:00
Moritz Bunkus 2d6ae8c49d new packages: file libgnurx lzo 2011-10-24 22:30:35 +02:00