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 108694 - 'make install' ignores DESTDIR
'make install' ignores DESTDIR
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: build
2.4
Other other
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-03-18 19:17 UTC by Enrico Scholz
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for 'make DESTDIR=... install' (1.21 KB, patch)
2003-03-18 19:17 UTC, Enrico Scholz
none Details | Review

Description Enrico Scholz 2003-03-18 19:17:16 UTC
When trying to generate a gtkmm-2.2.1 package as non-root user, the
installation fails because the given snapshot directory will be ignored:

| + make DESTDIR=/var/tmp/gtkmm2-2.2.1-root install
| ...
| make[2]: Entering directory
`/var/volatile/rpm/BUILD/gtkmm-2.2.1/examples/book'
| Making install in alignment
| make[3]: Entering directory
`/var/volatile/rpm/BUILD/gtkmm-2.2.1/examples/book/alignment'
| make[4]: Entering directory
`/var/volatile/rpm/BUILD/gtkmm-2.2.1/examples/book/alignment'
| make[4]: Nothing to be done for `install-exec-am'.
| /bin/sh ../../../scripts/mkinstalldirs
/usr/share/doc/gtkmm-2.0/examples/book/alignment
| mkdir -p -- /usr/share/doc/gtkmm-2.0/examples/book/alignment
| mkdir: cannot create directory `/usr/share/doc/gtkmm-2.0/examples':
Read-only file system
| make[4]: *** [install-example-src] Error 1
| make[4]: Leaving directory
`/var/volatile/rpm/BUILD/gtkmm-2.2.1/examples/book/alignment'


The attached patch fixes it.
Comment 1 Enrico Scholz 2003-03-18 19:17:53 UTC
Created attachment 15101 [details] [review]
Fix for 'make DESTDIR=... install'
Comment 2 Murray Cumming 2003-03-19 15:44:48 UTC
Wonderful. I suspect that this fixes distcheck too. This should be 
applied to both "branches". Thanks.
Comment 3 Ole Laursen 2003-03-20 21:24:08 UTC
Applied to gtkmm 2.2. It didn't succeed for gtkmm 2.4, which doesn't
seem to have the same rules in Makefile.am_fragment.
Comment 4 Murray Cumming 2003-03-21 10:10:13 UTC
Thanks Ole.
Comment 5 Murray Cumming 2003-03-22 20:51:10 UTC
Applied to glibmm 2.4 and gtkmm 2.4