[Libosinfo] Fwd: [patch] libosinfo-0.2.6 has wrong $(DESTDIR) handling and breaks installation on package managers
Christophe Fergeau
cfergeau at redhat.com
Thu Apr 4 08:22:41 UTC 2013
Hey,
On Thu, Apr 04, 2013 at 02:07:32AM +0300, Zeeshan Ali (Khattak) wrote:
> I got this patch from Samuli. Christophe already took care of DESDIR
> issue so that part is not needed at least but is the mkdir part
> needed?
I could not hit an issue with the missing mkdir. The rules in
all of the data subdirs will create the db/ directory, but if
we try to create the symlinks before any of the subdirs is processed
(which I guess can happen in parallel builds) then this will be
an issue.
Christophe
>
>
> ---------- Forwarded message ----------
> From: Samuli Suominen <ssuominen at gentoo.org>
> Date: Sat, Mar 30, 2013 at 8:45 PM
> Subject: [patch] libosinfo-0.2.6 has wrong $(DESTDIR) handling and
> breaks installation on package managers
> To: zeeshanak at gnome.org, berrange at redhat.com
>
>
> 2 problems:
>
> - /usr/share/libosinfo/db is not created when required
> - $(DESTDIR) is not used when symlinking the pci.ids, usb.ids
>
> I hope this mail is enough. No credits required. Just push the patch
> if you can, thank you!
>
> - Samuli Suominen
>
>
> --
> Regards,
>
> Zeeshan Ali (Khattak)
> FSF member#5124
> --- data/Makefile.am
> +++ data/Makefile.am
> @@ -11,7 +11,8 @@
> -wget -q -O $@ http://www.linux-usb.org/usb.ids
> else
> usb_ids_install:
> - $(LN_S) $(USB_IDS) $(pkgdatadir)/db/usb.ids
> + -mkdir -p $(DESTDIR)$(pkgdatadir)/db/
> + $(LN_S) $(USB_IDS) $(DESTDIR)$(pkgdatadir)/db/usb.ids
> INSTALL_DATA_HOOK_DEPS += usb_ids_install
> endif
>
> @@ -22,7 +23,8 @@
> -wget -q -O $@ http://pciids.sourceforge.net/v2.2/pci.ids
> else
> pci_ids_install:
> - $(LN_S) $(PCI_IDS) $(pkgdatadir)/db/pci.ids
> + -mkdir -p $(DESTDIR)$(pkgdatadir)/db/
> + $(LN_S) $(PCI_IDS) $(DESTDIR)$(pkgdatadir)/db/pci.ids
> INSTALL_DATA_HOOK_DEPS += pci_ids_install
> endif
>
> _______________________________________________
> Libosinfo mailing list
> Libosinfo at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libosinfo/attachments/20130404/b9d3db19/attachment.sig>
More information about the Libosinfo
mailing list