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

Bug#460486: debian-policy: Section 10.1 as a mistake in example makefile snippet.



"Andres Mejia" <mcitadel@gmail.com> writes:

> Package: debian-policy
> Version: 3.7.3
> Tags: patch
>
> Debian Policy Section 10.1 contains the following makefile snippet in
> regards to using the 'nostrip' option.
>
> ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
> INSTALL_PROGRAM += -s
> endif

$(findstring nostrip,$(DEB_BUILD_OPTIONS)) will return the empty string if
nostrip is *not* present in DEB_BUILD_OPTIONS.

ifeq compares the results to the empty string.

Therefore, the effect of this makefile fragment is to add -s to
INSTALL_PROGRAM if nostrip is *not* present in DEB_BUILD_OPTIONS.

I believe that's correct.  It is extremely counterintuitive and I had to
read it multiple times myself to be sure I understood it.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: