[CMake] Issue using CPackRPM with rpmbuild 4.7.1 and a small patch

forrest at forrestheller.com forrest at forrestheller.com
Mon Nov 9 14:57:03 EST 2009


> 2009/11/9  <forrest at forrestheller.com>:
>> Thank you very much for CMake--I love it.
>>
>> I need to build RPMs using CPack.  This worked using rpmbuild 4.4.2.1
>> and
>> the latest CVS version of CMake.
>>
>> But when I installed rpmbuild 4.7.1 I found that, prior to the %install
>> phase, rpmbuild clears your entire buildroot directory.   This is
>> problematic, as CMake does not build the buildroot directory after
>> %install. See http://osdir.com/ml/fedora-packaging/2009-09/msg00001.html
>> for a full discussion.
>
> I'll have look.
> But we did fix some issue with post 4.4.x rpmbuild versions:
> http://public.kitware.com/Bug/view.php?id=8967
> http://public.kitware.com/Bug/view.php?id=9031
>
>> My patch is basically stolen from
>> http://cvs.fedoraproject.org/viewvc/rpms/kernel/F-12/kernel.spec?revision=1.1913&view=co
>> The point of the patch is to override the build stage that clears the
>> buildroot directory
>
> OK can you open a new bug for CPackRPM and attach your patch proposal to
> it?
>
> If yes then reply to this message in order to give us the bug number.
>
> --
> Erk
> Membre de l'April - « promouvoir et défendre le logiciel libre » -
> http://www.april.org
>

Bug # is 9872

I looked at the other CPackRPM issues before submitting the
patch--unfortunately 9872 is definitely not covered.

-Forrest




More information about the CMake mailing list