Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose optparse API publicly #702

Merged
merged 2 commits into from
Jun 22, 2016
Merged

Conversation

garlick
Copy link
Member

@garlick garlick commented Jun 17, 2016

This PR moves optparse from a static library internal to flux-core to a public shared library, installed as ${libdir}/libflux-optparse.so and ${includedir}/flux/optparse.h.

This allows flux subcommands built outside of the core source tree to use the same option handling code, which should promote a more uniform user interface across framework components.

@garlick garlick added the review label Jun 17, 2016
@grondo
Copy link
Contributor

grondo commented Jun 17, 2016

Hm, does that mean we should do manpages for libflux-optparse? 😨

@garlick
Copy link
Member Author

garlick commented Jun 17, 2016

Maybe someday. IMHO not in this PR.

@grondo
Copy link
Contributor

grondo commented Jun 20, 2016

Looks like mpich.org is back up so I restarted the Travis build for this PR

@garlick
Copy link
Member Author

garlick commented Jun 20, 2016

Thanks!

Still no progress on travis-ci/apt-package-safelist#406 it seems.

@coveralls
Copy link

coveralls commented Jun 20, 2016

Coverage Status

Coverage decreased (-0.09%) to 75.161% when pulling 6439d49 on garlick:libflux-optparse into 9a65636 on flux-framework:master.

Build optparse as an installed shared library.
Install library to ${libdir}/libflux-optparse.so.
Install header to ${includedir}/flux/optparse.h
so it can be included with <flux/optparse.h>.

Note: also add src/include/flux/optparse.h wrapper,
so core sources can incdlue <flux/optparse.h> as well.
Add -lflux-optparse to flux-core.pc so that framework
projects can use optparse with minimal fuss.
@garlick
Copy link
Member Author

garlick commented Jun 21, 2016

Just rebased on current master and squashed the one incremental commit.

@grondo
Copy link
Contributor

grondo commented Jun 22, 2016

The coverage test got stuck between the two cron tests :-(. There was no information I could glean from the travis logs so I just restarted it.

Since everything else looked fine, is this ready to merge?

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 75.216% when pulling 7d286fd on garlick:libflux-optparse into bb83fa6 on flux-framework:master.

@garlick
Copy link
Member Author

garlick commented Jun 22, 2016

Yep
On Jun 21, 2016 8:58 PM, "Coveralls" notifications@github.com wrote:

[image: Coverage Status] https://coveralls.io/builds/6699184

Coverage decreased (-0.02%) to 75.216% when pulling 7d286fd
7d286fd
on garlick:libflux-optparse
into bb83fa6
bb83fa6
on flux-framework:master
.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#702 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAKX2yaj1C8InbJx5kKp1Z27APfptvlsks5qOLLzgaJpZM4I4spj
.

@grondo grondo merged commit cef6e48 into flux-framework:master Jun 22, 2016
@grondo grondo removed the review label Jun 22, 2016
@garlick garlick mentioned this pull request Aug 2, 2016
@garlick garlick deleted the libflux-optparse branch August 15, 2016 16: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.

3 participants