Opened 10 years ago

Closed 10 years ago

#44745 closed defect (fixed)

podofo: unnecessary cppunit dependency

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc:
Port: podofo

Description

podofo declares a library dependency on cppunit, but does not appear to link with its libraries. If I read correctly, I think podofo only uses cppunit for unit tests, and the port does not declare "test.run yes" so I don't think the tests are running anyway. Could the dependency be removed?

Attachments (1)

podofo.diff (481 bytes) - added by ryandesign (Ryan Carsten Schmidt) 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: podofo.diff added

comment:1 Changed 10 years ago by dbevans (David B. Evans)

Status: newassigned
Version: 2.3.1

Yes, cppunit is only needed for unit tests which can be disabled by setting PODOFO_BUILD_LIB_ONLY=TRUE. Once that's done, the check for cppunit is disabled along with the tests and the dependency can be removed. Unfortunately, this also disables the build of the command line tools so I'm not in favor of this approach.

If the dependency is just removed as you suggest, then the port will build the tests if cppunit happens to be installed or not if not. This results in the same behavior as above -- if no cppunit, no tools.

So probably the best thing is to just make cppunit a build dependency.

I take it, cppunit is not your favorite port. Or are you lobbying to set test.run yes?

Last edited 10 years ago by dbevans (David B. Evans) (previous) (diff)

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

I have no problem with cppunit, I am just working on the ticket for updating cppunit to the latest version. When I do that, its library version will change, so I will need to revbump all ports linking with cppunit, thus I've been investigating each port that declares a dependency on cppunit to determine if it links with the library.

comment:3 Changed 10 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed

cppunit declared as a build dependency only in r124513. Installed files do not link with cppunit library so no need to revbump for library version changes.

Note: See TracTickets for help on using tickets.