Home > Slackware > Slackware 13.1 & libxfs.h

Slackware 13.1 & libxfs.h

I was trying to build partclone to read an image created with clonezilla, and discovered it won’t build with XFS support on Slackware because Slackware lacks libxfs.h. I think this is somewhat intentional in that the XFS Makefile only installs the header if you explicitly target “install-qa”. It seems libxfs.h is only supposed to be used by XFS devs and 3rd party software should not require it, and I’m happy with that.

Just in case there is a reason you should need libxfs.h on Slackware:

cp -a /mirror/slackware/slackware-13.1/source/a/xfsprogs ~/.
cd ~/xfsprogs
sed -i -e '93i\make install-qa DIST_ROOT=\$PKG' -e 's/\(BUILD:-1\)/\1qa/' xfsprogs.SlackBuild
./xfsprogs.SlackBuild
upgradepkg /tmp/xfsprogs*1qa.t?z

You now have libxfs.h installed at /usr/include/xfs/libxfs.h

Categories: Slackware Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).