Mailinglist Archive: opensuse-packaging (109 mails)

< Previous Next >
[opensuse-packaging] how to convert pkg-config checks to BuildRequires (was: Re: openSUSE GNOME meeting (2007/10/25))
  • From: Stanislav Brabec <sbrabec@xxxxxxx>
  • Date: Thu, 25 Oct 2007 15:04:36 +0200
  • Message-id: <1193317477.3734.27.camel@xxxxxxxxxxxxxx>
Rodrigo Moya wrote:

- Stanislav had a tool to analyze pkg-config checks for automatically
update
BuildRequires

It's still unfinished and might be broken...

I made my proof of concept public:
http://pack.suse.cz/sbrabec/pkg-buildrequires/

Technical background and problems:

- It's not easy to get package dependency data from configure.in. m4
expansion may occur and shell expansion may occur as well. Finally it's
not easy to guess, which branch of code is actully active => The
simplest way is modifying or wrapping of pkg-config itself. Solved.

- RPM offers no way how to get data collected by %build back to the spec
file preamble. We need a simple but enforcing way to perform this step
manually. Still needs proper solution.

Proposed usage:

BuildRequires: pkg-buildrequires

and replace
%configure
by
%pkg_buildrequires_configure

--
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 966
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups