LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Missing setxattr(2) man-page (https://www.linuxquestions.org/questions/slackware-14/missing-setxattr-2-man-page-4175641674/)

GazL 11-02-2018 06:31 PM

Missing setxattr(2) man-page
 
Please could someone with a full slackware64-current install tell me which package the setxattr man-page is found in?

It was missing from my system and I had to rerun the man-pages.slackbuild in order to have it included. The slackbuild contains some code that tries to remove duplicate manpages and I assume that is removing the man-page from Pat's official man-pages package and I'd like to confirm that is the case.

I don't have a full install here (no kde and a few other minor packages missing), so I can't check for myself.

Paulo2 11-02-2018 06:40 PM

Is this the right search?
Code:

grep setxattr /var/lib/pkgtools/packages/*
/var/lib/pkgtools/packages/man-pages-4.16-noarch-1:usr/man/man2/fsetxattr.2.gz
/var/lib/pkgtools/packages/man-pages-4.16-noarch-1:usr/man/man2/lsetxattr.2.gz


GazL 11-02-2018 07:09 PM

Hmmm, yes, but I was expecting it to show up in another package. After rebuilding man-pages locally, I now get this
Code:

$ grep setxattr /var/log/packages/*
/var/log/packages/man-pages-4.16-noarch-2_local:usr/man/man2/fsetxattr.2.gz
/var/log/packages/man-pages-4.16-noarch-2_local:usr/man/man2/lsetxattr.2.gz
/var/log/packages/man-pages-4.16-noarch-2_local:usr/man/man2/setxattr.2.gz
$ zcat /usr/man/man2/?setxattr.2.gz
.so man2/setxattr.2
.so man2/setxattr.2
$

As you can see, the other 2 are just redirections to setxattr.2 and won't work without it. I'd assumed it was because I didn't have a full install, but perhaps Pat just needs to rebuild the man-pages package.

Thanks for your reply. :)

P.S. I really ought to start using /var/lib/pkgtools too, but muscle memory wins out! ;)

Paulo2 11-02-2018 07:32 PM

Is the man page missing?
https://linux.die.net/man/2/setxattr

Code:

LANG=C man lsetxattr
man: can't open /usr/man/man2/setxattr.2: No such file or directory
man: can't open /usr/man/man2/setxattr.2: No such file or directory
man: can't open /usr/man/man2/setxattr.2: No such file or directory
No manual entry for lsetxattr
paulo@claudio-pcbash~$ LANG=C man fsetxattr
man: can't open /usr/man/man2/setxattr.2: No such file or directory
man: can't open /usr/man/man2/setxattr.2: No such file or directory
man: can't open /usr/man/man2/setxattr.2: No such file or directory
No manual entry for fsetxattr

ps- I had to struggle, but got new muscle memory for the new packages dir :)
I think the 10-finger typing helps, all my passwords I remember by it's muscle memory.

orbea 11-02-2018 07:33 PM

You do not need a full install of Slackware to know what file belongs to which package. You can use the Slackware packages site to search for any file under the mode "content".

https://packages.slackware.com/

Edit: So that man page belonged to the "attr" package in 14.2 and I suppose it vanished during one of the updates without anyone noticing until now.

GazL 11-02-2018 07:48 PM

Thanks orbea. That would explain it.


All times are GMT -5. The time now is 11:11 AM.