From chu@h33.erkki.ton.tut.fi  Sun Mar 24 10:25:32 2002
Return-Path: <chu@h33.erkki.ton.tut.fi>
Received: from h33.erkki.ton.tut.fi (h33.erkki.ton.tut.fi [193.166.84.86])
	by hub.freebsd.org (Postfix) with ESMTP id 14BF937B404
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 24 Mar 2002 10:25:31 -0800 (PST)
Received: (from chu@localhost)
	by h33.erkki.ton.tut.fi (8.11.6/8.11.6) id g2OIPSu30884;
	Sun, 24 Mar 2002 20:25:28 +0200 (EET)
	(envelope-from chu)
Message-Id: <200203241825.g2OIPSu30884@h33.erkki.ton.tut.fi>
Date: Sun, 24 Mar 2002 20:25:28 +0200 (EET)
From: Vladimir Chukharev <chu@h33.erkki.ton.tut.fi>
Reply-To: Vladimir Chukharev <chu@h33.erkki.ton.tut.fi>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: new XFree86-4 port errors
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         36258
>Category:       ports
>Synopsis:       new XFree86-4 port errors
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    jmz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 24 10:30:01 PST 2002
>Closed-Date:    Sun May 19 21:11:49 PDT 2002
>Last-Modified:  Sun May 19 21:11:49 PDT 2002
>Originator:     Vladimir Chukharev
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD h33.erkki.ton.tut.fi 4.5-STABLE FreeBSD 4.5-STABLE #0: Sat Mar 16 00:24:00 EET 2002 root@h33.erkki.ton.tut.fi:/usr/obj/usr/src/sys/H33 i386

>Description:

I had upgraded XFree86 at the moment, when the old megaport 4.2.0
was in place. Yesterday I decided to give a try to the new metaport 
(this is a box, were I can do some tests). After reboot X did not start.
Well, now I am trying to find what is wrong. I think the maintainer 
will find it much faster, though.

The build stops in x11-fonts/XFree86-4-font100dpi . Attached is output
of make all in this directory. If I do 
  cp work/xc/utils/ucs2any.pl /usr/X11R6/bin/
this particular point work, but then some font descriptions are searched
in /usr/X11R6/... instead of work/xc/....

Absolutely the same story happens in x11-fonts/XFree86-4-font75dpi.

I guess some internal vars are not set correctly in Makefile. These
work when an old version of X is installed, but portupgrade removed 
it in my case before starting installation.

Best regards,
V.Chukharev

>How-To-Repeat:
>Fix:

--- make.log begins here ---
===>  Configuring for XFree86-font100dpi-4.2.0
(cd /usr/ports/x11-fonts/XFree86-4-font100dpi/work/xc/fonts/encodings &&  imake -DUseInstalled -DProjectRoot=/usr/X11R6 -I/usr/X11R6/lib/X11/config  -DTOPDIR=../../.. -DCURDIR=.;  make Makefiles ;  make includes ;  make depend)
making Makefiles in large...
	mv -f Makefile Makefile.bak
including in ./large...
depending in ./large...
(cd /usr/ports/x11-fonts/XFree86-4-font100dpi/work/xc/fonts/bdf/100dpi &&  imake -DUseInstalled -DProjectRoot=/usr/X11R6 -I/usr/X11R6/lib/X11/config  -DTOPDIR=../../.. -DCURDIR=.;  make Makefiles ;  make includes ;  make depend)
make: don't know how to make /usr/X11R6/bin/ucs2any.pl. Stop
*** Error code 2

Stop in /usr/ports/x11-fonts/XFree86-4-font100dpi.
*** Error code 1

Stop in /usr/ports/x11-fonts/XFree86-4-font100dpi.
*** Error code 1

Stop in /usr/ports/x11-fonts/XFree86-4-font100dpi.
*** Error code 1

Stop in /usr/ports/x11-fonts/XFree86-4-font100dpi.
--- make.log ends here ---

>Release-Note:
>Audit-Trail:

