[snap] Trying to build chromium snap for core22: pkg-config fails.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
chromium-browser (Ubuntu) |
Invalid
|
Undecided
|
Nathan Teodosio |
Bug Description
I checked out the "dev" branch of chromium-browser from launchpad and did what seemed necessary to update snapcraft.yaml to build with snapcraft 7 for core22. The only change of any significance was to change the extension from "gnome-3-38" to the core22-specific "gnome" extension. I started the build and it ran for quite some time (in a persistent 22.04 LXD container) until:
2022-08-18 09:11:00.869 :: + OUT=out/Release
2022-08-18 09:11:00.869 :: + mkdir -p out/Release
2022-08-18 09:11:00.888 :: + cp /root/snaps/
2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
2022-08-18 09:11:00.922 :: + cd /usr/lib/
2022-08-18 09:11:00.922 :: + ln -s libdrm.pc libdrm-
2022-08-18 09:11:00.935 :: + cd -
2022-08-18 09:11:00.935 :: /root/snaps/
2022-08-18 09:11:00.935 :: + out/Release/gn gen out/Release
2022-08-18 09:11:07.112 :: ERROR at //build/
2022-08-18 09:11:07.112 :: pkgresult = exec_script(
2022-08-18 09:11:07.113 :: ^----------
2022-08-18 09:11:07.113 :: Current dir: /root/snaps/
2022-08-18 09:11:07.113 :: Command: python3 /root/snaps/
2022-08-18 09:11:07.113 :: Returned 1.
2022-08-18 09:11:07.113 :: stderr:
2022-08-18 09:11:07.113 ::
2022-08-18 09:11:07.113 :: Could not run pkg-config.
2022-08-18 09:11:07.113 ::
2022-08-18 09:11:07.113 :: See //third_
2022-08-18 09:11:07.113 :: pkg_config(
2022-08-18 09:11:07.113 :: ^------
2022-08-18 09:11:07.114 :: See //BUILD.gn:529:7: which caused the file to be included.
2022-08-18 09:11:07.114 :: "//third_
2022-08-18 09:11:07.114 :: ^------
2022-08-18 09:11:07.243 'override-build' in part 'chromium' failed with code 1.
Review the scriptlet and make sure it's correct.
I verified that the pkg-config utility is installed in the container; I can only suspect that this error is related to switching to the core22 gnome extension. I am open to suggestions.
summary: |
- Trying to build chromium snap for core22: pkg-config fails. + [snap] Trying to build chromium snap for core22: pkg-config fails. |
Changed in chromium-browser (Ubuntu): | |
assignee: | nobody → Nathan Teodosio (nteodosio) |
Robert P. J. Day (rpjday) wrote : | #1 |
Nathan Teodosio (nteodosio) wrote : | #2 |
Thanks for the bug report, Robert.
My first attempt would be adding a pkg-config line to the build-packages of chromium. Does it make sense to you? If yes, could you please try that?
Robert P. J. Day (rpjday) wrote : Re: [Bug 1986925] Re: [snap] Trying to build chromium snap for core22: pkg-config fails. | #3 |
OK, I'm trying that now, but I would be astonished if that was the solution
as pkg-config is already installed, either because I installed it manually
at some point, or maybe it was installed by an earlier snap, who knows? But
it's definitely there so adding it to "build-packages" should make no
difference.
On Thu, Aug 18, 2022 at 9:30 AM Nathan Teodosio <email address hidden>
wrote:
> Thanks for the bug report, Robert.
>
> My first attempt would be adding a pkg-config line to the build-packages
> of chromium. Does it make sense to you? If yes, could you please try
> that?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> [snap] Trying to build chromium snap for core22: pkg-config fails.
>
> Status in chromium-browser package in Ubuntu:
> New
>
> Bug description:
> I checked out the "dev" branch of chromium-browser from launchpad and
> did what seemed necessary to update snapcraft.yaml to build with
> snapcraft 7 for core22. The only change of any significance was to
> change the extension from "gnome-3-38" to the core22-specific "gnome"
> extension. I started the build and it ran for quite some time (in a
> persistent 22.04 LXD container) until:
>
> 2022-08-18 09:11:00.869 :: + OUT=out/Release
>
> 2022-08-18 09:11:00.869 :: + mkdir -p out/Release
>
> 2022-08-18 09:11:00.888 :: + cp /root/snaps/
> args.gn out/Release/
> 2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 09:11:00.922 :: + cd /usr/lib/
>
> 2022-08-18 09:11:00.922 :: + ln -s libdrm.pc libdrm-
>
> 2022-08-18 09:11:00.935 :: + cd -
>
> 2022-08-18 09:11:00.935 ::
> /root/snaps/
>
> 2022-08-18 09:11:00.935 :: + out/Release/gn gen out/Release
>
> 2022-08-18 09:11:07.112 :: ERROR at
> //build/
> code.
>
> 2022-08-18 09:11:07.112 :: pkgresult =
> exec_script(
> 2022-08-18 09:11:07.113 :: ^----------
>
> 2022-08-18 09:11:07.113 :: Current dir:
> /root/snaps/
> 2022-08-18 09:11:07.113 :: Command: python3
> /root/snaps/
> -p /snap/gnome-
>
> 2022-08-18 09:11:07.113 :: Returned 1.
>
> 2022-08-18 09:11:07.113 :: stderr:
>
> 2022-08-18 09:11:07.113 ::
>
> 2022-08-18 09:11:07.113 :: Could not run pkg-config.
>
> 2022-08-18 09:11:07.113 ::
>
> 2022-08-18 09:11:07.113 :: See
> //third_
> 2022-08-18 09:11:07.113 :: pkg_config(
>
> 2022-08-18 09:11:07.113 :: ^------
>
> 2022-08-18 09:11:07.114 :: See //BUILD.gn:529:7: which caused the file
> to be included.
> 2022-08-18 09:11:07.114 ::
> "//third_
> 2022-08-18 09:11:07.114 ::
...
Robert P. J. Day (rpjday) wrote : | #4 |
Same result:
2022-08-18 14:13:31.315 :: + OUT=out/Release
2022-08-18 14:13:31.316 :: + mkdir -p out/Release
2022-08-18 14:13:31.335 :: + cp /root/snaps/
args.gn out/Release/
2022-08-18 14:13:31.367 :: + '[' amd64 = armhf ']'
2022-08-18 14:13:31.367 :: + '[' amd64 = armhf ']'
2022-08-18 14:13:31.368 :: + cd /usr/lib/
2022-08-18 14:13:31.368 :: + ln -s libdrm.pc libdrm-
2022-08-18 14:13:31.389 :: + cd -
2022-08-18 14:13:31.389 ::
/root/snaps/
2022-08-18 14:13:31.389 :: + out/Release/gn gen out/Release
2022-08-18 14:13:37.548 :: ERROR at
//build/
code.
2022-08-18 14:13:37.549 :: pkgresult = exec_script(
args, "value")
2022-08-18 14:13:37.549 :: ^----------
2022-08-18 14:13:37.549 :: Current dir:
/root/snaps/
2022-08-18 14:13:37.549 :: Command: python3
/root/snaps/
-p /snap/gnome-
2022-08-18 14:13:37.549 :: Returned 1.
2022-08-18 14:13:37.549 :: stderr:
2022-08-18 14:13:37.549 ::
2022-08-18 14:13:37.550 :: Could not run pkg-config.
2022-08-18 14:13:37.550 ::
2022-08-18 14:13:37.550 :: See
//third_
2022-08-18 14:13:37.550 :: pkg_config(
2022-08-18 14:13:37.550 :: ^------
2022-08-18 14:13:37.550 :: See //BUILD.gn:529:7: which caused the file to
be included.
2022-08-18 14:13:37.550 ::
"//third_
2022-08-18 14:13:37.550 ::
^------
2022-08-18 14:13:37.782 'override-build' in part 'chromium' failed with
code 1.
Review the scriptlet and make sure it's correct.
2022-08-18 14:13:37.867 Traceback (most recent call last):
2022-08-18 14:13:37.867 File
"/snap/
line 170, in run
2022-08-18 14:13:37.867 aex.execute(action, stdout=stream,
stderr=stream)
2022-08-18 14:13:37.867 File
"/snap/
line 301, in execute
2022-08-18 14:13:37.867 self._executor.
stderr=stderr)
2022-08-18 14:13:37.867 File
"/snap/
line 126, in execute
2022-08-18 14:13:37.867 self._run_
stderr=stderr)
2022-08-18 14:13:37.868 File
"/snap/
line 189, in _run_action
2022-08-18 14:13:37.868 handler.
stderr=stderr)
2022-08-18 14:13:37.868 File
"/snap/
line 161, in run_action
2022-08-18 14:13:37.868 state = handler(step_info, stdout=stdout,
stderr=stderr)
2022-08-18 14:13:37.868 File
"/snap/
Robert P. J. Day (rpjday) wrote : | #5 |
Hang on, look at that hard-coded directory name: "/snap/
Since the gnome extension under core 22 is named just "gnome", any
hardcoded names to the old extension should fail.
On Thu, Aug 18, 2022 at 10:15 AM Robert Day <email address hidden>
wrote:
> Same result:
>
> 2022-08-18 14:13:31.315 :: + OUT=out/Release
>
> 2022-08-18 14:13:31.316 :: + mkdir -p out/Release
>
> 2022-08-18 14:13:31.335 :: + cp /root/snaps/
> args.gn out/Release/
> 2022-08-18 14:13:31.367 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 14:13:31.367 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 14:13:31.368 :: + cd /usr/lib/
>
> 2022-08-18 14:13:31.368 :: + ln -s libdrm.pc libdrm-
>
> 2022-08-18 14:13:31.389 :: + cd -
>
> 2022-08-18 14:13:31.389 ::
> /root/snaps/
>
> 2022-08-18 14:13:31.389 :: + out/Release/gn gen out/Release
>
> 2022-08-18 14:13:37.548 :: ERROR at
> //build/
> code.
>
> 2022-08-18 14:13:37.549 :: pkgresult = exec_script(
> args, "value")
> 2022-08-18 14:13:37.549 :: ^----------
>
> 2022-08-18 14:13:37.549 :: Current dir:
> /root/snaps/
> 2022-08-18 14:13:37.549 :: Command: python3
> /root/snaps/
> -p /snap/gnome-
>
> 2022-08-18 14:13:37.549 :: Returned 1.
>
> 2022-08-18 14:13:37.549 :: stderr:
>
> 2022-08-18 14:13:37.549 ::
>
> 2022-08-18 14:13:37.550 :: Could not run pkg-config.
>
> 2022-08-18 14:13:37.550 ::
>
> 2022-08-18 14:13:37.550 :: See
> //third_
> 2022-08-18 14:13:37.550 :: pkg_config(
>
> 2022-08-18 14:13:37.550 :: ^------
>
> 2022-08-18 14:13:37.550 :: See //BUILD.gn:529:7: which caused the file to
> be included.
> 2022-08-18 14:13:37.550 ::
> "//third_
> 2022-08-18 14:13:37.550 ::
> ^------
> 2022-08-18 14:13:37.782 'override-build' in part 'chromium' failed with
> code 1.
> Review the scriptlet and make sure it's correct.
>
> 2022-08-18 14:13:37.867 Traceback (most recent call last):
>
> 2022-08-18 14:13:37.867 File
> "/snap/
> line 170, in run
>
> 2022-08-18 14:13:37.867 aex.execute(action, stdout=stream,
> stderr=stream)
> 2022-08-18 14:13:37.867 File
> "/snap/
> line 301, in execute
>
> 2022-08-18 14:13:37.867 self._executor.
> stderr=stderr)
> 2022-08-18 14:13:37.867 File
> "/snap/
> line 126, in execute
>
> 2022-08-18 14:13:37.867 self._run_
> stderr=stderr)
> 2022-08-18 14:13:37.868 File
> "/snap/
Olivier Tilloy (osomon) wrote : | #6 |
Yes, you will need to update build/args.gn where there's a hardcoded path to the pkg-config binary (https:/
Robert P. J. Day (rpjday) wrote : | #7 |
I made that change, it still failed:
2022-08-18 14:31:54.099 :: Current dir: /root/snaps/
2022-08-18 14:31:54.099 :: Command: python3 /root/snaps/
2022-08-18 14:31:54.099 :: Returned 1.
2022-08-18 14:31:54.099 :: stderr:
2022-08-18 14:31:54.099 ::
2022-08-18 14:31:54.099 :: Could not run pkg-config.
but that appears to be because this newer gnome does not supply such an executable; there is no "pkg-config" under /snap/gnome-
Robert P. J. Day (rpjday) wrote : | #8 |
Just deleting that line seemed to allow the build to progress further, but now I have a slew of errors; I'll post a snippet here, then must run off but will be back in a bit:
2022-08-18 14:42:14.617 :: In file included from ../../third_
2022-08-18 14:42:14.617 :: In file included from ../../third_
2022-08-18 14:42:14.617 :: In file included from ../../third_
2022-08-18 14:42:14.617 :: In file included from ../../third_
2022-08-18 14:42:14.617 :: In file included from ../../third_
2022-08-18 14:42:14.617 :: In file included from ../../third_
2022-08-18 14:42:14.617 :: In file included from ../../third_
2022-08-18 14:42:14.617 :: /usr/include/
2022-08-18 14:42:14.618 :: callback = wl_proxy_
2022-08-18 14:42:14.618 :: ^
2022-08-18 14:42:14.618 :: /usr/include/
2022-08-18 14:42:14.618 :: registry = wl_proxy_
2022-08-18 14:42:14.618 :: ^
2022-08-18 14:42:14.618 :: /usr/include/
Nathan Teodosio (nteodosio) wrote : | #9 |
> but that appears to be because this newer gnome does not supply such an executable; there is no "pkg-config" under /snap/gnome-
Oh, so this time pkg-config in build-packages could solve it? Probably you will have to remove the pkg_config line from args.gn, though.
Robert P. J. Day (rpjday) wrote : | #10 |
That's what I did, but that's also when I got the errors I included in my
previous comment. I'm rebuilding just to make sure those errors are
reproducible.
On Thu, Aug 18, 2022 at 12:45 PM Nathan Teodosio <email address hidden>
wrote:
> > but that appears to be because this newer gnome does not supply such
> an executable; there is no "pkg-config" under
> /snap/gnome-
> under gnome-3-38.
>
> Oh, so this time pkg-config in build-packages could solve it? Probably
> you will have to remove the pkg_config line from args.gn, though.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> [snap] Trying to build chromium snap for core22: pkg-config fails.
>
> Status in chromium-browser package in Ubuntu:
> New
>
> Bug description:
> I checked out the "dev" branch of chromium-browser from launchpad and
> did what seemed necessary to update snapcraft.yaml to build with
> snapcraft 7 for core22. The only change of any significance was to
> change the extension from "gnome-3-38" to the core22-specific "gnome"
> extension. I started the build and it ran for quite some time (in a
> persistent 22.04 LXD container) until:
>
> 2022-08-18 09:11:00.869 :: + OUT=out/Release
>
> 2022-08-18 09:11:00.869 :: + mkdir -p out/Release
>
> 2022-08-18 09:11:00.888 :: + cp /root/snaps/
> args.gn out/Release/
> 2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 09:11:00.922 :: + cd /usr/lib/
>
> 2022-08-18 09:11:00.922 :: + ln -s libdrm.pc libdrm-
>
> 2022-08-18 09:11:00.935 :: + cd -
>
> 2022-08-18 09:11:00.935 ::
> /root/snaps/
>
> 2022-08-18 09:11:00.935 :: + out/Release/gn gen out/Release
>
> 2022-08-18 09:11:07.112 :: ERROR at
> //build/
> code.
>
> 2022-08-18 09:11:07.112 :: pkgresult =
> exec_script(
> 2022-08-18 09:11:07.113 :: ^----------
>
> 2022-08-18 09:11:07.113 :: Current dir:
> /root/snaps/
> 2022-08-18 09:11:07.113 :: Command: python3
> /root/snaps/
> -p /snap/gnome-
>
> 2022-08-18 09:11:07.113 :: Returned 1.
>
> 2022-08-18 09:11:07.113 :: stderr:
>
> 2022-08-18 09:11:07.113 ::
>
> 2022-08-18 09:11:07.113 :: Could not run pkg-config.
>
> 2022-08-18 09:11:07.113 ::
>
> 2022-08-18 09:11:07.113 :: See
> //third_
> 2022-08-18 09:11:07.113 :: pkg_config(
>
> 2022-08-18 09:11:07.113 :: ^------
>
> 2022-08-18 09:11:07.114 :: See //BUILD.gn:529:7: which caused the file
> to be included.
> 2022-08-18 09:11:07.114 ::
> "//third_
> 2022-08-18 09:1...
Robert P. J. Day (rpjday) wrote : | #11 |
Yup, same errors ... lots of "wl "and "marshal" undefined references.
Here's just a small sample:
2022-08-18 17:03:57.646 :: /usr/include/
error: use of undeclared identifier 'wl_proxy_
2022-08-18 17:03:57.646 :: callback =
wl_proxy_
2022-08-18 17:03:57.646 :: ^
2022-08-18 17:03:57.646 :: /usr/include/
error: use of undeclared identifier 'wl_proxy_
2022-08-18 17:03:57.646 :: registry =
wl_proxy_
2022-08-18 17:03:57.646 :: ^
2022-08-18 17:03:57.646 :: /usr/include/
error: use of undeclared identifier 'wl_proxy_
2022-08-18 17:03:57.646 :: id = wl_proxy_
wl_proxy *) wl_registry,
2022-08-18 17:03:57.646 :: ^
2022-08-18 17:03:57.646 :: /usr/include/
error: use of undeclared identifier 'wl_proxy_
2022-08-18 17:03:57.646 :: id = wl_proxy_
wl_proxy *) wl_compositor,
2022-08-18 17:03:57.647 :: ^
2022-08-18 17:03:57.647 :: /usr/include/
error: use of undeclared identifier 'wl_proxy_
2022-08-18 17:03:57.647 :: id = wl_proxy_
wl_proxy *) wl_compositor,
2022-08-18 17:03:57.647 :: ^
2022-08-18 17:03:57.647 :: /usr/include/
error: use of undeclared identifier 'wl_proxy_
2022-08-18 17:03:57.647 :: id = wl_proxy_
wl_proxy *) wl_shm_pool,
2022-08-18 17:03:57.647 :: ^
On Thu, Aug 18, 2022 at 1:04 PM Robert Day <email address hidden> wrote:
> That's what I did, but that's also when I got the errors I included in my
> previous comment. I'm rebuilding just to make sure those errors are
> reproducible.
>
> On Thu, Aug 18, 2022 at 12:45 PM Nathan Teodosio <
> <email address hidden>> wrote:
>
>> > but that appears to be because this newer gnome does not supply such
>> an executable; there is no "pkg-config" under
>> /snap/gnome-
>> under gnome-3-38.
>>
>> Oh, so this time pkg-config in build-packages could solve it? Probably
>> you will have to remove the pkg_config line from args.gn, though.
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https:/
>>
>> Title:
>> [snap] Trying to build chromium snap for core22: pkg-config fails.
>>
>> Status in chromium-browser package in Ubuntu:
>> New
>>
>> Bug description:
>> I checked out the "dev" branch of chromium-browser from launchpad and
>> did what seemed necessary to update snapcraft.yaml to build with
>> snapcraft 7 for core22. The only change of any significance was to
>> change the extension from "gnome-3-38" to the core22-specific "gnome"
>> extension. I started the build and it ran for quite some time (in a
>> persistent 22.04 LXD co...
Robert P. J. Day (rpjday) wrote : | #12 |
This appears to describe precisely this issue:
https:/
On Thu, Aug 18, 2022 at 1:06 PM Robert Day <email address hidden> wrote:
> Yup, same errors ... lots of "wl "and "marshal" undefined references.
> Here's just a small sample:
>
> 2022-08-18 17:03:57.646 :: /usr/include/
> error: use of undeclared identifier 'wl_proxy_
>
>
> 2022-08-18 17:03:57.646 :: callback =
> wl_proxy_
>
>
> 2022-08-18 17:03:57.646 :: ^
>
>
>
> 2022-08-18 17:03:57.646 :: /usr/include/
> error: use of undeclared identifier 'wl_proxy_
>
>
> 2022-08-18 17:03:57.646 :: registry =
> wl_proxy_
>
>
> 2022-08-18 17:03:57.646 :: ^
>
>
>
> 2022-08-18 17:03:57.646 :: /usr/include/
> error: use of undeclared identifier 'wl_proxy_
>
>
> 2022-08-18 17:03:57.646 :: id = wl_proxy_
> wl_proxy *) wl_registry,
>
>
> 2022-08-18 17:03:57.646 :: ^
>
>
>
> 2022-08-18 17:03:57.646 :: /usr/include/
> error: use of undeclared identifier 'wl_proxy_
>
>
> 2022-08-18 17:03:57.646 :: id = wl_proxy_
> wl_proxy *) wl_compositor,
>
>
> 2022-08-18 17:03:57.647 :: ^
>
>
>
> 2022-08-18 17:03:57.647 :: /usr/include/
> error: use of undeclared identifier 'wl_proxy_
>
>
> 2022-08-18 17:03:57.647 :: id = wl_proxy_
> wl_proxy *) wl_compositor,
>
>
> 2022-08-18 17:03:57.647 :: ^
>
>
>
> 2022-08-18 17:03:57.647 :: /usr/include/
> error: use of undeclared identifier 'wl_proxy_
>
>
> 2022-08-18 17:03:57.647 :: id = wl_proxy_
> wl_proxy *) wl_shm_pool,
>
>
> 2022-08-18 17:03:57.647 :: ^
>
>
> On Thu, Aug 18, 2022 at 1:04 PM Robert Day <email address hidden>
> wrote:
>
>> That's what I did, but that's also when I got the errors I included in my
>> previous comment. I'm rebuilding just to make sure those errors are
>> reproducible.
>>
>> On Thu, Aug 18, 2022 at 12:45 PM Nathan Teodosio <
>> <email address hidden>> wrote:
>>
>>> > but that appears to be because this newer gnome does not supply such
>>> an executable; there is no "pkg-config" under
>>> /snap/gnome-
>>> under gnome-3-38.
>>>
>>> Oh, so this time pkg-config in build-packages could solve it? Probably
>>> you will have to remove the pkg_config line from args.gn, though.
>>>
>>> --
>>> You received this bug notification because you are subscribed to the bug
>>> report.
>>> https:/
>>>
>>> Title:
>>> [snap] Trying to build chromium snap for core22: pkg-config fails.
>>>
>>> Status in chromium-browser package in Ubuntu:
>>> New
>>>
>>> Bug description:
>>> I checked out the "dev" branch of chromium-browser from launchpad and
>>>...
Nathan Teodosio (nteodosio) wrote : | #13 |
What is libwayland-client0 version in your logs? Focal has 1.18.0, but
wayland-
Robert P. J. Day (rpjday) wrote : | #14 |
A comprehensive grep includes the lines:
parts/launcher/
parts/va-
parts/pipewire/
parts/chromium-
parts/manpage/
Oh, wait, there we
go: parts/chromium/
appears to be a version manifest that does not include anything for 22.04.
Does that sound like the problem?
P.S. Thanks for your patience with all of this.
On Thu, Aug 18, 2022 at 3:30 PM Nathan Teodosio <email address hidden>
wrote:
> What is libwayland-client0 version in your logs? Focal has 1.18.0, but
>
> wayland-
> wl_proxy_
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> [snap] Trying to build chromium snap for core22: pkg-config fails.
>
> Status in chromium-browser package in Ubuntu:
> New
>
> Bug description:
> I checked out the "dev" branch of chromium-browser from launchpad and
> did what seemed necessary to update snapcraft.yaml to build with
> snapcraft 7 for core22. The only change of any significance was to
> change the extension from "gnome-3-38" to the core22-specific "gnome"
> extension. I started the build and it ran for quite some time (in a
> persistent 22.04 LXD container) until:
>
> 2022-08-18 09:11:00.869 :: + OUT=out/Release
>
> 2022-08-18 09:11:00.869 :: + mkdir -p out/Release
>
> 2022-08-18 09:11:00.888 :: + cp /root/snaps/
> args.gn out/Release/
> 2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 09:11:00.922 :: + cd /usr/lib/
>
> 2022-08-18 09:11:00.922 :: + ln -s libdrm.pc libdrm-
>
> 2022-08-18 09:11:00.935 :: + cd -
>
> 2022-08-18 09:11:00.935 ::
> /root/snaps/
>
> 2022-08-18 09:11:00.935 :: + out/Release/gn gen out/Release
>
> 2022-08-18 09:11:07.112 :: ERROR at
> //build/
> code.
>
> 2022-08-18 09:11:07.112 :: pkgresult =
> exec_script(
> 2022-08-18 09:11:07.113 :: ^----------
>
> 2022-08-18 09:11:07.113 :: Current dir:
> /root/snaps/
> 2022-08-18 09:11:07.113 :: Command: python3
> /root/snaps/
> -p /snap/gnome-
>
> 2022-08-18 09:11:07.113 :: Returned 1.
>
> 2022-08-18 09:11:07.113 :: stderr:
>
> 2022-08-18 09:11:07.113 ::
>
> 2022-08-18 09:11:07.113 :: Could not run pkg-config.
>
> 2022-08-18 09:11:07.113 ::
>
> 2022-08-18 09:11:07.113 :: See
> //third_
> 2022-08-18 09:11:07.113 :: pkg_config(
>
> 2022-08...
Robert P. J. Day (rpjday) wrote : | #15 |
Actually, another part of my grep search produced the following, which
seems to suggest that an older version of libwayland-client0 is being used:
parts/chromium/
https:/
parts/chromium/
https:/
parts/chromium/
https:/
parts/chromium/
https:/
parts/chromium/
https:/
parts/chromium/
https:/
parts/chromium/
https:/
At least that's the way I read it.
rday
On Thu, Aug 18, 2022 at 3:43 PM Robert Day <email address hidden> wrote:
> A comprehensive grep includes the lines:
>
> parts/launcher/
> parts/va-
> parts/pipewire/
> parts/chromium-
> parts/manpage/
>
> Oh, wait, there we
> go: parts/chromium/
> appears to be a version manifest that does not include anything for 22.04.
> Does that sound like the problem?
>
> P.S. Thanks for your patience with all of this.
>
> On Thu, Aug 18, 2022 at 3:30 PM Nathan Teodosio <
> <email address hidden>> wrote:
>
>> What is libwayland-client0 version in your logs? Focal has 1.18.0, but
>>
>> wayland-
>> wl_proxy_
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https:/
>>
>> Title:
>> [snap] Trying to build chromium snap for core22: pkg-config fails.
>>
>> Status in chromium-browser package in Ubuntu:
>> New
>>
>> Bug description:
>> I checked out the "dev" branch of chromium-browser from launchpad and
>> did what seemed necessary to update snapcraft.yaml to build with
>> snapcraft 7 for core22. The only change of any significance was to
>> chang...
Robert P. J. Day (rpjday) wrote : | #16 |
Last comment for the day ... from what little I've seen, it seems like it
might require defining a lengthy list of packages relative to 22.04 to
migrate this snap to 22.04. Or maybe I'm misreading it. In any event, I'd
still like to make this happen.
On Thu, Aug 18, 2022 at 3:56 PM Robert Day <email address hidden> wrote:
> Actually, another part of my grep search produced the following, which
> seems to suggest that an older version of libwayland-client0 is being used:
>
>
> parts/chromium/
> https:/
>
> parts/chromium/
> https:/
>
> parts/chromium/
> https:/
>
> parts/chromium/
> https:/
>
> parts/chromium/
> https:/
>
> parts/chromium/
> https:/
>
> parts/chromium/
> https:/
>
> At least that's the way I read it.
>
> rday
>
> On Thu, Aug 18, 2022 at 3:43 PM Robert Day <email address hidden>
> wrote:
>
>> A comprehensive grep includes the lines:
>>
>> parts/launcher/
>> parts/va-
>> parts/pipewire/
>> parts/chromium-
>> parts/manpage/
>>
>> Oh, wait, there we
>> go: parts/chromium/
>> appears to be a version manifest that does not include anything for 22.04.
>> Does that sound like the problem?
>>
>> P.S. Thanks for your patience with all of this.
>>
>> On Thu, Aug 18, 2022 at 3:30 PM Nathan Teodosio <
>> <email address hidden>> wrote:
>>
>>> What is libwayland-client0 version in your logs? Focal has 1.18.0, but
>>>
>>> wayland-
>>> wl_proxy_
>>>
>>> --
>>> You received this bug notification because you are subscribed to the bug
>>> report.
>>> https:/
Nathan Teodosio (nteodosio) wrote : | #17 |
For a matter of fact, wl_proxy_
I'm trying to build the snap too so I can see full logs, but weirdly they are much less verbose than what I'm used to (e.g. https:/
> P.S. Thanks for your patience with all of this.
No such thing, it's a pleasure :). This is both useful and a great chance to better understand snaps.
Robert P. J. Day (rpjday) wrote : | #18 |
My interest in this is that I'm stress testing migrating snaps to core
22/snapcraft 7 as part of the update for the Snapcraft 101 course, and when
I asked my team for an example of a snap that would be challenging to
migrate, one of them immediately suggested chromium, so that's why I'm
working on this. So far, the necessary changes were fairly minimal, until
this issue, which I don't know what to do with.
Perhaps one should create a core 22 branch where I can submit my changes.
In terms of getting more output, with Snapcraft 7, I'm running "snapcraft
--verbosity=trace" for tons of output.
Anyway, this wl_proxy* stuff is the current bottleneck.
On Fri, Aug 19, 2022 at 7:25 AM Nathan Teodosio <email address hidden>
wrote:
> For a matter of fact, wl_proxy_
> client-core.h, provided by libwayland-dev, which is specified in the
> build-packages of chromium in snapcraft.yaml. As long as it is version
> >=1.20, I'd think it should work, but reality shows otherwise.
>
> I'm trying to build the snap too so I can see full logs, but weirdly
> they are much less verbose than what I'm used to (e.g.
>
> https:/
> browser-
> <https:/
> and I don't want to believe that would
> be caused by a mere switch to core22.
>
> > P.S. Thanks for your patience with all of this.
>
> No such thing, it's a pleasure :). This is both useful and a great
> chance to better understand snaps.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> [snap] Trying to build chromium snap for core22: pkg-config fails.
>
> Status in chromium-browser package in Ubuntu:
> New
>
> Bug description:
> I checked out the "dev" branch of chromium-browser from launchpad and
> did what seemed necessary to update snapcraft.yaml to build with
> snapcraft 7 for core22. The only change of any significance was to
> change the extension from "gnome-3-38" to the core22-specific "gnome"
> extension. I started the build and it ran for quite some time (in a
> persistent 22.04 LXD container) until:
>
> 2022-08-18 09:11:00.869 :: + OUT=out/Release
>
> 2022-08-18 09:11:00.869 :: + mkdir -p out/Release
>
> 2022-08-18 09:11:00.888 :: + cp /root/snaps/
> args.gn out/Release/
> 2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 09:11:00.922 :: + cd /usr/lib/
>
> 2022-08-18 09:11:00.922 :: + ln -s libdrm.pc libdrm-
>
> 2022-08-18 09:11:00.935 :: + cd -
>
> 2022-08-18 09:11:00.935 ::
> /root/snaps/
>
> 2022-08-18 09:11:00.935 :: + out/Release/gn gen out/Release
>
> 2022-08-18 09:11:07.112 :: ERROR at
> //build/
> code.
>
> 2022-08-18 09:11:07.112 :: pkgresult =
> exec_script(
Nathan Teodosio (nteodosio) wrote : | #19 |
> Perhaps one should create a core 22 branch where I can submit my changes.
I think that is only possible with a team. See if you can push to https:/
Robert P. J. Day (rpjday) wrote : | #20 |
Ok, thanks.
On Fri, Aug 19, 2022 at 8:10 AM Nathan Teodosio <email address hidden>
wrote:
> > Perhaps one should create a core 22 branch where I can submit my
> changes.
>
> I think that is only possible with a team. See if you can push to
> https:/
> yes, just force push your current work to it.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> [snap] Trying to build chromium snap for core22: pkg-config fails.
>
> Status in chromium-browser package in Ubuntu:
> New
>
> Bug description:
> I checked out the "dev" branch of chromium-browser from launchpad and
> did what seemed necessary to update snapcraft.yaml to build with
> snapcraft 7 for core22. The only change of any significance was to
> change the extension from "gnome-3-38" to the core22-specific "gnome"
> extension. I started the build and it ran for quite some time (in a
> persistent 22.04 LXD container) until:
>
> 2022-08-18 09:11:00.869 :: + OUT=out/Release
>
> 2022-08-18 09:11:00.869 :: + mkdir -p out/Release
>
> 2022-08-18 09:11:00.888 :: + cp /root/snaps/
> args.gn out/Release/
> 2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 09:11:00.922 :: + '[' amd64 = armhf ']'
>
> 2022-08-18 09:11:00.922 :: + cd /usr/lib/
>
> 2022-08-18 09:11:00.922 :: + ln -s libdrm.pc libdrm-
>
> 2022-08-18 09:11:00.935 :: + cd -
>
> 2022-08-18 09:11:00.935 ::
> /root/snaps/
>
> 2022-08-18 09:11:00.935 :: + out/Release/gn gen out/Release
>
> 2022-08-18 09:11:07.112 :: ERROR at
> //build/
> code.
>
> 2022-08-18 09:11:07.112 :: pkgresult =
> exec_script(
> 2022-08-18 09:11:07.113 :: ^----------
>
> 2022-08-18 09:11:07.113 :: Current dir:
> /root/snaps/
> 2022-08-18 09:11:07.113 :: Command: python3
> /root/snaps/
> -p /snap/gnome-
>
> 2022-08-18 09:11:07.113 :: Returned 1.
>
> 2022-08-18 09:11:07.113 :: stderr:
>
> 2022-08-18 09:11:07.113 ::
>
> 2022-08-18 09:11:07.113 :: Could not run pkg-config.
>
> 2022-08-18 09:11:07.113 ::
>
> 2022-08-18 09:11:07.113 :: See
> //third_
> 2022-08-18 09:11:07.113 :: pkg_config(
>
> 2022-08-18 09:11:07.113 :: ^------
>
> 2022-08-18 09:11:07.114 :: See //BUILD.gn:529:7: which caused the file
> to be included.
> 2022-08-18 09:11:07.114 ::
> "//third_
> 2022-08-18 09:11:07.114 ::
> ^------
> 2022-08-18 09:11:07.243 'override-build' in part 'chromium' failed with
> code 1.
> Review the scriptlet and make sure it's correct.
>
> I verified t...
Changed in chromium-browser (Ubuntu): | |
status: | New → Invalid |
Let me know if there's anything you want me to test; I have the container sitting here, ready for further experimentation.