Bug 277948 - devel/gnulib: buildfailure due to environment collision when gmake in use
Summary: devel/gnulib: buildfailure due to environment collision when gmake in use
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-25 13:33 UTC by O. Hartmann
Modified: 2024-03-28 11:55 UTC (History)
3 users (show)

See Also:


Attachments
correct env patch for gmake (724 bytes, patch)
2024-03-25 13:33 UTC, O. Hartmann
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2024-03-25 13:33:46 UTC
Created attachment 249473 [details]
correct env patch for gmake

Host: recent CURRENT (FreeBSD 15.0-CURRENT #8 main-n268989-caccf6d3c008: Mon Mar 25 07:57:05 CET 2024 amd64), recent ports tree 

From https://git.freebsd.org/ports
   914d2a1589b8..727be8db1efd  main       -> origin/main

as of other ports having trouble of proper environments when gmake is in use,

one has to replace 
 do-build:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C doc info html
+       cd ${WRKSRC} && ${SETENVI} ${MAKE_ENV} ${MAKE_CMD} -C doc info html

(see patch) as a workaround. Otherwise build will fail.
Comment 1 Gleb Popov freebsd_committer freebsd_triage 2024-03-25 18:25:52 UTC
The port builds fine for me. What error are you getting?
Comment 2 Tatsuki Makino 2024-03-27 10:55:46 UTC
(In reply to Gleb Popov from comment #1)

It probably means that we have to keep up with changes like commit 572f2361692640bc27729191b1267aa3fcc354a7.

Instead of using a do-build target here, the following variables could be substituted.
But I say this without any testing :)

BUILD_WRKSRC= ${WRKSRC}/doc
ALL_TARGET= info html
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-03-28 11:52:50 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8e42e5a3a218aa452695884729dca0dae44a1b6e

commit 8e42e5a3a218aa452695884729dca0dae44a1b6e
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-03-28 11:48:03 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-03-28 11:51:07 +0000

    devel/gnulib: Simplify build stage

    PR:             277948
    Suggested by:   Tatsuki Makino <tatsuki_makino@hotmail.com>

 devel/gnulib/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Comment 4 Gleb Popov freebsd_committer freebsd_triage 2024-03-28 11:55:46 UTC
(In reply to Tatsuki Makino from comment #2)
You're absolutely right, Makino-san, I pushed your suggestion.

Olivier, does this fix the problem for you?