Re: make clean for /usr/ports fails repeatedly with rm: /usr/ports/net/bind9-dlz/Makefile.inc: Permission denied

2003-01-18 Thread Conrad Sabatier

On 18-Jan-2003 Stacey Roberts wrote:
 Hello,
  Despite a cvsup'ing a fresh ports tree, make clean has been
 failing at the same point for the last two days at the same point:
 === net/bind9-dlz
 ===  Cleaning for libiconv-1.8_2
 ===  Cleaning for postgresql-7.3.1
 ===  Cleaning for gettext-0.11.5_1
 ===  Cleaning for gmake-3.80
 ===  Cleaning for libgnugetopt-1.2
 ===  Cleaning for libtool-1.3.4_4
 ===  Cleaning for openssl-0.9.6h
 ===  Cleaning for expat-1.95.5
 ===  Cleaning for bind9-dlz-9.2.1+0.3.0
 rm: /usr/ports/net/bind9-dlz/Makefile.inc: Permission denied
 *** Error code 1
 
 Stop in /usr/ports/net/bind9-dlz.
 *** Error code 1
 
 Stop in /usr/ports/net/bind9-dlz.
 *** Error code 1
 
 Stop in /usr/ports/net.
 *** Error code 1
 
 Stop in /usr/ports.
 /usr/ports $
 
 This is what the permissions looks like in this ports dir:
 
 /usr/ports/net/bind9-dlz $ ls -la
 total 30
 drwxr-xr-x3 root  wheel512 Jan 17 20:11 .
 drwxr-xr-x  647 root  wheel  12288 Jan 17 19:30 ..
 -rw-r--r--1 root  wheel   6551 Jan 16 16:40 Makefile
 -rw-r--r--1 root  wheel 71 Jan 17 20:11 Makefile.inc
 -rw-r--r--1 root  wheel117 Nov 17 21:43 distinfo
 drwxr-xr-x2 root  wheel512 Jan 17 19:29 files
 -rw-r--r--1 root  wheel 55 Aug 30 16:53 pkg-comment
 -rw-r--r--1 root  wheel236 Aug 30 16:53 pkg-descr
 -rw-r--r--1 root  wheel   4990 Aug 30 16:53 pkg-plist
 /usr/ports/net/bind9-dlz $
 
 Is this what its supposed to be? Let me know what's to be done, or if
 its safe to change the permissions for myself without breaking other
 stuff.
 
 Thanks in advance.
 
 Regards,
 
 Stacey

You would do well to install the portupgrade port, and then do portsclean -C
to accomplish the same thing, only much, much faster.

-- 
Conrad Sabatier [EMAIL PROTECTED] - In Unix veritas


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: make clean for /usr/ports fails repeatedly with rm: /usr/ports/net/bind9-dlz/Makefile.inc: Permission denied

2003-01-18 Thread Lowell Gilbert
Stacey Roberts [EMAIL PROTECTED] writes:

 This is what the permissions looks like in this ports dir:
 
 /usr/ports/net/bind9-dlz $ ls -la
 total 30
 drwxr-xr-x3 root  wheel512 Jan 17 20:11 .
 drwxr-xr-x  647 root  wheel  12288 Jan 17 19:30 ..
 -rw-r--r--1 root  wheel   6551 Jan 16 16:40 Makefile
 -rw-r--r--1 root  wheel 71 Jan 17 20:11 Makefile.inc
 -rw-r--r--1 root  wheel117 Nov 17 21:43 distinfo
 drwxr-xr-x2 root  wheel512 Jan 17 19:29 files
 -rw-r--r--1 root  wheel 55 Aug 30 16:53 pkg-comment
 -rw-r--r--1 root  wheel236 Aug 30 16:53 pkg-descr
 -rw-r--r--1 root  wheel   4990 Aug 30 16:53 pkg-plist
 /usr/ports/net/bind9-dlz $
 
 Is this what its supposed to be? Let me know what's to be done, or if
 its safe to change the permissions for myself without breaking other
 stuff.

Everything looks okay.  Assuming you're doing this as root, the
problem must be some kind of flag set on the file.  Use 'ls -ol' 
to display the flags, and if one is set, clear it with chflags(1).

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: make clean for /usr/ports fails repeatedly with rm:/usr/ports/net/bind9-dlz/Makefile.inc: Permission denied

2003-01-18 Thread Stacey Roberts
Hello,

