[Fedora-packaging] Cannot cd to %{name}-%{version}

Kamal Ahmed kamal2222ahmed at yahoo.com
Thu Apr 12 21:18:21 UTC 2012


resolved by using :
%setup -qn pcore
Thanks,
-Kamal.




>________________________________
> From: Michael Schwendt <mschwendt at gmail.com>
>To: packaging at lists.fedoraproject.org 
>Sent: Thursday, April 12, 2012 3:49 PM
>Subject: Re: [Fedora-packaging] Cannot cd to %{name}-%{version}
> 
>On Thu, 12 Apr 2012 12:43:17 -0700 (PDT), KA (Kamal) wrote:
>
>> Jon,
>> 
>> with:
>> cp obj/ggsnc/ggsnc $RPM_BUILD_ROOT%{_bindir}/
>> 
>> i get:
>> 
>> + cp obj/ggsnc/ggsnc /pcore-0.1/usr/bin/
>> cp: cannot create regular file `/pcore-0.1/usr/bin/': No such file or directory
>> error: Bad exit status from /var/tmp/rpm-tmp.93551 (%install)
>
>That makes no sense, because $RPM_BUILD_ROOT should evaluate to the
>value defined in the "BuildRoot:" tag. It seems you inserted a mistake
>somewhere.
>
>> The problem being that even though my Version is 0.1 , but when i untar , the directory gets created is pcore and not pcore-0.1.
>> Any solution for this ?
>
>Read up on the %setup macro's options. It seems you want to add -n %{name}
>so it enters the existing "pcore" directory instead of the default (which
>is %{name}-%{version}).
>--
>packaging mailing list
>packaging at lists.fedoraproject.org
>https://admin.fedoraproject.org/mailman/listinfo/packaging
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/packaging/attachments/20120412/e504f050/attachment.html>


More information about the packaging mailing list