Re: HEADS UP: portupgrade moved (ports-mgmt)

2007-02-08 Thread Boris Kovalenko

Pav Lucistnik wrote:
Hello!

This patch solved my problem.

Sergey Matveychuk pi's(e v u't 06. 02. 2007 v 13:25 +0300:

  

Yeap, a PLIST contains the file on 6.2-RELEASE here:

% pkg_info -L portupgrade-2.2.2_4,2
Information for portupgrade-2.2.2_4,2:

Files:
/usr/local/man/man1/pkg_deinstall.1.gz
...
(null)/libdata/ldconfig/portupgrade

PREFIX has lost some way...



Looks like a bug in pkg_info. Try attached patch.

  

--

With respect,
Boris



___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HEADS UP: portupgrade moved (ports-mgmt)

2007-02-07 Thread Pav Lucistnik
Sergey Matveychuk píše v út 06. 02. 2007 v 13:25 +0300:

 Yeap, a PLIST contains the file on 6.2-RELEASE here:
 
 % pkg_info -L portupgrade-2.2.2_4,2
 Information for portupgrade-2.2.2_4,2:
 
 Files:
 /usr/local/man/man1/pkg_deinstall.1.gz
 ...
 (null)/libdata/ldconfig/portupgrade
 
 PREFIX has lost some way...

Looks like a bug in pkg_info. Try attached patch.

-- 
Pav Lucistnik [EMAIL PROTECTED]
  [EMAIL PROTECTED]

