From durian@shadetreesoftware.com  Mon May  1 18:45:37 2006
Return-Path: <durian@shadetreesoftware.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C090C16A402
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  1 May 2006 18:45:37 +0000 (UTC)
	(envelope-from durian@shadetreesoftware.com)
Received: from shadetreesoftware.com (ip-64-139-62-106.den.megapath.net [64.139.62.106])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 44A9C43D53
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  1 May 2006 18:45:37 +0000 (GMT)
	(envelope-from durian@shadetreesoftware.com)
Received: from oak.shadetreesoftware.com (localhost [127.0.0.1])
	by shadetreesoftware.com (8.13.4/8.13.4) with ESMTP id k41IjX1t058223
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 1 May 2006 12:45:33 -0600 (MDT)
	(envelope-from durian@oak.shadetreesoftware.com)
Received: (from durian@localhost)
	by oak.shadetreesoftware.com (8.13.4/8.13.4/Submit) id k41IjW2K058222;
	Mon, 1 May 2006 12:45:32 -0600 (MDT)
	(envelope-from durian)
Message-Id: <200605011845.k41IjW2K058222@oak.shadetreesoftware.com>
Date: Mon, 1 May 2006 12:45:32 -0600 (MDT)
From: Mike Durian <durian@shadetreesoftware.com>
Reply-To: Mike Durian <durian@shadetreesoftware.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: misc/linux-opengroupware doesn't install or run
X-Send-Pr-Version: 3.113
X-GNATS-Notify: frank@opengroupware.org

>Number:         96613
>Category:       ports
>Synopsis:       misc/linux-opengroupware doesn't install or run
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bsam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 01 18:50:14 GMT 2006
>Closed-Date:    Wed Jul 05 13:33:31 GMT 2006
>Last-Modified:  Wed Jul 05 13:33:31 GMT 2006
>Originator:     Mike Durian
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD oak.shadetreesoftware.com 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2: Fri Feb 10 17:36:07 MST 2006 root@oak.shadetreesoftware.com:/usr/obj/usr/src/sys/SHADETREE i386


	
>Description:
	There must be something strange about my machine, as other people
	apparently can install and run linux-opengroupware, but I can't
	figure out how they do it.  I've run into a number of problems
	trying to get this port installed an running.

	1) In the Makefile, CPIOFLAGS includes --no-absolute-filenames.  This
	   option is not supported by cpio on my system:

	   # /usr/bin/cpio --no-absolute-filenames
	   cpio: unrecognized option `--no-absolute-filenames'

	   cpio does support --absolute-filenames, which makes me think the
	   condition you are looking for is the default.  I worked around
	   this by removing --no-absolute-filenames from CPIOFLAGS

	2) The ogo.sh and zideshow.sh start script try to use su(1) with
	   the -c option to specify a command to run.  The -c option does
	   not specify a command.  It specifies a login class.

	   Ah, I found it.  At one point, -c was not an su(1) option.
	   It would be passed to /bin/sh to interpret.  However, the
	   CVS logs show FreeBSD added the -c option to su(1) back in
	   October of 1997.  At first it was conditionalized by LOGIN_CAP,
	   but that was removed in 1.34.2.4 back in June 2002.  The
	   opengroupware port wasn't created until October 2003, so I'm
	   not sure how it ever worked (I must be missing something
	   in the su(1) CVS logs).

	   I worked around this by removing the -c argument and removing the
	   comments.  As in:

	   su -l ${OGO_USER} \
	           ./WOApps/OpenGroupware.woa/ix86/linux-gnu/gnu-fd-nil/OpenGroupware -WOHttpAllowHost '(localhost, you.yourdomain.org)' >>${LOG} 2>&1 &

	3) Then I ran into unresolved libraries.  OpenGroupware wants to link
	   against libssl.so.0.9.6, but all I have in /compat/linux/lib
	   is libssl.so.0.9.6b.  The port does create a symbolic link for
	   libssl.so.9.6 that points to libssl.so.0.9.6b, so I created a
	   new one for libssl.so.0.9.6.

	   The same thing applies to libcrypt.0.9.6.

	4) Now I can start OpenGroupware by hand, but when I try to start
	   it via the ogo.sh script, I get the following error in
	   /var/log/opengroupware/ogo.log:

	   ./WOApps/OpenGroupware.woa/ix86/linux-gnu/gnu-fd-nil/OpenGroupware: ./WOApps/OpenGroupware.woa/ix86/linux-gnu/gnu-fd-nil/OpenGroupware: cannot execute binary file

	   I think the "cannot execute binary file" message comes from bash(1),
	   but I cannot tell if it is the linux bash or the FreeBSD native
	   bash I've installed.  I can't figure out why it would be displayed
	   either as OpenGroupware has 755 privileges.

>How-To-Repeat:
	Try to install and run misc/linux-opengroupware from the ports
	collection.
>Fix:

	I've listed some partial fixes above, but now I'm stuck with the
	"cannot execute binary file" error.  I'm not sure what to do next.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon May 1 18:52:08 UTC 2006 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96613 

From: Frank Reppin <frank@opengroupware.org>
To: bug-followup@FreeBSD.org,  durian@shadetreesoftware.com
Cc: frank@opengroupware.org
Subject: Re: ports/96613: misc/linux-opengroupware doesn't install or run
Date: Fri, 05 May 2006 22:12:51 +0200

 Hello,
 
 I've got a new (source based) version ready and in testing
 (need to investigate some amd64 issues and general installation
 behaviour) which eases installation/maintenance and such since
 it doesn't require linux_base anymore nor is it based on RPMS:
 
 
   http://svn.opengroupware.org/viewcvs/trunk/maintenance/freebsd/
 
 
 and I plan to send-pr this 'new' port within a couple of weeks.
 
 I've contacted the initial reporter of this report (ports/96613)
 and gave/will give him advise on how to 'early adopt' this newer version.
 
 And thus - I hereby kindly request that someone with the proper bits
 marks the port:
 
  misc/linux-opengroupware
 
 as
 
 BROKEN=	will be replaced by a fixed version with migration instructions.
 EXPIRATION_DATE=	2006-06-15
 
 
 Thankyou very much!
 
 Kind regards,
 
 Frank Reppin
 
 -- 
 http://www.opengroupware.org
 
Responsible-Changed-From-To: freebsd-ports-bugs->bsam 
Responsible-Changed-By: bsam 
Responsible-Changed-When: Tue Jun 27 22:08:05 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96613 
State-Changed-From-To: feedback->closed 
State-Changed-By: bsam 
State-Changed-When: Wed Jul 5 13:32:14 UTC 2006 
State-Changed-Why:  
The port was removed (EXPIRATION_DATE passed). We are waiting for 
the native opengroupware port. 

Thanks for the report. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=96613 
>Unformatted:
