From owner-freebsd-questions@freebsd.org Sun Jan 3 19:41:20 2021 Return-Path: Delivered-To: freebsd-questions@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 654824DB2FD for ; Sun, 3 Jan 2021 19:41:20 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 4D88Jb3Phrz3rwg for ; Sun, 3 Jan 2021 19:41:19 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-ed1-x52d.google.com with SMTP id cw27so25083741edb.5 for ; Sun, 03 Jan 2021 11:41:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=yz/KB1BBnWtg34ClzavJeFw+7K6GZnohWnZVG10NjJE=; b=ZxXqPkZabXxX60oanhwWgll5I0jXQ2YXQdb0kwpmxhkAv6vzlqu0E+pchukafL1k5/ RW8lhfotok6ZpuMV/A9VmsFSKvHclApjixasVb5lpIMDzRAN51KzvNYLksQSd+onZc1D n6vMYN0jIp1Z1k6hf7fr5fp3yXTQHt/BCnFbdsHLt725MxrqIsN1ujyqchaiUOWa/W15 KrhuOBW+nz1MIGgZv3hxb+2mpvocIVMRsjMKXbLcSik+5RQ3AQN6lHA/cGvllcFWkSb4 +N2DIhB6sRkshDlHDl+rdA2V6ByfljGPKK++tF7XCX1g3IgGN2j/2aRjwdKosbKk+tD2 1miA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=yz/KB1BBnWtg34ClzavJeFw+7K6GZnohWnZVG10NjJE=; b=KIgNkDTjkjWAAsUVN2FvIjhYZjc9s7LsOtfKKdhfczW3qwE+stk8LOyYmOdUXUVf0U fKoq8FB21bAl/8lw8vpmUg8YEDCFsiPWxF2Xtwk7X6cD4gmhyP84pajR347qJBqiQWXT DE1j0Ks1h0E4snB9c3v+4a/RD9NAOMOYePNK+yyW/LoryOO8c1B5ZDpRgjenYEEHKXSo FXZTwacLmkWH2pBS9VbZrE5+vBSndDY16xOsljiZ8vZv+jwdegVF6rwQO3sETY1zwIe3 u3gNRHkjTD8KKu1ngDT/dPohR8c2ZB2RkHWMVwfy0Iwe7H5NTids4tHYbt3Ui1hV2So/ loVA== X-Gm-Message-State: AOAM531MPGgWA8nAcccq/FkQHn48FQ29U1YQDDxcj7IEnlQzK4lGTX5+ FVLYh5bDMNRoriUQ6NoukgJpog0Z5TzBVJl4cvTZDhK7xbiYng== X-Google-Smtp-Source: ABdhPJxQl7cMNwxOTXcH+gwz1nYRzLqk3O5cFV2PzCGhk6G1qxOjpI1J6GYmWzZvxPc57FgtUPgt5IwooOsGda1d2bU= X-Received: by 2002:aa7:d354:: with SMTP id m20mr66537071edr.195.1609702877095; Sun, 03 Jan 2021 11:41:17 -0800 (PST) MIME-Version: 1.0 From: Tomasz CEDRO Date: Sun, 3 Jan 2021 20:41:08 +0100 Message-ID: Subject: %%CONFIGURE_TARGET%% in Makefile and pkg-plist To: FreeBSD Questions Mailing List , freebsd-ports Cc: db@freebsd.org, pcc@gmx.net Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4D88Jb3Phrz3rwg X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=ZxXqPkZa; dmarc=none; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2a00:1450:4864:20::52d) smtp.mailfrom=tomek@cedro.info X-Spamd-Result: default: False [-3.16 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; DMARC_NA(0.00)[cedro.info]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::52d:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; NEURAL_HAM_SHORT(-0.86)[-0.862]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52d:from]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::52d:from]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MAILMAN_DEST(0.00)[freebsd-questions]; FREEMAIL_CC(0.00)[freebsd.org,gmx.net] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jan 2021 19:41:20 -0000 Hello world :-) The new port is comms/limesuite. The pkg-plist line affected is: %%OCTAVE%%lib/octave/%%OCTAVE_VERSION%%/site/oct/%%CONFIGURE_TARGET%%/LimeSuite.oct The problem is as reported in [1]. First variable %%OCTAVE_VERSION%% gets replaced and taken from .include "../../math/octave/Makefile.version" (I would really prefer to see currently installed octave here). Second variable %%CONFIGURE_TARGET%% does not get replaced in make package or gets replaced with invalid value in stage (i.e. 12.1 on 12.2 platform) leading to invalid pkg-plist generation and then problems with make package. According to .include or .include the default value of CONFIGURE_TARGET is ${HOSTARCH}-portbld-${OPSYS:tl}${OSREL}. But it does not get any default value that could be then replaced in pkg-plist. According to Porter's Handbook section 6.5.3. configure Script setting GNU_CONFIGURE or HAS_CONFIGURE should can "CONFIGURE_TARGETO verride default configure target. Default value is ${MACHINE_ARCH}-portbld-freebsd${OSREL}.". But it also does not seem to affect pkg-plist file. Target port uses cmake anyways. The problem is CONFIGURE_TARGET does not seem to be set in Makefile and properly affect the pkg-plist. The problem also is building on 12.2 somehow uses invalid value 12.1 on stage so setting its proper value in Makefile also creates problems on make package: work/stage/usr/local/lib/octave/5.2.0/site/oct/amd64-portbld-freebsd12.1/LimeSuite.oct Why CONFIGURE_TARGET is not set to any default value (anymore) in Makefile? Why stage uses amd64-portbld-freebsd12.1 not amd64-portbld-freebsd12.2 on 12.2-RELEASE? Any hints welcome :-) Tomek [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252350 [2] https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/building.html -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info