On Sat, 2003-01-18 at 14:15, Lowell Gilbert wrote:
 Stacey Roberts [EMAIL PROTECTED] writes:
 
  This is what the permissions looks like in this ports dir:
  
  /usr/ports/net/bind9-dlz $ ls -la
  total 30
  drwxr-xr-x3 root  wheel512 Jan 17 20:11 .
  drwxr-xr-x  647 root  wheel  12288 Jan 17 19:30 ..
  -rw-r--r--1 root  wheel   6551 Jan 16 16:40 Makefile
  -rw-r--r--1 root  wheel 71 Jan 17 20:11 Makefile.inc
  -rw-r--r--1 root  wheel117 Nov 17 21:43 distinfo
  drwxr-xr-x2 root  wheel512 Jan 17 19:29 files
  -rw-r--r--1 root  wheel 55 Aug 30 16:53 pkg-comment
  -rw-r--r--1 root  wheel236 Aug 30 16:53 pkg-descr
  -rw-r--r--1 root  wheel   4990 Aug 30 16:53 pkg-plist
  /usr/ports/net/bind9-dlz $
  
  Is this what its supposed to be? Let me know what's to be done, or if
  its safe to change the permissions for myself without breaking other
  stuff.
 
 Everything looks okay.  Assuming you're doing this as root, the
 problem must be some kind of flag set on the file.  Use 'ls -ol' 
 to display the flags, and if one is set, clear it with chflags(1).

I didn't (never had to) run the make clean in /usr/ports as root. Here's
what ls -lo returns for that port:
/usr/ports/net/bind9-dlz $ ls -lo
total 17
-rw-r--r--  1 root  wheel  - 6551 Jan 16 16:40 Makefile
-rw-r--r--  1 root  wheel  -   71 Jan 17 20:11 Makefile.inc
-rw-r--r--  1 root  wheel  -  117 Nov 17 21:43 distinfo
drwxr-xr-x  2 root  wheel  -  512 Jan 17 19:29 files
-rw-r--r--  1 root  wheel  -   55 Aug 30 16:53 pkg-comment
-rw-r--r--  1 root  wheel  -  236 Aug 30 16:53 pkg-descr
-rw-r--r--  1 root  wheel  - 4990 Aug 30 16:53 pkg-plist
/usr/ports/net/bind9-dlz $

Nothing appears strange here to me. What could be wrong?

Regards,

Stacey

 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: make clean for /usr/ports fails repeatedly with rm:/usr/ports/net/bind9-dlz/Makefile.inc: Permission denied

2003-01-18 Thread Stacey Roberts
Hello,

On Sat, 2003-01-18 at 08:03, Dirk Meyer wrote:
 Hallo Stacey Roberts,
 
  failing at the same point for the last two days at the same point:
  === net/bind9-dlz
  ===  Cleaning for libiconv-1.8_2
  ===  Cleaning for postgresql-7.3.1
  ===  Cleaning for gettext-0.11.5_1
  ===  Cleaning for gmake-3.80
  ===  Cleaning for libgnugetopt-1.2
  ===  Cleaning for libtool-1.3.4_4
  ===  Cleaning for openssl-0.9.6h
  ===  Cleaning for expat-1.95.5
  ===  Cleaning for bind9-dlz-9.2.1+0.3.0
  rm: /usr/ports/net/bind9-dlz/Makefile.inc: Permission denied
  *** Error code 1
 
  This is what the permissions looks like in this ports dir:
  /usr/ports/net/bind9-dlz $ ls -la
  total 30
  drwxr-xr-x3 root  wheel512 Jan 17 20:11 .
  drwxr-xr-x  647 root  wheel  12288 Jan 17 19:30 ..
  -rw-r--r--1 root  wheel   6551 Jan 16 16:40 Makefile
  -rw-r--r--1 root  wheel 71 Jan 17 20:11 Makefile.inc
  -rw-r--r--1 root  wheel117 Nov 17 21:43 distinfo
  drwxr-xr-x2 root  wheel512 Jan 17 19:29 files
  -rw-r--r--1 root  wheel 55 Aug 30 16:53 pkg-comment
  -rw-r--r--1 root  wheel236 Aug 30 16:53 pkg-descr
  -rw-r--r--1 root  wheel   4990 Aug 30 16:53 pkg-plist
  /usr/ports/net/bind9-dlz $
  
  Is this what its supposed to be? Let me know what's to be done, or if
  its safe to change the permissions for myself without breaking other
  stuff.
 
 it looks right...
 I have recently add some chages to the configuration stuff.
 
 I can't see why the rm fails., have you mounted /usr/ports readonly?
 than make clean can't work, did you forget to set
 WRKDIRPREFIX=/somewhere when you have a readonly /usr/ports?

I'll answer you questions in turn:
Q:
have you mounted /usr/ports readonly?

ANS: No
did you forget to set WRKDIRPREFIX=/somewhere when you have a readonly
/usr/ports?

No, I didn't forget, nor do I know anything about doing this. I have
been keeping the ports tree the same way since FreeBSD 4.3 Rel, and have
always been able to run make clean in /usr/ports as an ordinary user -
except over the last few days.

I fear that something else might well be afoot. I have copied the listed
port maintainer in my original e-mail, and I hope to hear from him at
some point.

