aboutsummaryrefslogtreecommitdiff
path: root/paludis/broken_linkage_configuration_TEST_setup.sh
blob: 55c0e46c7fd365ce403bf1c277d7a185af24d2c3 (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
#!/usr/bin/env bash
# vim: set ft=sh sw=4 sts=4 et :

mkdir broken_linkage_configuration_TEST_dir || exit 1
cd broken_linkage_configuration_TEST_dir || exit 1

mkdir -p etc/revdep-rebuild etc/ld.so.conf.d ld.so.conf.d

echo 'export PATH="/foobin:/barbin"' >>etc/profile.env
echo 'export ROOTPATH="/bazbin"' >>etc/profile.env
echo 'export WRATH="/goo"' >>etc/profile.env

echo '/foolib/bar' >>etc/ld.so.conf
echo '/barlib/foo' >>etc/ld.so.conf
echo '#/shoe' >>etc/ld.so.conf
echo '/meh=hahaha' >>etc/ld.so.conf
echo 'include ld.so.conf.d/*' >>etc/ld.so.conf
echo 'include /ld.so.conf.d/*' >>etc/ld.so.conf
echo 'include ld.so.conf.2' >>etc/ld.so.conf

echo '/qwerty1' >>etc/ld.so.conf.d/qwerty
echo '/qwerty2' >>etc/ld.so.conf.d/qwerty
echo '/uiop1' >>etc/ld.so.conf.d/uiop
echo '/uiop2' >>etc/ld.so.conf.d/uiop

echo '/fhqwhgads1' >>ld.so.conf.d/fhqwhgads
echo 'hwdep lalala' >>ld.so.conf.d/fhqwhgads
echo 'HWDEP lalalala' >>ld.so.conf.d/fhqwhgads
echo 'HwDep lalalalala' >>ld.so.conf.d/fhqwhgads
echo 'hwdp foobar' >>ld.so.conf.d/fhqwhgads
echo '/fhqwhgads2' >>ld.so.conf.d/fhqwhgads

echo '/42' >>etc/ld.so.conf.2

echo 'SEARCH_DIRS="/alib /blib"' >>etc/revdep-rebuild/10-test
echo 'SEARCH_DIRS_MASK="/meh -*"' >>etc/revdep-rebuild/10-test
echo 'SEARCH_DIRS_MASK="/feh"' >>etc/revdep-rebuild/20-test
echo 'LD_LIBRARY_MASK="libxyzzy.so"' >>etc/revdep-rebuild/30-test

echo 'SEARCH_DIRS="/moo"' >>etc/revdep-rebuild/10test~
echo 'SEARCH_DIRS="/foo"' >>etc/revdep-rebuild/.10test
echo 'SEARCH_DIRS="/boo"' >>etc/revdep-rebuild/\#10test

mkdir lib32 lib64