Bug 36378

Summary: glibc.spec needs a BuildPreReq: header.
Product: [Retired] Red Hat Linux Reporter: Sam Varshavchik <mrsam>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: fweimer
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-04-27 04:49:54 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Sam Varshavchik 2001-04-17 18:38:07 EDT
After I rebuilt glibc-2.2.2-10.src.rpm I did not get memusage and
memusagestat packaged into glibc-common.

Tracked it down to a dependency in configure.in:
 
dnl Check whether we have the gd library available.
AC_MSG_CHECKING(for libgd)
if test "$with_gd" != "no"; then
  old_CFLAGS="$CFLAGS"
  CFLAGS="$CFLAGS $libgd_include"
  old_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS $libgd_ldflags"
  old_LIBS="$LIBS"
  LIBS="$LIBS -lgd -lpng -lz -lm"
  AC_TRY_LINK([#include <gd.h>], [gdImagePng (0, 0)], LIBGD=yes, LIBGD=no)
  CFLAGS="$old_CFLAGS"
  LDFLAGS="$old_LDFLAGS"
  LIBS="$old_LIBS"
else
  LIBGD=no
fi

memusage+friends is dependent on LIBGD, in malloc/Makefile

I did not have gd-devel installed, so I did not get memusage built.

It is necessary to add BuildPreReq: gd-devel libpng-devel zlib-devel to
glibc.spec, in order to make sure that the requisite libraries are present
before glibc is built.
Comment 1 Jakub Jelinek 2001-04-27 04:49:49 EDT
Makes sense, added to glibc-2.2.3-5.