Subject: pkg/9560: misc/staroffice dumps core if /proc not mounted
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tim.walls@pa.press.net>
List: netbsd-bugs
Date: 03/07/2000 07:03:35
>Number:         9560
>Category:       pkg
>Synopsis:       misc/staroffice dumps core if /proc not mounted
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar  7 07:03:00 2000
>Last-Modified:
>Originator:     Tim Walls
>Organization:
Press Association
>Release:        -current (1.4S)
>Environment:
NetBSD justforkix 1.4S NetBSD 1.4S (JUSTFORKIX) #7: Fri Feb 18 16:03:47 GMT 2000
     timwa@justforkix:/usr/src/sys/arch/i386/compile/JUSTFORKIX i386	

>Description:
StarOffice core dumps on installation (and on subsequent invocation as
well) if procfs is not mounted on /proc.

Ideally, the StarOffice installer should check that /proc is mounted as a prerequisite, and abort the installation (with an appropriate error) if not.
>How-To-Repeat:
cd pkgsrc/misc/staroffice
umount /proc
make; make install


>Fix:
Apply the following patch to the staroffice package makefile (unless
you can think of a more elegant way to check for procfs!)

Also, it may be worth mentioning in the package documentation.

-------------------8< snip here 8<--------------------
*** Makefile.orig	Tue Mar  7 14:26:51 2000
--- Makefile	Tue Mar  7 14:45:33 2000
***************
*** 99,104 ****
--- 99,108 ----
  		${ECHO} "${DISTNAME} needs to be installed under X11."; \
  		exit 1; \
  	fi
+ 	@if [ "`/sbin/mount | grep 'on /proc' | cut -d ' ' -f 5`" != "procfs" ]; then \
+ 		${ECHO} "${DISTNAME} needs procfs to be mounted on /proc."; \
+ 		exit 1; \
+ 	fi
  	@${CAT} ${PKGDIR}/PLIST.${LANGNO} ${PKGDIR}/PLIST >${PLIST_SRC}
  
  do-install:
-------------------8< snip here 8<--------------------

>Audit-Trail:
>Unformatted: