×××× ×××× 09 ××××× 2004, 23:43, ×××× ×× ××× Diego Iastrubni:
> 1) the file list, > find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > ... > %files -f ../file.list.kfiresaver3d > > does anyone have a better trick? I dont like the "cd". > Sometimes I am lazy and I just do "/". It does the trick. Yes - find out which files you need and only list those files. if RedHat had intended %file to be automatic, they wouldn't have wrote it that way - you'd get some inteligent wildcard parser instead. the -f switch is a shortcut for the lazy folks, but its not what you're supposed to do. %files is used to mark special files (configuration and docs) and set correct attributes. using -f nullifies that capability. For most software packages, I just list the primary directories that I know are used for the installation (/usr/bin, /usr/lib, /etc, etc') and set the correct flags for each. If for some reason I have problems, I can go in and tweak it (something that is very hard or impossible using -f). I rarely need a list of more then 10 entries, usually much less. > 2) I am maintaining a cvs build of kdevelop, which I compile it into an > rpm. The rpm is available in iglu. For some reason I build the rpm, and now > I get this problem when I try to install the rpm: > kdevelop-3.0-cvs_20040109.i586 (due to unsatisfied devel(libdb-3.3)) (Y/n) > The package name should be "libdb3.3-devel-3.3.11-16mdk". Mandrake changed the way the name packages lately (its been going on since before 9.2 and they haven't completed the change yet) to something that there is hope that the uninitiated will understand better. > This dependency > is not in my spec, so I dont even know from where the problem comes. In the post build stage, RPM looks for dependencies by examining binary files with ldd. That's why, for example, building Java RPMs on my system (not from sources of course) results in ODBC and ALSA dependencies. > 3) I am trying to make an rpm out of the _binary_ OpenOffice found now on > [EMAIL PROTECTED] lib]# rpm -Uhv > /mnt/source/rpm/RPMS/i586/OpenOffice-1.1-3cuco.i586.rpm > error: Failed dependencies: > libcrypto.so.0 is needed by OpenOffice-1.1-3cuco > libjawt.so is needed by OpenOffice-1.1-3cuco > libreadline.so.4.1 is needed by OpenOffice-1.1-3cuco > libssl.so.0 is needed by OpenOffice-1.1-3cuco > libtcl8.3.so is needed by OpenOffice-1.1-3cuco > libtk8.3.so is needed by OpenOffice-1.1-3cuco Its the same problem as (2) - that is the RPM binary dependancy scanning. the problem this time is that your current RPMs do not advertise the capability that the RPM dependancy scanning method reports. > [EMAIL PROTECTED] lib]# rpm -qf /usr/lib/libssl.so > libopenssl0.9.7-devel-0.9.7b-4mdk what does rpm -q --provides libopenssl0.9.7 say ? it should say libcrypto.so.0 along with other capabilities for the installation to work. -- Oded ::.. A journey of a thousand miles begins with a broken fan belt and a leaky tire. ================================================================To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]