We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 289 - Install fails when builddir != sourcedir
Summary: Install fails when builddir != sourcedir
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 1.2.11
Hardware: All All
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-31 16:34 UTC by Maarten ter Huurne
Modified: 2006-09-14 17:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten ter Huurne 2006-07-31 16:34:13 UTC
I prefer to build packages outside of their source dir. This used to work with SDL 1.2.9, but fails for SDL 1.2.11. The problem is the file "sdl.pc", which is generated based on "sdl.pc.in". Since it is a generated file, it resides in the build dir, but the SDL build looks for it in the source dir. As a result, "make install" fails. After applying the patch below, "make install" works.

--- SDL-1.2.11.org/Makefile.in  Sun Jul 30 23:57:31 2006
+++ SDL-1.2.11/Makefile.in      Sun Jul 30 23:56:01 2006
@@ -98,7 +98,7 @@
        $(SHELL) $(auxdir)/mkinstalldirs $(datadir)/aclocal
        $(INSTALL) -m 644 $(srcdir)/sdl.m4 $(datadir)/aclocal/sdl.m4
        $(SHELL) $(auxdir)/mkinstalldirs $(libdir)/pkgconfig
-       $(INSTALL) -m 644 $(srcdir)/sdl.pc $(libdir)/pkgconfig
+       $(INSTALL) -m 644 $(top_builddir)/sdl.pc $(libdir)/pkgconfig
 install-man:
        $(SHELL) $(auxdir)/mkinstalldirs $(mandir)/man3
        for src in $(srcdir)/docs/man3/*.3; do \