Regards,

Stacey

 
 please investigate ...
 
 kind regards Dirk
 
 - Dirk Meyer, Im Grund 4, 34317 Habichtswald, Germany
 - [[EMAIL PROTECTED]],[[EMAIL PROTECTED]],[[EMAIL PROTECTED]]
-- 
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: make clean for /usr/ports fails repeatedly with rm: /usr/ports/net/bind9-dlz/Makefile.inc: Permission denied

2003-01-18 Thread Lowell Gilbert
Stacey Roberts [EMAIL PROTECTED] writes:

 Hello,
 
 On Sat, 2003-01-18 at 14:15, Lowell Gilbert wrote:
  Stacey Roberts [EMAIL PROTECTED] writes:
  
   This is what the permissions looks like in this ports dir:
   
   /usr/ports/net/bind9-dlz $ ls -la
   total 30
   drwxr-xr-x3 root  wheel512 Jan 17 20:11 .
   drwxr-xr-x  647 root  wheel  12288 Jan 17 19:30 ..
   -rw-r--r--1 root  wheel   6551 Jan 16 16:40 Makefile
   -rw-r--r--1 root  wheel 71 Jan 17 20:11 Makefile.inc
   -rw-r--r--1 root  wheel117 Nov 17 21:43 distinfo
   drwxr-xr-x2 root  wheel512 Jan 17 19:29 files
   -rw-r--r--1 root  wheel 55 Aug 30 16:53 pkg-comment
   -rw-r--r--1 root  wheel236 Aug 30 16:53 pkg-descr
   -rw-r--r--1 root  wheel   4990 Aug 30 16:53 pkg-plist
   /usr/ports/net/bind9-dlz $
   
   Is this what its supposed to be? Let me know what's to be done, or if
   its safe to change the permissions for myself without breaking other
   stuff.
  
  Everything looks okay.  Assuming you're doing this as root, the
  problem must be some kind of flag set on the file.  Use 'ls -ol' 
  to display the flags, and if one is set, clear it with chflags(1).
 
 I didn't (never had to) run the make clean in /usr/ports as root. Here's
 what ls -lo returns for that port:
 /usr/ports/net/bind9-dlz $ ls -lo
 total 17
 -rw-r--r--  1 root  wheel  - 6551 Jan 16 16:40 Makefile
 -rw-r--r--  1 root  wheel  -   71 Jan 17 20:11 Makefile.inc
 -rw-r--r--  1 root  wheel  -  117 Nov 17 21:43 distinfo
 drwxr-xr-x  2 root  wheel  -  512 Jan 17 19:29 files
 -rw-r--r--  1 root  wheel  -   55 Aug 30 16:53 pkg-comment
 -rw-r--r--  1 root  wheel  -  236 Aug 30 16:53 pkg-descr
 -rw-r--r--  1 root  wheel  - 4990 Aug 30 16:53 pkg-plist
 /usr/ports/net/bind9-dlz $
 
 Nothing appears strange here to me. What could be wrong?

The directory is owned by root, and is not group- or world-writeable,
so no other user can delete files from it.  Depending on the umask you
use for root when *building* ports, you may not need to be root to
clean up the work directories, but this 'Makefile.inc' is in a
directory that requires root privileges to modify.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: make clean for /usr/ports fails repeatedly with rm: /usr/ports/net/bind9-dlz/Makefile.inc: Permission denied

2003-01-18 Thread Kris Kennaway
On Sat, Jan 18, 2003 at 10:47:43PM +, Stacey Roberts wrote:

 -rw-r--r--1 root  wheel 71 Jan 17 20:11 Makefile.inc

 I do understand this. The permissions on this file is the same as for
 all the other components of other ports before this particular port, yet
 make clean only fails at this same point, ever since I cvsup'd the
 ports tree a couple of days ago.

This isn't a ports file; it's created when you configure the port.
You must have done so as root.  Remove the file as root and your
problem will be solved.

 I know other tools like portsdb -U  make index are (have been)
 broken for some time now, and I'm hoping that the same way they got
 broke, will be how the get fixed mysteriously in due course..,
 Although, I have to admit., portsdb -U has been broken for months now,
 with no sign of a let up :-(

'make index' works fine for me..I've been using it throughout the 5.0
release cycle.  Please double-check you don't have any other
additional files or local changes in your ports tree.

Kris



msg15937/pgp0.pgp
Description: PGP signature


Re: make clean of /usr/ports

2002-10-25 Thread Marcio Merlone
You can make really simple and straigthforward:

cd /usr/ports
find . -type d -name work -exec rm -rf {} \;

done! I belive it is somewhere on FBSD handbook...

David Oleszkiewicz wrote:

I haven't been that good at running make clean after installing my ports
and could like to clean things up now.  I tried running make clean at the
top of the ports tree and it works, it just keeps recursing on
everyones dependencies so ports like autoconf get make clean'ed  a
real lot.  Is there a way to tell the Make to ignore the dependencies.  I
couldn't figure one out from looking at the Make files.

Please cc this address as I am not subscribed to the list.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



--

[ ]'s

--
Marcio Merlone



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: make clean of /usr/ports

2002-10-25 Thread Giorgos Keramidas
On 2002-10-24 20:34, Kris Kennaway [EMAIL PROTECTED] wrote:
 On Thu, Oct 24, 2002 at 08:18:14PM -0700, Adam Weinberger wrote:
   make NOCLEANDEPENDS=YES distclean
   end of RE: make clean of /usr/ports from Don Read 
 
  Install sysutils/portupgrade, then portsclean -C.

 rm -rf /usr/ports/*/*/work is probably faster :)

