Skip to content

build: preliminary pkgconf .pc file (WIP) #18881

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eqvinox
Copy link
Contributor

@eqvinox eqvinox commented May 23, 2025

NOT READY FOR USE YET, JUST WORK IN PROGRESS. UNTESTED.

cf. #18807

NOT READY FOR USE YET, JUST WORK IN PROGRESS.  UNTESTED.

Signed-off-by: David Lamparter <[email protected]>
Copy link

@rjarry rjarry left a comment

Choose a reason for hiding this comment

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

Hi David, thanks for the patch! I have a few remarks. Please see below:

# when packaging an FRR source/build tree, fill in the next line
# (e.g. with /usr/src/frr)
#
abs_top_treedir="FILL_TREEDIR_DURING_PACKAGING"
Copy link

Choose a reason for hiding this comment

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

This file should be installed by make install into @PREFIX@/lib/pkgconfig. Also, you should replace FILL_TREEDIR_DURING_PACKAGING with @PREFIX@/src/frr-@VERSION@ to make downstream packaging easier. Also, all headers required to build dplane plugins should be installed in @PREFIX@/src/frr-@VERSION@ so that out of tree plugins can be compiled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

autoconf doesn't have a "standard" path specifying command line option for /usr/src and I'm not sure it's a great idea to hardcode @PREFIX@/src/frr…. It probably makes sense to add a --with-headertree= or something, and have it default to @PREFIX@/src/frr-@VERSION@. This is all really just poking around right now, hence draft not PR.

URL: @PACKAGE_BUGREPORT@
Version: @PACKAGE_VERSION@
Libs: -L${libdir} -rpath ${libdir} -lfrr
Cflags: -I${abs_top_treedir} -I${abs_top_treedir}/lib \
Copy link

Choose a reason for hiding this comment

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

It is missing -I${abs_top_treedir}/zebra to build dplane plugins?

@@ -0,0 +1,30 @@
# when packaging an FRR source/build tree, fill in the next line
Copy link

Choose a reason for hiding this comment

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

There is no point in installing the whole build tree. Only certain headers are required for compiling dplane plugins: *.h, lib/*.h, zebra/*.h.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah this was just poorly worded, the intention is the header files. I was calling it build because the linux kernel thing is sometimes called kbuild

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants