Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 673322 | Differences between
and this patch

Collapse All | Expand All

(-)gx86/eclass/db.eclass (-13 / +25 lines)
Lines 23-51 Link Here
23
	cd "${LIB}"
23
	cd "${LIB}"
24
24
25
	# first clean up old symlinks
25
	# first clean up old symlinks
26
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*so' -exec rm \{} \;
26
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*'"$(get_libname)" -exec rm \{} \;
27
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*so.[23]' -exec rm \{} \;
27
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*'"$(get_libname "[23]")" -exec rm \{} \;
28
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*a' -exec rm \{} \;
28
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*a' -exec rm \{} \;
29
29
30
	# now rebuild all the correct ones
30
	# now rebuild all the correct ones
31
	for ext in so a; do
31
	for ext in so a dylib sl; do
32
		for name in libdb libdb_{cxx,tcl,java,sql,stl}; do
32
		for name in libdb libdb_{cxx,tcl,java,sql,stl}; do
33
			target=`find . -maxdepth 1 -type f -name "${name}-*.${ext}" |sort -n |tail -n 1`
33
			target=`find . -maxdepth 1 -type f -name "${name}-*.${ext}" |sort -n |tail -n 1`
34
			[ -n "${target}" ] && ln -sf ${target//.\//} ${name}.${ext}
34
			[ -n "${target}" ] || continue;
35
			case ${CHOST} in 
36
			*-aix*)
37
				aixdll --merge-runtime \
38
					--keepdir=false \
39
					--target="${name}.${ext}" \
40
					--current="${target}" \
41
					`find . -maxdepth 1 -type f -name "${name}-*.${ext}"`
42
				;;
43
			*)
44
				ln -sf ${target//.\//} ${name}.${ext}
45
				;;
46
			esac;
35
		done;
47
		done;
36
	done;
48
	done;
37
49
38
	# db[23] gets some extra-special stuff
50
	# db[23] gets some extra-special stuff
39
	if [ -f libdb1.so.2 ]; then
51
	if [ -f libdb1$(get_libname 2) ]; then
40
		ln -sf libdb1.so.2 libdb.so.2
52
		ln -sf libdb1$(get_libname 2) libdb$(get_libname 2)
41
		ln -sf libdb1.so.2 libdb1.so
53
		ln -sf libdb1$(get_libname 2) libdb1$(get_libname)
42
		ln -sf libdb1.so.2 libdb-1.so
54
		ln -sf libdb1$(get_libname 2) libdb-1$(get_libname)
43
	fi
55
	fi
44
	# what do we do if we ever get 3.3 ?
56
	# what do we do if we ever get 3.3 ?
45
	for i in libdb libdb_{cxx,tcl,java,sql,stl}; do
57
	for i in libdb libdb_{cxx,tcl,java,sql,stl}; do
46
		if [ -f $i-3.2.so ]; then
58
		if [ -f $i-3$(get_libname 2) ]; then
47
			ln -sf $i-3.2.so $i-3.so
59
			ln -sf $i-3$(get_libname 2) $i-3$(get_libname)
48
			ln -sf $i-3.2.so $i.so.3
60
			ln -sf $i-3$(get_libname 2) $i$(get_libname 3)
49
		fi
61
		fi
50
	done
62
	done
51
63
Lines 139-146 Link Here
139
		mv "${LIB}/libdb_cxx.a" "${LIB}/libdb_cxx-${SLOT}.a"
151
		mv "${LIB}/libdb_cxx.a" "${LIB}/libdb_cxx-${SLOT}.a"
140
	fi
152
	fi
141
153
142
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*so' -exec rm \{} \;
154
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*'"$(get_libname)" -exec rm \{} \;
143
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*so.[23]' -exec rm \{} \;
155
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*'"$(get_libname "[23]")" -exec rm \{} \;
144
	einfo "removing unversioned static archives"
156
	einfo "removing unversioned static archives"
145
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*a' -exec rm \{} \;
157
	find "${LIB}" -maxdepth 1 -type l -name 'libdb[1._-]*a' -exec rm \{} \;
146
158

Return to bug 673322