sylware / nyanlinux (public) (License: AFFERO GPLv3) (since 2019-09-09) (hash sha1)
scripts for a lean, from scratch, amd hardware, linux distro
List of commits:
Subject Hash Author Date (UTC)
links: cleanup and use the opt downgraded gcc 012424b0f0f46852732d98fcfaa8b63e7a611697 Sylvain BERTRAND 2024-02-27 15:16:24
wip update 594d5355bea4ac538cc8c005d54160c2fd214fa5 Sylvain BERTRAND 2024-02-26 14:53:29
Gfx stack update 3feb4aff96d79de2f47142a5c812f71b778d9f6f Sylvain BERTRAND 2024-02-25 18:03:02
wip update fbf6c92c6042b78cf8e1b1af8913c3fb73cc034d Sylvain BERTRAND 2024-02-24 19:23:16
wip update 47f195e6e1f3c9a8577bb201e853954537294620 Sylvain BERTRAND 2024-02-22 20:56:40
wip update 4237cad9bf976c9e2b0fae91be87f8ddf0972091 Sylvain BERTRAND 2024-02-20 16:00:00
wip update 13846fc9908e879feac930c0c0a7dd56782e2c79 Sylvain BERTRAND 2024-02-19 15:38:55
wip update 2dd3f7cc3f5f5ea2b293af4e0e8d460a7b1cde65 Sylvain BERTRAND 2024-02-18 16:29:34
wip update 13eddbb9cf206780090241c842a5e78eda6e2522 Sylvain BERTRAND 2024-02-17 15:35:54
Gfx stack update e9897a701ddd7b88540ede13cd819fb1e1f53eef Sylvain BERTRAND 2024-02-17 13:46:09
wip update 70bcbe1b3ee804b4a0c70dca31a0639e9942acae Sylvain BERTRAND 2024-02-16 13:52:18
wip udpate a71ad5e0b166639d5a6ed585aafd8856a798ce4c Sylvain BERTRAND 2024-02-15 16:40:50
wip update fb9eda93e0ce3780b664e84c598221c9c2d42c60 Sylvain BERTRAND 2024-02-14 16:05:34
wip update 374dc22c02b02e8403d729d84d0d1c64fab2e52e Sylvain BERTRAND 2024-02-13 16:41:30
Gfx stack update abf7d8b3cfe32e3430da10a74fb0bc05f62bdd4e Sylvain BERTRAND 2024-02-10 13:54:42
wip update 1c2bca8e8a54c2d0df8333c26b2cade9faf99d02 Sylvain BERTRAND 2024-02-09 18:13:47
wip update f6b9a50cdb88dbbfb211bea7531490789886b866 Sylvain BERTRAND 2024-02-07 14:29:16
Gfx stack update 6b16f45f0416813abb6fc0fc58ad9c62e747d53c Sylvain BERTRAND 2024-02-04 12:59:59
wip update 9e176e2b1013adebadbc783d0cfddac2ec38ab5d Sylvain BERTRAND 2024-01-30 17:00:49
wip update 68cc3f78d969cb58398edc0b5b0b53759045d2c5 Sylvain BERTRAND 2024-01-29 20:48:44
Commit 012424b0f0f46852732d98fcfaa8b63e7a611697 - links: cleanup and use the opt downgraded gcc
Author: Sylvain BERTRAND
Author date (UTC): 2024-02-27 15:16
Committer name: Sylvain BERTRAND
Committer date (UTC): 2024-02-27 15:16
Parent(s): 594d5355bea4ac538cc8c005d54160c2fd214fa5
Signer:
Signing key:
Signing status: N
Tree: 500a2bc5f6fec04562d831ae1cc1e0255cf54aa5
File Lines added Lines deleted
builders/links-2.29/builder.sh 54 49
File builders/links-2.29/builder.sh changed (mode: 100644) (index 62d4502..446906c)
... ... rm -Rf $build_dir
16 16 mkdir -p $build_dir mkdir -p $build_dir
17 17 cd $build_dir cd $build_dir
18 18
19 PATH_SAVED=$PATH
20 export PATH="\
21 /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin:\
22 /nyan/make/current/bin:\
23 /nyan/pkgconf/current/bin:\
24 $PATH\
25 "
26 target_gnu_triple=$(basename "$(ls -d /nyan/toolchains/binutils-2.36.1-gcc-4.7.4/current/bin/*-gcc)")
27 target_gnu_triple=${target_gnu_triple%-gcc}
28
29 export "PKG_CONFIG_LIBDIR=\
30 /nyan/expat/current/lib/pkgconfig:\
31 /nyan/nyanuuid/current/lib/pkgconfig:\
32 /nyan/fontconfig/current/lib/pkgconfig:\
33 /nyan/freetype/current/lib/pkgconfig:\
34 /nyan/libSM/current/lib/pkgconfig:\
35 /nyan/libICE/current/lib/pkgconfig:\
36 /nyan/libXt/current/lib/pkgconfig:\
37 /nyan/libXdmcp/current/lib/pkgconfig:\
38 /nyan/libXau/current/lib/pkgconfig:\
39 /nyan/libpthread-stubs/current/lib/pkgconfig:\
40 /nyan/libxcb/current/lib/pkgconfig:\
41 /nyan/xorgproto/current/share/pkgconfig:\
42 /nyan/libX11/current/lib/pkgconfig"
43
44 export "CPPFLAGS=\
45 $(pkgconf --cflags-only-I x11 xt) \
19 mkdir -p $build_dir/bin
20 cat >$build_dir/bin/cc <<EOF
21 #!/bin/sh
22 exec /opt/toolchains/x64/elf/binutils-gcc/current/bin/gcc \
23 \
24 -isystem /nyan/linux-headers/current/include \
25 -isystem /nyan/glibc/current/include \
26 \
46 27 -I/nyan/libjpeg-turbo/current/include \ -I/nyan/libjpeg-turbo/current/include \
47 28 -I/nyan/libpng/current/include \ -I/nyan/libpng/current/include \
48 29 -I/nyan/zlib/current/include \ -I/nyan/zlib/current/include \
49 30 -I/nyan/freetype/current/include/freetype2 \ -I/nyan/freetype/current/include/freetype2 \
50 31 -I/nyan/fontconfig/current/include \ -I/nyan/fontconfig/current/include \
51 -I/nyan/libressl/current/include"
52 export "CFLAGS=-O2 -pipe -fPIC $(pkgconf --cflags-only-other x11)"
53 export "CC=$target_gnu_triple-gcc \
54 -isystem /nyan/glibc/current/include \
55 -isystem /nyan/linux-headers/current/include \
56 -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -static-libgcc \
32 -I/nyan/libressl/current/include \
33 -I/nyan/xorgproto/current/include \
34 -I/nyan/libX11/current/include \
35 -I/nyan/libXt/current/include \
36 \
37 \
38 -O2 -pipe -fpic -fPIC -ftls-model=global-dynamic -static-libgcc \
39 \
40 \
41 -Wl,--as-needed \
42 -Wl,-s \
43 -B/nyan/glibc/current/lib \
44 \
45 -L/nyan/libressl/current/lib \
46 -L/nyan/zlib/current/lib \
47 -L/nyan/libX11/current/lib \
48 -L/nyan/fontconfig/current/lib \
49 -L/nyan/freetype/current/lib \
50 -L/nyan/libpng/current/lib \
51 -L/nyan/libjpeg-turbo/current/lib \
52 -L/nyan/libXt/current/lib \
53 \
57 54 -Wl,-rpath-link,\ -Wl,-rpath-link,\
58 55 /nyan/freetype/current/lib:\ /nyan/freetype/current/lib:\
59 56 /nyan/fontconfig/current/lib:\ /nyan/fontconfig/current/lib:\
 
