From patchwork Sat Aug 3 08:45:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 11074307 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9A6781395 for ; Sat, 3 Aug 2019 08:46:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CDE8286A4 for ; Sat, 3 Aug 2019 08:46:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80E90286EE; Sat, 3 Aug 2019 08:46:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31FD3286A4 for ; Sat, 3 Aug 2019 08:46:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387767AbfHCIqF (ORCPT ); Sat, 3 Aug 2019 04:46:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36596 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387692AbfHCIqF (ORCPT ); Sat, 3 Aug 2019 04:46:05 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 26B4C308FB82; Sat, 3 Aug 2019 08:46:05 +0000 (UTC) Received: from localhost (ovpn-116-62.ams2.redhat.com [10.36.116.62]) by smtp.corp.redhat.com (Postfix) with ESMTP id BDE70608C2; Sat, 3 Aug 2019 08:46:04 +0000 (UTC) From: Stefan Hajnoczi To: Jens Axboe Cc: Jeff Moyer , Aarushi Mehta , linux-block@vger.kernel.org, Julia Suvorova , Stefan Hajnoczi Subject: [PATCH liburing 4/4] spec: fix permissions Date: Sat, 3 Aug 2019 09:45:26 +0100 Message-Id: <20190803084526.3837-5-stefanha@redhat.com> In-Reply-To: <20190803084526.3837-1-stefanha@redhat.com> References: <20190803084526.3837-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Sat, 03 Aug 2019 08:46:05 +0000 (UTC) Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There are two issues with the headers: 1. They are installed with 0755 permissions. 2. The empty /usr/include/liburing/ directory is left behind by rpm -e. Fix this by specifying the directory (not just globbing the files inside it) and letting rpm use the default permissions on these files. Signed-off-by: Stefan Hajnoczi --- liburing.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liburing.spec b/liburing.spec index 31dfde0..1337034 100644 --- a/liburing.spec +++ b/liburing.spec @@ -48,7 +48,7 @@ make install DESTDIR=$RPM_BUILD_ROOT %files devel %defattr(-,root,root) -%attr(0755,root,root) %{_includedir}/liburing/* +%attr(-,root,root) %{_includedir}/liburing/ %attr(0644,root,root) %{_includedir}/liburing.h %attr(0755,root,root) %{_libdir}/liburing.so %attr(0644,root,root) %{_libdir}/liburing.a