From owner-freebsd-ports@freebsd.org Wed Dec 30 12:14:49 2020 Return-Path: Delivered-To: freebsd-ports@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 641D04C0E7B for ; Wed, 30 Dec 2020 12:14:49 +0000 (UTC) (envelope-from garga.bsd@gmail.com) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4D5VbD5Q6dz3JDc for ; Wed, 30 Dec 2020 12:14:48 +0000 (UTC) (envelope-from garga.bsd@gmail.com) Received: by mail-qk1-x729.google.com with SMTP id 22so13676767qkf.9 for ; Wed, 30 Dec 2020 04:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:to:references:from:subject:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=/ZuWC0GzuE80+jLJcPh/VI9XeuuYZ9Xmok7xwkWN8bw=; b=KFklD3QKw5IApplGCn10I78r+YhozYQ85ygKDIqFoswamUyusgVhczWrbmriYqdEsT o2jVOcpf60O7wZ1sSt272C8ofFEDm1W+T5fw0/CsND806jitrOwcbN7AqzM+kMxZTm5v 6R1MzuaSciyJYE/koN9Pe6qIr+3FKc8wxFY+cDMdS92bkTCsc0IGjR++CYk7CcpVnjIb 3rJtceu2/wEp2ijnXJX/9hLjciHtqokU0bo3Q2WABLLdOpYtMYH4Fp19eS8Tu5h47Kum 7vqDmeGr8iUT5YWQvsDUmCPQrgYSwS4usgVknkJ6ItTTQQXnq8/ea7l1mmR3CDRxgYw9 MksA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:references:from:subject:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/ZuWC0GzuE80+jLJcPh/VI9XeuuYZ9Xmok7xwkWN8bw=; b=CHBzZ1Gmv5vzRrpbMdeifWWt3MpyKr5yg5mDvZUbxcqOPKjljBViy7ElC0b6IO91bx XZJoG4XCoJD7+cj/9K8nK0eX0vcCIrdoWHkJ2ZooPFiVXifnmwHKjDpjZvmy9O0YtFE1 SGl+UTFubMcPHKFlIK2EDmhWC67GNH9u91gZI6xQjWvO6+/bdORMzitfoV8qutG5NRGn BpwHZTWzhl4vZ3u9jFRqeOHln7ai+lYcgRjNkWHycwBldWTB1DSOARITRVhh16tT0/fL ARpHUKlzGjgrzXPMDuFx72Zm4dzpxX31NFD/DgP2Mj0DDQA5sIeuq5DAZa2o+R4jBshW ZIMg== X-Gm-Message-State: AOAM530gz8rLDuapeXwnrofV2jl7ruuVTgwpB0DKIx/bhlobdvcvdM4M 0kF0pazyma8Uy0YSES/sg2d11u7XsSPbbw== X-Google-Smtp-Source: ABdhPJxFFyvSmg5yxncgozwlku+vZaXCNH9+8BYeAFgXxXa7OybNszzD0Vv5Jr0mDEzvtZgaZTHISw== X-Received: by 2002:a05:620a:983:: with SMTP id x3mr54873515qkx.231.1609330487569; Wed, 30 Dec 2020 04:14:47 -0800 (PST) Received: from mbp.home (200-12-5-188.rev.tribenet.com.br. [200.12.5.188]) by smtp.gmail.com with ESMTPSA id z40sm23405636qtz.81.2020.12.30.04.14.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Dec 2020 04:14:46 -0800 (PST) Sender: Renato Botelho To: Nuno Teixeira , freebsd-ports@freebsd.org References: From: Renato Botelho Subject: Re: Correct syntax for CFLAGS to change a -DCONFIG_FILE_PATH=... Message-ID: Date: Wed, 30 Dec 2020 09:14:44 -0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4D5VbD5Q6dz3JDc X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=KFklD3QK; dmarc=none; spf=pass (mx1.freebsd.org: domain of gargabsd@gmail.com designates 2607:f8b0:4864:20::729 as permitted sender) smtp.mailfrom=gargabsd@gmail.com X-Spamd-Result: default: False [-3.20 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FORGED_SENDER(0.30)[garga@FreeBSD.org,gargabsd@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[garga@FreeBSD.org,gargabsd@gmail.com]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::729:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[FreeBSD.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::729:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::729:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2020 12:14:49 -0000 On 30/12/20 05:31, Nuno Teixeira wrote: > Hello, > > Recently upstream changed is example.c to have: > > #ifndef CONFIG_FILE_PATH > #define CONFIG_FILE_PATH "./example.conf" > #endif > > I found a way to change it in example port Makefile: > > CFLAGS+= -https://github.com/johnmehr/gitup/pull/17=\\\"${LOCALBASE}/etc/example.conf\\\" > > It works fine. > > Am I doing the correct way and correct syntax? Those "\\\" ... "\\\" make > me some confusion. I've opened a PR [1] to improve gitup's Makefile and after it's accepted you will be able to use: MAKE_ENV+= CONFIG_FILE_PATH=${LOCALBASE}/etc/gitup.conf [1] https://github.com/johnmehr/gitup/pull/17 -- Renato Botelho