Squish. Larger than the normal icky things, and twice as icky.
--- show.c	Sat Jan  7 23:10:58 2006
+++ /usr/src/usr.sbin/pkg_install/info/show.c	Wed Feb  7 20:13:23 2007
@@ -213,6 +213,7 @@
 {
 PackingList p;
 Boolean ign = FALSE;
+char *prefix = NULL;
 const char *dir = .;
 
 if (!Quiet)
@@ -227,7 +228,12 @@
 	break;
 
 	case PLIST_CWD:
-	dir = p-name;
+	if (!prefix)
+		prefix = p-name;
+	if (p-name == NULL)
+		dir = prefix;
+	else
+		dir = p-name;
 	break;
 
 	case PLIST_IGNORE:
@@ -255,6 +261,7 @@
 long blksize;
 int headerlen;
 char *descr;
+char *prefix = NULL;
 
 descr = getbsize(headerlen, blksize);
 if (!Quiet)
@@ -274,7 +281,12 @@
 	break;
 
 	case PLIST_CWD:
-	dir = p-name;
+	if (!prefix)
+		prefix = p-name;
+	if (p-name == NULL)
+		dir = prefix;
+	else
+		dir = p-name;
 	break;
 
 	case PLIST_IGNORE:
@@ -301,15 +313,21 @@
 {
 PackingList p;
 const char *dir = .;
+char *prefix = NULL;
 char tmp[FILENAME_MAX];
 
 if (!Quiet)
 	printf(%s%s, InfoPrefix, title);
 
 for (p = plist-head; p != NULL; p = p-next)
-	if (p-type == PLIST_CWD) 
-	dir = p-name;
-	else if (p-type == PLIST_FILE) {
+	if (p-type == PLIST_CWD) {
+	if (!prefix)
+		prefix = p-name;
+	if (p-name == NULL)
+		dir = prefix;
+	else
+		dir = p-name;
+	} else if (p-type == PLIST_FILE) {
 	snprintf(tmp, FILENAME_MAX, %s/%s, dir, p-name);
 	if (!fexists(tmp))
 		warnx(%s doesn't exist, tmp);


signature.asc
Description: Toto je digitálně	 podepsaná část	 zprávy


Re: HEADS UP: portupgrade moved (ports-mgmt)

2007-02-06 Thread Boris Kovalenko

Hello!

   Same here

Yeap, a PLIST contains the file on 6.2-RELEASE here:

% pkg_info -L portupgrade-2.2.2_4,2
Information for portupgrade-2.2.2_4,2:

Files:
/usr/local/man/man1/pkg_deinstall.1.gz
...
(null)/libdata/ldconfig/portupgrade

PREFIX has lost some way...

Boris Kovalenko wrote:
  

Hello!

Same issue. I'm running 6.2-R.


Colin Waring pi's(e v po 05. 02. 2007 v 18:33 +:

 
  

I've tried uninstalling portupgrade and reinstalling it. If I
uninstall, all I get is:

pkg_delete: file '(null)/libdata/ldconfig/portupgrade' doesn't exist
pkg_delete: couldn't entirely delete package (perhaps the packing
list is incorrectly specified?)



What is your FreeBSD version?

Looks like it's failing to use @cwd without any argument, a feature
which was added to FreeBSD pkg_create(1) a year ago, and is included in
FreeBSD 5.5-RELEASE, 6.1-RELEASE and 6.2-RELEASE.

Are you running older FreeBSD release?
  


  



--
С уважением,
   Борис Коваленко
   ОАО НТМК
   +7 (3435) 497623

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HEADS UP: portupgrade moved (ports-mgmt)

2007-02-06 Thread dewey hylton
 Date: Mon, 05 Feb 2007 18:33:16 +
 From: Colin Waring [EMAIL PROTECTED]
 Subject: Re: HEADS UP: portupgrade moved (ports-mgmt)
 
 I spotted this, but unfortunately because it has cause some problems.
 I'm getting a couple of errors now, all the ports tools kick out:
 
 cd: can't cd to /usr/ports/sysutils/portupgrade
 
 I've tried uninstalling portupgrade and reinstalling it. If I uninstall, 
 all I get is:
 
 pkg_delete: file '(null)/libdata/ldconfig/portupgrade' doesn't exist
 pkg_delete: couldn't entirely delete package (perhaps the packing list 
 is incorrectly specified?)
 
 It disappears from the list of installed programs but the error stays 
 and installing it clean from the new location makes no improvements. I 
 also have portdowngrade and portaudit installed which will have been 
 affected by the move. I think they are currently working fine.
 
 It is possible that the problem has been caused by portupgrade not just 
 being moved, but a new version coming out too so somewhere along the 
 lines it just can't cope with both.
 
 The only question is how to get it sorted?
 pkgdb -fF doesn't do anything other than output the can't cd error.
 Removing and recreating pkgdb.db does bugger all.
 
 portupgrade appears to still do its job, but I don't want to find out 
 its actually breaking things because of the error so I'm not using it..
 
 Any suggestions?
 Cheers,
 Colin.

i followed /usr/ports/UPDATING and didn't have any problem. specifically:

20070102:
  AFFECTS: users of sysutils/portupgrade
  AUTHOR: [EMAIL PROTECTED]

  If you have a problem with upgrading the tools from version 2.2.1 and less,
  remove the package with pkg_delete portupgrade\* command and reinstall it
  from scratch. Remove /usr/ports/INDEX*.db and run portsdb -u.


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HEADS UP: portupgrade moved (ports-mgmt)

2007-02-05 Thread Colin Waring

I spotted this, but unfortunately because it has cause some problems.
I'm getting a couple of errors now, all the ports tools kick out:

cd: can't cd to /usr/ports/sysutils/portupgrade

I've tried uninstalling portupgrade and reinstalling it. If I uninstall, 
all I get is:


pkg_delete: file '(null)/libdata/ldconfig/portupgrade' doesn't exist
pkg_delete: couldn't entirely delete package (perhaps the packing list 
is incorrectly specified?)


It disappears from the list of installed programs but the error stays 
and installing it clean from the new location makes no improvements. I 
also have portdowngrade and portaudit installed which will have been 
affected by the move. I think they are currently working fine.


It is possible that the problem has been caused by portupgrade not just 
being moved, but a new version coming out too so somewhere along the 
lines it just can't cope with both.


The only question is how to get it sorted?
pkgdb -fF doesn't do anything other than output the can't cd error.
Removing and recreating pkgdb.db does bugger all.

portupgrade appears to still do its job, but I don't want to find out 
its actually breaking things because of the error so I'm not using it..


Any suggestions?
Cheers,
Colin.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HEADS UP: portupgrade moved (ports-mgmt)

2007-02-05 Thread Boris Kovalenko

Hello!

Same issue. I'm running 6.2-R.

Colin Waring pi's(e v po 05. 02. 2007 v 18:33 +:

  
I've tried uninstalling portupgrade and reinstalling it. If I uninstall, 
all I get is:


pkg_delete: file '(null)/libdata/ldconfig/portupgrade' doesn't exist
pkg_delete: couldn't entirely delete package (perhaps the packing list 
is incorrectly specified?)



What is your FreeBSD version?

Looks like it's failing to use @cwd without any argument, a feature
which was added to FreeBSD pkg_create(1) a year ago, and is included in
FreeBSD 5.5-RELEASE, 6.1-RELEASE and 6.2-RELEASE.

Are you running older FreeBSD release?


  



--
С уважением,
   Борис Коваленко
   ОАО НТМК
   +7 (3435) 497623

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]