From owner-freebsd-ports@FreeBSD.ORG Wed Jul 17 22:26:46 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 742DB7C3 for ; Wed, 17 Jul 2013 22:26:46 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from eu1sys200aog105.obsmtp.com (eu1sys200aog105.obsmtp.com [207.126.144.119]) by mx1.freebsd.org (Postfix) with ESMTP id CAEF5F8F for ; Wed, 17 Jul 2013 22:26:45 +0000 (UTC) Received: from mail-wi0-f176.google.com ([209.85.212.176]) (using TLSv1) by eu1sys200aob105.postini.com ([207.126.147.11]) with SMTP ID DSNKUecaJNhGPecxfZ7z2SqL0nR5UM1ablVV@postini.com; Wed, 17 Jul 2013 22:26:45 UTC Received: by mail-wi0-f176.google.com with SMTP id ey16so5995751wid.9 for ; Wed, 17 Jul 2013 15:26:44 -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=CX5bgTrtNZmp4SPe9dLBltVQtbNnUeurXev7/ANRVxk=; b=U++4AZAY9lKrWkyGizbb7gVa3kGJP5nS3QgOKemE7pOpYe2MnvJdhv4YyhG53tODv5 x+1qVXNDL4VuVCDdcBtCeIueu1TldqSbxnTq55dYuOwvvc6iBzal2WpaJGIOCNlkrlzZ 6A82MxHvwbWdGvw69oPyqHGrQdZyXlDlyPHT85PgesesLer7WkD2H1Wf0M5J04QbCF40 XiHbZzl2dWCrGhD6soXlazPjkkHtZb2gakY7rbQ1CtH24SV6LxzvXr5h0hhqiYJ/cYVn QNCaX40K0/dFUfDVV6ZDx7Y4nss/79dUd7W2u4ytlhKDNqc1ktuorlFbUrwul1GXHmkD SqlA== X-Received: by 10.180.187.209 with SMTP id fu17mr6087630wic.52.1374100004685; Wed, 17 Jul 2013 15:26:44 -0700 (PDT) X-Received: by 10.180.187.209 with SMTP id fu17mr6087625wic.52.1374100004629; Wed, 17 Jul 2013 15:26:44 -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 fb9sm38088246wid.2.2013.07.17.15.26.42 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Jul 2013 15:26:43 -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 r6HMQfvI025296 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 17 Jul 2013 23:26:41 +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 r6HMQfUH025295; Wed, 17 Jul 2013 23:26:41 +0100 (BST) (envelope-from mexas) Date: Wed, 17 Jul 2013 23:26:41 +0100 (BST) From: Anton Shterenlikht Message-Id: <201307172226.r6HMQfUH025295@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: ALoCoQnm+wlAU2REtxO3xnfGl7iVzhPMhFZlOHxKhneSqw27MwKm8bHZbUl4weUL4YQbWVvOqVNZ7pSOS8JUqfYG/AeBY2jdAVsDJyRP86kIm5usSXM3nwNEtIfxgyJjjO8/DT2WZjkg9+WyfhAFrvmvnvB1xzRbIRAyeEmzj6bcpSrnV5teohc= 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:26:46 -0000 >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. Anton