Re: Missing pkgconfig dependencies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx


[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux