Any scons expert in team?

Felipe Sateler fsateler at debian.org
Fri Aug 9 17:11:48 UTC 2013


Hi Jaromír,

On Thu, Aug 8, 2013 at 7:00 PM, Jaromír Mikeš <mira.mikes at gmail.com> wrote:
> Hi,
>
> I am trying fix hardening in klick package builded by scons.
> Patching SConstruct file.
>
> I don't have too much experience with scons.
>
> Can somebody help?

As far as I can tell, the SConstruct file imports the external
environment wholesale into the scons environment (line 11). Therefore
all that is needed is to set the required environment variables and
scons should automatically pick them up. Unfortunately, I think scons
decided that LDFLAGS was not a good name so it changed it to
LINKFLAGS, so you have to do that as well.

I think it should be sufficient to add the following to debian/rules:

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
export LINKFLAGS = $(LDFLAGS)

I can't try it, though (not on my packaging pc). Please try it and
lets see if it works.


-- 

Saludos,
Felipe Sateler



More information about the pkg-multimedia-maintainers mailing list