X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Dick <dm@chello.nl>
Subject:  Re: rpm-build-4.1-1 incompatible with tar-1.16.1-1
Date: Thu, 4 Jan 2007 17:39:32 +0000 (UTC)
Lines: 37
Message-ID:  <loom.20070104T182552-950@post.gmane.org>
References:  <loom.20061227T132629-116@post.gmane.org> <20061229172741.GA21211@trixie.casa.cgf.cx>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Christopher Faylor <cgf-use-the-mailinglist-please <at> cygwin.com> writes:
> I'm struggling to understand what "tar" has to do with rpm.  I think
> you probably need to do more debugging of this situation.

Please take a look at the -t parameter of rpmbuild:

The argument  used is -b if a spec file is being used to build the package and -t
if rpmbuild should look inside of a (possibly compressed) tar file for the spec
file to use.

rpmbuild does this by calling tar xzf tarname.tar.gz *.spec -O > tmp/1234.spec
but *.spec needs --wildcards.

Dave Korn <dave.korn <at> artimi.com> writes:
> That's not what it looks like to me.  Look at that stray ": m" at the end of
> the line.  It looks to me like you have a stray CR-LF line-ending somewhere,
> and the error message is partially self-overwriting.

I think this comes from all the pipes and so, the output is corrupted.
Whenever I manually extract the specfile from the tar.gz (see above command) and
build it it seems to work.

You can reproduce the effect by creating a tar (test.tar.gz) containing the
following file: test.spec
Name: test
Version: 0
Release: 0
Summary: test
Group: test/test
License: GPL

%description

And then calling: rpmbuild -ta test.tar.gz

Thanks in advance,
Dick


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

