Skip to content

Commit

Permalink
arch-linux: removed license file
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Jun 5, 2015
0 parents commit 48883af
Show file tree
Hide file tree
Showing 127 changed files with 4,545 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .hgignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
syntax: glob
*.tar.bz2
deb/*-*
*.tar.gz
windows/*-*
windows/wix/
.DS_Store
mac/*-*
.vagrant
mac/makes/pkg/build/
*.ipk
repack/
123 changes: 123 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.

# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu/trusty32"
config.vm.provision :shell, path: "bootstrap-wine.sh"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network "forwarded_port", guest: 80, host: 8080

# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"

# If true, then any SSH connections made will enable agent forwarding.
# Default value: false
# config.ssh.forward_agent = true

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider "virtualbox" do |vb|
# # Don't boot with headless mode
# vb.gui = true
#
# # Use VBoxManage to customize the VM. For example to change memory:
# vb.customize ["modifyvm", :id, "--memory", "1024"]
# end
#
# View the documentation for the provider you're using for more
# information on available options.

# Enable provisioning with CFEngine. CFEngine Community packages are
# automatically installed. For example, configure the host as a
# policy server and optionally a policy file to run:
#
# config.vm.provision "cfengine" do |cf|
# cf.am_policy_hub = true
# # cf.run_file = "motd.cf"
# end
#
# You can also configure and bootstrap a client to an existing
# policy server:
#
# config.vm.provision "cfengine" do |cf|
# cf.policy_server_address = "10.0.2.15"
# end

# Enable provisioning with Puppet stand alone. Puppet manifests
# are contained in a directory path relative to this Vagrantfile.
# You will need to create the manifests directory and a manifest in
# the file default.pp in the manifests_path directory.
#
# config.vm.provision "puppet" do |puppet|
# puppet.manifests_path = "manifests"
# puppet.manifest_file = "default.pp"
# end

# Enable provisioning with chef solo, specifying a cookbooks path, roles
# path, and data_bags path (all relative to this Vagrantfile), and adding
# some recipes and/or roles.
#
# config.vm.provision "chef_solo" do |chef|
# chef.cookbooks_path = "../my-recipes/cookbooks"
# chef.roles_path = "../my-recipes/roles"
# chef.data_bags_path = "../my-recipes/data_bags"
# chef.add_recipe "mysql"
# chef.add_role "web"
#
# # You may also specify custom JSON attributes:
# chef.json = { mysql_password: "foo" }
# end

# Enable provisioning with chef server, specifying the chef server URL,
# and the path to the validation key (relative to this Vagrantfile).
#
# The Opscode Platform uses HTTPS. Substitute your organization for
# ORGNAME in the URL and validation key.
#
# If you have your own Chef Server, use the appropriate URL, which may be
# HTTP instead of HTTPS depending on your configuration. Also change the
# validation key to validation.pem.
#
# config.vm.provision "chef_client" do |chef|
# chef.chef_server_url = "https://api.opscode.com/organizations/ORGNAME"
# chef.validation_key_path = "ORGNAME-validator.pem"
# end
#
# If you're using the Opscode platform, your validator client is
# ORGNAME-validator, replacing ORGNAME with your organization name.
#
# If you have your own Chef Server, the default validation client name is
# chef-validator, unless you changed the configuration.
#
# chef.validation_client_name = "ORGNAME-validator"
end
43 changes: 43 additions & 0 deletions arch-linux/pkgbuilds/arm-frc-linux-gnueabi-binutils/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Maintainer: Tyler Veness <calcmogul at gmail dot com>

_target="arm-frc-linux-gnueabi"
pkgname=${_target}-binutils
pkgver=2.24
pkgrel=2
pkgdesc="A set of programs to assemble and manipulate binary and object files (${_target})"
arch=(i686 x86_64)
license=(GPL)
options=(!libtool !buildflags !emptydirs)
url="http://sources.redhat.com/binutils"
groups=('frc-2015')
depends=('glibc')
source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2)
md5sums=('e0f71a7b2ddab0f8612336ac81d9636b')

build() {
cd "$srcdir/binutils-${pkgver}"

find -name config.cache -exec rm {} \;

[ $NOEXTRACT -eq 1 ] || ./configure \
--prefix=/usr \
--target=${_target} \
--with-pkgversion='GNU Binutils for FRC' \
--with-sysroot=/usr/${_target} \
--disable-multilib \
--disable-nls \
--enable-lto \
--disable-libiberty-install \
--disable-werror

make configure-host
make
}

package() {
cd "$srcdir/binutils-${pkgver}"

make DESTDIR=$pkgdir install

rm -rf "$pkgdir"/usr/share/info
}
39 changes: 39 additions & 0 deletions arch-linux/pkgbuilds/arm-frc-linux-gnueabi-eglibc/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Maintainer: Tyler Veness <calcmogul at gmail dot com>

_target="arm-frc-linux-gnueabi"
pkgname=${_target}-eglibc
pkgver=2.17
_basever=2.17-r4
pkgrel=2
pkgdesc="Embedded GNU C Library (${_target})"
arch=(any)
url="http://www.eglibc.org"
curl="http://www.eglibc.org"
license=('GPL')
groups=('frc-2015')
depends=("${_target}-linux-api-headers")
options=(!strip 'staticlibs' '!emptydirs')
source=("http://download.ni.com/ni-linux-rt/feeds/2014/arm/armv7a-vfp-neon/libc6_${_basever}_armv7a-vfp-neon.ipk"
"http://download.ni.com/ni-linux-rt/feeds/2014/arm/armv7a-vfp-neon/libc6-dev_${_basever}_armv7a-vfp-neon.ipk"
"http://download.ni.com/ni-linux-rt/feeds/2014/arm/armv7a-vfp-neon/libcidn1_${_basever}_armv7a-vfp-neon.ipk"
"http://download.ni.com/ni-linux-rt/feeds/2014/arm/armv7a-vfp-neon/libthread-db1_${_basever}_armv7a-vfp-neon.ipk"
"http://download.ni.com/ni-linux-rt/feeds/2014/arm/armv7a-vfp-neon/eglibc-extra-nss_${_basever}_armv7a-vfp-neon.ipk")
md5sums=('8c02625eb360fdf5b4de64265d5be5ce'
'1b1af5fa61c80d08a85efb59db550795'
'530e52baa9ead19ee03ef4c1eea10508'
'7443d9118a024f1955cfc9fa60322f22'
'f3a6a47aacbbe69667b3b20a3a69593f')

package() {
cd "${srcdir}"
for file in *.ipk; do
ar x $file
tar xf data.tar.gz
done

mkdir -p ${pkgdir}/usr/${_target}
rm -rf lib/eglibc
find . \( -name .install -o -name ..install.cmd \) -delete
cp -r lib ${pkgdir}/usr/${_target}
cp -r usr ${pkgdir}/usr/${_target}
}
26 changes: 26 additions & 0 deletions arch-linux/pkgbuilds/arm-frc-linux-gnueabi-frcmake-hg/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Maintainer: Tyler Veness <calcmogul at gmail dot com>

pkgname=arm-frc-linux-gnueabi-frcmake-hg
pkgver=r66.eec4367471da
pkgrel=2
pkgdesc="Wrapper scripts for using CMake with the FRC toolchain"
arch=('any')
url="https://bitbucket.org/byteit101/toolchain-builder/"
license=('GPL')
makedepends=('mercurial')
provides=('arm-frc-linux-gnueabi-frcmake')
groups=('frc-2015')
depends=('cmake')
_hgrepo='toolchain-builder'
source=(hg+https://bitbucket.org/byteit101/toolchain-builder/"$_hgrepo")
sha512sums=('SKIP')

pkgver() {
cd "$srcdir/$_hgrepo"
printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

package() {
cd "$srcdir/$_hgrepo/tools"
make -f frcmake-nix-makefile DESTDIR="$pkgdir" install || return 1
}
78 changes: 78 additions & 0 deletions arch-linux/pkgbuilds/arm-frc-linux-gnueabi-gcc/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Maintainer: Tyler Veness <calcmogul at gmail dot com>

_target="arm-frc-linux-gnueabi"
pkgname=${_target}-gcc
pkgver=4.9.1
pkgrel=2
pkgdesc="The GNU Compiler Collection (${_target})"
arch=(i686 x86_64)
license=('GPL' 'LGPL')
url="http://gcc.gnu.org"
groups=('frc-2015')
depends=("${_target}-binutils" "${_target}-eglibc" 'libmpc' 'elfutils')
options=('!buildflags' '!libtool' '!emptydirs' 'zipman' 'docs'
'!strip' 'staticlibs')
source=("ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2"
"minorSOname.patch")
md5sums=('fddf71348546af523353bd43d34919c1'
'eac80070a6324fc67ed5b3ac85551789')

build() {
cd "${srcdir}/gcc-${pkgver}"

echo ${pkgver} > gcc/BASE-VER

patch -p1 < ${srcdir}/minorSOname.patch

[[ -d gcc-build ]] || mkdir gcc-build
cd gcc-build

[ $NOEXTRACT -eq 1 ] || ../configure \
--prefix=/usr \
--program-prefix=${_target}- \
--target=${_target} \
--host=$CHOST \
--build=$CHOST \
--enable-shared \
--disable-nls \
--enable-threads=posix \
--enable-languages=c,c++ \
--disable-multilib \
--disable-multiarch \
--with-sysroot=/usr/${_target} \
--with-build-sysroot=/usr/${_target} \
--with-as=/usr/bin/${_target}-as \
--with-ld=/usr/bin/${_target}-ld \
--with-cpu=cortex-a9 \
--with-float=softfp \
--with-fpu=vfp \
--with-specs='%{save-temps: -fverbose-asm} %{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables}' \
--enable-lto \
--with-pkgversion='GCC for FRC' \
--with-cloog \
--enable-poison-system-directories \
--enable-plugin \
--with-system-zlib \
--disable-libmudflap

make all-gcc all-target-libgcc all-target-libstdc++-v3
}

package() {
cd "${srcdir}/gcc-${pkgver}"/gcc-build

make "DESTDIR=$pkgdir" install-gcc install-target-libgcc \
install-target-libstdc++-v3

rm -rf "$pkgdir"/usr/share/{man/man7,info}/

cp -r "$pkgdir"/usr/libexec/* "$pkgdir/usr/lib/"
rm -rf "$pkgdir/usr/libexec"

rm -rf "$pkgdir/usr/share/gcc-${pkgver}/python"

# strip it manually
strip "$pkgdir"/usr/bin/* 2>/dev/null || true
find "$pkgdir"/usr/lib -type f -exec /usr/bin/${_target}-strip \
--strip-unneeded {} \; 2>/dev/null || true
}
49 changes: 49 additions & 0 deletions arch-linux/pkgbuilds/arm-frc-linux-gnueabi-gcc/minorSOname.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Description: Make the default SONAME include minor numbers (c++)
This patch adds .0.20 to the end of the SONAME for libstdc++ to support
independent side-by-side usage of .17 and .20.
.
gcc-armel (4.9.1-0frc2) trusty; urgency=low
.
* Fixing dependency ambiguity yet again...
Author: Patrick Plenefisch <[email protected]>

---

--- gcc-armel-4.9.1.orig/libstdc++-v3/configure
+++ gcc-armel-4.9.1/libstdc++-v3/configure
@@ -10698,7 +10698,7 @@ gnu*)
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
+ soname_spec='${libname}${release}${shared_ext}$versuffix'
shlibpath_var=LD_LIBRARY_PATH
hardcode_into_libs=yes
;;
@@ -10824,7 +10824,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
+ soname_spec='${libname}${release}${shared_ext}$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
@@ -14382,7 +14382,7 @@ gnu*)
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
+ soname_spec='${libname}${release}${shared_ext}$versuffix'
shlibpath_var=LD_LIBRARY_PATH
hardcode_into_libs=yes
;;
@@ -14508,7 +14508,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
+ soname_spec='${libname}${release}${shared_ext}$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
shlibpath_var=LD_LIBRARY_PATH
shlibpath_overrides_runpath=no
Loading

0 comments on commit 48883af

Please sign in to comment.