In 0.1-make-install.patch as part of libnss-cache, the following patch is applied: - [ -d $(LIBDIR) ] || install -d $(LIBDIR) - install $(BUILD)/$(LIBRARY) $(LIBDIR) - cd $(LIBDIR); for link in $(LINKS); do ln -sf $(LIBRARY) $$link ; done + [ -d $(DESTDIR)/$(PREFIX)/$(LIBDIR) ] || install -d $(DESTDIR)/$(PREFIX)/$(LIBDIR) + install $(BUILD)/$(LIBRARY) $(DESTDIR)/$(PREFIX)/$(LIBDIR) + cd $(DESTDIR)/$(PREFIX)/$(LIBDIR); for link in $(LINKS); do ln -sf $(LIBRARY) $$link ; done $(DESTDIR) was added by the patch so it looks like whoever came up with this was just trying to add support for that, instead they broke it. $(LIBDIR) already contains $(PREFIX) as part of it's declaration: LIBDIR=$(PREFIX)/lib So the end result is that this ebuild tries to install to /usr/usr/lib instead of /usr/lib. Correct patch would be: - [ -d $(LIBDIR) ] || install -d $(LIBDIR) - install $(BUILD)/$(LIBRARY) $(LIBDIR) - cd $(LIBDIR); for link in $(LINKS); do ln -sf $(LIBRARY) $$link ; done + [ -d $(DESTDIR)/$(LIBDIR) ] || install -d $(DESTDIR)/$(LIBDIR) + install $(BUILD)/$(LIBRARY) $(DESTDIR)/$(LIBDIR) + cd $(DESTDIR)/$(LIBDIR); for link in $(LINKS); do ln -sf $(LIBRARY) $$link ; done Reproducible: Always
Ugh, additional error in this ebuild. The makefile doesn't actually run the nss_cache compile when you do an install. I fixed this by duplicating the emake line in the ebuild and switching the first one to nss_cache, like so: emake LIBDIR="$(get_libdir)" PREFIX=/ DESTDIR="${D}" nss_cache emake LIBDIR="$(get_libdir)" PREFIX=/ DESTDIR="${D}" install There's probably a nicer way to do this but this makes the ebuild actually work properly.
There's no need to CC yourself when you're the reporter of a bug. You will receive mails on changes to this bug anyway.
Makes sense =) Also not sure why I didn't think about this, but the emake line should just read: emake LIBDIR="$(get_libdir)" PREFIX=/ DESTDIR="${D}" nss_cache install
The ebuild only installs files in /lib and not in /usr # qlist sys-auth/libnss-cache /lib/libnss_cache.so.2.0 /lib/libnss_cache.so.2 /lib/libnss_cache.so
+*libnss-cache-0.1-r1 (15 Sep 2010) + + 15 Sep 2010; Michael Weber <xmw@gentoo.org> +libnss-cache-0.1-r1.ebuild, + +files/libnss-cache-0.1-r1-make-install.patch, metadata.xml: + Revbump to fix install locations (bug #277995, thanks Nathan March) and + LDFLAGS (bug #336554). +