From owner-freebsd-ports@freebsd.org Tue May 22 16:09:58 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C734FEFB3C7 for ; Tue, 22 May 2018 16:09:58 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 232BA7D92E; Tue, 22 May 2018 16:09:58 +0000 (UTC) (envelope-from mpp302@gmail.com) Received: by mail-wm0-f46.google.com with SMTP id n10-v6so1332236wmc.1; Tue, 22 May 2018 09:09:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=db/Z7zMsB7Wi2eAwP2Of0ttO9TsOlnGRD2mJBS9GeCI=; b=RKtsLJZcebVzPgwqG3QuOKX48aI7umh6qKvzB1RLp8dv2L4uQqzQUPwJVPBtTT53SU BKvKerA5vAgzthIcKC24bGRHrPmN3UV7g+iz4etHbFx4lom8ZlZ2qZDi2JT6uWvS3gCQ WrYdSHZ5zST2J90J1oxGQNGYUrweuNowkIYsbg0/bse2ljaaGmTJD5kOcfGBuTTRKwGS 9Y+yfRcK+V62Eya8c5ymh0LcAj5jljiw4r/2e6NNyjsHZHu5n+In6OJdAEXuQq8qs9A3 6SK/2hhF2ffnpYb17qOTl9OQAQkK3T5zjcy3nf+Pwm+KfaO9Eig9qqtYhSQ4m3mq2hn2 QHhA== X-Gm-Message-State: ALKqPwfVWamqD8KSStF1gNwzXJs2wHAdW8QqeV7Ie3CLvSeEqDSzeCuq 6OddFGMcdKeb4CEcrPSaGuZcwEujx7A= X-Google-Smtp-Source: AB8JxZrDbl+8+ravLwXNEh18I21diHulADPwCjrWCUim4UXUXs6rxx9DG4SkOTVhs5JuIr3G6Ttp5g== X-Received: by 2002:a2e:3e0c:: with SMTP id l12-v6mr16167339lja.23.1527004995636; Tue, 22 May 2018 09:03:15 -0700 (PDT) Received: from oxy (89-76-8-18.dynamic.chello.pl. [89.76.8.18]) by smtp.gmail.com with ESMTPSA id v8-v6sm4060434lfg.87.2018.05.22.09.03.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 May 2018 09:03:15 -0700 (PDT) Date: Tue, 22 May 2018 18:04:19 +0200 From: Mateusz Piotrowski <0mp@FreeBSD.org> To: Luca Pizzamiglio Cc: Stefan Esser , FreeBSD Ports mailing list Subject: Re: Should we Rust warnings suggesting adding work/stage/usr/local/bin to the PATH? Message-ID: <20180522180419.44e0dca4@oxy> In-Reply-To: References: <20180517144251.17185e7e@oxy> <104d377a-b10f-8815-451c-15efd341ab02@freebsd.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2018 16:09:58 -0000 >On Thu, May 17, 2018 at 3:26 PM, Stefan Esser wrote: > >> Am 17.05.18 um 14:42 schrieb Mateusz Piotrowski: >> > When I build Rust packages I get warnings like this one: >> > >> >> warning: be sure to add `/usr/home/0mp/ports/games/ >> >> genact/work/stage/usr/local/bin` to your PATH to be able to run >> >> the installed binaries >> > >> > It is not very helpful when building ports. Do you think that we should >> > try to mute it by default? >> >> I have seen such a message when building a Haskell based port, too. >> >> Seems there are more languages (or build systems) that perform such >> a check and emit a misleading warning ... On Mon, 21 May 2018 23:38:35 +0200 Luca Pizzamiglio wrote: >I've no idea how, but it's obviously misleading and somehow wrong, we >should mute this message Folks on ##rust on Freenode suggested me to add the target directory to PATH: > PATH="$PATH:/path/to/bin" cargo install I've already looked at Uses/cargo.mk, but it's not obvious to me how to do it properly. We might add an extended PATH to CARGO_ENV but I don't know how to get the path that the program is going to be actually installed (like ${STAGEDIR}${PREFIX}/bin). I've not looked into Haskell code yet.