[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Singular library include directories



On Sat, Mar 14, 2015 at 10:36:04PM -0500, Doug Torrance wrote:
> #include <factory/factoryconf.h>.

this include will work once after you add -I/usr/include/singular to CPPFLAGS.

> However, I believe it should be
> 
> #include <singular/factory/factoryconf.h>.

this include will fail, if you try to build against the builddir, such
as singular_1-2-3, so it does not really make sense.
there was some "we-rewrite-headers-during-install" hack once, which even
increased confusion (don't know if it's still there though).

> Part of me questions whether moving everything into the 'singular'
> subdirectory is even necessary.  According to the patch
> descriptions, this change was made to avoid "possible collision". Do
> we know if any such collisions actually exist?  It also makes it
> more complicated for packaging reverse dependencies (like
> Macaulay2).

putting stuff into /usr/include/<packagename> is ok. but then,
/usr/include/factory is reserved for a package with stem "factory",
which does not exist (yet?). that is the possible collision.

please consider the extra CPPFLAGS. if you can reliably ask the singular
installation for them (.pc file?) that would make a patch for upstream
macaulay2 ...

thanks
felix


Reply to: