Re: git: f98beca9766c - main - devel/glib20: add DOCS option

From: Mark Millard <marklmi_at_yahoo.com>
Date: Thu, 14 Apr 2022 17:12:38 UTC
On 2022-Apr-14, at 00:44, Mark Millard <marklmi@yahoo.com> wrote:

> On 2022-Apr-13, at 19:14, Mark Millard <marklmi@yahoo.com> wrote:
> 
>> From: Craig Leres <leres_at_freebsd.org> wrote on
>> Date: Wed, 13 Apr 2022 09:54:23 -0700 :
>> 
>> On 4/13/22 03:34, Adriaan de Groot wrote:
>>>> The branch main has been updated by adridg:
>>>> 
>>>> URL:
>>> https://cgit.FreeBSD.org/ports/commit/?id=f98beca9766c056a826c5ad0f6b3996e80a4528c
>>> 
>>>> 
>>>> commit f98beca9766c056a826c5ad0f6b3996e80a4528c
>>>> Author:     Adriaan de Groot<adridg_at_FreeBSD.org>
>>>> AuthorDate: 2022-04-11 23:16:38 +0000
>>>> Commit:     Adriaan de Groot<adridg_at_FreeBSD.org>
>>>> CommitDate: 2022-04-13 10:34:08 +0000
>>>> 
>>>>    devel/glib20: add DOCS option
>>>> 
>>>>    There is documentation possible with glib, using gtk-doc.
>>>>    Add a knob and the plist bits. The documentation depends
>>>>    on the tests, though: see glib issue
>>>> 
>>> https://gitlab.gnome.org/GNOME/glib/-/issues/2430
>>> 
>>>> 
>>>>    Futz a bit with the options and dependencies; TEST only needs
>>>>    dbus for the build, and the docs need the tests.
>>> 
>>> This version did not build with me until I turned off DOCS and TEST 
>>> (12.3-RELEASE/amd64). Now I only have MANPAGES enabled.
>> 
>> FYI: I did not have such problems for . . .
>> 
>> ---Begin OPTIONS List---
>> ===> The following configuration options are available for glib-2.70.4_4,2:
>>    DEBUG=off: Build with debugging support
>>    DOCS=on: Build and/or install documentation
>>    FAM_ALTBACKEND=off: Alternate file monitor backend
>>    MANPAGES=on: Build and/or install manual pages
>>    NLS=on: Native Language Support
>>    TEST=on: Build and/or run tests
>> ===> Use 'make config' to modify these settings
>> ---End OPTIONS List---
>> 
>> For either:
>> 
>> Poudriere version: poudriere-git-3.3.99.20211130
>> Host OSVERSION: 1400053
>> Jail OSVERSION: 1300139
>> 
>> or:
>> 
>> Poudriere version: poudriere-git-3.3.99.20211130
>> Host OSVERSION: 1400053
>> Jail OSVERSION: 1400053
>> 
>> on amd64 or on aarch64.
> 
> I just looked at the on-going 123amd64-default bulk -a for 12.3 at:
> 
> http://beefy6.nyi.freebsd.org/build.html?mastername=123amd64-default&build=152bbb33232b
> 
> and it shows devel/glib20 as having built just fine, with log file: 
> 
> http://beefy6.nyi.freebsd.org/data/123amd64-default/152bbb33232b/logs/glib-2.70.4_4,2.log
> 
> That log file shows, in part:
> 
> =>> Building devel/glib20
> build started at Thu Apr 14 01:27:22 UTC 2022
> port directory: /usr/ports/devel/glib20
> package name: glib-2.70.4_4,2
> building for: FreeBSD 123amd64-default-job-04 12.3-RELEASE-p5 FreeBSD 12.3-RELEASE-p5 amd64
> maintained by: desktop@FreeBSD.org
> Makefile ident: 
> Poudriere version: 3.2.8-21-g883afb07
> Host OSVERSION: 1400050
> Jail OSVERSION: 1203000
> 
> . . .
> 
> ---Begin OPTIONS List---
> ===> The following configuration options are available for glib-2.70.4_4,2:
>     DEBUG=off: Build with debugging support
>     DOCS=on: Build and/or install documentation
>     FAM_ALTBACKEND=off: Alternate file monitor backend
>     MANPAGES=on: Build and/or install manual pages
>     NLS=on: Native Language Support
>     TEST=on: Build and/or run tests
> ===> Use 'make config' to modify these settings
> ---End OPTIONS List---
> 
> . . .
> 
> =======================<phase: package        >============================
> ===>  Building package for glib-2.70.4_4,2
> install -l rs /.npkg/All/glib-2.70.4_4,2.pkg /.npkg/All/glib-2.70.4_4,2.txz
> ===========================================================================
> =>> Cleaning up wrkdir
> ===>  Cleaning for glib-2.70.4_4,2
> build of devel/glib20 | glib-2.70.4_4,2 ended at Thu Apr 14 01:49:24 UTC 2022
> build time: 00:22:02
> 
> So it is not just me or specific to my releng/13.0 or main
> [so: 14] type of context that is building successfully as-is:
> The official build servers are building
> 
> 
> NOTES:
> 
> My poudriere builds use ALLOW_PARALLEL_JOBS= and also one
> builder per hardware thread. So it could reach the hardware
> threaad count squared or so for the load average. The FreeBSD
> build servers constrain the parallelism greatly but still
> allow some internal to a builder, 2 hardware threads as I
> remember, and something like one builder for each pair of
> hardware threads.
> 
> For my contexts:
> amd64:   32 hardware threads
> aarch64: 16 hardware threads
> 
> While I've got things set up for main [so: 14], stable/13 ,
> releng/13.0 , and have done some releng/13.1 preparation,
> relative to booting and operating, I've no context for 12.x
> at all --and have not since around when CURRENT became 14.
> 
> So it is unlikely that I'll be doing my own experiments
> booted into 12.3. If I did anything it would more likely
> be a 12.3 jail used while booted into something I have set
> up as a boot context already, much like the FreeBSD build
> servers do.

