Thanks Przemek,
I did have .rpmmacros set.

When I used mpkg_rpm.sh in the past the install defaulted to:-
/usr/bin
/usr/lib/harbour
/usr/include/harbour

Just now to avoid the rpm I built harbour from $ make_gnu.sh and
# make_gnu.sh install (with no harbour paths set in environment) and it defaulted to:-
/usr/local/bin
/usr/local/lib/harbour
/usr/local/include/harbour

It compiled my test prg OK but on running :-

[...@jackodesktop hbr]$ testsend
testsend: error while loading shared libraries: libharbour.so: cannot open shared object file: No such file or directory

What is now really needed in environment? I have nothing in there for harbour at present, preferring to go with defaults if possible.

Regards,
Barry



Przemyslaw Czerpak wrote:
On Mon, 23 Mar 2009, Barry Jackson wrote:

Hi,

Thanks Viktor - however I can't build latest SVN with mpkg_rpm.sh.
I tried a clean build with no RPM folder and the script failed - I had to make the RPM tree manually before it would run.(I expected it to make a new one automatically)

It makes it if you do not have local ${HOME}/.rpmmacros file. Otherwise
it tries to use existing configuration and RPM build tree set by user.
I can only guess that you have some old .rpmmacros and you manually
removed the RPM build tree. But it's not Harbour job to fix user
RPM build settings. Of course it's also possible that it fails
for some other reasons with mandriva. In such case I would like to
ask you about details. But 1-st try to use it with from non root
account without any local ~/.rpmmacros

Now it fails in the find-provides at the end :-

Warning: unused libraries in /usr/lib/harbour/libharbour-1.1.0.so: librt.so.1 Warning: unused libraries in /usr/bin/hbrun: libharbour.so libncurses.so.5 libslang.so.2 libX11.so.6 libm.so.6 librt.so.1 libdl.so.2 Warning: unused libraries in /usr/bin/hbi18n: libharbour.so libncurses.so.5 libslang.so.2 libX11.so.6 libm.so.6 librt.so.1 libdl.so.2
Warning: unused libraries in /usr/bin/hbpp: librt.so.1 libdl.so.2
Warning: unused libraries in /usr/bin/harbour: librt.so.1 libdl.so.2
Warning: unused libraries in /usr/bin/hbmk2: libharbour.so libncurses.so.5 libslang.so.2 libX11.so.6 libm.so.6 librt.so.1 libdl.so.2

Now harbour shared library has all external library bindings so we can
remove explicit bindings. I'll do that. Anyhow the above warning messages
can be ignored.

/tmp/harbour-1.1.0-root/usr/share/doc/harbour
+ cp -pr doc/README.RPM /tmp/harbour-1.1.0-root/usr/share/doc/harbour
+ cp -pr doc/en/ /tmp/harbour-1.1.0-root/usr/share/doc/harbour
+ cp -pr doc/es/ /tmp/harbour-1.1.0-root/usr/share/doc/harbour
cp: cannot stat `doc/es/': No such file or directory

this directory had been removed from SVN but RPM and DEB spec have not
been updated yet. I'll make it.

New build scripts creates doc directory but do not create en and es
subdirectories. It should be fixed too and probably scripts created
to build packages updated for modified make_gnu.*

Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Processing files: harbour-debug-1.1.0-devmdv20090
Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/harbour-1.1.0-root
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.44761 (%doc)

I'll commit fix in few minutes, please tests.

best regards,
Przemek

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to