Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 53969

Summary: OpenMosix pkg-postinst()
Product: Gentoo Linux Reporter: David D. Huff Jr. <David.Huff>
Component: New packagesAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description David D. Huff Jr. 2004-06-15 05:10:21 UTC
The pkg-postinst() was nice to have this has been omitted since openmosix-2.4.21-r3. Thanks!

pkg_postinst() {
	
	if [ ! -e ${ROOT}usr/src/linux ]
	then
		rm -f ${ROOT}usr/src/linux
		ln -sf openmosix-sources-${KV} ${ROOT}/usr/src/linux
	fi
}
Comment 1 David D. Huff Jr. 2004-06-15 05:38:41 UTC
My mistake:

ln -sf openmosix-sources-${KV} ${ROOT}/usr/src/linux

s/b

ln -sf linux-${KV} ${ROOT}/usr/src/linux
Comment 2 Michael Imhof (RETIRED) gentoo-dev 2004-06-15 12:24:18 UTC
voxus: can you take care of this?
Comment 3 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-06-15 23:14:05 UTC
tantive: yep, i'll fix it today.
Comment 4 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-06-16 06:08:13 UTC
fixed in openmosix-sources-2.4.22-r9
Comment 5 David D. Huff Jr. 2004-07-16 10:54:34 UTC
When a security patch was entered for -r9 it excluded the symlink fix, subsequent updates no longer contained the fix either. We are now at -r11
Comment 6 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-07-19 05:23:13 UTC
hmm. i can see that pkg_postinst()'s symlink fix in .24-r1 and .22-r11, so i can't get the point of problem.
am i missing something?
Comment 7 David D. Huff Jr. 2004-07-19 05:45:01 UTC
It hasn't worked for me in the last three installs. I think the statement 
	if [ ! -e ${ROOT}usr/src/linux ]

should be

	if [ -e ${ROOT}usr/src/linux ]

Or drop the if statement all together since we want to do this under any condition.
Comment 8 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-07-19 08:27:56 UTC
David: if the behaviour of this ebuild will change from other's *-sources, we'll have to change all that ebuilds too (and yes, that's impossible, because it's not our area of resposibility), otherwise - someone'll be confused for sure.

so i can only suggest you to remove symlink before emerging oM-sources.

it's a common behavior, that if someone merged whatever-sources and is using them, then merges om-sources and only wants to look into them, the link should point to wherever it pointed before
Comment 9 Konstantin Arkhipov (RETIRED) gentoo-dev 2004-07-26 03:43:51 UTC
closing due to silence..