Skip to content

Commit

Permalink
merge opensuse
Browse files Browse the repository at this point in the history
  • Loading branch information
nxadm committed Jan 25, 2018
2 parents a9de3bd + e98660c commit 7594fde
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 29 deletions.
37 changes: 19 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
language: generic
env:
global:
- RAKUDO_VERSION="2017.12"
- NQP_VERSION="2017.12"
- MOARVM_VERSION="2017.12.1"
- RAKUDO_VERSION="2018.01"
- NQP_VERSION="2018.01"
- MOARVM_VERSION="2018.01"
- REVISION="01"
- PATH=/opt/rakudo-pkg/bin:$PATH
- RAKUDO_DEB="https://github.com/nxadm/rakudo-pkg/releases/download/v2017.11/rakudo-pkg-Ubuntu14.04_2017.11-01_amd64.deb"
- RAKUDO_DEB="https://github.com/nxadm/rakudo-pkg/releases/download/v2017.12/rakudo-pkg-Ubuntu14.04_2017.12-01_amd64.deb"
matrix:
- OS=alpine ARCH=amd64 VERSION=3.6
- OS=alpine ARCH=amd64 VERSION=3.7
- OS=centos ARCH=amd64 VERSION=7
- OS=debian ARCH=amd64 VERSION=8
- OS=debian ARCH=amd64 VERSION=9
- OS=fedora ARCH=amd64 VERSION=25
- OS=fedora ARCH=amd64 VERSION=26
- OS=fedora ARCH=amd64 VERSION=27
- OS=ubuntu ARCH=amd64 VERSION=14.04
- OS=ubuntu ARCH=amd64 VERSION=16.04
- OS=ubuntu ARCH=amd64 VERSION=17.10
- OS=ubuntu ARCH=amd64 VERSION=14.04
- OS=ubuntu ARCH=i386 VERSION=16.04
- OS=ubuntu ARCH=i386 VERSION=17.10
- OS=alpine ARCH=amd64 VERSION=3.6
- OS=alpine ARCH=amd64 VERSION=3.7
- OS=centos ARCH=amd64 VERSION=7
- OS=debian ARCH=amd64 VERSION=8
- OS=debian ARCH=amd64 VERSION=9
- OS=fedora ARCH=amd64 VERSION=25
- OS=fedora ARCH=amd64 VERSION=26
- OS=fedora ARCH=amd64 VERSION=27
- OS=opensuse ARCH=amd64 VERSION=42.3
- OS=ubuntu ARCH=amd64 VERSION=14.04
- OS=ubuntu ARCH=amd64 VERSION=16.04
- OS=ubuntu ARCH=amd64 VERSION=17.10
- OS=ubuntu ARCH=amd64 VERSION=14.04
- OS=ubuntu ARCH=i386 VERSION=16.04
- OS=ubuntu ARCH=i386 VERSION=17.10
sudo: required
services:
- docker
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ in the Linux distributions. At the moment the following packages are provided
- Fedora 27 x86_64:
[rpm](https://nxadm.github.io/rakudo-pkg/latest-release.html?os=fedora&version=27&arch=x86_64)
([checksum](https://nxadm.github.io/rakudo-pkg/latest-release-checksum.html?os=fedora&version=27&arch=amd64)).
- openSUSE 42.3 x86_64:
[rpm](https://nxadm.github.io/rakudo-pkg/latest-release.html?os=opensuse&version=42.3&arch=x86_64)
([checksum](https://nxadm.github.io/rakudo-pkg/latest-release-checksum.html?os=opensuse&version=42.3&arch=x86_64)).
- Ubuntu 14.04 amd64*:
[deb](https://nxadm.github.io/rakudo-pkg/latest-release.html?os=ubuntu&version=14.04&arch=amd64)
([checksum](https://nxadm.github.io/rakudo-pkg/latest-release-checksum.html?os=ubuntu&version=14.04&arch=amd64)).
Expand Down Expand Up @@ -187,11 +190,12 @@ This is the state of Rakudo packaged by the distribution themselves:
- Alpine 3.6: -
- Alpine 3.7: -
- Centos 7: -
- Debian 8: 2014.07 (avoid, pre [Christmas release](https://perl6advent.wordpress.com/2015/12/25/christmas-is-here/))
- Debian 9: 2016.12 (use with care, pre breaking [IO changes](http://rakudo.org/2017/04/02/upgrade-information-for-changes-due-to-io-grant-work/))
- Fedora 25: 2017.08
- Fedora 26: 2017.08
- Fedora 27: 2017.08
- Debian 8: 2014.07 (avoid, pre [Christmas release](https://perl6advent.wordpress.com/2015/12/25/christmas-is-here/))
- Debian 9: 2016.12 (use with care, pre breaking [IO changes](http://rakudo.org/2017/04/02/upgrade-information-for-changes-due-to-io-grant-work/))
- openSUSE 42.3: -
- Ubuntu 14.04: 2013.12 (avoid, pre [Christmas release](https://perl6advent.wordpress.com/2015/12/25/christmas-is-here/))
- Ubuntu 16.04: 2015.11 (avoid, pre [Christmas release](https://perl6advent.wordpress.com/2015/12/25/christmas-is-here/))
- Ubuntu 17.10: 2017.06
18 changes: 18 additions & 0 deletions docker/Dockerfile-opensuse-amd64-42.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM opensuse:42.3
LABEL maintainer="Claudio Ramirez <[email protected]>"
ENV LANG='en_US.UTF-8' \
pkgs='git gcc lsb5-core make rpm-build ruby wget' \
pkgs_tmp='ruby-devel'

RUN set -xv ; \
zypper refresh && \
zypper update -y && \
zypper install --replacefiles -y ${pkgs} ${pkgs_tmp} && \
ln -fs /usr/share/zoneinfo/Europe/Brussels /etc/localtime && \
gem install fpm && \
zypper remove -y --clean-deps ${pkgs_tmp}

COPY pkg_rakudo.pl /
COPY install-zef-as-user /

ENTRYPOINT [ "/pkg_rakudo.pl" ]
17 changes: 11 additions & 6 deletions docker/pkg_rakudo.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### Variables ###
my $install_root = '/opt/rakudo-pkg';
my $pkg_dir = '/staging';
my $fpm = 'fpm';
my $zef_repo = "https://github.com/ugexe/zef.git";
my %urls = ( # templates for now
rakudo =>
Expand All @@ -19,11 +20,12 @@
);
my %distro_info = (
# distro => [ pkg format, install command ]
Alpine => { format => 'apk', cmd => ['apk', 'add', '--allow-untrusted'] },
CentOS => { format => 'rpm', cmd => ['rpm', '-Uvh' ] },
Debian => { format => 'deb', cmd => ['dpkg', '-i' ] },
Fedora => { format => 'rpm', cmd => ['rpm', '-Uvh' ] },
Ubuntu => { format => 'deb', cmd => ['dpkg', '-i' ] },
Alpine => { format=>'apk', cmd => ['apk', 'add', '--allow-untrusted'] },
CentOS => { format=>'rpm', cmd => ['rpm', '-Uvh' ] },
Debian => { format=>'deb', cmd => ['dpkg', '-i' ] },
Fedora => { format=>'rpm', cmd => ['rpm', '-Uvh' ] },
openSUSE => { format=>'rpm', cmd => ['rpm', '-Uvh' ] },
Ubuntu => { format=>'deb', cmd => ['dpkg', '-i' ] },
);
my ($pkg_name, $os, $os_release) = ('','',''); # to be filled at runtime
my $arch = 'native';
Expand Down Expand Up @@ -61,12 +63,15 @@
close $fh;
} else {
$os = `lsb_release -is`;
$os =~ s/^(\w+)\s+\w+$/$1/;
$os_release = `lsb_release -rs`;
}
chomp $os;
chomp $os_release;
if ($os eq 'CentOS' or $os eq 'Alpine') {
$os_release =~ s/^(\d+\.\d+).+/$1/; # Short OS release (7.2.1234 -> 7.2)
} elsif ($os eq 'openSUSE') {
$fpm = '/usr/lib64/ruby/gems/2.1.0/gems/fpm-1.9.3/bin/fpm';
}

### Package ###
Expand Down Expand Up @@ -164,7 +169,7 @@ sub pkg_fpm {
my $pkg_dir_tmp = $pkg_dir . rand();
mkdir($pkg_dir_tmp) or die($!);
my @cmd = (
'fpm',
$fpm,
'--deb-no-default-config-files',
'--license', 'Artistic License 2.0',
'--description', 'Rakudo Perl 6 runtime',
Expand Down
10 changes: 7 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ in the Linux distributions. At the moment the following packages are provided
- Fedora 27 x86_64:
[rpm](https://nxadm.github.io/rakudo-pkg/latest-release.html?os=fedora&version=27&arch=x86_64)
([checksum](https://nxadm.github.io/rakudo-pkg/latest-release-checksum.html?os=fedora&version=27&arch=amd64)).
- openSUSE 42.3 x86_64:
[rpm](https://nxadm.github.io/rakudo-pkg/latest-release.html?os=opensuse&version=42.3&arch=x86_64)
([checksum](https://nxadm.github.io/rakudo-pkg/latest-release-checksum.html?os=opensuse&version=42.3&arch=x86_64)).
- Ubuntu 14.04 amd64*:
[deb](https://nxadm.github.io/rakudo-pkg/latest-release.html?os=ubuntu&version=14.04&arch=amd64)
([checksum](https://nxadm.github.io/rakudo-pkg/latest-release-checksum.html?os=ubuntu&version=14.04&arch=amd64)).
Expand Down Expand Up @@ -122,7 +125,7 @@ zef as a user, so you can choose to use the local or the global zef setup
to install modules:

```
install_zef_as_user: install Zef as ~/.perl6/bin/zef
install-zef-as-user # install Zef as ~/.perl6/bin/zef
```

## Building your own packages
Expand Down Expand Up @@ -187,11 +190,12 @@ This is the state of Rakudo packaged by the distribution themselves:
- Alpine 3.6: -
- Alpine 3.7: -
- Centos 7: -
- Debian 8: 2014.07 (avoid, pre [Christmas release](https://perl6advent.wordpress.com/2015/12/25/christmas-is-here/))
- Debian 9: 2016.12 (use with care, pre breaking [IO changes](http://rakudo.org/2017/04/02/upgrade-information-for-changes-due-to-io-grant-work/))
- Fedora 25: 2017.08
- Fedora 26: 2017.08
- Fedora 27: 2017.08
- Debian 8: 2014.07 (avoid, pre [Christmas release](https://perl6advent.wordpress.com/2015/12/25/christmas-is-here/))
- Debian 9: 2016.12 (use with care, pre breaking [IO changes](http://rakudo.org/2017/04/02/upgrade-information-for-changes-due-to-io-grant-work/))
- openSUSE 42.3: -
- Ubuntu 14.04: 2013.12 (avoid, pre [Christmas release](https://perl6advent.wordpress.com/2015/12/25/christmas-is-here/))
- Ubuntu 16.04: 2015.11 (avoid, pre [Christmas release](https://perl6advent.wordpress.com/2015/12/25/christmas-is-here/))
- Ubuntu 17.10: 2017.06

0 comments on commit 7594fde

Please sign in to comment.