emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#54760: closed (import: hackage: Internal libraries are not filtered


From: GNU bug Tracking System
Subject: bug#54760: closed (import: hackage: Internal libraries are not filtered out of dependency list)
Date: Mon, 06 Jun 2022 11:31:02 +0000

Your message dated Mon, 6 Jun 2022 13:30:42 +0200
with message-id <Yp3lYgoJyrVn5Ej1@noor.fritz.box>
and subject line Re: import: hackage: Internal libraries are not filtered out 
of dependency list
has caused the debbugs.gnu.org bug report #54760,
regarding import: hackage: Internal libraries are not filtered out of 
dependency list
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
54760: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54760
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: import: hackage: Internal libraries are not filtered out of dependency list Date: Thu, 07 Apr 2022 10:18:15 +0200 User-agent: Cyrus-JMAP/3.7.0-alpha0-386-g4174665229-fm-20220406.001-g41746652
The attoparsec package on hackage defines multiple internal libraries inside 
one package, named "attoparsec" and "attoparsec-internal", with the first 
depending on the latter. Importing attoparsec using `guix import hackage 
attoparsec` therefore yields the following erroneous package definition:

(define-public ghc-attoparsec
  (package
    (name "ghc-attoparsec")
    (version "0.14.4")
    (source
      (origin
        (method url-fetch)
        (uri (hackage-uri "attoparsec" version))
        (sha256
          (base32 "0v4yjz4qi8bwhbyavqxlhsfb1iv07v10gxi64khmsmi4hvjpycrz"))))
    (build-system haskell-build-system)
    (inputs (list ghc-scientific ghc-attoparsec-internal))
    (native-inputs
      (list ghc-quickcheck
            ghc-quickcheck-unicode
            ghc-tasty
            ghc-tasty-quickcheck
            ghc-vector))
    (arguments
      `(#:cabal-revision
        ("1" "149ihklmwnl13mmixq6iq5gzggkgqwsqrjlg2fshqwwbvbd4nn3r")))
    (home-page "https://github.com/bgamari/attoparsec";)
    (synopsis "Fast combinator parsing for bytestrings and text")
    (description
      "This package provides a fast parser combinator library, aimed 
particularly at
dealing efficiently with network protocols and complicated text/binary file
formats.")
    (license license:bsd-3)))

Note that `ghc-attoparsec-internal` is listed as a dependency of 
`ghc-attoparsec`. I believe that is incorrect, and that we should filter out 
the internal dependencies from `inputs`, just like we filter out 
`ghc-attoparsec` from the list of `native-inputs`.



--- End Message ---
--- Begin Message --- Subject: Re: import: hackage: Internal libraries are not filtered out of dependency list Date: Mon, 6 Jun 2022 13:30:42 +0200
Hi,

fix pushed to master as c3fbaee34548fbfb1617dc7fccc94c598efbd7a6 and following.

Cheers,
Lars



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]