... ... export "CC=$target_gnu_triple-gcc \
63 60 /nyan/libxcb/current/lib:\ /nyan/libxcb/current/lib:\
64 61 /nyan/libX11/current/lib:\ /nyan/libX11/current/lib:\
65 62 /nyan/zlib/current/lib:\ /nyan/zlib/current/lib:\
66 /nyan/glibc/current/lib"
67 export "LDFLAGS=\
68 $(pkgconf --libs-only-L x11 xau xcb xdmcp xt) \
69 -L/nyan/libjpeg-turbo/current/lib \
70 -L/nyan/libpng/current/lib \
71 -L/nyan/zlib/current/lib \
72 -L/nyan/libressl/current/lib \
73 -L/nyan/freetype/current/lib \
74 -L/nyan/fontconfig/current/lib \
75 -Wl,-s"
76 export "LIBS=-lpthread -lfreetype -lfontconfig"
63 /nyan/glibc/current/lib \
64 \
65 "\$@"
66 EOF
67 chmod +x $build_dir/bin/cc
68
69 cat >$build_dir/bin/egrep <<EOF
70 #!/bin/sh
71 # links configure script is expecting egrep which is being removed
72 exec grep -E "\$@"
73 EOF
74 chmod +x $build_dir/bin/egrep
75
76 PATH_SAVED=$PATH
77 export PATH="\
78 $build_dir/bin:\
79 /nyan/make/current/bin:\
80 $PATH\
81 "
82
83 export CC=cc
84 export LIBS="\
85 -lpthread \
86 "
77 87 $pkg_dir/configure \ $pkg_dir/configure \
78 88 --prefix=/nyan/$src_name/$slot \ --prefix=/nyan/$src_name/$slot \
79 89 --enable-graphics --enable-graphics
80 unset PKG_CONFIG_LIBDIR
81 unset CPPFLAGS
82 unset CFLAGS
83 90 unset CC unset CC
84 unset LDFLAGS
85 91 unset LIBS unset LIBS
86 92
87 93 make -j $threads_n make -j $threads_n
 
... ... rm -Rf /nyan/$src_name/$slot/man
91 97
92 98 export PATH=$PATH_SAVED export PATH=$PATH_SAVED
93 99 unset PATH_SAVED unset PATH_SAVED
94 unset target_gnu_triple
95 100 rm -f $pkgs_dir_root/$archive_name rm -f $pkgs_dir_root/$archive_name
96 101 rm -Rf $build_dir $pkg_dir rm -Rf $build_dir $pkg_dir
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/sylware/nyanlinux

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/sylware/nyanlinux

Clone this repository using git:
git clone git://git.rocketgit.com/user/sylware/nyanlinux

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main