From: Will Andrews <will@csociety.org>
To: Vladimir Chukharev <chu@h33.erkki.ton.tut.fi>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/36258: new XFree86-4 port errors
Date: Sun, 24 Mar 2002 15:21:54 -0500

 On Sun, Mar 24, 2002 at 08:25:28PM +0200, Vladimir Chukharev wrote:
 > I had upgraded XFree86 at the moment, when the old megaport 4.2.0
 > was in place. Yesterday I decided to give a try to the new metaport 
 > (this is a box, were I can do some tests). After reboot X did not start.
 > Well, now I am trying to find what is wrong. I think the maintainer 
 > will find it much faster, though.
 
 You need to use a tool like portupgrade to do this.  What
 happened is that when you typed "make install" the ports
 collection found some dependencies already installed and skipped
 installing the new ones.  So you need "portupgrade -uR XFree86"
 to do this properly.
 
 Regards,
 -- 
 wca
Responsible-Changed-From-To: freebsd-ports->jmz 
Responsible-Changed-By: cy 
Responsible-Changed-When: Sun Mar 24 18:19:01 PST 2002 
Responsible-Changed-Why:  
Over to maintainer. 

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

From: Vladimir Chukharev <chu@gpi.ru>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: taguchi@tohoku.iij.ad.jp
Subject: Re: ports/36258: new XFree86-4 port errors
Date: Tue, 26 Mar 2002 00:26:56 +0200

 OK, I managed to install XFree86-4 by first installing 
 XFree86-clients. Actual commands I used were 
  sudo limits -m 128m -d 128m -s 128m idprio 5  portupgrade -rRfiN
 XFree86-clients
  sudo limits -m 128m -d 128m -s 128m idprio 5  portupgrade -rRfiN
 XFree86
 and I answered "no" only to offer to install XFree86-3.3.6.
 
 I beleave the dependency check was fooled by existing of what 
 it checks for, while really the main part of nesessory files
 was deleted by previous run of portupgrade. And the order of
 installation in the second command line alone does not allow
 to install fonts.
 
 Hope this helps. If the maintainer wants me to do so,
 I can try tomorrow evening to remove really all ports from
 my box (and /usr/X11R6), and to install on a clean system.
 This week my computer is free for experiments :)
 
 Best regards,
 V.Chukharev

From: Vladimir Chukharev <chu@gpi.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/36258: new XFree86-4 port errors
Date: Wed, 27 Mar 2002 23:36:13 +0200

 On a clean box (pkg_delete -a; mv /usr/X11R6 /usr/X11R6.old)
 the metaport works fine.
 
 From my point of view this PR can be closed. It was a glitch 
 and I don't know where - portupgrade or the port itself,
 I can't reproduce it now.
 
 
 As a side note. I reinstalled after the above commands
 nearly all port I had before. I should say that dependencies
 a very poorly defined in VERY many ports :(( I just 
 end up with installing packadges via sysinstall and
 only then upgrade them with portupgrade. Trying to 
 find more correct order of ports installation is a pain.
 
 I think that two things worth doing. First, just better
 advertise the resorces available to porters (e.g. sites
 http://bento.freebsd.org/errorlogs/index.html and
 http://people.FreeBSD.org/~fenner/portsurvey/ ). I think 
 they are not wellknown yet.
 Second, mark all broken ports (from 1st URL) as BROKEN 
 with a notification sent to maintainers. 
 
 Perhaps a port check should also include a procedure like
 I did - installation on a clean system followed by 
 deinstallation. All needed ports should be installed 
 and removed automatically. All left files should be detected
 and marked somehow.
 
 I realize that this is a quite big change to what is done
 now on bento, and needs additional hardware, most probably.
 But quality of ports should be enhanced... I hate to think 
 it goes M$ way - more and more no matter how.
 
 Hope to here more and better thoughts!
 
 Best regards,
 V.Chukharev
State-Changed-From-To: open->closed 
State-Changed-By: will 
State-Changed-When: Sun May 19 21:07:13 PDT 2002 
State-Changed-Why:  
Submitter says this PR can be closed. 
Indeed, dependencies are a huge problem in today's world of implicit 
dependencies and people's environments affecting how ports build.  There 
are ways to solve the problem but they will take time to reach. 
bento already knows how to find files left behind by a port, btw.  And 
its procedure is already done in a "clean room" environment. 

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