Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
packages [2023/11/18 16:31] – [Native] snacsnocpackages [2025/03/01 05:49] (current) snacsnoc
Line 1: Line 1:
 ===== Installing packages ====== ===== Installing packages ======
 +For a list of all packages available see: http://snacklinux.geekness.eu/repo/pub/packageslist.txt (x86)
 +
 ''[[https://github.com/snacsnoc/fbpkg|fbpkg]]'' is the package manager for SnackLinux. ''[[https://github.com/snacsnoc/fbpkg|fbpkg]]'' is the package manager for SnackLinux.
  
Line 24: Line 26:
  
 ===== Non-native ===== ===== Non-native =====
 +**Note**: It is easier to use pre-built toolchains from here: https://musl.cc/#binaries (native builds)
 +
 **[[http://ftp.gnu.org/gnu/gcc/gcc-5.2.0/|gcc 5.2.0]]** **[[http://ftp.gnu.org/gnu/gcc/gcc-5.2.0/|gcc 5.2.0]]**
  
Line 70: Line 74:
   make modules_install ARCH=x86_64 INSTALL_MOD_PATH=/path/to/install/headers/to   make modules_install ARCH=x86_64 INSTALL_MOD_PATH=/path/to/install/headers/to
            
 +** dropbear 2022.82**
 +  CC=i486-linux-musl-gcc CROSS_COMPILE=i486-linux-musl- ./configure --disable-zlib --host=i486-linux-musl --enable-static
 +  CC=i486-linux-musl-gcc make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" MULTI=1 SCPPROGRESS=1 strip
 +  
 +** file 5.44 ** (perl is needed)
 +  autoreconf -vfi
 +  CC=i486-linux-musl-gcc CFLAGS="-s -static" ./configure --prefix=/usr --host=i486-linux-musl
 +  
 +** gpm 1.20.7 **
 +Needed patches: https://sources.debian.org/data/main/g/gpm/1.20.7-10/debian/patches/096_fix-compilation-against-musl-libc.patch
 +./configure --prefix=/usr --host=i486-linux-musl
 ===== Native ===== ===== Native =====
  
Line 96: Line 111:
  
 **[[https://code.google.com/p/ucpp/|ucpp 1.3.2]]** ([[https://bitbucket.org/snacsnoc/ucpp|mirror]]) **[[https://code.google.com/p/ucpp/|ucpp 1.3.2]]** ([[https://bitbucket.org/snacsnoc/ucpp|mirror]])
-  make CC=x86_64-linux-musl-gcc CFLAGS=-s LDFLAGS=-s+ make CFLAGS="-s -static" LDFLAGS="-s -static"
        
 Example usage: ln -s /usr/bin/ucpp /lib/cpp    Example usage: ln -s /usr/bin/ucpp /lib/cpp   
Line 157: Line 172:
    make    make
    make DESTDIR=/path/to/staging install    make DESTDIR=/path/to/staging install
 +   #6.2
 +   #skip c++ checks
 +   export ac_cv_prog_CXX=false
 +   export ac_cv_prog_CXXCPP=false
 +   export ac_cv_prog_CXXCPP_FALSE=false
 +   export CXX="false"
 +   export CXXCPP="false"
 +   # fix install ownership
 +   sed -i '/checking if install needs to be told about ownership/,/esac/d' configure
 +   ./configure --prefix=/usr --without-cxx-binding --without-shared --with-normal --without-debug --enable-widec --with-ticlib --without-termlib --build=i486-musl-linux
 +   make -C ncurses
 +   # make symlink
 +   ln -s /usr/share/terminfo ncurses62_install_dir/lib/terminfo
        
        
Line 226: Line 254:
        
 ** [[http://bellard.org/tcc/|tcc 0.9.26]]** ** [[http://bellard.org/tcc/|tcc 0.9.26]]**
-Get this patch http://snacklinux.org/tars/patches/tcc-0.9.26.patch+Get this patch http://snacklinux.geekness.eu/tars/patches/tcc-0.9.26.patch
    patch -p1 -i ./tcc-0.9.26.patch    patch -p1 -i ./tcc-0.9.26.patch
    ./configure --cc=musl-gcc --extra-cflags=-static --prefix=/usr --strip-binaries    ./configure --cc=musl-gcc --extra-cflags=-static --prefix=/usr --strip-binaries
    make    make
    make DESTDIR=/path/to/staging install    make DESTDIR=/path/to/staging install
 +Note: you may have to symlink runtime libs:
 +   ln -sf /lib/crt1.o /usr/lib/crt1.o
 +   ln -sf /lib/crti.o /usr/lib/crti.o
 +   ln -sf /lib/crtn.o /usr/lib/crtn.o
        
 //Note: Use the '-static' flag in usage// //Note: Use the '-static' flag in usage//
Line 287: Line 319:
    make DESTDIR=/path/to/staging install       make DESTDIR=/path/to/staging install   
    </code>              </code>          
 +   
 + **[[https://github.com/magicant/yash|yash 2.58.1]]**
 +  ./configure --prefix=/usr --disable-nls
 +  make CFLAGS="-std=c99 -D_GNU_SOURCE"
 +  make DESTDIR=/path/to/staging install   
 +  
 +**[[https://e2fsprogs.sourceforge.net/|e2fsprogs-1.47.1]]**
 +  ./configure --prefix=/usr CFLAGS="-static -s"
 +  make
 +  make install MAN1DIR= MAN5DIR= MAN8DIR= DESTDIR=/path/to/staging install   
 +  
 +**[[https://www.han.de/~werner/ytree.html|ytree-2.05]]**
 +   CC=gcc make LDFLAGS="-L/usr/lib -lncursesw"  
 +   
 +**[[http://minkirri.apana.org.au/pub/linux/net/ne2000/atlantic.c|atlantic 0.00]]**
 +    gcc -static -s atlantic.c -o atlantic