[Bug 293297] PkgBase: FreeBSD-zfs-dev libzfs.h header is useless
| Newsgroups | gmane.os.freebsd.devel.file-systems |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293297 --- Comment #5 from Nico Sonack <[email protected]> --- Thanks for the insights! I absolutely agree that this is not a Pkgbase issue, I just tagged it since I ran into this on pkgbasified systems. That might have been confusing. > What application are you trying to build that requires libzfs.h? Nothing specific, in fact I was experimenting with it and testing out stuff. Thus I installed FreeBSD-zfs-dev, which as the name suggests, gives you all the headers needed for development. But that clearly didn't work out :D > As long as the FreeBSD sources are checked out to /usr/src you can build and afaik > this is the default configuration in poudriere so you can rely on it in a port. This is what I ended up doing in the makefile for my testing purposes, it just feels wrong and is an ugly hack. > libzfs_core.h should be installed in /usr/include, along with everything else it needs. > > libzfs should be installed as a private lib in /usr/lib, and if it installs any headers, > they should be in /usr/include/private . Agreed! In that case it would also be nice if the corresponding pkgconfig file (/usr/src/sys/contrib/openzfs/lib/libzfs_core/libzfs_core.pc.in) for libzfs_core gets installed in a useful way. -- You are receiving this mail because: You are the assignee for the bug.