Project

General

Profile

Bug #2073

pkg:/system/header should depend on pkg:/library/math/header-math

Added by Albert Lee over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
lib - userland libraries
Start date:
2012-02-03
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage

Description

Because pkg:/system/header includes the AST headers there is one reference to math.h there:
usr/include/ast/ast_float.h:#include <math.h>

So technically there should be a dependency expressed in the packaging.
However, my main motivation for having system/header depend on header-math would actually be a cheap workaround for the fact that header-math is not pulled in by some developer packages.

History

#1

Updated by Albert Lee over 7 years ago

If the AST headers were split off, this becomes a different story... system/header will have no technical reason to depend on header-math, but logically the libm API is just part of the system interfaces (when libm integrates there may not be a reason to have a distinct header-math).

#2

Updated by Rich Lowe over 7 years ago

Yeah, when libm integrates I want the math headers in system/header properly.

#3

Updated by Igor Kozhukhov over 7 years ago

I'll be ready with LIBM on next week with checks on SPARC.
need check full builds with lint.
another idea - maybe we will provide separate -dev package with development staff ?
will be possible: static libs, headers, .so symlinks, etc ...

#4

Updated by Albert Lee over 7 years ago

Igor S.Kozhukhov wrote:

I'll be ready with LIBM on next week with checks on SPARC.
need check full builds with lint.
another idea - maybe we will provide separate -dev package with development staff ?
will be possible: static libs, headers, .so symlinks, etc ...

One very important feature of pkg(5) uses tagging to indicate development files, these tagged files are optional "facets" of a package. pkg:/system/library could use this to make pkg:/system/header obsolete.

#5

Updated by Rich Lowe over 7 years ago

For extra clarity, while system/library could, it won't. The right way to do that is to move content out of system/library and system/header into new, smaller packages which then do the right thing.

The right thing to do with the math headers is either add them to system/header, or to add them to the math library package itself. I would prefer they be in the math library package, now I think about it.

#6

Updated by Rich Lowe over 7 years ago

Oh, and yes, what Albert said. No -dev packages.

Also available in: Atom PDF