Michal Hocko schrieb:
> Sorry for delay.
>
>   
>> On Tue, May 08, 2007 at 03:01:07PM +0200, Rainer Lay wrote:
>> config.pro:
>> PREFIX      = /usr
>> EPREFIX     = /usr
>> DATAROOTDIR = $$PREFIX/share
>> DATA_PATH   = /usr/share/pdfedit
>> DOC_PATH    = /usr/share/doc/pdfedit
>> MAN_PATH    = /usr/share/man/man1
>> BIN_PATH    = /usr/bin
>> E_RELEASE   = yes
>> QTVERSION   = qt3
>>     
>
> This file seems little bit different than mine one, but looks ok to me.
>
> I have tried several combinations with(out) --prefix for configure
> script and INSTALL_ROOT (un)set and all paths worked ok.
> Unfortunatelly, I am not able to reproduce your environment (Martin told
> me to check this on his virtual machine installation).
>
>   
>> compilation is started like:
>> %setup -q
>>
>> %build
>> export QMAKESPEC=$QTDIR/mkspecs/linux-g++
>> %configure
>> make 
>>
>> %install
>> [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
>> mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_datadir}}
>> LANG=en INSTALL_ROOT=$RPM_BUILD_ROOT/ make install
>>     
>
> I am not familiar with RPM packages building, but Pavel Ondrousek is
> maintaining one for the Fedora distribution. His spec file is in
> attachement. I think that he doesn't have any problem to build the
> package and there is one also for 0.3.1 version.
>   
Hello Michal,

after I did some more investigation, I found out on my openSUSE box
- I have to set QMAKESPEC
- only qmake from qt3 is producing src/gui/Makefile with the bad
../../../../share paths. Are you shure, you used qmake from qt3 in your
tests?
- Pavels specfile does not help me out, since it neither sets QMAKESPEC,
nor adds /usr/lib/qt3 to the path. When adding these env vars, I get the
described problems.
- I found a solution by first compiling the sources with Makefiles
created by qmake from qt3. For "make install", I have to create a
Makefile with qmake from qt4! This looks like:


%build
export QMAKE=/usr/lib/qt3/bin/qmake
export QMAKESPEC=default

%configure
make 

%install
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_datadir}}

pushd src/gui
rm -f Makefile
/usr/bin/qmake
popd
perl -p -i -e "s|install: src|install:|g" Makefile
make install INSTALL_ROOT=$RPM_BUILD_ROOT


Strange.

Rainer

>   
>> kind regards,
>> Rainer
>>
>> Michal Hocko schrieb:
>>     
>>> On Tue, May 08, 2007 at 12:18:41PM +0200, Michal Hocko wrote:
>>>   
>>>       
>>>> On Tue, May 08, 2007 at 11:34:46AM +0200, Rainer Lay wrote:
>>>>     
>>>>         
>>>>> Sorry for that.
>>>>>
>>>>> LANG=en INSTALL_ROOT=/var/tmp/pdfedit-0.3.1-buildroot/ make install
>>>>> cd doc && ( gmake doc_dist|| make doc_dist )
>>>>> gmake[1]: Entering directory `/usr/src/packages/BUILD/pdfedit-0.3.1/doc'
>>>>>
>>>>> ...
>>>>>
>>>>> cd src && make install
>>>>> make[1]: Entering directory `/usr/src/packages/BUILD/pdfedit-0.3.1/src'
>>>>> cd gui && make install
>>>>> make[2]: Entering directory 
>>>>> `/usr/src/packages/BUILD/pdfedit-0.3.1/src/gui'
>>>>> mkdir: cannot create directory
>>>>> `/var/tmp/pdfedit-0.3.1-buildroot/../../../../../../share': Permission
>>>>> denied
>>>>>       
>>>>>           
>>>> Seems that problem is in your Makefile, because share directory is out 
>>>> of INSTALL_ROOT...
>>>>
>>>> I have tried similar 
>>>> INSTALL_ROOT=~/tmp/pdfedit make install
>>>> and everything worked fine.
>>>>
>>>> Can you send Makefiles generated by your qmake? 
>>>> [tar -cf Makefiles.tar `find -name "Makefile"`] 
>>>> Though src/gui/Makefile should be enough.
>>>> Maybe there is problem in Makefiles generation on your platform.
>>>>     
>>>>         
>>>   
>>>       
>>>> On Tue, May 08, 2007 at 01:04:13PM +0200, Rainer Lay wrote:
>>>> here they come ...
>>>>     
>>>>         
>>> Here is a part of your src/gui/Makefile:
>>> [...]
>>> INCPATH  = -I/usr/lib/qt3/mkspecs/default -I. -I.. -I../utils -I../xpdf
>>> -I../xpdf/xpdf -I../xpdf/goo -I../kernel -I../kpdf-kde-3.3.2
>>> -I../xpdf/splash -I../qsa/src/qsa -I../../../../../../include
>>> -I$(QTDIR)/include -I.ui/ -I.moc/
>>> [...]
>>> Makefile: pdfedit.pro  /usr/lib/qt3/mkspecs/default/qmake.conf 
>>> ../../config.pro \
>>>     ../xpdf/config_xpdf_variables \
>>>     ../kernel/kernel-obj.pro \
>>>     ../../../../../../lib/qt3/lib/libqt-mt.prl
>>>     $(QMAKE) -o Makefile pdfedit.pro
>>> [...]
>>> install_data: all 
>>>     @$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)../../../../../../share/pdfedit/" || 
>>> $(MKDIR) "$(INSTALL_ROOT)../../../../../../share/pdfedit/"
>>>     -$(INSTALL_FILE) "pdfeditrc" 
>>> "$(INSTALL_ROOT)../../../../../../share/pdfedit/"
>>>     -$(INSTALL_FILE) "mode.conf" 
>>> "$(INSTALL_ROOT)../../../../../../share/pdfedit/"
>>> [...]
>>>
>>> As you can see there is ../../../../../../ path used for both header
>>> files and installation target.
>>> Have you used any special parameters during configuration?
>>> What is in your config.pro (in the root of pdfedit)?
>>>       
>
> Best regrads
>   
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pdfedit-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pdfedit-support

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to