I use a slight variation of this, to avoid hitting the too long
command line thing:

# cd /usr/ports
# find . -type d -maxdepth 3 -name work | xargs rm -fr

but you're right.  It is a lot faster...


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: make clean of /usr/ports

2002-10-24 Thread Don Read

On 25-Oct-2002 David Oleszkiewicz wrote:
 I haven't been that good at running make clean after installing my ports
 and could like to clean things up now.  I tried running make clean at the
 top of the ports tree and it works, it just keeps recursing on
 everyones dependencies so ports like autoconf get make clean'ed  a
 real lot.  Is there a way to tell the Make to ignore the dependencies.  I
 couldn't figure one out from looking at the Make files.
 
 Please cc this address as I am not subscribed to the list.
 
 

make NOCLEANDEPENDS=YES distclean

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- Beer is proof that God loves us and wants us to be happy.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: make clean of /usr/ports

2002-10-24 Thread Adam Weinberger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 (10.24.2002 @ 2008 PST): Don Read said, in 0.8K: 
 
 On 25-Oct-2002 David Oleszkiewicz wrote:
  I haven't been that good at running make clean after installing my ports
  and could like to clean things up now.  I tried running make clean at the
  top of the ports tree and it works, it just keeps recursing on
  everyones dependencies so ports like autoconf get make clean'ed  a
  real lot.  Is there a way to tell the Make to ignore the dependencies.  I
  couldn't figure one out from looking at the Make files.
  
  Please cc this address as I am not subscribed to the list.
 
 make NOCLEANDEPENDS=YES distclean
 end of RE: make clean of /usr/ports from Don Read 

Install sysutils/portupgrade, then portsclean -C.

It's the fastest way.

- -Adam


- --
Adam Weinberger
[EMAIL PROTECTED]
[EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQE9uLf2o8KM2ULHQ/0RAs65AKCdfTc/nYBfrZ441vkTMMThQjhxUgCgqeNt
9NkJv4aX7kF+M0m30vTkWQM=
=pSjX
-END PGP SIGNATURE-

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



RE: make clean of /usr/ports

2002-10-24 Thread Jack L. Stone
At 10:08 PM 10.24.2002 -0500, Don Read wrote:

On 25-Oct-2002 David Oleszkiewicz wrote:
 I haven't been that good at running make clean after installing my ports
 and could like to clean things up now.  I tried running make clean at the
 top of the ports tree and it works, it just keeps recursing on
 everyones dependencies so ports like autoconf get make clean'ed  a
 real lot.  Is there a way to tell the Make to ignore the dependencies.  I
 couldn't figure one out from looking at the Make files.
 
 Please cc this address as I am not subscribed to the list.
 
 

make NOCLEANDEPENDS=YES distclean

Regards,
-- 
Don Read   [EMAIL PROTECTED]

Have you yet tried the utility portupgrade? If so, it has the tool:
#portsclean -DD and does it for you. Neat!

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: make clean of /usr/ports

2002-10-24 Thread Kris Kennaway
On Thu, Oct 24, 2002 at 08:18:14PM -0700, Adam Weinberger wrote:
  (10.24.2002  2008 PST): Don Read said, in 0.8K: 
  
  On 25-Oct-2002 David Oleszkiewicz wrote:
   I haven't been that good at running make clean after installing my ports
   and could like to clean things up now.  I tried running make clean at the
   top of the ports tree and it works, it just keeps recursing on
   everyones dependencies so ports like autoconf get make clean'ed  a
   real lot.  Is there a way to tell the Make to ignore the dependencies.  I
   couldn't figure one out from looking at the Make files.
   
   Please cc this address as I am not subscribed to the list.
  
  make NOCLEANDEPENDS=YES distclean
  end of RE: make clean of /usr/ports from Don Read 
 
 Install sysutils/portupgrade, then portsclean -C.

rm -rf /usr/ports/*/*/work is probably faster :)

Kris



msg06078/pgp0.pgp
Description: PGP signature