Laszlo (Laca) Peter wrote:
> On Thu, 2006-07-13 at 08:16 +0100, Paul Cunningham wrote:
>
>
>>Using gcc was the way the freeware-gate (CCD) always did it. I think
>>that was mainly because not all packages would build out-of-the box with
>>Sun Studio so that made tracking updates easier and quicker.
>>I just continued that, in my spec files, because the 'Sun Studio' I have
>>access to is rather out of date (and fixing compile problems is not that
>>interesting :-) ).
>
>
> Okay, understood. I'll try to build them with Studio 11. It's a lot
> better in terms of gcc compatibility (and otherwise too!) than previous
> releases so most code I've tried could be compiled with little or no
> code tweaking.
That's good :-)
>
>
>>> %define _unpackaged_files_terminate_build 0
>>
>>I knew there had to be someway of doing it, but I couldn't work it out
>>so I patched it .
>>
>>
>>> But it's not a good idea to do so. It's better to use rm and rmdir
>>> commands in %install to delete the files and directories you don't
>>> want to include in the packages.
>>
>>The reason I did it, is because when building CUPS pkgbuild says there
>>is a load of stuff installed that hasn't been packaged even though it
>>has been. I tracked that down to pkgbuild not coping with non normalized
>>paths (if I remember correctly). I raised a bug on pkgbuild for it.
>>So yes I agree it's not a good idea but it was my work-around at the
>>time. I should have said why I patched it in the README (I forgot, sorry).
>
>
> Ah, okay. This is an open bug logged @sourceforge.net. Will be fixed
> in the next release (as I keep saying...).
I removed my pkgbuild patch and added the
"%define _unpackaged_files_terminate_build 0
to my cups spec files. And it built okay.
I then thought I would try to build the cups package without either the
patch or the %define and for some reason it built okay. So why wasn't it
building before, all I can think of was that when I first started doing
the builds I was using an earlier version of the CUPS package and that
was causing the build problem; and I didn't recheck it when I switched
versions. So my build of cups is now using neither of them, which is how
it should be.
Paul