Ticket #1295 (closed patch: wontfix)
Opened 6 years ago
Last modified 5 years ago
Patch to allow seperate build directory
| Reported by: | Dibblah | Owned by: | ijr |
|---|---|---|---|
| Priority: | trivial | Milestone: | 0.21 |
| Component: | mythtv | Version: | head |
| Severity: | low | Keywords: | |
| Cc: | Ticket locked: | no |
Description
This patch allows the following to work:
mkdir ~/mythbuild cd ~/mythbuild /usr/src/mythtv/configure make make install
- the source directory is completely seperated from the build directory. The source directory is not modified during the build.
It's fairly hacky, but consistently so:
qmake, when it include ( )s a file, changes into the directory of that file first. This means that it's not possible to easily centralise these changes.
Headers do not seem to get pulled in from the VPATH if they're located away from the current build directory - Hence the modifications to the INCLUDEPATHs.
A couple of #include "mythconfig.h" needed changed to #include "config.h" to make picking up the configuration from the build directory easier.
If you are compiling in the same directory as the source, this change has no effect at all.
It has only been tested on x86. I can't see how it'd break other architectures, but it is probably worth mentioning.
Attachments
Change History
Changed 6 years ago by Dibblah
-
attachment
mythseperatebuild2.diff
added
Remove debug echo. No other changes.
Changed 6 years ago by Dibblah
-
attachment
mythseperatebuild3.diff
added
Updated to SVN 9838, bugfix (don't recurse into created links), make sure all new / less used .pros have been updated
Changed 6 years ago by Dibblah
-
attachment
mythseperatebuild4.diff
added
Updated to current (10047) SVN
comment:1 Changed 6 years ago by danielk
- Owner changed from ijr to danielk
- Milestone changed from unknown to 0.20
comment:2 Changed 6 years ago by ijr
- Owner changed from danielk to ijr
Was waiting on an updated patch before applying this..
Changed 6 years ago by Dibblah
-
attachment
mythseperatebuild5.diff
added
Updated to 10224. Not ready for commit - svn version number doesn't work properly
Changed 6 years ago by Dibblah
-
attachment
mythseperatebuild6.diff
added
Fixes previous bug with svnversion and themes not being installed
comment:4 Changed 5 years ago by stuartm
- Status changed from new to closed
- Resolution set to wontfix
Closed at the request of the ticket reporter.
