From owner-freebsd-ports@FreeBSD.ORG Wed Jul 17 22:37:16 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2E787AAB for ; Wed, 17 Jul 2013 22:37:16 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001:c03::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 06D34FF4 for ; Wed, 17 Jul 2013 22:37:15 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id e11so5482496iej.1 for ; Wed, 17 Jul 2013 15:37:15 -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=ORLrP7bpScu3e2sWiYlufH2vipWbnerhlv8mq7NyaE8=; b=DQID2/iyNK6uDwexSvW/mqnGnbu3f3GXpu7kG+dxEGiFH4LevSR9mdwCIKCaLn2q3e 8T9OwFLAjU0nmtd8tG98lYxOLzR8q8JIU8hpX21y6WKpDTakSBZ6A19xILUacVC/DF7A u1xHdJJDL1WIyv40KxxwYey0YKLu8koEuFbPCI3Z4mYLp6Al/rWv8Hipe/ekDRP6RMj7 eiWE0aXzLs3re3iDCQx8p06qfJIVKKnSf87vE9/ngvh9hZyFMpxsnZW91YC7JYE22JsT mzwqc3ofTj3SJFdFPHp3K9cF8UfBkG5YgIgHMlW+wjow9aP5CaUK15gjpJoj8haB8C7l yfPQ== MIME-Version: 1.0 X-Received: by 10.43.67.73 with SMTP id xt9mr5473876icb.99.1374100635682; Wed, 17 Jul 2013 15:37:15 -0700 (PDT) Received: by 10.50.221.179 with HTTP; Wed, 17 Jul 2013 15:37:15 -0700 (PDT) In-Reply-To: <201307172226.r6HMQfUH025295@mech-cluster241.men.bris.ac.uk> References: <201307172226.r6HMQfUH025295@mech-cluster241.men.bris.ac.uk> Date: Wed, 17 Jul 2013 17:37:15 -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:37:16 -0000 On Wed, Jul 17, 2013 at 5:26 PM, Anton Shterenlikht wrote: > >From swhetzel@gmail.com Wed Jul 17 23:20:37 2013 >>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. > > sorry, I could've been more clear. > Yes, the patch touches 3 files: Makefile, distinfo, pkg-descr. > For some reason, Makefile and distinfo changed permission > after the patch is applied. > The only other theory I have is that when you had edited the Makefile and distinfo the umask was set to 077. Which changed the file permissions. Then you used svn diff to create the feappv.diff patch. SVN may have recorded the file permission changes in the patch file. Is there anything extra in the patch file? Otherwise I'm out of ideals. -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.