Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Nov 2005 19:49:10 -0800
From:      James Long <james_mapson@umpquanet.com>
To:        David Wolfskill <david@catwhisker.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: xorg-clients conflicts with xterm (patch)
Message-ID:  <20051116034910.GA93001@ns.museum.rain.com>
In-Reply-To: <20051116033245.GT69015@bunrab.catwhisker.org>
References:  <20051116032616.GA92903@ns.museum.rain.com> <20051116033245.GT69015@bunrab.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 15, 2005 at 07:32:45PM -0800, David Wolfskill wrote:
> On Tue, Nov 15, 2005 at 07:26:16PM -0800, James Long wrote:
> > After hours of head-banging over the past couple of days,
> > I have finally succeeded in installing EITHER 
> > xorg-clients-6.8.2_1 OR xterm-206_1.  Previously,
> > installing either port told me that it conflicted
> > with the other, in spite of having cvsupped my 
> > ports tree twice to ensure I was getting the most
> > recent version of the ports, hopefully including a
> > fix to the chicken-and-egg problem noted in 
> > /usr/ports/UPDATING
> 
> It mentioned a conflict; I don't recall a chicken-and-egg issue.

Forgive me for not including enough background.

Due to an improper procedure on my part in converting from
XFree86 to Xorg, plus a complete rebuild of all ports as
part of upgrading to 6.0-STABLE, and a bit of ignorance on
my part, I wound up in a situation where I had pkg_deleted
both xorg-clients and xterm.  I was then in a situation
where I couldn't install xorg-clients because it depended
on xterm, but xterm couldn't be installed because it con-
flicted with xorg-clients.  That was my 
chicken-and-egg dilemma.  pkgdb -F was dutifully showing 
several packages with dangling dependencies to those two, 
but I couldn't install either of them.  cvsupping to the most 
recent ports tree didn't change the problem.  

Then I noticed:

===>   xorg-clients-6.8.2_1 depends on package: xterm>0 - not found

and investigated the Makefile to find why the odd package
name of "xterm>0".

I then patched the Makefile as I posted, and I was able to
"make install" in xorg-clients and pkgdb -F and everything
installed.

Further documentation of the state of my pkg_info and 
dependencies is below.


Jim



[pkg_info | egrep "xorg|xterm" # note lack of xorg-clients and xterm]
t21 : 19:04:41 /root# pkg_info | egrep "xorg|xterm"
xorg-6.8.2          X.Org distribution metaport
xorg-documents-6.8.2 Documentation of X11 protocol and libraries from X.Org
xorg-fonts-100dpi-6.8.2 X.Org 100dpi bitmap fonts
xorg-fonts-75dpi-6.8.2 X.Org 75dpi bitmap fonts
xorg-fonts-cyrillic-6.8.2 X.Org Cyrillic bitmap fonts
xorg-fonts-encodings-6.8.2 X.Org font encoding files
xorg-fonts-miscbitmaps-6.8.2 X.Org miscellaneous bitmap fonts
xorg-fonts-truetype-6.8.2 X.Org TrueType fonts
xorg-fonts-type1-6.8.2 X.Org Type1 fonts
xorg-fontserver-6.8.2 X font server from X.Org
xorg-libraries-6.8.2 X11 libraries and headers from X.Org
xorg-manpages-6.8.2 X.Org library manual pages
xorg-nestserver-6.8.2 Nesting X server from X.Org
xorg-printserver-6.8.2_2 X Print server from X.Org
xorg-server-6.8.2_6 X.Org X server and related programs
xorg-vfbserver-6.8.2 X virtual framebuffer server from X.Org

[Initial state of ports dependencies:]
root@t21# pkgdb -F
--->  Checking the package registry database
Stale dependency: kde-3.4.2 -> xorg-clients-6.8.2_1 (x11/xorg-clients):
xorg-vfbserver-6.8.2 (score:27%) ? ([y]es/[n]o/[a]ll) [no]
New dependency? (? to help):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Skipped.
Stale dependency: kde-3.4.2 -> xterm-205_1 (x11/xterm):
New dependency? (? to help):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Skipped.
Stale dependency: kdeadmin-3.4.2 -> xterm-205_1 (x11/xterm):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdeadmin-3.4.2 -> xorg-clients-6.8.2_1 (x11/xorg-clients):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdebase-3.4.2_2 -> xterm-205_1 (x11/xterm):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdebase-3.4.2_2 -> xorg-clients-6.8.2_1 (x11/xorg-clients):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdegames-3.4.2_1 -> xterm-205_1 (x11/xterm):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdegames-3.4.2_1 -> xorg-clients-6.8.2_1 (x11/xorg-clients):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdelibs-3.4.2_1 -> xterm-205_1 (x11/xterm):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdelibs-3.4.2_1 -> xorg-clients-6.8.2_1 (x11/xorg-clients):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdemultimedia-3.4.2_1 -> xterm-205_1 (x11/xterm):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdemultimedia-3.4.2_1 -> xorg-clients-6.8.2_1 (x11/xorg-clients):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdemultimedia-akode-3.4.2 -> xterm-205_1 (x11/xterm):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdemultimedia-akode-3.4.2 -> xorg-clients-6.8.2_1 (x11/xorg-clients):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdemultimedia-mpeglib_artsplug-3.4.2 -> xterm-205_1 (x11/xterm):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdemultimedia-mpeglib_artsplug-3.4.2 -> xorg-clients-6.8.2_1 (x11/xorg-clients):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdetoys-3.4.2 -> xterm-205_1 (x11/xterm):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: kdetoys-3.4.2 -> xorg-clients-6.8.2_1 (x11/xorg-clients):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: koffice-1.4.1_1,1 -> xterm-205_1 (x11/xterm):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: koffice-1.4.1_1,1 -> xorg-clients-6.8.2_1 (x11/xorg-clients):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: xorg-6.8.2 -> xterm-205_1 (x11/xterm):
Skip this? ([y]es/[n]o/[a]ll) [yes]
Stale dependency: xorg-6.8.2 -> xorg-clients-6.8.2_1 (x11/xorg-clients):
Skip this? ([y]es/[n]o/[a]ll) [yes]

[Attempt to install xorg-clients-6.8.2_1:]
root@t21# portupgrade -wONk xorg-clients
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 195 packages found (-0 +0)  done]
--->  Installing 'xorg-clients-6.8.2_1' from a port (x11/xorg-clients)
--->  Building '/usr/ports/x11/xorg-clients'
If you want to use xterm with locales in a secure manner, luit must be
installed setuid.  If you want to do this, define WITH_SETUID_LUIT when
installing this port (either in /etc/make.conf or on command line with
install target).
===>  Vulnerability check disabled, database not found
===>  Extracting for xorg-clients-6.8.2_1
=> MD5 Checksum OK for xorg/X11R6.8.2-src1.tar.gz.
=> SHA256 Checksum OK for xorg/X11R6.8.2-src1.tar.gz.
=> MD5 Checksum OK for xorg/X11R6.8.2-src2.tar.gz.
=> SHA256 Checksum OK for xorg/X11R6.8.2-src2.tar.gz.
=> MD5 Checksum OK for xorg/X11R6.8.2-src3.tar.gz.
=> SHA256 Checksum OK for xorg/X11R6.8.2-src3.tar.gz.
===>  Patching for xorg-clients-6.8.2_1
[ ... build goes fine ... finishes thus: ]
cd /usr/ports/x11/xorg-clients/work/xc/exports/bin && ln -s ../../fonts/util/ucs2any .
rm -f bdftruncate._man
if test -z "true" ; then  cd `dirname bdftruncate` &&  ln -s `basename bdftruncate.man` `basename bdftruncate._man`;  else  /usr/bin/cpp -undef -traditional  -D__apploaddir__=/usr/X11R6/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/usr/X11R6 -D__xconfigfile__=xorg.conf -D__xconfigdir__=/usr/X11R6/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__='"" ""' -D__vendorversion__="`echo 6 8 2 | sed -e 's/ /./g' -e 's/^/Version\\\ /'` X.Org"    < bdftruncate.man | sed -e '/^#  *[0-9][0-9]*  *.*$/d'                       -e '/^#line  *[0-9][0-9]*  *.*$/d'                      -e '/^[         ]*XCOMM$/s/XCOMM/#/'                    -e '/^[         ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/'                        -e '/^[         ]*XHASH/s/XHASH/#/'                     -e '/\@\@$/s/\@\@$/\\/' >bdftruncate._man;  fi
--->  Installing the new version via the port
===>  Installing for xorg-clients-6.8.2_1
===>   xorg-clients-6.8.2_1 depends on package: xterm>0 - not found
===>    Verifying reinstall for xterm>0 in /usr/ports/x11/xterm
===>  Installing for xterm-206_1

===>  xterm-206_1 conflicts with installed package(s):
      xorg-clients-6.8.2

      They install files into the same place.
      Please remove them first with pkg_delete(1).
*** Error code 1

Stop in /usr/ports/x11/xterm.
*** Error code 1

Stop in /usr/ports/x11/xterm.
*** Error code 1

Stop in /usr/ports/x11/xorg-clients.
*** Error code 1

Stop in /usr/ports/x11/xorg-clients.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade78539.0 make reinstall
** Fix the installation problem and try again.
** Listing the failed packages (*:skipped / !:failed)
        ! x11/xorg-clients      (install error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

[Attempt to install xterm-206_1:]
root@t21# portupgrade -wONk xterm
--->  Installing 'xterm-206_1' from a port (x11/xterm)
--->  Building '/usr/ports/x11/xterm'
--->  Installing the new version via the port
===>  Installing for xterm-206_1

===>  xterm-206_1 conflicts with installed package(s):
      xorg-clients-6.8.2

      They install files into the same place.
      Please remove them first with pkg_delete(1).
*** Error code 1

Stop in /usr/ports/x11/xterm.
*** Error code 1

Stop in /usr/ports/x11/xterm.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade86098.0 make reinstall
** Fix the installation problem and try again.
** Listing the failed packages (*:skipped / !:failed)
        ! x11/xterm     (install error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051116034910.GA93001>