Skip to content

Add a port of GTK3 and related dependencies - #169

Merged
Dennisbonke merged 5 commits into
managarm:masterfrom
Dennisbonke:gtk3
Dec 7, 2022
Merged

Dennisbonke merged 5 commits into
managarm:masterfrom
Dennisbonke:gtk3

Conversation

@Dennisbonke

@Dennisbonke Dennisbonke commented Feb 19, 2022 •

Copy link
Copy Markdown
Member

This PR splits off the gtk3 part from #152. Several issues still remain, including dbus not working properly and gtk3 missing pwrite(), potentially among other things.

This PR adds the following ports:

  • libxslt,
  • dbus,
  • at-spi2-core,
  • at-spi2-atk,
  • gtk+-3.

Blocked on #168 and a draft pending the things I mentioned above.
Blocked on #176

@Dennisbonke Dennisbonke mentioned this pull request Feb 19, 2022
@Dennisbonke

Dennisbonke commented Apr 3, 2022 •

Copy link
Copy Markdown
Member Author

After some testing, we can ignore dbus and at-spi2-core for now, but this is now also blocked on managarm/mlibc#403, managarm/managarm#430 and managarm/mlibc#402.

@Dennisbonke
Dennisbonke force-pushed the gtk3 branch 2 times, most recently from 6d7afec to e19e74f Compare April 3, 2022 21:02
@Dennisbonke
Dennisbonke marked this pull request as ready for review April 3, 2022 21:02

@avdgrinten avdgrinten left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing major here but the funlockfile patches should be removed in favor of mlibc fixes.

Comment thread bootstrap.d/dev-libs.yml
Comment thread patches/gtk+-3/0001-Initial-Managarm-support.patch
Comment thread patches/gtk+-3/0001-Initial-Managarm-support.patch Outdated
Comment thread patches/gtk+-3/0001-Initial-Managarm-support.patch Outdated
Comment on lines +71 to +73
- '-Werror=array-bounds',
+ #'-Werror=array-bounds',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this patched out?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I recall correctly, I got errors because of it. I'll recheck.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What kind of errors?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bunch of errors that look like this

../../../src/ports/gtk+-3/gtk/gtktextsegment.c:441:6: error: array subscript ‘GtkTextLineSegment {aka struct _GtkTextLineSegment}[0]’ is partly outside array bounds of ‘unsigned char[40]’ [-Werror=array-bounds]
  441 |   seg->body.toggle.inNodeCounts = 0;
      |      ^~
../../../src/ports/gtk+-3/gtk/gtktextsegment.c:431:9: note: referencing an object of size 40 allocated by ‘g_slice_alloc’
  431 |   seg = g_slice_alloc (TSEG_SIZE);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~

@Dennisbonke
Dennisbonke force-pushed the gtk3 branch 2 times, most recently from f646abd to a8329c2 Compare April 16, 2022 14:10
@Dennisbonke

Copy link
Copy Markdown
Member Author

Also blocked on managarm/mlibc#408, after that is fixed we can drop the flockfile()/funlockfile() patches.

@ElectrodeYT ElectrodeYT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing tools in gtk+-3

Comment thread bootstrap.d/x11-libs.yml

@no92 no92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Dennisbonke
Dennisbonke force-pushed the gtk3 branch 2 times, most recently from 9977308 to 9339916 Compare December 7, 2022 22:13
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
@Dennisbonke
Dennisbonke merged commit 1310173 into managarm:master Dec 7, 2022
@no92
no92 deleted the gtk3 branch December 4, 2025 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants