Laca, Laszlo (Laca) Peter wrote: > > Wow, this is great stuff! > > Some questions/comments: > > - I noticed that you build everything with gcc, is there a reason they > need to be build with gcc or is that just the way the CCD has always > been built? In JDS, we build everything with Sun Studio.
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 :-) ). > - The patch for pkgbuild basically disables checking for unpackaged > files. If you really want to do that, you can do it using: > > %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). I'm working on splitting up the CUPS package up now into sub-packages (in my spare time) and will be posting it to Norm for comment soon. Paul > > On Wed, 2006-07-12 at 08:21 +0100, Paul Cunningham wrote: > >>I have resent this because the first time (yesterday) it was blocked by >>the alias and not released due to the size of the attachment. I have >>reduced the attachment size by removing all the unnecessary bits and >>attached that now. Please read on ....... >> >>Paul >> >>Paul Cunningham wrote: >> >>>Hi all, >>> >>>Attached are my first attempts at creating a set of gnome style spec >>>files for building the opensource packages that make up the "Solaris >>>CUPS Print Suite". The packages they build are direct replacements for >>>the packages that are on (or were on) the Companion CD (CCD) - whoops >>>it's a DVD now. >>> >>>These packages are: >>> SFWcups SFWespgs SFWfltk SFWgutenprint SFWpnm2ppa >>> SFWcupsprint SFWffilters SFWfppds SFWhpijs SFWxpp >>>where package SFWcupsprint is a dummy package that pulls all the others >>>together (via dependencies). >>> >>>I have briefly tested them on sparc, but I only have one network >>>printer, and as such they all work together okay. >>> >>>The attached tarball contains the spec files, patches, include files and >>>a Makefile. I have only built them on Solaris 10 sparc but they should >>>hopefully work okay on x86 and Solaris nv. At the time of creating the >>>spec files they used the latest stable version of the packages (except >>>gutenprint which is rc3). >>> >>>The next step is to break down the CUPS package into sub-packages in the >>>way that Norm (Solaris Print Group) has suggested (so that it works >>>along side the Solaris Print System) ..... >>> >>>Norm wrote: >>> > I was thinking about breaking down the packaging into something along >>> > the lines of >>> > SFWcups-libs >>> > SFWcups-spooler >>> > SFWcups-commands >>> > SFWcups-filters >>> >>>I hope these are useful to someone, let me know. If I have missed any >>>packages that should be in the suite let me know. Also if you find any >>>problem with the resultant packages also let me know. >>> >>>Regards >>>Paul >>>-- >>>----------------------------------------------------------------- >>>Paul Cunningham
