Bug 75645 - Fix errors in emulators/linux_base-8 for amd64
Summary: Fix errors in emulators/linux_base-8 for amd64
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: Trevor Johnson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-30 01:30 UTC by Conrad J. Sabatier
Modified: 2005-10-29 01:40 UTC (History)
1 user (show)

See Also:


Attachments
linux_base-8.diff (592 bytes, patch)
2004-12-30 01:30 UTC, Conrad J. Sabatier
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad J. Sabatier 2004-12-30 01:30:18 UTC
	Build fails due to script-generated errors.  This same problem 
	existed with the earlier linux_base 7 port.

Fix: Apply the following patch.
How-To-Repeat: 	Try to install on amd64 without the following patch.  Scripts 
	included in rpms produce errors, cancelling the install.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2004-12-30 04:26:45 UTC
Responsible Changed
From-To: freebsd-ports-bugs->trevor

Over to maintainer.
Comment 2 Conrad J. Sabatier 2004-12-31 05:08:13 UTC
On Wed, 29 Dec 2004 19:22:08 -0600 (CST), "Conrad J. Sabatier"
<conrads@cox.net> wrote:

> 
> >Number:         75645
> >Category:       ports
> >Synopsis:       Fix errors in emulators/linux_base-8 for amd64
> >Confidential:   no
> >Severity:       serious
> >Priority:       medium
> >Responsible:    freebsd-ports-bugs
> >State:          open
> >Quarter:        
> >Keywords:       
> >Date-Required:
> >Class:          change-request
> >Submitter-Id:   current-users
> >Arrival-Date:   Thu Dec 30 01:30:18 GMT 2004
> >Closed-Date:
> >Last-Modified:
> >Originator:     Conrad J. Sabatier
> >Release:        FreeBSD 6.0-CURRENT amd64
> >Organization:
> N/A
> >Environment:
> System: FreeBSD dolphin.local.net 6.0-CURRENT FreeBSD 6.0-CURRENT #0:
> Wed Dec 29 07:04:29 CST 2004
> conrads@dolphin.local.net:/usr/obj/usr/src/sys/CUSTOM amd64
> 
> 
> >Description:
> 	Build fails due to script-generated errors.  This same problem 
> 	existed with the earlier linux_base 7 port.
> >How-To-Repeat:
> 	Try to install on amd64 without the following patch.  Scripts 
> 	included in rpms produce errors, cancelling the install. 
> >Fix:
> 	Apply the following patch.
> 
> --- linux_base-8.diff begins here ---
> Index: Makefile
> ===================================================================
> RCS file: /home/ncvs/ports/emulators/linux_base-8/Makefile,v
> retrieving revision 1.93
> diff -u -d -H -r1.93 Makefile
> --- Makefile	27 Dec 2004 21:47:56 -0000	1.93
> +++ Makefile	30 Dec 2004 01:14:36 -0000
> @@ -79,6 +79,10 @@
>  RPM=			LC_ALL=C rpm
>  RPMFLAGS=		--root ${WRKSRC} --dbpath ${DBPATH} --nodeps \
>  			--replacepkgs --ignoreos --ignorearch
> +.if ${ARCH} == "amd64"
> +RPMFLAGS+=--noscripts
> +.endif
> +
>  RPMDIR=			${DISTDIR}/${DIST_SUBDIR}
>  
>  REMOVE_DIRS=		boot dev home initrd root tmp var/tmp usr/local usr/tmp
> --- linux_base-8.diff ends here ---
> 
> 
> >Release-Note:
> >Audit-Trail:
> >Unformatted:

OK, it appears that this alone is not quite sufficient.  When I went to
run acroread, I discovered that the permissions on the linux compat /tmp
were incorrect.  Further investigation revealed some strange ownerships
under /usr/compat/linux.

Perhaps a script could be added to the port to touch up the
files/directories after the install?

Other than this, though, it appears that linux_base-8 works fine on
amd64.

-- 
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
Comment 3 Trevor Johnson freebsd_committer freebsd_triage 2005-01-13 21:02:51 UTC
State Changed
From-To: open->patched

I committed a very similar change.
Comment 4 Volker Stolz freebsd_committer freebsd_triage 2005-10-28 15:45:55 UTC
State Changed
From-To: patched->closed

This issue has been settled for a while now.
Comment 5 Trevor Johnson 2005-10-29 01:33:15 UTC
> This issue has been settled for a while now.

The linux_base-8 port looks like it has been corrected, but I need to look
at several other Linux base ports.  I kept the PR open and assigned to me
as a reminder to myself to take care of that.

In the future if you see a PR assigned to me that looks like it should be
closed, would you please e-mail me about it instead of just going ahead
and closing it?  I'm afraid that I'll lose track of problems that haven't
really been fixed.
-- 
Trevor Johnson