From owner-freebsd-bugs@FreeBSD.ORG Tue Jul 30 08:40:05 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5DECE8E6 for ; Tue, 30 Jul 2013 08:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3CFD42D33 for ; Tue, 30 Jul 2013 08:40:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6U8e5EV036269 for ; Tue, 30 Jul 2013 08:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6U8e5je036268; Tue, 30 Jul 2013 08:40:05 GMT (envelope-from gnats) Resent-Date: Tue, 30 Jul 2013 08:40:05 GMT Resent-Message-Id: <201307300840.r6U8e5je036268@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Piotr Kubaj Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C2BB17DC for ; Tue, 30 Jul 2013 08:32:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B007B2CC6 for ; Tue, 30 Jul 2013 08:32:02 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6U8W2u0089672 for ; Tue, 30 Jul 2013 08:32:02 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6U8W2kV089671; Tue, 30 Jul 2013 08:32:02 GMT (envelope-from nobody) Message-Id: <201307300832.r6U8W2kV089671@oldred.freebsd.org> Date: Tue, 30 Jul 2013 08:32:02 GMT From: Piotr Kubaj To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/180940: .git files shouldn't be includded when making a release X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jul 2013 08:40:05 -0000 >Number: 180940 >Category: misc >Synopsis: .git files shouldn't be includded when making a release >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 30 08:40:04 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Piotr Kubaj >Release: 10.0-CURRENT >Organization: >Environment: FreeBSD NOTEBOOK 10.0-CURRENT FreeBSD 10.0-CURRENT #109: Mon Jul 29 23:14:33 CEST 2013 toor@NOTEBOOK:/usr/obj/usr/src/sys/NOTEBOOK amd64 >Description: The Makefile script, located in $SRCDIR/release already excludes CVS and .svn files (as well as .zfs). But it doesn't work with a copy of FreeBSD source fetched from git, because of .git file that git creates. I know FreeBSD development takes place in SVN, but I use my computer to create an image of https://github.com/dumbbell/freebsd which is not yes in SVN. >How-To-Repeat: cd $SRCDIR make buildworld make buildkernel make release >Fix: --- Makefile 2013-07-30 10:27:41.844501940 +0200 +++ Makefile.new 2013-07-30 10:28:43.864500616 +0200 @@ -97,14 +97,14 @@ src.txz: mkdir -p ${DISTDIR}/usr ln -fs ${WORLDDIR} ${DISTDIR}/usr/src - cd ${DISTDIR} && tar cLvJf ${.OBJDIR}/src.txz --exclude .svn --exclude .zfs \ + cd ${DISTDIR} && tar cLvJf ${.OBJDIR}/src.txz --exclude .git --exclude .svn --exclude .zfs \ --exclude CVS --exclude @ --exclude usr/src/release/dist usr/src ports.txz: mkdir -p ${DISTDIR}/usr ln -fs ${PORTSDIR} ${DISTDIR}/usr/ports cd ${DISTDIR} && tar cLvJf ${.OBJDIR}/ports.txz \ - --exclude CVS --exclude .svn \ + --exclude CVS --exclude .svn --exclude .git\ --exclude usr/ports/distfiles --exclude usr/ports/packages \ --exclude 'usr/ports/INDEX*' --exclude work usr/ports >Release-Note: >Audit-Trail: >Unformatted: