Skip to content

Commit bfab3e9

Browse files
committed
Correct 20160204 musl-images
1 parent b79e3be commit bfab3e9

File tree

111 files changed

+4155
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+4155
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ docker-data/
1010
!dock/gentoobb
1111
!dock/dummy
1212
!dock/guruvan
13+
!dock/mazaclub

dock/mazaclub/build.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
AUTHOR="Rob Nelson <mazaclub@maza.club>"
2+
DEF_BUILD_CONTAINER="${NAMESPACE}/bob"
3+
CONTAINER_ENGINE="docker"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM ${NAMESPACE}/stage3-import
2+
MAINTAINER ${MAINTAINER}
3+
4+
COPY portage*.tar.* /usr/portage/distfiles/
5+
RUN echo 'GENTOO_MIRRORS="http://distfiles.gentoo.org/"' >> /etc/portage/make.conf && \
6+
mkdir -p /etc/portage/repos.conf && \
7+
sed -e 's|^sync-uri =.*|sync-uri = ${BOB_SYNC_URI}|' \
8+
-e 's|^sync-type =.*|sync-type = ${BOB_SYNC_TYPE}|' \
9+
/usr/share/portage/config/repos.conf > /etc/portage/repos.conf/gentoo.conf && \
10+
chown -R portage:portage /usr/portage && \
11+
(emerge-webrsync -k --revert=${TAG} || emerge-webrsync -k) && \
12+
eselect news read new 1>/dev/null && \
13+
mkdir -p /etc/portage/profile
14+
15+
COPY make.conf /etc/portage/make.conf
16+
17+
COPY portage-defaults.sh /etc/profile.d/portage-defaults.sh
18+
19+
COPY build-root.sh /bin/build-root
20+
21+
CMD ["/bin/bash"]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### mazaclub/bob-core:20160104
2+
Built: Thu Feb 11 04:05:24 UTC 2016
3+
4+
Image Size: 1.085 GB
5+
### guruvan/bob-core:20160204
6+
Built: Sun Feb 7 19:51:37 UTC 2016
7+
8+
Image Size: 1.72 GB
9+
### guruvan/bob-core:20160123
10+
Built: Sat Feb 6 06:45:52 UTC 2016
11+
12+
Image Size: 1.708 GB
13+
### guruvan/bob-core:20160104
14+
Built: Thu Jan 28 00:42:28 UTC 2016
15+
16+
Image Size: 1.075 GB
17+
### guruvan/bob-core:20160115
18+
Built: Wed Jan 27 23:42:23 UTC 2016
19+
20+
Image Size: 1.253 GB
21+
### guruvan/bob-core:20160115
22+
Built: Mon Jan 25 21:41:24 UTC 2016
23+
24+
Image Size: 1.253 GB
25+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#
2+
# build config
3+
#
4+
PACKAGES=""
5+
GO_IPFS_VERSION="0.3.10"
6+
7+
configure_bob()
8+
{
9+
#update_keywords 'dev-lang/go' '+**'
10+
11+
emerge -v =dev-lang/go-bootstrap-1.4.3
12+
cd /usr/portage/dev-lang/go
13+
sed -i 's/EAPI\=6/EAPI\=5/g' go-1.6_rc2.ebuild
14+
#ebuild go-1.6_rc2.ebuild manifest
15+
ebuild go-1.6_rc2.ebuild unpack
16+
ebuild go-1.6_rc2.ebuild prepare
17+
awk -v n=2 -v s="export CGO_ENABLED=0" 'NR == n {print s} {print}' /var/tmp/portage/dev-lang/go-1.6_rc2/work/go/src/make.bash > /var/tmp/portage/dev-lang/go-1.6_rc2/work/go/src/make.bash.new
18+
mv /var/tmp/portage/dev-lang/go-1.6_rc2/work/go/src/make.bash.new /var/tmp/portage/dev-lang/go-1.6_rc2/work/go/src/make.bash
19+
chmod +x /var/tmp/portage/dev-lang/go-1.6_rc2/work/go/src/make.bash
20+
emerge -v =dev-lang/go-1.6_rc2
21+
ebuild go-1.6_rc2.ebuild compile
22+
ebuild go-1.6_rc2.ebuild merge
23+
}
24+
25+
#
26+
# this method runs in the bb builder container just before starting the build of the rootfs
27+
#
28+
configure_rootfs_build()
29+
{
30+
init_docs "mazaclub/bob-go"
31+
}
32+
33+
#
34+
# this method runs in the bb builder container just before tar'ing the rootfs
35+
#
36+
finish_rootfs_build()
37+
{
38+
:
39+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM ${NAMESPACE}/bash
2+
MAINTAINER ${MAINTAINER}
3+
4+
ADD rootfs.tar /
5+
VOLUME ["/go"]
6+
7+
8+
ENTRYPOINT ["/bin/bash"]
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
### mazaclub/go-ipfs:20160104
2+
Built: Tue Feb 9 04:07:01 UTC 2016
3+
4+
Image Size: 52.46 MB
5+
#### Installed
6+
Package | USE Flags
7+
--------|----------
8+
*manual install*: go-ipfs_VERSION | https://github.com/ipfs/go-ipfs
9+
#### Inherited
10+
Package | USE Flags
11+
--------|----------
12+
**FROM mazaclub/bash** |
13+
app-admin/eselect-1.4.4 | `-doc -emacs -vim-syntax`
14+
app-portage/portage-utils-0.56 | `nls -static`
15+
app-shells/bash-4.3_p42-r1 | `net nls (readline) -afs -bashlogger -examples -mem-scramble -plugins -vanilla`
16+
dev-libs/iniparser-3.1-r1 | `-doc -examples -static-libs`
17+
dev-libs/libpcre-8.38 | `cxx readline recursion-limit (unicode) zlib -bzip2 -jit -libedit -pcre16 -pcre32 -static-libs`
18+
net-misc/curl-7.45.0 | `ssl threads -adns -http2 -idn -ipv6 -kerberos -ldap -metalink -rtmp -samba -ssh -static-libs {-test}`
19+
sys-apps/attr-2.4.47-r99 | `nls -static-libs`
20+
sys-apps/coreutils-8.23 | `nls xattr -acl -caps -gmp -multicall (-selinux) -static -vanilla`
21+
sys-apps/file-5.22 | `zlib -python -static-libs`
22+
sys-apps/grep-2.21-r1 | `nls pcre -static`
23+
sys-apps/sed-4.2.1-r1 | `nls -acl (-selinux) -static`
24+
sys-libs/ncurses-5.9-r5 | `cxx unicode (-ada) -debug -doc -gpm -minimal -profile -static-libs -tinfo -trace`
25+
sys-libs/ncurses-5.9-r99 | `cxx unicode (-ada) -gpm -static-libs -tinfo`
26+
sys-libs/readline-6.3_p8-r2 | `-static-libs -utils`
27+
**FROM mazaclub/openssl** |
28+
app-misc/c_rehash-1.7-r1 | ``
29+
app-misc/ca-certificates-20140927.3.17.2 | `cacert`
30+
dev-libs/openssl-1.0.2f | `asm bindist tls-heartbeat zlib -gmp -kerberos -rfc3779 -sctp -static-libs {-test} -vanilla`
31+
sys-apps/debianutils-4.4 | `-static`
32+
sys-libs/zlib-1.2.8-r1 | `-minizip -static-libs`
33+
**FROM mazaclub/s6** |
34+
dev-lang/execline-2.1.1.0 | `-static -static-libs`
35+
dev-libs/skalibs-2.3.2.0 | `-doc -ipv6 -static-libs`
36+
sys-apps/s6-2.1.3.0 | `-static`
37+
**FROM mazaclub/musl** |
38+
sys-libs/musl-1.1.12 | ``
39+
**FROM mazaclub/busybox** |
40+
sys-apps/busybox-1.24.1-r99 | `make-symlinks static -debug -ipv6 -livecd -math -mdev (-pam) -savedconfig (-selinux) -sep-usr -syslog (-systemd)`
41+
#### Purged
42+
- [x] Headers
43+
- [x] Static Libs
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#
2+
# build config
3+
#
4+
PACKAGES=""
5+
CROSSDEV_MUSL="x86_64-gentoo-linux-musl"
6+
7+
configure_bob() {
8+
# setup crossdev
9+
mkdir -p /usr/local/portage-crossdev/profiles
10+
echo 'local-crossdev' > /usr/local/portage-crossdev/profiles/repo_name
11+
echo "[local-crossdev]
12+
location=/usr/local/portage-crossdev
13+
priority=9999
14+
masters = gentoo
15+
auto-sync = no" > /etc/portage/repos.conf/crossdev.conf
16+
17+
crossdev -S --init-target --target ${CROSSDEV_MUSL}
18+
mkdir -p /usr/${CROSSDEV_MUSL}/etc/portage/package.{mask,unmask,use,keywords} /usr/${CROSSDEV_MUSL}/tmp/
19+
rm /usr/${CROSSDEV_MUSL}/etc/portage/make.profile
20+
ln -s /usr/portage/profiles/hardened/linux/musl/amd64 /usr/${CROSSDEV_MUSL}/etc/portage/make.profile
21+
22+
# add musl portage overlay
23+
layman -a musl
24+
cp -rfp /etc/portage/repos.conf/ /usr/${CROSSDEV_MUSL}/etc/portage/
25+
26+
head -n -3 /etc/portage/make.conf > /usr/${CROSSDEV_MUSL}/etc/portage/make.conf
27+
sed -i '7i CHOST=x86_64-gentoo-linux-musl \
28+
CBUILD=x86_64-gentoo-linux-musl \
29+
HOSTCC=x86_64-gentoo-linux-musl-gcc \
30+
ROOT=/usr/${CHOST}/ \
31+
ACCEPT_KEYWORDS="*" \
32+
PORTAGE_TMPDIR=${ROOT}tmp/ \
33+
ELIBC="musl" \
34+
PKG_CONFIG_PATH="${ROOT}usr/lib/pkgconfig/" \
35+
PKGDIR="/packages/${CHOST}"' /usr/${CROSSDEV_MUSL}/etc/portage/make.conf
36+
37+
sed -i -e 's/^ACCEPT_KEYWORDS=" ~"/ACCEPT_KEYWORDS="amd64"/g' /usr/${CROSSDEV_MUSL}/etc/portage/make.conf
38+
39+
# quick'n'dirty workaround as libsanitize currently breaks the tool chain build
40+
echo "cross-${CROSSDEV_MUSL}/gcc -sanitize" > /etc/portage/package.use/gcc
41+
42+
# init portage env defaults..
43+
source /etc/profile
44+
# ..but unset CHOST as it overrides make.conf
45+
unset CHOST
46+
47+
# fix regression in latest toolchain.eclass - see https://bugs.gentoo.org/show_bug.cgi?id=548782
48+
sed -i 's/\.\/\${dir}\/\*\.la || die/\.\/\${dir}\/\*\.la/g' /usr/portage/eclass/toolchain.eclass
49+
50+
crossdev -S --target ${CROSSDEV_MUSL}
51+
52+
rm /etc/portage/package.use/gcc
53+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#BUILD_FROM mazaclub/bob
2+
FROM ${NAMESPACE}/bob-musl
3+
MAINTAINER ${MAINTAINER}
4+
5+
CMD ["/bin/bash"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### mazaclub/bob-musl:20160104
2+
Built: Mon Feb 8 13:02:03 UTC 2016
3+
4+
Image Size: 1.314 GB
5+
#### Installed
6+
None.
7+
#### Inherited
8+
Package | USE Flags
9+
--------|----------
10+
**FROM scratch** |
11+
#### Purged
12+
- [x] Headers
13+
- [x] Static Libs

0 commit comments

Comments
 (0)