Recent

Author Topic: fpcbuild  (Read 3197 times)

mica

  • Full Member
  • ***
  • Posts: 192
fpcbuild
« on: April 16, 2015, 06:28:27 pm »
i´ve tried the fpcbuild from
ftp://ftp.freepascal.org/pub/fpc/snapshot/trunk/source/fpcbuild.zip


Building a FPC RPM with make rpm NOGDB=1 NODOCS=1
fails:

...
Processing files: fpc-3.1.1-1.x86_64
error: Directory not
found: /xxx/fpcbuild/build/rpm/BUILDROOT/fpc-3.1.1-1.x86_64/usr/share/doc/packages/fpc-3.1.1/ide
error: File not
found: /xxx/fpcbuild/build/rpm/BUILDROOT/fpc-3.1.1-1.x86_64/usr/share/doc/packages/fpc-3.1.1/ide/readme.ide

RPM build errors:
    Directory not
found: /xxx/fpcbuild/build/rpm/BUILDROOT/fpc-3.1.1-1.x86_64/usr/share/doc/packages/fpc-3.1.1/ide
    File not
found: /xxx/fpcbuild/build/rpm/BUILDROOT/fpc-3.1.1-1.x86_64/usr/share/doc/packages/fpc-3.1.1/ide/readme.ide
Makefile:2616: recipe for target 'rpmbuild' failed
make: *** [rpmbuild] Error 1

opensuse 13.2

some hints?
« Last Edit: April 17, 2015, 03:21:04 pm by mica »

mica

  • Full Member
  • ***
  • Posts: 192
Re: fpcbuild
« Reply #1 on: April 20, 2015, 05:59:16 pm »
ok very dirty solution:
removed the lines:
 
%dir %{docdir}/ide
%doc %{docdir}/ide/readme.ide

from /fpcbuild/install/fpc.spec

now i get:



Checking for unpackaged file(s): /usr/lib/rpm/check-files /data2/data1/lazarus/f
pcbuild/fpcbuild/build/rpm/BUILDROOT/fpc-3.1.1-1.x86_64
error: Installed (but unpackaged) file(s) found:
   /usr/share/doc/fpc-3.1.1/aspell/examples/example.pas
   /usr/share/doc/fpc-3.1.1/bzip2/examples/pasbzip.pas
   /usr/share/doc/fpc-3.1.1/cdrom/examples/getdiscid.pp
   .... .... ...
   .... ....
   ... etc etc

Edit:
Again dirty solution
changed /usr/lib/rpm/macros

%_unpackaged_files_terminate_build   1 
to
%_unpackaged_files_terminate_build   0

now FPC RPM builds
« Last Edit: April 21, 2015, 06:40:37 am by mica »