portmaster 1.21 - "cannot create" messages

John Marshall John.Marshall at riverwillow.com.au
Thu Oct 11 14:15:46 PDT 2007


Doug Barton wrote:
> Ok, I think I found the problem, please try the attached patch.
> 
> Doug
> 

The patch was obviously against a later "dev" version of portmaster, so 
part of it didn't stick...

-----------------------------------
ozsrv01# head -n 4 /usr/local/sbin/portmaster 

#!/bin/sh

# Local version: 1.187
# $FreeBSD: ports/ports-mgmt/portmaster/files/portmaster.sh.in,v 1.21 
2007/10/02 04:49:46 dougb Exp $
-----------------------------------
ozsrv01# patch /usr/local/sbin/portmaster pm-cannot-message.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- portmaster 2007/10/07 07:00:12     1.189
|+++ portmaster 2007/10/11 16:26:03
--------------------------
Patching file /usr/local/sbin/portmaster using Plan A...
Hunk #1 failed at 1106.
Hunk #2 succeeded at 1834 (offset -17 lines).
1 out of 2 hunks failed--saving rejects to /usr/local/sbin/portmaster.rej
done
-----------------------------------

...but the second "Hunk" of the patch has made a difference:

BEFORE PATCH...
-----------------------------------
ozsrv01# portmaster -D zoneinfo-2007.g

::

===>>> Upgrade for zoneinfo-2007.g to zoneinfo-2007.h succeeded
/usr/local/sbin/portmaster: cannot create : No such file or directory

===>>> pkg-message for zoneinfo-2007.h
-----------------------------------

AFTER PATCH...
-----------------------------------
ozsrv01# portmaster -CD apache-2.2.6

::

===>>> Upgrade for apache-2.2.6 to apache-2.2.6_2 succeeded

===>>> pkg-message for apache-2.2.6_2
-----------------------------------

Thank you.

-- 
John Marshall


More information about the freebsd-ports mailing list