Skip to content
GitLab
Explore
Sign in
Register
Commits on Source
2
ghc: Fix Conflicts+Replaces+Provides
· 45b9a98a
Ilias Tsitsimpis
authored
Oct 19, 2018
45b9a98a
ghc: Use versioned Breaks instead of Conflicts
· d10ca165
Ilias Tsitsimpis
authored
Oct 19, 2018
d10ca165
Show whitespace changes
Inline
Side-by-side
p/ghc/debian/changelog
View file @
d10ca165
ghc (8.4.3+dfsg1-4) unstable; urgency=medium
* Add missing Breaks+Replaces+Provides (Closes: #910480).
Break+Replace+Provide all bundled libraries, including libghc-parsec3-dev.
-- Ilias Tsitsimpis <iliastsi@debian.org> Fri, 19 Oct 2018 13:09:22 +0300
ghc (8.4.3+dfsg1-3) unstable; urgency=medium
* Conflict with mtl and stm. closes: #910008.
...
...
p/ghc/debian/control
View file @
d10ca165
...
...
@@ -48,9 +48,10 @@ Provides:
haddock,
ghc-haddock,
${haddock:Provides}
Replaces: ghc6 (<< 7), ghc-dynamic (<< 7.8), ghc-haddock (<< 7.10)
Conflicts: ghc6 (<< 7), ghc-dynamic (<< 7.8), libghc-cabal-dev (<< 1.24.2.1), ${conflicting-devs}
Breaks: cabal-install (<< 1.22), haskell-devscripts (<< 0.8.13), ghc-doc (<< 7.10), ghc-haddock (<< 7.10)
Replaces: ghc6 (<< 7), ghc-dynamic (<< 7.8), ghc-haddock (<< 7.10), ${conflicting-devs}
Conflicts: ghc6 (<< 7), ghc-dynamic (<< 7.8)
Breaks: cabal-install (<< 1.22), haskell-devscripts (<< 0.8.13),
ghc-doc (<< 7.10), ghc-haddock (<< 7.10), ${conflicting-devs}
Suggests: perl, ghc-prof, ghc-doc, haskell-doc, llvm-6.0
Description: The Glasgow Haskell Compilation system
The Glorious Glasgow Haskell Compilation system (GHC) is a compiler for
...
...
p/ghc/debian/provided_substvars
View file @
d10ca165
...
...
@@ -5,22 +5,23 @@
open
PKG
,
'
inplace/bin/ghc-pkg list --simple-output |
'
or
die
"
ghc-pkg list failed: $!
";
my
@ignored
=
('
ghc
',
'
utf8-string
',
'
rts
',
'
parallel
');
my
@ignored
=
('
ghc
',
'
rts
');
my
%ignored
;
$ignored
{
$_
}
++
for
@ignored
;
my
@no_conflict
=
('
cabal
');
my
%no_conflict
;
$no_conflict
{
$_
}
++
for
@no_conflict
;
my
%pkgver
;
my
%renamed
;
$renamed
{"
parsec
"}
=
"
parsec3
";
my
@pkgs
;
while
(
<
PKG
>
)
{
y/A-Z/a-z/
;
my
$pkgstring
=
$_
;
LOOP:
while
(
$pkgstring
=~
m,([^ ]*?)-
\d.*?
?,g
)
{
LOOP:
while
(
$pkgstring
=~
m,([^ ]*?)-
(\d[\d.]*)
?,g
)
{
my
$pkg
=
$
1
;
next
if
exists
$ignored
{
$pkg
};
push
@pkgs
,
$
1
;
$pkg
=
$renamed
{
$pkg
}
if
exists
$renamed
{
$pkg
};
$pkgver
{
$pkg
}
=
$
2
;
push
@pkgs
,
$pkg
;
}
}
close
PKG
;
...
...
@@ -28,14 +29,13 @@ close PKG;
my
$buf
;
open
DEV
,
'
>debian/ghc.substvars
';
$buf
=
"
provided-devs=
";
foreach
(
sort
@pkgs
)
{
$buf
.=
"
libghc-
$_
-dev,
";}
foreach
(
sort
@pkgs
)
{
$buf
.=
"
libghc-
$_
-dev
(=
$pkgver
{
$_
})
,
";}
$buf
=~
s#(.*), #$1#
;
print
DEV
$buf
.
"
\n
";
$buf
=
"
conflicting-devs=
";
foreach
(
sort
@pkgs
)
{
next
if
$no_conflict
{
$_
};
$buf
.=
"
libghc-
$_
-dev,
";
$buf
.=
"
libghc-
$_
-dev (<<
$pkgver
{
$_
}+),
";
}
$buf
=~
s#(.*), #$1#
;
print
DEV
$buf
.
"
\n
";
...
...
@@ -44,7 +44,7 @@ close DEV;
open
PROF
,
'
>debian/ghc-prof.substvars
';
print
PROF
'
provided-profs=
';
$buf
=
"";
foreach
(
@pkgs
)
{
$buf
.=
"
libghc-
$_
-prof,
";}
foreach
(
@pkgs
)
{
$buf
.=
"
libghc-
$_
-prof
(=
$pkgver
{
$_
})
,
";}
$buf
=~
s#(.*), #$1#
;
print
PROF
$buf
.
"
\n
";
close
PROF
;
...
...
@@ -52,7 +52,7 @@ close PROF;
open
DOC
,
'
>debian/ghc-doc.substvars
';
print
DOC
'
provided-docs=
';
$buf
=
"";
foreach
(
@pkgs
)
{
$buf
.=
"
libghc-
$_
-doc,
";}
foreach
(
@pkgs
)
{
$buf
.=
"
libghc-
$_
-doc
(=
$pkgver
{
$_
})
,
";}
$buf
=~
s#(.*), #$1#
;
print
DOC
$buf
.
"
\n
";
close
DOC
;