Missing pkgconfig dependencies

Warren Togami wtogami at redhat.com
Thu Mar 31 02:40:20 UTC 2005


Miloslav Trmac wrote:
> 
> Wouldn't It Be Cool(tm) if rpm did pick these dependencies automatically?
> 
> for i in $RPM_BUILD_DIR{%{_libdir},%{_datadir}}/pkgconfig/*.pc; do
> 	set -- $(sed -n 's/^Requires: //p' < "$i")
> 	for dep; do
> 		f=%{_libdir}/pkgconfig/$dep.pc
> 		[ -f "$f" ] && { rpm -qf "$f"; continue; }
> 		f=%{_datadir}/pkgconfig/$dep.pc
> 		[ -f "$f" ] && { rpm -qf "$f"; continue; }
> 		echo "pkg-config file $dep.pc not found" >&2
> 	done
> done
> 
> Anyone care to integrate the above into the RPM scripts?
> 	Mirek

May I warn that whatever implementation is chosen, this is not an easy 
problem to fully automate.  Regular software packages (not development) 
must NOT have deps on -devel packages.  Automated script in rpmbuild 
would need to only add deps to -devel packages, and only if -devel 
packages are split.  But then there are a whole bunch of exceptions to 
this.  It is simply not this easy to automate this and do the right thing.

Warren Togami
wtogami at redhat.com




More information about the Fedora-maintainers mailing list