Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 737236 - dev-vcs/darcs-2.16.1 : src/hscurl.c: error:
Summary: dev-vcs/darcs-2.16.1 : src/hscurl.c: error:
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL: http://bugs.darcs.net/issue2655
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-15 10:38 UTC by Toralf Förster
Modified: 2020-08-23 07:54 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.52 KB, text/plain)
2020-08-15 10:38 UTC, Toralf Förster
Details
dev-vcs:darcs-2.16.1:20200815-101757.log (dev-vcs:darcs-2.16.1:20200815-101757.log,62.08 KB, text/plain)
2020-08-15 10:38 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,169.43 KB, text/plain)
2020-08-15 10:38 UTC, Toralf Förster
Details
environment (environment,81.54 KB, text/plain)
2020-08-15 10:39 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,32.71 KB, application/x-bzip)
2020-08-15 10:39 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.83 KB, application/x-bzip)
2020-08-15 10:39 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-08-15 10:38:54 UTC
[240 of 240] Compiling Darcs.UI.Commands.Help ( src/Darcs/UI/Commands/Help.hs, dist/build/Darcs/UI/Commands/Help.o )

src/hscurl.c:50:12: error:
     error: expected ‘,’ or ‘;’ before ‘PACKAGE_VERSION’
       50 |   "darcs/" PACKAGE_VERSION " libcurl/" LIBCURL_VERSION;
          |            ^~~~~~~~~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-libressl-20200812-045757

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-10.2.0 *
clang version 10.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.1
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.9 (fallback)
  [3]   python3.8 (fallback)
  [4]   python3.6 (fallback)
  [5]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.45.2 *
The following VMs are available for generation-2:
The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Aug 15 09:05:45 AM UTC 2020
/var/db/repos/libressl	Mon Aug 10 09:13:35 AM UTC 2020

emerge -qpvO dev-vcs/darcs
[ebuild  N    ] dev-vcs/darcs-2.16.1  USE="curl hscolour terminfo threaded -doc -profile -test"
Comment 1 Toralf Förster gentoo-dev 2020-08-15 10:38:55 UTC
Created attachment 654754 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-08-15 10:38:57 UTC
Created attachment 654756 [details]
dev-vcs:darcs-2.16.1:20200815-101757.log
Comment 3 Toralf Förster gentoo-dev 2020-08-15 10:38:59 UTC
Created attachment 654758 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-08-15 10:39:01 UTC
Created attachment 654760 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-08-15 10:39:03 UTC
Created attachment 654762 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-08-15 10:39:04 UTC
Created attachment 654764 [details]
temp.tbz2
Comment 7 Sergei Trofimovich gentoo-dev 2020-08-15 20:02:39 UTC
It's probably a Cabal-3 change. Should use CURRENT_PACKAGE_VERSION:

"""
$ fgrep -R PACKAGE_VERSION .
./dist/build/autogen/cabal_macros.h:#ifndef CURRENT_PACKAGE_VERSION
./dist/build/autogen/cabal_macros.h:#define CURRENT_PACKAGE_VERSION "2.16.1"
./dist/build/autogen/cabal_macros.h:#endif /* CURRENT_PACKAGE_VERSION */
./src/hscurl.c:  "darcs/" PACKAGE_VERSION " libcurl/" LIBCURL_VERSION;
./CHANGELOG:   * 1824: avoid PACKAGE_VERSION under Windows
"""
Comment 8 Larry the Git Cow gentoo-dev 2020-08-15 20:15:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21bdeddb28b45dc1f9ca0c09496136f99c116d1b

commit 21bdeddb28b45dc1f9ca0c09496136f99c116d1b
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-08-15 20:15:00 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-08-15 20:15:00 +0000

    dev-vcs/darcs: fix PACKAG_VERSION definition
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/737236
    Package-Manager: Portage-3.0.2, Repoman-2.3.23
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-vcs/darcs/darcs-2.16.1.ebuild           |  2 ++
 dev-vcs/darcs/files/darcs-2.16.1-curl.patch | 25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+)