aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 5ad13240ea6e986bc26c702b759cffed73e27838 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
MuSlack
=======

MuSlack is an unoffical attempt at porting some
[Slackware](https://www.slackware.com) current packages to statically built
[musl](https://www.musl-libc.org) based ones.

Auditing Changes
----------------

An easy way to audit the build scripts is to compare them to Slackware's
official one.  To do this, copy the '.git' folder from this project into the
root of Slackware-current and run 'git diff'.

Requirements
------------

  - [bubblewrap](https://slackbuilds.org/repository/14.2/system/bubblewrap/)
  - [musl libc](https://slackbuilds.org/repository/14.2/system/musl/)
  - Slackware OS

Building these Packages
-----------------------

To build the packages in this project, a locally installed MuSlack system is
used under /opt/muslack.

    export PATH=/bin:/sbin:$PATH:$(realpath ./cmd)
    sudo mkdir /opt/muslack
    sudo chown $USER /opt/muslack
    
    # Pull supporting package contents from Slackware
    sync-files.sh

    # Create _very_ minimal base system
    init-env.sh

    # Enter build environment
    build-env.sh

    # install kernel headers
    (
      cd /tmp
      wget ftp://ftp.slackware.com/pub/slackware/slackware64-current/slackware64/d/kernel-headers-4.4.14-x86-1.txz
      wget ftp://ftp.slackware.com/pub/slackware/slackware64-current/slackware64/d/kernel-headers-4.4.14-x86-1.txz.asc
      gpg2 --verify-files *.asc
      installpkg kernel-headers*.txz
    )

    # Try building + installing everything
    build-all.sh