From owner-freebsd-ports@FreeBSD.ORG Wed Jul 17 22:31:44 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 65F8F914 for ; Wed, 17 Jul 2013 22:31:44 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from eu1sys200aog124.obsmtp.com (eu1sys200aog124.obsmtp.com [207.126.144.157]) by mx1.freebsd.org (Postfix) with ESMTP id C156DFBD for ; Wed, 17 Jul 2013 22:31:43 +0000 (UTC) Received: from mail-wg0-f49.google.com ([74.125.82.49]) (using TLSv1) by eu1sys200aob124.postini.com ([207.126.147.11]) with SMTP ID DSNKUecbSPWzgTayw/YoCo/5slQ70lei8fi0@postini.com; Wed, 17 Jul 2013 22:31:43 UTC Received: by mail-wg0-f49.google.com with SMTP id a12so2257234wgh.28 for ; Wed, 17 Jul 2013 15:31:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:date:from:message-id:to:subject:cc:reply-to:in-reply-to :x-gm-message-state; bh=VCIXZZoqPDjL/vCxyrHpI5RdSGabu9QbDm3SupN0VgQ=; b=KY7VtgTcG0+fBtzEtDtAmtcoYm+U16hdNLORVMXloTFF+N6xcO87acEhXwzEZyFPMC Iousx2XEvVT10lDQoYZQBwj8C7h5VnSjJ576z/HPMT9Zd50y2xXt7vlqaIjySdtOJVic vxtTXfwnBB5aQl5fwE5p1Ko6YfoVdocTCi2vctCLsKaEquaEiu5FChJYnn0vcbYat4aX HDqAXkuigadloohIKikgb6PJDAJpIJlomDRvLYUvAUjXbN+Nu0M1D0cgo2keRUHMpuCL vH0AsmcXZnrASK1YYWWvJ7Athwacul416wMMzqTw6RRRCxe10Pvg/kG38vPGIvcwJKyO zEIg== X-Received: by 10.180.106.72 with SMTP id gs8mr17373413wib.51.1374100296727; Wed, 17 Jul 2013 15:31:36 -0700 (PDT) X-Received: by 10.180.106.72 with SMTP id gs8mr17373410wib.51.1374100296654; Wed, 17 Jul 2013 15:31:36 -0700 (PDT) Received: from mech-cluster241.men.bris.ac.uk (mech-cluster241.men.bris.ac.uk. [137.222.187.241]) by mx.google.com with ESMTPSA id ev19sm12742586wid.2.2013.07.17.15.31.35 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Jul 2013 15:31:35 -0700 (PDT) Sender: Anton Shterenlikht Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.7/8.14.6) with ESMTP id r6HMVXRS025332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 17 Jul 2013 23:31:33 +0100 (BST) (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.7/8.14.6/Submit) id r6HMVX9o025331; Wed, 17 Jul 2013 23:31:33 +0100 (BST) (envelope-from mexas) Date: Wed, 17 Jul 2013 23:31:33 +0100 (BST) From: Anton Shterenlikht Message-Id: <201307172231.r6HMVX9o025331@mech-cluster241.men.bris.ac.uk> To: mexas@bristol.ac.uk, swhetzel@gmail.com Subject: Re: svn diff/patch change file permission in cad/feappv In-Reply-To: X-Gm-Message-State: ALoCoQmFO25XZ1pb8nEzF2cEA3vNlsZ1itTaJOF7cktmF2ta6Ej3ftbGyCYRknt4VNAJ8etxV01ES3HPLahaNTHT9gjCXuU3aghkBUve0mgOrlKEj2mUSiCDvi8nAn/pBqNg/CR/4k2PI9yXmjOHX4vcVf/ZsWBr6mXvYEGt5oOmN5uFy+QTxdA= Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk 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:31:44 -0000 >From swhetzel@gmail.com Wed Jul 17 23:27:00 2013 > >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. no, just default:\ *skip* :umask=022: Anton