Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 102032
Collapse All | Expand All

(-)db.eclass (-19 lines)
Lines 34-56 Link Here
34
			ln -sf $i-3.2.so $i.so.3
34
			ln -sf $i-3.2.so $i.so.3
35
		fi
35
		fi
36
	done
36
	done
37
38
	# do the same for headers now
39
	# but since there are only two of them, just overwrite them
40
	cd ${ROOT}/usr/include
41
	target=`find . -maxdepth 1 -type d -name 'db[0-9]*' | sort  -g |cut -d/ -f2- | tail -n1`
42
	if [ -n "${target}" ] && [ -e "${target}/db.h" ]; then
43
		einfo "Creating db.h symlinks to ${target}"
44
		ln -sf ${target}/db.h .
45
		ln -sf ${target}/db_185.h .
46
	elif [ ! -e "${target}/db.h" ]; then
47
		if [ -n ${target} ]; then
48
			ewarn "Could not find ${target}/db.h"
49
		else
50
			einfo "Apparently you just removed the last instance of $PN. Removing the symlinks"
51
		fi
52
		rm db.h db_185.h
53
	fi
54
}
37
}
55
38
56
db_src_install_doc() {
39
db_src_install_doc() {
Lines 89-94 Link Here
89
	find ${D}/usr/lib -maxdepth 1 -type l -name 'libdb[1._-]*so' -exec rm \{} \;
72
	find ${D}/usr/lib -maxdepth 1 -type l -name 'libdb[1._-]*so' -exec rm \{} \;
90
	find ${D}/usr/lib -maxdepth 1 -type l -name 'libdb[1._-]*so.[23]' -exec rm \{} \;
73
	find ${D}/usr/lib -maxdepth 1 -type l -name 'libdb[1._-]*so.[23]' -exec rm \{} \;
91
	find ${D}/usr/lib -maxdepth 1 -type l -name 'libdb[1._-]*a' -exec rm \{} \;
74
	find ${D}/usr/lib -maxdepth 1 -type l -name 'libdb[1._-]*a' -exec rm \{} \;
92
93
	rm -f ${D}/usr/include/db.h ${D}/usr/include/db_185.h
94
}
75
}

Return to bug 102032