-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
nss-mdns: install all libraries, correct avahi socket path #2303
Conversation
Without a patch:
I'm just not sure about those backslashes. But in library I see path set correctly. |
I'm in the middle of a clean build with the current solution but will try your suggestion afterwards - thanks. Assuming it works then what I missed in my attempts is the |
One other option would be using |
Yes I considered that but thought it was too ugly! :) |
@vpeter4 I had an old build directory available that allowed me to test rebuilding
I get the same build failure that I saw when I tried setting Edit: Actually, I used a variation with |
Aha... success with triple |
The |
Updated - thanks! |
By the way, each of the libraries is about 10KB in size (there are 6 in total) so not a big increase when including them all. |
|
Yes you are correct, that does silence the redefined messages:
I've added back the |
@MilhouseVH: doesn't avahi still using |
No,
Changing I figured changing If you think changing |
Ok then. I was grepping avahi build folder for this path and I have /var/run/avahi-daemon/socket inside them. |
Unpacked source-code:
No mention of |
Maybe I see differently because I'm not on latest master. I assume it is all good then :) |
Ta-da!
So This is the relevant avahi PR: avahi/avahi#46 |
It wasn't a popular change however, see avahi/avahi#150.
We don't, but it might be an idea if it's common practice... |
Keep this open until we decide whether to symlink |
@@ -29,9 +29,8 @@ PKG_SHORTDESC="nss-mdns is a plugin for nss to allow name resolution via Multica | |||
PKG_LONGDESC="nss-mdns is a plugin for the GNU Name Service Switch (NSS) functionality of the GNU C Library (glibc) providing host name resolution via Multicast DNS" | |||
PKG_TOOLCHAIN="autotools" | |||
|
|||
makeinstall_target() { | |||
mkdir -p $SYSROOT_PREFIX/usr/lib | |||
cp -P $PKG_BUILD/.$TARGET_NAME/src/.libs/libnss_mdns_minimal.so.2 $SYSROOT_PREFIX/usr/lib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avahi isn't loading libnss_mdns_minimal.so.
The bug in the old code is copying the lib to $SYSROOT_PREFIX only omitting $INSTALL.
But I agree with you the few kB don't harm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes absolutely! However even if the minimal library had been installed avahi wouldn't have loaded it.
The problem with the missing I've now dropped the |
Avahi isn't loading libnss_mdns_minimal.so.
Also, nss-mdns is using
/var/run/avahi-daemon/socket
as the path for the Avahi socket - it should be/run/avahi-daemon/socket
. In the end I had to resort to a patch, as setting build variables got me nowhere.