From owner-freebsd-ports@FreeBSD.ORG Wed Jul 17 22:16:47 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7A29D436 for ; Wed, 17 Jul 2013 22:16:47 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ie0-x22c.google.com (mail-ie0-x22c.google.com [IPv6:2607:f8b0:4001:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 5212DF18 for ; Wed, 17 Jul 2013 22:16:47 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id 16so5494704iea.3 for ; Wed, 17 Jul 2013 15:16:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=bjPQaFSzGdNB1FvBIKdj72Ht7rsJapYQzhW46KCWU9w=; b=HbVYDk2gA/BOu74HVHVrDnobac9g4LtBtrZcBR48aQjN4B6yi39UvkZ0spVy2YWp0l zgE274DcqLQuyXdVYzTkPyJ//0NRE++eob6UuytY1p5ofjneOwZS5MMoqx4I7PICtQ++ UwhesJjW3SrgTKfOifXoISeB9LEUSgOPGj2R4Q6uE0AQidC+fFy9xcCD9b6z07yWquyd hdJsEycVb3bVATSDNXBNLL4KCk5pzGFnCqn3G49pezcNf+v+0F3ueUv6e8OaZa4evkXz RZuY2fCFMiInw3OKwvWnIhYkfEwfpLt5z4h+/KeY8ifjxEOW90unFi0ABvSOxPr2CiVN ZYag== MIME-Version: 1.0 X-Received: by 10.50.114.233 with SMTP id jj9mr10703955igb.5.1374099406957; Wed, 17 Jul 2013 15:16:46 -0700 (PDT) Received: by 10.50.221.179 with HTTP; Wed, 17 Jul 2013 15:16:46 -0700 (PDT) In-Reply-To: <201307172148.r6HLmcIa025148@mech-cluster241.men.bris.ac.uk> References: <201307172148.r6HLmcIa025148@mech-cluster241.men.bris.ac.uk> Date: Wed, 17 Jul 2013 17:16:46 -0500 Message-ID: Subject: Re: svn diff/patch change file permission in cad/feappv From: Scot Hetzel To: mexas@bristol.ac.uk Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jul 2013 22:16:47 -0000 On Wed, Jul 17, 2013 at 4:48 PM, Anton Shterenlikht wrote: > >From swhetzel@gmail.com Wed Jul 17 22:44:56 2013 >> >>On Wed, Jul 17, 2013 at 9:50 AM, Anton Shterenlikht wrote: >>> I'm updating cad/feappv. >>> I noticed that svn diff, followed by svn patch >>> changes file permissions for 2 files out of 3. >>> Please help >>> >>> After I finished updating the port, I did: >>> >>> # pwd >>> /usr/ports/cad/feappv >>> # ls -al >>> total 24 >>> drwxr-xr-x 2 root wheel 512 Jul 17 15:45 . >>> drwxr-xr-x 108 root wheel 2560 Mar 22 03:45 .. >>> -rw-r--r-- 1 root wheel 1541 Jul 17 15:41 Makefile >>> -rw-r--r-- 1 root wheel 268 Jul 17 15:38 distinfo >>> -rw-r--r-- 1 root wheel 473 Jul 17 15:39 pkg-descr >>> # svn diff > feappv.diff >>> # svn revert * >>> Reverted 'Makefile' >>> Reverted 'distinfo' >>> Skipped 'feappv.diff' >>> Reverted 'pkg-descr' >>> # ls -al >>> total 32 >>> drwxr-xr-x 2 root wheel 512 Jul 17 15:46 . >>> drwxr-xr-x 108 root wheel 2560 Mar 22 03:45 .. >>> -rw-r--r-- 1 root wheel 1613 Jul 17 15:46 Makefile >>> -rw-r--r-- 1 root wheel 268 Jul 17 15:46 distinfo >>> -rw-r--r-- 1 root wheel 2439 Jul 17 15:46 feappv.diff >>> -rw-r--r-- 1 root wheel 474 Jul 17 15:46 pkg-descr >>> # svn patch feappv.diff >>> U Makefile >>> U distinfo >>> U pkg-descr >>> # ls -al >>> total 32 >>> drwxr-xr-x 2 root wheel 512 Jul 17 15:46 . >>> drwxr-xr-x 108 root wheel 2560 Mar 22 03:45 .. >>> -rw------- 1 root wheel 1541 Jul 17 15:46 Makefile >>> -rw------- 1 root wheel 268 Jul 17 15:46 distinfo >>> -rw-r--r-- 1 root wheel 2439 Jul 17 15:46 feappv.diff >>> -rw-r--r-- 1 root wheel 473 Jul 17 15:46 pkg-descr >>> # >>> >>> Note that now Makefile and distinfo have 600 perms, >>> instead of 644. Have I missed some svn diff/patch >>> option? Or is there a reason for the change in permissions? >>> >> >>Do you have umask set in your environment? As a umask of 077 would >>explain the issue. > > no, no umask anywhere. > > Still, why would only 2 files out of 3 change permissions? My best guess is that feappv.diff patch is being applied to only patch Makefile and distinfo. pkg-descr is not being touched by the patch. That is why I suspect that umask might be involved. -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.