I finally got the problem via the poudriere jail:

# poudriere jail -jmain-CA7 -i
Jail name:         main-CA7
Jail version:      14.0-CURRENT
Jail arch:         arm.armv7
Jail method:       null
Jail mount:        /usr/obj/DESTDIRs/main-CA7-poud
. . .

where:

=>> Building devel/glib20
build started at Thu Apr 14 07:32:40 PDT 2022
port directory: /usr/ports/devel/glib20
package name: glib-2.70.4_4,2
building for: FreeBSD CA72_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT arm
maintained by: desktop@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root  wheel  3737 Apr 13 22:06 /usr/ports/devel/glib20/Makefile
Ports top last git commit: 032c4d2c7fe9
Ports top unclean checkout: yes
Port dir last git commit: f98beca9766c
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.3.99.20211130
Host OSVERSION: 1400053
Jail OSVERSION: 1400053
. . .
ld: error: unable to find library -lgdbus-example-objectmanager
ld: error: unable to find library -lgio-2.0
ld: error: unable to find library -lgobject-2.0
cc: error: linker command failed with exit code 1 (use -v to see invocation)
. . .


This was on the same aarch64 system as the builds that
worked (but were targeting aarch64, not armv7). Same
use of ALLOW_PARALLEL_JOBS= and allowing all 16 hardware
threads to have a builder as well.

Side note:

docs/reference/gio/meson.build:227: WARNING: Project targeting '>= 0.49.2' but tried to use feature introduced in '0.52.0': check arg in gnome.gtkdoc.
docs/reference/glib/meson.build:91: WARNING: Project targeting '>= 0.49.2' but tried to use feature introduced in '0.52.0': check arg in gnome.gtkdoc.
docs/reference/gobject/meson.build:54: WARNING: Project targeting '>= 0.49.2' but tried to use feature introduced in '0.52.0': check arg in gnome.gtkdoc.


===
Mark Millard
marklmi at yahoo.com