Package: haskell-debian-utils
Version: 3.55-2+b1
Severity: important
Tags: upstream patch

Dear Maintainer,

I tried to debianize GLFW package. It has dependencies: GL
and X11. At the end there are build dependencies libGL-dev and
libX11-dev, which are incorrect.

I propose transforming the library name to lowercase when
generating debian dependencies.

The patch is applied.

Thanks,
-- 
Max

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages haskell-debian-utils depends on:
ii  libbz2-1.0  1.0.6-1         
ii  libc6       2.13-18         
ii  libffi5     3.0.10~rc10-3   
ii  libgmp10    2:5.0.2+dfsg-1  
ii  zlib1g      1:1.2.3.4.dfsg-3

Versions of packages haskell-debian-utils recommends:
ii  apt-file  2.5.0

haskell-debian-utils suggests no packages.
From 1805df451b49c7685afd7979d40cb80122083521 Mon Sep 17 00:00:00 2001
From: Max Kirillov <m...@max630.net>
Date: Sat, 4 Feb 2012 13:13:08 +0200
Subject: [PATCH 3/3] lowercase libraries

---
 Distribution/Package/Debian.hs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Distribution/Package/Debian.hs b/Distribution/Package/Debian.hs
index e1f71f8..a631e86 100644
--- a/Distribution/Package/Debian.hs
+++ b/Distribution/Package/Debian.hs
@@ -806,7 +806,7 @@ adapt (PkgConfigDepends (Dependency (PackageName pkg) _))
             (ExitSuccess, out, _) -> [takeWhile (not . isSpace) out]
             _ -> []
 adapt (ExtraLibs "gcrypt") = ["libgcrypt11-dev"]
-adapt (ExtraLibs x) = ["lib" ++ x ++ "-dev"]
+adapt (ExtraLibs x) = ["lib" ++ map toLower x ++ "-dev"]
 adapt dep
   = [name]
   where  (Dependency (PackageName name) _) = unboxDependency dep
-- 
1.7.6.3

Reply via email to