Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129928 - media-libs/libmng hard-depends on zlib
Summary: media-libs/libmng hard-depends on zlib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-14 04:17 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2006-04-14 04:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-14 04:17:32 UTC
The zlib useflag on libmng is misplaced, the --with-zlib[=DIR] argument is used only to give a non-default location for zlib, but does not mean that zlib can disabled at all, as it can be seen by the configure.in:

dnl libz is required.
AC_ARG_WITH(zlib,
[  --with-zlib[=DIR]       use zlib include/library files in DIR],[
  if test -d "$withval"; then
    CPPFLAGS="$CPPFLAGS -I$withval/include"
    LDFLAGS="$LDFLAGS -L$withval/lib"
  fi
])
AC_CHECK_HEADER(zlib.h,
    AC_CHECK_LIB(z, gzread, , AC_MSG_ERROR(zlib library not found)),
    AC_MSG_ERROR(zlib header not found)
)


It shouldn't create issues as it's unlikely that zlib is not present in the system but the dependencies will be misrepresented, and users will be prompted with a choice that's not available.

HTH,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-14 04:33:18 UTC
Committed with reb's permission.