From nobody@FreeBSD.org  Sat Dec 10 17:29:41 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1EC8B106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 10 Dec 2011 17:29:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 0EE198FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 10 Dec 2011 17:29:41 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBAHTeOE062523
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 10 Dec 2011 17:29:40 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pBAHTeJZ062522;
	Sat, 10 Dec 2011 17:29:40 GMT
	(envelope-from nobody)
Message-Id: <201112101729.pBAHTeJZ062522@red.freebsd.org>
Date: Sat, 10 Dec 2011 17:29:40 GMT
From: Matthias Fechner <idefix@fechner.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: port devel/git does not install scripts with executable bit
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163167
>Category:       ports
>Synopsis:       port devel/git does not install scripts with executable bit
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wxs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 10 17:30:11 UTC 2011
>Closed-Date:    Sun Dec 18 16:18:16 UTC 2011
>Last-Modified:  Sun Dec 18 16:20:09 UTC 2011
>Originator:     Matthias Fechner
>Release:        8.2-STABLE
>Organization:
>Environment:
FreeBSD server.idefix.lan 8.2-STABLE FreeBSD 8.2-STABLE #6: Fri Sep 30 21:57:23 CEST 2011     root@server.idefix.lan:/usr/obj/usr/src/sys/SERVER2_I4B  amd64
>Description:
If git is installed with the option contrib modules a script to send email if someone pushes changes to the repository is installed:
/usr/local/share/git-core/contrib/hooks/post-receive-email

This script has no executable bit that causes after every update of git problems with the hook. The file:
/usr/ports/devel/git/work/git-1.7.8/contrib/hooks/post-receive-email

has the executable permisson flag.
So it seems to be removed on the install step of ports.
>How-To-Repeat:
Install devel/git with contrib option enabled.
>Fix:
Install the contrib module without removing the executable bit.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wxs 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Dec 10 17:30:28 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163167 
State-Changed-From-To: open->closed 
State-Changed-By: wxs 
State-Changed-When: Sun Dec 18 16:18:14 UTC 2011 
State-Changed-Why:  
Committed. You will have to manually rebuild and reinstall git to get 
this change or wait until the next significant update. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163167 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/163167: commit references a PR
Date: Sun, 18 Dec 2011 16:17:42 +0000 (UTC)

 wxs         2011-12-18 16:17:32 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel/git            Makefile pkg-plist 
   Log:
   Switch to installing contrib files using COPYTREE_BIN instead of
   COPYTREE_SHARE. The documentation in the hooks says you should set
   executable permissions on the hook before setting it up in a repository,
   but if you update git the permissions get reset. Just install the entire
   contrib directory with executable bit set.
   
   What we really need is a "COPYTREE_ASIS" that just leaves the permissions as
   they are.
   
   Note I am intentionally not bumping PORTREVISION as this is a minor change
   and this port gets updated fairly regularly.
   
   PR:             ports/163167
   Submitted by:   Matthias Fechner <idefix@fechner.net>
   
   Revision  Changes    Path
   1.122     +1 -1      ports/devel/git/Makefile
   1.87      +2 -2      ports/devel/git/pkg-plist
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
