From owner-freebsd-x11@FreeBSD.ORG Thu Nov 17 00:42:58 2005 Return-Path: X-Original-To: freebsd-x11@freebsd.org Delivered-To: freebsd-x11@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3714B16A41F for ; Thu, 17 Nov 2005 00:42:58 +0000 (GMT) (envelope-from james_mapson@umpquanet.com) Received: from ns.museum.rain.com (gw-ipinc.museum.rain.com [65.75.192.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BD0843D55 for ; Thu, 17 Nov 2005 00:42:56 +0000 (GMT) (envelope-from james_mapson@umpquanet.com) Received: from ns.museum.rain.com (localhost [127.0.0.1]) by ns.museum.rain.com (8.13.4/8.13.4) with ESMTP id jAH0gBPX097163 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Wed, 16 Nov 2005 16:42:11 -0800 (PST) (envelope-from james@umpquanet.com) Received: (from james@localhost) by ns.museum.rain.com (8.13.4/8.13.4/Submit) id jAH0gAcP097161; Wed, 16 Nov 2005 16:42:10 -0800 (PST) (envelope-from james) From: James Long Message-Id: <200511170042.jAH0gAcP097161@ns.museum.rain.com> To: dejan.lesjak@ijs.si (Dejan Lesjak) Date: Wed, 16 Nov 2005 16:42:10 -0800 (PST) In-Reply-To: <200511162324.23848.dejan.lesjak@ijs.si> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-101.4 required=5.0 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on ns.museum.rain.com Cc: freebsd-x11@freebsd.org, Andy Fawcett Subject: Re: xorg-clients conflicts with xterm (patch) X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 00:42:58 -0000 > [freebsd-stable omitted] > On Wednesday 16 of November 2005 23:14, Andy Fawcett wrote: > > Argh! Correction below. > > > > On Thursday 17 November 2005 00:02, Andy Fawcett wrote: > > > For an interesting variation, I have a totally up to date ports tree, > > > with the latest versions of xterm and xorg-clients already installed: > > > > > > xterm-206_1 Terminal emulator for the X Window System > > > xorg-clients-6.8.2_1 X client programs and related files from X.Org > > > > > > then, portupgrade -fp xterm xorg-clients > > > ... > > > ===> 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 > > > > > > Again, please note that xterm conflicts with the version of the > > > clients it is supposed to work with. > > > > this should read "shows a conflict with a version of the port that is > > not installed". > > > > > This is repeatable on 2 systems > > > I have tried so far, 5.4-RELEASE/i386 and 6.0-STABLE/amd64. > > It's indeed interesting. I can't seem to reproduce it. Is your pkgdb in good > shape - does running 'pkgdb -F' complain about duplicate origins? The following may help reproduce it. Below is the state of my pkgdb at the time of my troubles. Take a system with a good install of xorg and xterm. Then 'pkg_delete -f' xorg-clients and xterm. Then try to 'portupgrade -NO' them back in. I don't know for sure if that will reproduce the problem or not, but its a close approximation of where I was when I was having troubles. More pointedly, what is up with this message: ===> xorg-clients-6.8.2_1 depends on package: xterm>0 - not found Is there really a package named "xterm>0" ? 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 pkgdb -- note many dangling dependencies on xorg-clients and xterm] 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 fails because xterm conflicts with xorg-clients:] root@t21# portupgrade -wONk xorg-clients [Updating the pkgdb 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 fails because xterm conflicts with xorg-clients:] 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