[Pkg-shadow-devel] Bug#204644: Could someone check 204644?

Christian Perrier Christian Perrier <bubulle@debian.org>, 204644@bugs.debian.org
Fri, 22 Apr 2005 18:39:01 +0200


The bug submitter says:

"shadow by default builds without debugging, contrary to policy 10.1."


This section of the policy says:

    By default, when a package is being built, any binaries created should
     include debugging information, as well as being compiled with
     optimization.  You should also turn on as many reasonable compilation
     warnings as possible; this makes life easier for porters, who can then
     look at build logs for possible problems.  For the C programming
     language, this means the following compilation parameters should be
     used:
          CC = gcc
          CFLAGS = -O2 -g -Wall # sane warning options vary between programs
          LDFLAGS = # none
          install -s # (or use strip on the files in debian/tmp)

     Note that by default all installed binaries should be stripped, either
     by using the `-s' flag to `install', or by calling `strip' on the
     binaries after they have been copied into `debian/tmp' but before the
     tree is made into a package.

     Although binaries in the build tree should be compiled with debugging
     information by default, it can often be difficult to debug programs if
     they are also subjected to compiler optimization.  For this reason, it
     is recommended to support the standardized environment variable
     `DEB_BUILD_OPTIONS'.  This variable can contain several flags to
     change how a package is compiled and built.
.../...


Is there really a problem with regards to this in our build process?


--