berclau / qwbfs

Automatically exported from code.google.com/p/qwbfs
0 stars 0 forks source link

Bundled fresh does not respect PREFIX and wants to install itself into /usr/... #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Make sure /opt/ is writable
2. qmake PREFIX=/opt/qwbfs
3. make install

What is the expected output? What do you see instead?
I expect everything to go under /opt/qwbfs/ . However I'm getting the following:

mlt@nb:/tmp/qwbfsmanager-1.2.3-src$ make install
cd fresh/ && make -f Makefile install
make[1]: Entering directory `/tmp/qwbfsmanager-1.2.3-src/fresh'
mkdir: cannot create directory `/usr/include/qt4/FreshCore/': Permission denied
make[1]: *** [install_fresh_core_headers] Error 1
make[1]: Leaving directory `/tmp/qwbfsmanager-1.2.3-src/fresh'
make: *** [sub-fresh-install_subtargets-ordered] Error 2

What version of the product are you using? On what operating system?
1.2.3

Please provide any additional information below.
I'm running Ubuntu GNU/Linux 12.04.1

Original issue reported on code.google.com by m...@gmx.us on 12 Oct 2012 at 4:01

GoogleCodeExporter commented 8 years ago
I did not look into details but here is what I did.
It looks like qwbfs links statically with fresh. So I had to reconfigure fresh 
so it does not want to install into /usr/...

cd fresh
cmake -D CMAKE_INSTALL_PREFIX=/opt/qwbfs .
make install DESTDIR=/opt/qwbfs
cd ..
make install DESTDIR=/opt/qwbfs

Not perfect at all, but

ldd /opt/qwbfs/bin/qwbfsmanager| grep -i fresh

does not show anything and qwbfsmanager starts ok

Original comment by m...@gmx.us on 12 Oct 2012 at 4:27

GoogleCodeExporter commented 8 years ago
Hi,

Looks like it's a bug in the qmake handling.
theorically the make install step should not install fresh library, it's only 
used.
Only qwbfsmanager itself should be installed ( and its dependenceis like 
resources etc).

Hi will investigate that. 

Thanks,

Original comment by pasnox on 18 Oct 2012 at 5:26