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 377176 - Install of speedprof ignores DESTDIR.
Install of speedprof ignores DESTDIR.
Status: RESOLVED FIXED
Product: memprof
Classification: Other
Component: general
0.6
Other All
: Normal minor
: ---
Assigned To: MemProf Maintainers
MemProf Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-11-19 22:29 UTC by Patrick Williams
Modified: 2007-08-11 19:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Patrick Williams 2006-11-19 22:29:44 UTC
Please describe the problem:
When installing memprof-0.6 package, the DESTDIR directive is ignored for the speedprof symbolic link.  Therefore, if an alternate install directory is used, the install fails because memprof does not exist in /usr/bin for the symlink.

I encountered this while trying to update the ebuild for Gentoo.

Steps to reproduce:
1. Use alternate DESTDIR.
2. Attempt install of memprof.



Actual results:
Install fails.

Expected results:
Symbolic link for speedprof happens under alternate install directory.

Does this happen every time?
Yes.

Other information:
Sample patch file to fix:

--- memprof-0.6.orig/Makefile.in	2006-08-07 17:49:40.000000000 -0500
+++ memprof-0.6/Makefile.in	2006-11-19 16:10:16.000000000 -0600
@@ -1012,7 +1012,7 @@
 	$(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA)
 
 install-exec-hook:
-	cd $(bindir) && ln -sf memprof speedprof
+	cd $(DESTDIR)$(bindir) && ln -sf memprof speedprof
 
 .PHONY: copyrights
Comment 1 Aaron Griffin 2007-03-04 08:03:36 UTC
Just confirming this.  The above DESTDIR change works fine
Comment 2 Soren Sandmann Pedersen 2007-08-11 19:35:45 UTC
2007-08-11  Soren Sandmann <sandmann@daimi.au.dk>

        * Makefile.am (install-exec-hook): Install speedprof in
        DESTDIR. Bug 377176 - patch from Patrick Williams.