On Thu, Jul 17, 2003 at 10:53:16AM -0400, Jeff Squyres wrote: > On Thu, 17 Jul 2003, Jason B. wrote: > > > >What's the recommended usage here? > > > > Unfortunately, I've had to deal with this kind of thing already. > > Perl-Tk and Perl-Qt are dependent on perl versions (which are specific > > to distro versions). The only way I got around with perl-Qt was to > > install differently-named RPMs... perl-Qt or perl-Qt-5.6. Perl-Tk was > > slightly different, since it is a prereq and manually installs its own > > RPM. In its case, it detects the perl version and copies the right RPM > > to /tftpboot/rpm (IIRC) and installs from there. They are named the > > same, but are copied from different directories (see > > oscar/share/prereqs/perl-Tk/media). > > So is it toally evil to put things like "rh80" in the RPM name, even > though it's not in the RPM package name? For example: > > packages/switcher/RPMS/modules-oscar-rh80-3.1.6-3.i586.rpm > > But when you install it, you'll find that RPM thinks its name is > "modules-oscar", not "modules-oscar-rh80" (i.e., I simply renamed the RPM > after it was built). > > shell# rpm -i modules-oscar-rh80-3.1.6-3.i586.rpm > shell# rpm -qa | grep modules- > modules-oscar-3.1.6-3 > > That's the only easy way that I can see to getting around this filter > restriction; otherwise, I'll have to have a different .spec file for each > distro, which is unattractive.
IMHO, this is totally evil. There needs to be a distinction somewhere in the rpm package info. If you are really bound to a particular version of RH, you should do the following:
Package: modules-oscar-rh80 Provides: modules-oscar Requires: redhat-release = 8.0
This requires some scripting to generate many spec files, but it isn't all that much work at the end of the day.
Not to mention that this doesn't work anyway with the way PackageBest works... it looks at the RPM header, not the filename. Make sure that when you do multiple RPMs like this that they conflict with one another.
Jason
------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Oscar-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/oscar-devel
