From owner-freebsd-ports@FreeBSD.ORG Wed Jul 17 22:22:33 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 007BC5E4 for ; Wed, 17 Jul 2013 22:22:32 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ie0-x233.google.com (mail-ie0-x233.google.com [IPv6:2607:f8b0:4001:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id CBCBCF49 for ; Wed, 17 Jul 2013 22:22:32 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id c10so5392910ieb.38 for ; Wed, 17 Jul 2013 15:22:32 -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=gY0qc9QrQhs8/fRn7TiA7qf25yKWRqVzh+WTTduje3s=; b=uqv5clC27XKBj391DyctKt3VF32a/HeNO+oar2mBTOdW5MtyhidDTu9Fblp0KEexMG ozuifZ5qrYkC1ya6dd5f88RSQAA9Ho0YVqBmO75tdmpVk0/cEVZ4osz1qfa4oqzESzcJ F6GaIFcx0bhp8f1/1Ws+zliejkA81xwEtkvvr+Eogtzdpl54FTHh+NjoAA4jOh2e/4z2 b4Qu0tIX83szPuE8WFlQWUomTspVg18RGIp2T6xKQATqlzJ3uIeaMnIcUZ2g3CI0VrDL fFTpR/trMYZHv/MRW7tzSwWou9PoUNBBa6F/1LY6wzikjxqKG0hf2WjG5mCpTkrxiu3W lWNQ== MIME-Version: 1.0 X-Received: by 10.43.67.73 with SMTP id xt9mr5461193icb.99.1374099752594; Wed, 17 Jul 2013 15:22:32 -0700 (PDT) Received: by 10.50.221.179 with HTTP; Wed, 17 Jul 2013 15:22:32 -0700 (PDT) In-Reply-To: References: <201307172148.r6HLmcIa025148@mech-cluster241.men.bris.ac.uk> Date: Wed, 17 Jul 2013 17:22:32 -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:22:33 -0000 On Wed, Jul 17, 2013 at 5:16 PM, Scot Hetzel wrote: > 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. > Also check the /etc/login.conf file to see if umask is being set in there. -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.