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

libzfs does not have pkgconfig file #585

Closed
ryao opened this issue Feb 27, 2012 · 2 comments
Closed

libzfs does not have pkgconfig file #585

ryao opened this issue Feb 27, 2012 · 2 comments
Labels
Type: Feature Feature request or new feature
Milestone

Comments

@ryao
Copy link
Contributor

ryao commented Feb 27, 2012

Anything that uses the zfs headers currently need to have -I/usr/include/libspl -I/usr/include/libzfs passed to the preprocessor.

It would be nice to create pkgconfig files so that this is not necessary.

@behlendorf
Copy link
Contributor

Agreed, that would be handy.

FransUrbo added a commit to FransUrbo/zfs that referenced this issue Jun 6, 2014
FransUrbo added a commit to FransUrbo/zfs that referenced this issue Jul 23, 2014
+ Updated with changes suggested by @behlendorf.

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Closes: openzfs#585
@FransUrbo
Copy link
Contributor

Pushed an update with changes proposed by @behlendorf.

FransUrbo added a commit to FransUrbo/zfs that referenced this issue Aug 5, 2014
+ Updated with changes suggested by @behlendorf.

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Closes: openzfs#585
FransUrbo added a commit to FransUrbo/zfs that referenced this issue Aug 18, 2014
…depends

on libzfs_core).

Use with: pkg-config --cflags --libs libzfs

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Closes: openzfs#585
FransUrbo added a commit to FransUrbo/zfs that referenced this issue Aug 20, 2014
…depends

on libzfs_core).

Use with: pkg-config --cflags --libs libzfs

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Closes: openzfs#585
FransUrbo added a commit to FransUrbo/zfs that referenced this issue Aug 20, 2014
…depends

on libzfs_core).

Use with: pkg-config --cflags --libs libzfs

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Closes: openzfs#585
FransUrbo added a commit to FransUrbo/zfs that referenced this issue Aug 21, 2014
…depends

on libzfs_core).

Use with: pkg-config --cflags --libs libzfs

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Closes: openzfs#585
FransUrbo added a commit to FransUrbo/zfs that referenced this issue Aug 25, 2014
(depends on libzfs_core).

Use with: pkg-config --cflags --libs libzfs

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Closes: openzfs#585
FransUrbo added a commit to FransUrbo/zfs that referenced this issue Aug 27, 2014
(depends on libzfs_core).

Use with: pkg-config --cflags --libs libzfs

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Closes: openzfs#585
behlendorf pushed a commit to behlendorf/zfs that referenced this issue Aug 27, 2014
Providing a pkg-config file makes is easy for 3rd party applications
to link against the libzfs libraries.  It also allows the libzfs
developers to modify the list of required libraries and cflags
without breaking existing applications.

The following example illustrates how pkg-config can be used:

cc `pkg-config --cflags --libs libzfs` -o myapp myapp.c

```
/*
 * myapp.c
 */

void main()
{
	libzfs_handle_t *hdl;

	hdl = libzfs_init();
	if (hdl)
		libzfs_fini(hdl);
}
```

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue: openzfs#585
behlendorf pushed a commit that referenced this issue Aug 28, 2014
Providing a pkg-config file makes is easy for 3rd party applications
to link against the libzfs libraries.  It also allows the libzfs
developers to modify the list of required libraries and cflags
without breaking existing applications.

The following example illustrates how pkg-config can be used:

cc `pkg-config --cflags --libs libzfs` -o myapp myapp.c

/*
 * myapp.c
 */
void main()
{
	libzfs_handle_t *hdl;

	hdl = libzfs_init();
	if (hdl)
		libzfs_fini(hdl);
}

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes: #585
ryao pushed a commit to ryao/zfs that referenced this issue Nov 29, 2014
The HAVE_IOCTL_* configure checks were originally added for
compatibility with an ancient version of glibc.  This support
and additional complexity is no longer needed and is therefore
being removed.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Closes openzfs#585
ryao pushed a commit to ryao/zfs that referenced this issue Nov 29, 2014
Providing a pkg-config file makes is easy for 3rd party applications
to link against the libzfs libraries.  It also allows the libzfs
developers to modify the list of required libraries and cflags
without breaking existing applications.

The following example illustrates how pkg-config can be used:

cc `pkg-config --cflags --libs libzfs` -o myapp myapp.c

/*
 * myapp.c
 */
void main()
{
	libzfs_handle_t *hdl;

	hdl = libzfs_init();
	if (hdl)
		libzfs_fini(hdl);
}

Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes: openzfs#585
pcd1193182 pushed a commit to pcd1193182/zfs that referenced this issue Sep 26, 2023
…aster

Merge remote-tracking branch '6.0/stage' into 'master'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Feature request or new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants