Bug 279143 - lang/gnat1{2,3}: Fix (again) build on systems without 32-bit libraries
Summary: lang/gnat1{2,3}: Fix (again) build on systems without 32-bit libraries
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Thierry Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-18 21:13 UTC by Olivier Certner
Modified: 2024-05-23 16:00 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (thierry)


Attachments
Fix (apply with 'git am') (845 bytes, patch)
2024-05-18 21:15 UTC, Olivier Certner
no flags Details | Diff
Same patch but for lang/gnat13 (901 bytes, patch)
2024-05-23 12:35 UTC, Olivier Certner
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Certner freebsd_committer freebsd_triage 2024-05-18 21:13:47 UTC
Build on systems without 32-bit libraries has been broken (again) since commit 8bb96e3f34f057bf41034902075e2ced885db33d.

Patch to be attached after bug creation.

Thanks.
Comment 1 Olivier Certner freebsd_committer freebsd_triage 2024-05-18 21:15:53 UTC
Created attachment 250801 [details]
Fix (apply with 'git am')
Comment 2 Thierry Thomas freebsd_committer freebsd_triage 2024-05-19 10:14:51 UTC
Committed, thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-05-19 10:14:55 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=48f2a1c5a879f3ceff83a3e7564df12f8a2c6039

commit 48f2a1c5a879f3ceff83a3e7564df12f8a2c6039
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-05-19 10:07:16 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-05-19 10:14:44 +0000

    lang/gnat12: fix build on systems without 32-bit libraries

    Disable MULTILIB in this case.

    PR:             279143
    Reported by:    olce@

 lang/gnat12/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 4 Olivier Certner freebsd_committer freebsd_triage 2024-05-21 07:57:07 UTC
Thanks!
Comment 5 Alastair Hogge 2024-05-22 04:20:08 UTC
(In reply to Olivier Certner from comment #0)

That looks my mistake, sorry about that.
Comment 6 Alastair Hogge 2024-05-23 09:44:34 UTC
(In reply to commit-hook from comment #3)

I think this fix will need propagation into lang/gnat13.
Comment 7 Olivier Certner freebsd_committer freebsd_triage 2024-05-23 11:04:48 UTC
(In reply to Alastair Hogge from comment #5)

No problem, this can happen unnoticed, especially when doing refactoring.

That said, although I seem to understand why you split the original sole `.if exists(/usr/lib32/libc.so)` into multiple ones (to have clear sections in the order recommended by the porters handbook), I probably wouldn't have done it since it obscures what is done or not in this and the other case, and is probably an important factor in the fact that introduction of this (minor) bug.  Perhaps I'm acting against the law, but I view the porters' order as a guidance rather than an absolute requirement, and don't hesitate to depart from it when it goes again clear code/easy understanding.

(In reply to Alastair Hogge from comment #6)

Indeed.  I had thought about doing that, but then simply forgot.

(In reply to Thierry Thomas from comment #2)

Since the patch applies to lang/gnat13 as well, could you please commit it for that port also?

Thanks and regards.
Comment 8 Olivier Certner freebsd_committer freebsd_triage 2024-05-23 12:35:12 UTC
Created attachment 250898 [details]
Same patch but for lang/gnat13

(In reply to Olivier Certner from comment #7)

Typo here:
> ...is probably an important factor in the fact that introduction of this (minor) bug.
Should read:
> ...is probably an important factor in the fact that this (minor) bug could be introduced unnoticed.

I spoke a little bit too soon concerning applying the attached patch to lang/gnat13: This doesn't work out of the box because of a context line.

So, I've generated a new one directly against lang/gnat13.  Please apply with 'git am'.

Thanks and regards.
Comment 9 Olivier Certner freebsd_committer freebsd_triage 2024-05-23 12:36:42 UTC
Re-opening to deal with lang/gnat13.
Comment 10 commit-hook freebsd_committer freebsd_triage 2024-05-23 15:51:01 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9161cb3bced192dbe7765456685b035f28eb449b

commit 9161cb3bced192dbe7765456685b035f28eb449b
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-05-23 15:47:09 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-05-23 15:47:09 +0000

    lang/gnat13: fix on systems without 32-bit libraries

    Same patch than GNAT12.

    PR:             279143
    Reported by:    agh (at) riseup.net

 lang/gnat13/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 11 commit-hook freebsd_committer freebsd_triage 2024-05-23 15:59:02 UTC
A commit in branch 2024Q2 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=39da018952c27b683fb71fba8020e1f9d3217a32

commit 39da018952c27b683fb71fba8020e1f9d3217a32
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-05-23 15:47:09 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-05-23 15:57:18 +0000

    lang/gnat13: fix on systems without 32-bit libraries

    Same patch than GNAT12.

    PR:             279143
    Reported by:    agh (at) riseup.net

    (cherry picked from commit 9161cb3bced192dbe7765456685b035f28eb449b)

 lang/gnat13/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 12 commit-hook freebsd_committer freebsd_triage 2024-05-23 15:59:04 UTC
A commit in branch 2024Q2 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=83bc3ce78d66e405c9a14eba78075458ad202609

commit 83bc3ce78d66e405c9a14eba78075458ad202609
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-05-19 10:07:16 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2024-05-23 15:53:01 +0000

    lang/gnat12: fix build on systems without 32-bit libraries

    Disable MULTILIB in this case.

    PR:             279143
    Reported by:    olce@

    (cherry picked from commit 48f2a1c5a879f3ceff83a3e7564df12f8a2c6039)

 lang/gnat12/Makefile | 2 ++
 1 file changed, 2 insertions(+)
Comment 13 Thierry Thomas freebsd_committer freebsd_triage 2024-05-23 16:00:32 UTC
Just committed, and also to 2024Q2: thanks for the reminder!