Page MenuHomeFreeBSD

Fix devel/qt4-linguist build against clang 4.0
ClosedPublic

Authored by adridg on Jan 14 2017, 9:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 11:43 PM
Unknown Object (File)
Sun, Dec 15, 11:42 PM
Unknown Object (File)
Sun, Dec 8, 11:36 PM
Unknown Object (File)
Wed, Dec 4, 6:50 AM
Unknown Object (File)
Oct 26 2024, 6:17 AM
Unknown Object (File)
Oct 3 2024, 12:58 AM
Unknown Object (File)
Oct 1 2024, 3:55 PM
Unknown Object (File)
Sep 26 2024, 1:21 AM
Subscribers

Details

Summary

Fix for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216051 ,
build failure for qt4-linguist with clang 4.0. Blocker for the clang 4.0
import project.

Test Plan

Will be picked up by the exp-run for clang 4.0.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

adridg retitled this revision from to Fix devel/qt4-linguist build against clang 4.0.
adridg updated this object.
adridg edited the test plan for this revision. (Show Details)
adridg added reviewers: tcberner, rakuco.
adridg added a subscriber: kde.
tcberner added inline comments.
devel/qt4-linguist/files/patch-tools__linguist__linguist__messagemodel.cpp
11 ↗(On Diff #24006)

couldn't you simply use

if (c->findMessage(m->text(), m->comment()))

adridg added inline comments.
devel/qt4-linguist/files/patch-tools__linguist__linguist__messagemodel.cpp
11 ↗(On Diff #24006)

While I could do that, and it would be idiomatic C, the Qt sources tend to use != 0 explicitly, so this patch sticks closer to the style of the source. (But it's just "tend", since you can see from tools/designer/src/components/objectinspector/objectinspector.cpp lines 286 and 307 that sometimes they use !p, sometimes p != 0)

devel/qt4-linguist/files/patch-tools__linguist__linguist__messagemodel.cpp
11 ↗(On Diff #24006)

Ah, that makes sense.

jbeich added a reviewer: jbeich.

With the change poudriere builds for 10.3 i386 and /projects/clang400-import@311940 amd64 are green. Thanks.

devel/qt4-linguist/files/patch-tools__linguist__linguist__messagemodel.cpp
5 ↗(On Diff #24006)

Can you format the patch with make makepatch? It uses timestamps in UTC and single underscore for directory separator in filename.

This revision is now accepted and ready to land.Jan 15 2017, 2:10 AM
devel/qt4-linguist/files/patch-tools__linguist__linguist__messagemodel.cpp
11 ↗(On Diff #24006)

Before the change the conditional always took true branch but now it sometimes doesn't. Maybe bump PORTREVISION.

I think it's also a good idea to call this a backport of this Qt5 commit. No objections to bumping PORTREVISION.

jbeich removed a reviewer: jbeich.

call this a backport of this Qt5 commit.

Hmm, I'd prefer we take that commit as is then.

This revision now requires review to proceed.Jan 17 2017, 1:59 PM
adridg marked an inline comment as done.
adridg edited edge metadata.
  • Made makepatch (this renames an unrelated patch as well)
  • Used upstream commit
  • Bumped PORTREVISION
tcberner edited edge metadata.

Could you add the commit message/some explanation to the top of the new patch? So we know why it is there :)

Apart from that it should be good to go.

This revision is now accepted and ready to land.Jan 18 2017, 10:32 AM
adridg edited edge metadata.

Add patch-comment

This revision now requires review to proceed.Jan 18 2017, 10:39 AM
This revision was automatically updated to reflect the committed changes.