From owner-freebsd-haskell@freebsd.org Tue Feb 25 07:37:33 2020 Return-Path: Delivered-To: freebsd-haskell@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 44E66253782 for ; Tue, 25 Feb 2020 07:37:33 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48RW3v49Tkz40Z6 for ; Tue, 25 Feb 2020 07:37:31 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lf1-f54.google.com with SMTP id y17so5833023lfe.8 for ; Mon, 24 Feb 2020 23:37:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FyoZwSU2EKdKfphs8x+rYlsbIjSFxImqxWqmR4pc+so=; b=TggOZorORz0pTgAfJEC5HcrOw5yJ4oqN2KyCRFYlUYKJsQC4Gm+J6BxE4D5g+JbEtf J3CpzrgnI0H2fLx9RDRF2bGHxeXL84YL6jbMg2osth2KNm8hfd38IkRzsYaxTF7LCKKC sBipeiUbWXMjJiKNYlNP3nmFpjP8wNh9IZyudskLlCpY/9BLqhRugmICa93+mKAOgZ1H PgJh0pibpDc3zTlOoD7MKCKUOOqN0BKr4s7JXiTRXyV1aSH3ku+JKkYliko8T/bp1ju9 Y3hKlczuwRzE3k9z6sxfr4zkEuaMOolOQRmfxtLr21aKVqTEHEiYyHEBD6Ft4JIlPcMc uH3g== X-Gm-Message-State: APjAAAWLxd6pwViXZmn1xKjOMYA0BEt9E5czTVEgyvTanIccGQPDFW1V HYCYHpxy2l4uVtQldntEy9Ajvtjyn/PWaw== X-Google-Smtp-Source: APXvYqysT5dHKqDNVTo7InJZGYk56CxwmWy8iKNLNsR/PBqSGi/apaEjNo6outduhcYEyzI0ZDIchA== X-Received: by 2002:a05:6512:2035:: with SMTP id s21mr27997124lfs.99.1582616248915; Mon, 24 Feb 2020 23:37:28 -0800 (PST) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com. [209.85.167.43]) by smtp.gmail.com with ESMTPSA id i4sm3280744lfe.75.2020.02.24.23.37.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Feb 2020 23:37:28 -0800 (PST) Received: by mail-lf1-f43.google.com with SMTP id n25so8973198lfl.0 for ; Mon, 24 Feb 2020 23:37:28 -0800 (PST) X-Received: by 2002:a19:5508:: with SMTP id n8mr2538219lfe.105.1582616248506; Mon, 24 Feb 2020 23:37:28 -0800 (PST) MIME-Version: 1.0 References: <09e95df1-c606-9be8-2117-cbf93c52f71a@rawbw.com> In-Reply-To: From: Gleb Popov Date: Tue, 25 Feb 2020 11:37:04 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to port a Haskell project that doesn't use cabal, and uses stack instead? To: Yuri Cc: freebsd-haskell@freebsd.org X-Rspamd-Queue-Id: 48RW3v49Tkz40Z6 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.167.54 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-2.04 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-haskell@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[54.167.85.209.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-1.04)[ip: (-0.49), ipnet: 209.85.128.0/17(-2.99), asn: 15169(-1.67), country: US(-0.05)]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[54.167.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-haskell@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD-specific Haskell issues and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Feb 2020 07:37:33 -0000 On Tue, Feb 25, 2020 at 10:54 AM Yuri wrote: > On 2020-02-24 02:09, Gleb Popov wrote: > > > > This project has "package.yaml" file. It is a file for hpack program, > > which can be turned into a proper .cabal file. Start with > > > > USES=cabal:hpack > > > > Other than that, you'll need to add USE_GITHUB=yes to make the > > distfile fetch from GitHub. > > > It fails: > > cabal: Internal error in target matching. It should always be possible > to find > a syntax that's sufficiently qualified to give an unambiguous match. > However > when matching 'exe:alchemy' we found exe:alchemy (unknown-component) which > does not have an unambiguous syntax. The possible syntax and the targets > they > match are as follows: > 'exe:alchemy' which matches exe:alchemy (unknown-component), > :pkg:exe:lib:exe:file:alchemy (unknown-file) > According to package.yaml, the only executable provided by the package is called "alchemy-homomrlwr". cabal.mk defaults to EXECUTABLES=${PORTNAME}, so you have to override it in this case. > > Yuri > > > > > PORTNAME= alchemy > PORTVERSION= g20200223 > CATEGORIES= security haskell > > MAINTAINER= haskell@FreeBSD.org > COMMENT= X > > LICENSE= BSD3CLAUSE > > USES= cabal:hpack > USE_GITHUB= yes > GH_ACCOUNT= cpeikert > GH_PROJECT= ALCHEMY > GH_TAGNAME= 76b9fd7 > > .include > >