Skip to content

Commit

Permalink
Clone Newlib 4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ammrat13 committed Aug 5, 2023
0 parents commit b7c39d9
Show file tree
Hide file tree
Showing 6,564 changed files with 1,543,321 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
77 changes: 77 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
version: '{build}'
image: Visual Studio 2019

branches:
only:
- master
- /cygwin/

skip_tags: true
shallow_clone: true

environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: true
CACHE: C:\cache
CYGWIN_MIRROR: http://cygwin.mirror.constant.com
matrix:
- BUILD: x86_64-pc-cygwin
CYGWIN_ROOT: C:\cygwin64
PKGARCH: mingw64-x86_64
SETUP: setup-x86_64.exe

cache: C:\cache

install:
- if not exist %CACHE% mkdir %CACHE%
- appveyor DownloadFile http://cygwin.com/%SETUP% -FileName %CACHE%\%SETUP%
- "%CACHE%\\%SETUP% -qnNdO -R %CYGWIN_ROOT% -s %CYGWIN_MIRROR% -l %CACHE% -g -P \
gcc-core,\
gcc-g++,\
autoconf,\
automake,\
make,\
perl,\
patch,\
cocom,\
gettext-devel,\
libiconv-devel,\
zlib-devel,\
%PKGARCH%-gcc-core,\
%PKGARCH%-gcc-g++,\
%PKGARCH%-zlib,\
dejagnu,\
dblatex,\
docbook2X,\
docbook-xml45,\
docbook-xsl,\
texlive-collection-latexrecommended,\
texlive-collection-fontsrecommended,\
texlive-collection-pictures,\
xmlto,\
python39-lxml,\
python39-ply"

build_script: >-
%CYGWIN_ROOT%/bin/bash -lc "
cd $APPVEYOR_BUILD_FOLDER &&
mkdir build install &&
(cd winsup; ./autogen.sh) &&
cd build &&
../configure --prefix=$(realpath $(pwd)/../install) -v &&
export MAKEFLAGS=-j$(nproc) &&
make &&
make install &&
(cd */newlib; make info man) &&
(cd */newlib; make install-info install-man)"
test: off
deploy: off

# irc notification via notifico
notifications:
- provider: Webhook
url: http://n.tkte.ch/h/4848/0nqixIBiOFzf-S_N2PY83dGB
method: GET
on_build_success: false
on_build_failure: false
on_build_status_changed: true
20 changes: 20 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- conf -*-

## Set merge driver for ChangeLog files
# See gnulib's lib/git-merge-changelog.c (or git-merge-changelog(1))
# for per-user setup instructions.
#
# The short version of this (optional) procedure is:
#
# (1) Install git-merge-changelog (this is the tricky part!)
#
# (2) Add something like the following to your ~/.gitconfig:
#
# [merge "merge-changelog"]
# name = GNU-style ChangeLog merge driver
# driver = git-merge-changelog %O %A %B
#
# (3) Enjoy mostly effortless ChangeLog merges, at least until the
# file gets renamed again ...

ChangeLog merge=merge-changelog
120 changes: 120 additions & 0 deletions .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: cygwin

on: push

jobs:
fedora-build:
runs-on: ubuntu-latest
container: fedora:latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-cygwin
pkgarch: 64
name: Fedora cross ${{ matrix.target }}

steps:
- uses: actions/checkout@v2

# install build tools
- run: dnf install -y autoconf automake make patch perl
- run: dnf install -y mingw${{ matrix.pkgarch }}-gcc-c++ mingw${{ matrix.pkgarch }}-winpthreads-static mingw${{ matrix.pkgarch }}-zlib-static

# enable 'dnf copr'
- run: dnf install -y dnf-plugins-core

# cocom isn't packaged in Fedora, so we install from a copr
- run: dnf copr enable -y jturney/cocom
- run: dnf install -y cocom

# install cross-cygwin toolchain and libs from copr
- run: dnf copr enable -y yselkowitz/cygwin
- run: dnf install -y cygwin${{ matrix.pkgarch }}-gcc-c++ cygwin${{ matrix.pkgarch }}-gettext cygwin${{ matrix.pkgarch }}-libbfd cygwin${{ matrix.pkgarch }}-libiconv cygwin${{ matrix.pkgarch }}-zlib

# install doc tools
- run: dnf install -y dblatex docbook2X docbook-xsl xmlto
- run: dnf install -y python3 python3-lxml python3-ply
- run: fmtutil-sys --byfmt pdflatex && texhash

# build
- run: mkdir build install
- run: cd winsup && ./autogen.sh
- run: cd build && ../configure --target=${{ matrix.target }} --prefix=$(realpath $(pwd)/../install)
- run: make -C build
- run: make -C build/*/newlib info man
- run: make -C build install
- run: make -C build/*/newlib install-info install-man

windows-build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-cygwin
pkgarch: x86_64
name: Windows native ${{ matrix.pkgarch }}

steps:
# checkout action uses the native git (we can avoid this messing up line
# endings, but this could still be dangerous e.g if we need symlinks in the
# repo)
- run: git config --global core.autocrlf input
- uses: actions/checkout@v2

# install cygwin and build tools
- name: Install Cygwin
uses: cygwin/cygwin-install-action@master
with:
platform: ${{ matrix.pkgarch }}
packages: >-
autoconf,
automake,
cocom,
dblatex,
dejagnu,
docbook-xml45,
docbook-xsl,
docbook2X,
gcc-g++,
gettext-devel,
libiconv,
libiconv-devel,
make,
mingw64-${{ matrix.pkgarch }}-gcc-g++,
mingw64-${{ matrix.pkgarch }}-zlib,
patch,
perl,
python39-lxml,
python39-ply,
texlive-collection-fontsrecommended,
texlive-collection-latexrecommended,
texlive-collection-pictures,
xmlto,
zlib-devel
# build
- name: Build Cygwin
run: >-
export PATH=/usr/bin:$(cygpath ${SYSTEMROOT})/system32 &&
mkdir build install &&
(cd winsup; ./autogen.sh) &&
cd build &&
../configure --prefix=$(realpath $(pwd)/../install) -v &&
export MAKEFLAGS=-j$(nproc) &&
make &&
make install &&
(cd */newlib; make info man) &&
(cd */newlib; make install-info install-man)
shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}'

# test
- name: Test Cygwin
run: >-
export PATH=/usr/bin:$(cygpath ${SYSTEMROOT})/system32 &&
export MAKEFLAGS=-j$(nproc) &&
cd build &&
(export PATH=${{ matrix.target }}/winsup/testsuite/runtime:${PATH} && cmd /c $(cygpath -wa ${{ matrix.target }}/winsup/cygserver/cygserver) &) &&
(cd ${{ matrix.target }}/winsup; make check || true)
shell: C:\cygwin\bin\bash.exe --noprofile --norc -eo pipefail '{0}'
48 changes: 48 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
*.diff
*.patch
*.orig
*.rej

*~
.#*
*#

*.flt
*.gmo
*.info
*.la
*.lo
*.o
*.pyc
*.swp
*.tmp

.deps
.libs

autom4te.cache
config.cache
config.h
config.intl
config.log
config.status
libtool
POTFILES
*-POTFILES

winsup/aclocal.m4
winsup/configure
winsup/**/Makefile.in

tags
TAGS
TAGS.sub

.gdbinit
.gdb_history

# ignore core files, but not java/net/protocol/core/
core
!core/

lost+found
Loading

0 comments on commit b7c39d9

Please sign in to comment.