After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 363783 - DESTDIR not applied to libxslt-plugins
DESTDIR not applied to libxslt-plugins
Status: RESOLVED FIXED
Product: libxslt
Classification: Platform
Component: general
1.1.x
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2006-10-20 22:58 UTC by Jens Hatlak
Modified: 2007-01-11 00:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch to apply DESTDIR (421 bytes, patch)
2006-11-16 08:30 UTC, Mark Johnson
none Details | Review

Description Jens Hatlak 2006-10-20 22:58:28 UTC
Please describe the problem:
The generated Makefile in version 1.1.17's libxslt/ subdirectory contains a target named install-exec-hook (forth-last line of the file) which looks like this:

    $(mkinstalldirs) "$(libdir)/libxslt-plugins"

It should look like this:

    $(mkinstalldirs) "$(DESTDIR)$(libdir)/libxslt-plugins"

Steps to reproduce:
1. gmake install DESTDIR=/some/path

Actual results:
gmake fails:
/bin/bash ../mkinstalldirs "/usr/local/lib/libxslt-plugins"
mkdir -p -- /usr/local/lib/libxslt-plugins
mkdir: "/usr/local/lib/libxslt-plugins": Permission denied
gmake[3]: *** [install-exec-hook] Error 2

(since I'm building as a regular user, I have no permission to write to /usr/local)

Expected results:
The path should be prefixed with DESTDIR

Does this happen every time?
Yes

Other information:
Comment 1 Mark Johnson 2006-11-16 08:29:12 UTC
I had this problem too.
I applied the above changes to Makefile.am, rebuilt the Makefile.in, and it built fine.
Attaching a trivial patch for Makefile.am.
Comment 2 Mark Johnson 2006-11-16 08:30:38 UTC
Created attachment 76695 [details] [review]
proposed patch to apply DESTDIR
Comment 3 William M. Brack 2007-01-11 00:24:12 UTC
fixed in SVN (actually, fixed on 11 Oct 06)