<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>36137</bug_id>
          
          <creation_ts>2019-02-19 22:10:20 +0300</creation_ts>
          <short_desc>Генерируются не корректные зависимости на модули ghc</short_desc>
          <delta_ts>2019-03-21 16:20:45 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>rpm-build-haskell</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgeny Sinelnikov">sin</reporter>
          <assigned_to name="Evgeny Sinelnikov">sin</assigned_to>
          <cc>glebfm</cc>
    
    <cc>iv</cc>
    
    <cc>omg</cc>
    
    <cc>respublica</cc>
    
    <cc>sin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>178754</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2019-02-19 22:10:20 +0300</bug_when>
    <thetext>Версии ghc выше 8.2.2 не содержат хеша:

[builder@localhost SPECS]$ ls -1 ~/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/*/*.pkg 
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/Cabal-2.0.1.0/Cabal.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/array-0.5.2.0/array.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/base-4.10.1.0/base.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/binary-0.8.5.1/binary.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/bytestring-0.10.8.2/bytestring.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/containers-0.5.10.2/containers.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/deepseq-1.4.3.0/deepseq.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/directory-1.3.0.2/directory.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/filepath-1.4.1.2/filepath.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/ghc-8.2.2/ghc.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/ghc-boot-8.2.2/ghc-boot.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/ghc-boot-th-8.2.2/ghc-boot-th.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/ghc-compact-0.1.0.0/ghc-compact.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/ghc-prim-0.5.1.1/ghc-prim.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/ghci-8.2.2/ghci.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/haskeline-0.7.4.0/haskeline.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/hoopl-3.10.2.2/hoopl.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/hpc-0.6.0.3/hpc.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/integer-gmp-1.0.1.0/integer-gmp.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/pretty-1.1.3.3/pretty.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/process-1.6.1.0/process.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/template-haskell-2.12.0.0/template-haskell.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/terminfo-0.4.1.0/terminfo.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/time-1.8.0.2/time.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/transformers-0.5.2.0/transformers.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/unix-2.7.2.2/unix.pkg
/usr/src/tmp/ghc8.2.2-buildroot/usr/lib64/ghc-8.2.2/xhtml-3000.2.2/xhtml.pkg

В связи с этим макрос /usr/lib/rpm/haskell.req генерирует некоректные зависимости вида:
 ghc8.2.2(array) = array
или
 ghc8.2.2(integer) = gmp

Что, в целом, ломает сборку.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>178755</commentid>
    <comment_count>1</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2019-02-19 22:25:32 +0300</bug_when>
    <thetext>Внёс исправление, отправил на тестовую пересборку:
#222088 AWAITING #1 [test-only] sisyphus rpm-build-haskell.git=1.4-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179715</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2019-03-21 16:20:45 +0300</bug_when>
    <thetext>rpm-build-haskell-1.4.5-alt1 -&gt; sisyphus:

Fri Mar 15 2019 Evgeny Sinelnikov &lt;sin@altlinux&gt; 1.4.5-alt1
- Add modules dynamic directory libraries option and fixed haskell modules
  subdirectory option for 8.x.x or newest ghc versions only

Wed Feb 27 2019 Evgeny Sinelnikov &lt;sin@altlinux&gt; 1.4.4-alt1
- Add ld preload for dynamic libraries

Mon Feb 25 2019 Evgeny Sinelnikov &lt;sin@altlinux&gt; 1.4.3-alt1
- Replace modules dynamic libraries separate single directory %_libdir/$compiler/lib

Fri Feb 22 2019 Evgeny Sinelnikov &lt;sin@altlinux&gt; 1.4.2-alt1
- Replace subdirectory for libraries to compiler directory as it prefer in newest ghc

Wed Feb 20 2019 Evgeny Sinelnikov &lt;sin@altlinux&gt; 1.4.1-alt1
- Set modules dynamic directory libraries to %_libdir/$compiler/lib/$pkgid

Wed Feb 20 2019 Evgeny Sinelnikov &lt;sin@altlinux&gt; 1.4-alt1
- Fixed build requires like &quot;base-4.10.1.0&quot; or &quot;ghc-boot-8.2.2&quot; (Closes: 36137)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>