From volf@oasis.IAEhv.nl  Sun Apr 12 02:34:59 1998
Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA10104
          for <freebsd-gnats-submit@freebsd.org>; Sun, 12 Apr 1998 02:34:57 -0700 (PDT)
          (envelope-from volf@oasis.IAEhv.nl)
Received: from oasis.IAEhv.nl (uucp@localhost) 
          by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 1392
          on Sun, 12 Apr 1998 09:34:52 GMT; id JAA01392
          efrom: volf@oasis.IAEhv.nl; eto: freebsd.org!freebsd-gnats-submit
Received: from LOCAL (volf@localhost) 
          by oasis.IAEhv.nl (8.8.7/1.63); pid 2344 
          on Sun, 12 Apr 1998 08:58:23 GMT; id IAA02344
          efrom: volf; eto: UNKNOWN
Message-Id: <199804120858.IAA02344@oasis.IAEhv.nl>
Date: Sun, 12 Apr 1998 08:58:23 GMT
From: volf@oasis.IAEhv.nl (Frank Volf)
Reply-To: volf@oasis.IAEhv.nl
To: FreeBSD-gnats-submit@freebsd.org
Cc: volf@oasis.IAEhv.nl
Subject: portindex not executable
X-Send-Pr-Version: 3.2

>Number:         6279
>Category:       docs
>Synopsis:       portindex not executable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 12 02:40:00 PDT 1998
>Closed-Date:    Tue Apr 14 16:47:15 PDT 1998
>Last-Modified:  Tue Apr 14 16:48:05 PDT 1998
>Originator:     Frank Volf
>Release:        FreeBSD 2.2.6-STABLE i386
>Organization:
Frank Volf's private UUCP site, Eindhoven, the Netherlands
>Environment:
>Description:

The perl script portindex in the www tree is not executable. You have to
make it executable by hand. Every time the script changes, cvs update 
restores the old permissions.

>How-To-Repeat:

run make in the top level WWW tree

......
===> gifs
===> ports
rm -f *.sgml
./portindex ports/INDEX
./portindex: not found


>Fix:

Several possible, e.g.: 

1) chmod 755 of the script in the CVS tree

2) chmod 755 in www/data/ports/Makefile

3) apply this patch	

Index: Makefile
===================================================================
RCS file: /home2/CVS/www/data/ports/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile    1998/04/08 16:48:59     1.7
+++ Makefile    1998/04/12 08:49:15
@@ -1,6 +1,6 @@
 #      $Id: Makefile,v 1.7 1998/04/08 16:48:59 wosch Exp $
 
-PORTINDEX=     ./portindex
+PORTINDEX=     perl ./portindex
 INDEX=         ports/INDEX
 
 COOKIE=                ${INDEX} Makefile.gen


Personally, I prefer the last solution, because it works using whatever
permissions the script is committed.

Thankx,

                 Frank

p.s.: there might be similar problem in the Japanse Web pages
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wosch 
State-Changed-When: Sun Apr 12 14:31:18 PDT 1998 
State-Changed-Why:  
portindex has executable permissions in the cvs tree. 
Maybe your local cvs tree is broken. 
Or you used a wrong cvs option ... 
State-Changed-From-To: closed->open 
State-Changed-By: asami 
State-Changed-When: Sun Apr 12 17:02:41 PDT 1998 
State-Changed-Why:  
Scripts shouldn't depend on the permissions on files on the CVS tree. 
There are transmission agents that don't preserve executable bits 
(e.g. FTP).  The original suggestion by the submitter was correct, 
and someone with the www tree should test and commit it. 
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Tue Apr 14 16:47:15 PDT 1998 
State-Changed-Why:  
Suggested patch applied, thanks! 
>Unformatted:
