Skip to content

Commit b8b61f1

Browse files
authored
Move the documentation from the forums to local for glibc 2.18
1 parent e893deb commit b8b61f1

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

README.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ This is a fork of https://github.com/Bisa/factorio-init
2424
- _policycoreutils-python_ package - Optional if using RPM. Required if compiling yourself.
2525
- gcc - Required to recompile.
2626
- make - Required to recompile.
27-
- **REQUIRED to debug the policy**
2827
- _policycoreutils-devel_ package - Optional if using RPM or just making small adjustments. Required if debugging.
2928
- _setools-console_ package - Required if debugging, optional in other cases.
3029

@@ -65,7 +64,7 @@ This is a fork of https://github.com/Bisa/factorio-init
6564
* lib/
6665
* ld-2.18.so
6766
- Via the RPM, just run `rpm -Uvh Factorio-SEinit-1.1-0.el7.src.rpm`
68-
- Compiling the module by hand without SELINUX devtools:
67+
- Compiling the module by hand:
6968
```bash
7069
[root@localhost]$ checkmodule -M -m -o factorio.mod factorio.te
7170
[root@localhost]$ semodule_package -o factorio.pp -m factorio.mod -f factorio.fc
@@ -80,6 +79,36 @@ This is a fork of https://github.com/Bisa/factorio-init
8079
- The config has options for declaring a alternate glibc root. The user millisa over on the factorio forums has created a wonderful guide to follow on creating this alternate glibc root ( side by side ) here:
8180
https://forums.factorio.com/viewtopic.php?t=54654#p324493
8281

82+
```bash
83+
yum install glibc-devel glibc
84+
cd /tmp
85+
git clone git://sourceware.org/git/glibc.git
86+
cd glibc
87+
git checkout release/2.18/master
88+
mkdir glibc-build
89+
cd glibc-build
90+
../configure --prefix='/opt/glibc-2.18'
91+
```
92+
Fix the test script
93+
fix line 179 of the test install script:
94+
```
95+
vi ../scripts/test-installation.pl
96+
```
97+
change from
98+
```perl
99+
if (/$ld_so_name/) {
100+
```
101+
change to
102+
```
103+
if (/\Q$ld_so_name\E/) {
104+
```
105+
save the changes, then run the command to build and install
106+
```
107+
make
108+
make install
109+
```
110+
111+
83112
## First-run
84113
- If you don't have Factorio installed already, use the `install` command:
85114

0 commit comments

Comments
 (0)