View Single Post
  #3  
Old 2005-08-05, 02:33 AM CDT
Paul Howarth
Guest
 
Posts: n/a
Re: rpmbuild and dependency disabling

Paul Howarth wrote:
>> libodbc.so is needed by java-ies-1.4.2-08.i386
>> libodbcinst.so is needed by java-ies-1.4.2-08.i386

>
>
> Hmm, an unversioned soname. The unixODBC package provides libodbc.so.1
> and libodbcinst.so.1; I wonder why you're getting the unversioned ones?


This appears to be a common problem with java packages. Here's one way
you can try to work around it:

Near the top of your spec file, add this:

%define _use_internal_dependency_generator 0
%define our_find_requires %{_builddir}/%{name}-%{version}/find_requires

(you may need to alter "%{name}-%{version}" to be the name of the
directory your package source gets unpacked into)

At the end of the %prep section of your spec, add this:

# Kludge to remove bogus odbc dependencies
cat <<EOF >%{our_find_requires}
#!/bin/sh
echo unixODBC
exec %{__find_requires} | /bin/egrep -v '^(libodbc(inst)?\.so)$'
exit 0
EOF
chmod +x %{our_find_requires}
%define __find_requires %{our_find_requires}

That will hopefully result in a sensible set of dependencies being
generated.

Paul.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list