[Fedora-packaging] error: Package already exists: %package debuginfo

Kamal Ahmed kamal2222ahmed at yahoo.com
Sun Apr 15 20:46:00 UTC 2012


I have looked everywhere and still cannot find any example of SPEC which installs the binary files created as a result of Make.
( if the Makefile is missing the install section ) 


so here is what i have from a tutorial.

Name: foo ... BuildRoot: /tmp/%{name} %prep ... %build ... %install install -m755 $RPM_BUILD_ROOT/obj/ggsnc/ggsnc %{_bindir}/ %files /usr/bin/ggsnc 

but i get error:

+ umask 022
+ cd /home/kahmed/rpmbuild/BUILD
+ cd pcore
+ LANG=C
+ export LANG
+ unset DISPLAY
+ install -m755 /tmp/pcore/obj/ggsnc/ggsnc /usr/bin/
install: cannot stat `/tmp/pcore/obj/ggsnc/ggsnc': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.93457 (%install)


now ALL i want to do is to copy /home/kahmed/rpmbuild/BUILD/pcore/obj/ggsnc/ggsnc to /usr/bin
in a root simulated environment.

Now all the examples i am looking at use makefile install, or automake, so i cannot reverse engineer.

Thanks,
-Kamal.


>________________________________
> From: Michael Schwendt <mschwendt at gmail.com>
>To: packaging at lists.fedoraproject.org 
>Sent: Saturday, April 14, 2012 6:45 AM
>Subject: Re: [Fedora-packaging] error: Package already exists: %package debuginfo
> 
>On Fri, 13 Apr 2012 14:47:33 -0700 (PDT), KA (Kamal) wrote:
>
>> ok removed the macro from .rpmmacros
>> 
>> i think the error was because i had comment 
>> 
>> #This ...
>> in the %install section
>> 
>> since i did NOT have any 
>> 
>> %package debuginfo
>> 
>> hence i deduce that 
>
>A comment within the %install section does not cause an error like that,
>but be careful with RPM macros in comments. They are expanded, too, and
>can lead to unexpected results/errors.
>
>A full .spec file is easier to review than just an error message without
>any context. ;-)
>--
>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/20120415/df2d8182/attachment.html>


More information about the packaging mailing list