Skip to content

Add libm dependency - #856

Merged
ryonakano merged 1 commit into
elementary:masterfrom
City-busz:patch-4
Nov 3, 2026
Merged

ryonakano merged 1 commit into
elementary:masterfrom
City-busz:patch-4

Conversation

@City-busz

Copy link
Copy Markdown
Contributor

Link against libm to resolve undefined references to the round() function during linking.

Link against libm to resolve undefined references to the
round() function during linking.
@ryonakano

Copy link
Copy Markdown
Member

Ah yeah we're using it a lot……

ryonakano@fedora-host:~/work/elementary/flatpak/unreleased/photos (master =)$ git grep -n -w round -- src/
src/Box.vala:136:        int l = (int) Math.round ((double) left * x_scale);
src/Box.vala:137:        int t = (int) Math.round ((double) top * y_scale);
src/Box.vala:153:        int l = (int) Math.round ((double) left * x_scale);
src/Box.vala:154:        int t = (int) Math.round ((double) top * y_scale);
src/Box.vala:155:        int r = (int) Math.round ((double) right * x_scale);
src/Box.vala:156:        int b = (int) Math.round ((double) bottom * y_scale);
src/Commands.vala:1074:        // rather than the other way round, we try to choose the event with the most
src/Dimensions.vala:165:        Dimensions scaled = Dimensions ((int) Math.round (scaled_width),
src/Dimensions.vala:166:                                        (int) Math.round (scaled_height)).floor ();
src/Dimensions.vala:194:        return Dimensions ((int) Math.round (scaled_width), (int) Math.round (scaled_height)).floor ();
src/Dimensions.vala:202:        scaled_rect.x = (int) Math.round ((double) rect.x * x_scale);
src/Dimensions.vala:203:        scaled_rect.y = (int) Math.round ((double) rect.y * y_scale);
src/Dimensions.vala:204:        scaled_rect.width = (int) Math.round ((double) rect.width * x_scale);
src/Dimensions.vala:205:        scaled_rect.height = (int) Math.round ((double) rect.height * y_scale);
src/Dimensions.vala:223:        return Dimensions ((int) Math.round ((double) width * scale),
src/Dimensions.vala:224:                           (int) Math.round ((double) height * scale)).floor ();
src/Dimensions.vala:232:        return Dimensions (scale, (int) Math.round ((double) height * ratio)).floor ();
src/Dimensions.vala:240:        return Dimensions ((int) Math.round ((double) width * ratio), scale).floor ();
src/Views/EditingHostPage.vala:1294:        // signal is completed as PixbufCache may remove it in this round of fired signals
src/photos/BmpSupport.vala:109:           fail due to what appear to be floating-point round-off issues. This isn't surprising,
src/photos/GifSupport.vala:131:           fail due to what appear to be floating-point round-off issues. This isn't surprising,
src/photos/PngSupport.vala:107:           fail due to what appear to be floating-point round-off issues. This isn't surprising,
src/util/image.vala:224:        Gdk.Colorspace.RGB, true, 8, (int) Math.round (x_tmp), (int) Math.round (y_tmp));
ryonakano@fedora-host:~/work/elementary/flatpak/unreleased/photos (master =)$

@ryonakano
ryonakano merged commit 3ebda59 into elementary:master Nov 3, 2026
2 of 3 checks passed
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.

2 participants