Bug 85254 - [patch] emulators/linux_base-rh-9: add /usr/X11R6/lib to etc/ld.so.conf
Summary: [patch] emulators/linux_base-rh-9: add /usr/X11R6/lib to etc/ld.so.conf
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-23 18:40 UTC by Boris B.Samorodov
Modified: 2006-07-09 23:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris B.Samorodov 2005-08-23 18:40:17 UTC
	Old distribution (linux_base -- rh-7) used to have line
	"/usr/X11R6/lib" at etc/ld.so.conf. But rh-9 distribution does not
	have it. Hence, after upgrading some programms (ie Acrobat Reader)
	does not find the needed libraries.

Fix: The patch should be applied at /usr/ports/emulators/linux_base-rh-9
	directory.



WBR
-- 
bsam--Ej855kAZ9LcJBBgUfpF7mprtex78EkR12GqAHzASECbeVpsX
Content-Type: text/plain; name="patch.linux"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="patch.linux"

--- Makefile.orig	Tue Aug 23 21:04:03 2005
+++ Makefile	Tue Aug 23 21:23:29 2005
@@ -8,6 +8,7 @@
 
 PORTNAME=	linux_base-rh
 PORTVERSION=	9
+PORTREVISION=	1
 CATEGORIES=	emulators linux
 MASTER_SITES=	${MASTER_SITE_REDHAT_LINUX} \
 		${MASTER_SITE_REDHAT_LINUX:S/$/:new/}
@@ -138,6 +139,9 @@
 	done
 	@${LN} -sf /var/tmp ${WRKSRC}/usr/tmp
 
+post-patch:
+	${ECHO} "/usr/X11R6/lib" >> ${WRKSRC}/etc/ld.so.conf
+
 pre-install:
 	${RM} -f ${PLIST}
 	cd ${WRKSRC} && ${FIND} -s . -type f -o -type l | \
@@ -149,6 +153,7 @@
 	${FIND} ${PREFIX} -type d -exec ${CHMOD} 755 \{\} \;
 
 post-install:
+	${PREFIX}/sbin/ldconfig
 	@${ECHO} ''
 	@fmt ${PKGMESSAGE}
 	@${ECHO} ''
How-To-Repeat: 	Try to install emulators/linux_base-rh-9 and run linux program
	which is using X libs.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-08-24 07:43:39 UTC
Responsible Changed
From-To: freebsd-ports-bugs->trevor

Over to maintainer.
Comment 2 Trevor Johnson freebsd_committer freebsd_triage 2005-10-15 01:45:25 UTC
State Changed
From-To: open->analyzed

When I wrote the linux-Xfree86-libs port, it made the necessary 
changs to ld.so.conf.  However netchild decided to redesign that 
port, so that it no longer did that.  This caused the breakage you 
found.  It affects all the Linux base ports that previously could 
work with the linux-Xfree86-libs port,  While your solution seems 
okay, I think it would be simpler to just revert the changes to the 
linux-Xfree86-libs port.
Comment 3 Alexander Leidinger freebsd_committer freebsd_triage 2006-02-11 21:22:45 UTC
Responsible Changed
From-To: trevor->freebsd-ports-bugs

Back to the pool: maintainer reset
Comment 4 Boris Samorodov freebsd_committer freebsd_triage 2006-07-09 23:48:57 UTC
State Changed
From-To: analyzed->closed

Since I was a submitter, I request to close the PR since it useless 
nowadays. And now I'm closing it. ;-)