[csw-maintainers] proftpd build problem

Dagobert Michelsen dam at opencsw.org
Fri Sep 30 22:12:47 CEST 2011


Hi Andy,

Am 30.09.2011 um 17:47 schrieb Andy Igoshin:
> On 30 of September 2011 19:43:22 Dagobert Michelsen wrote:
>> Anfang der weitergeleiteten E-Mail:
>>> On 26 of September 2011 23:52:02 Andy Igoshin <ai at vsu.ru> wrote:
>>>> when i run "./configure" or "CC=cc ./configure" "ar" is found
>>>> in /usr/ccs/bin
>>>> 
>>>> when i run "gmake configure" "ar" is not found and "ld" is found
>>>> in /usr/ucb. as a result building process fails.
>>> 
>>> i confirm that the problem exists.
>>> 
>>> when i add CONFIGURE_ENV += PATH=/usr/ccs/bin:/bin
>>> the project is built.
>> 
>> Not good. Have you committed it so I can have a look? Which path in the
>> tree?
> 
> yes

The problem is that you are setting CONFIGURE_ENV which replaces the GAR
defaults. With the new environment sanitization only the environment
variables defined here are exported to the build, allowing tight control
of the build environment for picky systems (like nspr or samba).
In earlier times the complete exported environment leaked into the build
which was changed recently to export only the actual exported variables.
Putting your defined in EXTRA_CONFIGURE_ENV is the correct solution as
the variables are to be added to the environment. As a rule of thumb:
MYVAR replace the variable in GAR completely for maximal control,
EXTRA_MYVAR adds the value to the defaults.

I have committed my changes to proftpd here:
  http://sourceforge.net/apps/trac/gar/changeset/15816

Please review if the usage of LD_LIBRARY_PATH is still needed during
configure time.

Additionally there was until now only the possibility to use
EXTRA_CONFIGURE_EXPORTS and then set the variable or CONFIGURE_ENV_<var>
for finer control, but no EXTRA_CONFIGURE_ENV. I have added this in
  http://sourceforge.net/apps/trac/gar/changeset/15817
as a shortcut to the existing way.

Please let me know if you encounter other issues.


Best regards

  -- Dago


-- 
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896



More information about the maintainers mailing list