Ciao a tutti,
provando a compilare un rpm dal solito spec escono questi messaggi:
[code]$ rpmbuild -ba gtkradiant.spec
Esecuzione(%prep) in corso: /bin/sh -e /var/tmp/rpm-tmp.4HFl4j
- umask 022
- cd /home/makerpm/rpmbuild/BUILD
- LANG=C
- export LANG
- unset DISPLAY
- tar -xzvf /home/makerpm/rpmbuild/SOURCES/GtkRadiant-1.6-Linux-x86_64-20121007.tar.gz
GtkRadiant-1.6-Linux-x86_64-20121007/
GtkRadiant-1.6-Linux-x86_64-20121007/installs/
…
GtkRadiant-1.6-Linux-x86_64-20121007/bitmaps/icon.bmp
GtkRadiant-1.6-Linux-x86_64-20121007/bitmaps/logo.bmp
GtkRadiant-1.6-Linux-x86_64-20121007/bitmaps/file_save.bmp
GtkRadiant-1.6-Linux-x86_64-20121007/bitmaps/window4.bmp
GtkRadiant-1.6-Linux-x86_64-20121007/bitmaps/logo.png
GtkRadiant-1.6-Linux-x86_64-20121007/bitmaps/view_cubicclipping.bmp
GtkRadiant-1.6-Linux-x86_64-20121007/bitmaps/patch_weld.bmp
GtkRadiant-1.6-Linux-x86_64-20121007/bitmaps/brush_rotatey.bmp
GtkRadiant-1.6-Linux-x86_64-20121007/bitmaps/brush_flipz.bmp
GtkRadiant-1.6-Linux-x86_64-20121007/q3data
GtkRadiant-1.6-Linux-x86_64-20121007/libpng12.so.0 - exit 0
Esecuzione(%build) in corso: /bin/sh -e /var/tmp/rpm-tmp.pIf2hx - umask 022
- cd /home/makerpm/rpmbuild/BUILD
- LANG=C
- export LANG
- unset DISPLAY
- exit 0
Esecuzione(%install) in corso: /bin/sh -e /var/tmp/rpm-tmp.hCYHkI - umask 022
- cd /home/makerpm/rpmbuild/BUILD
- ‘’ /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64 ‘!=’ / ‘]’
- rm -rf /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64
++ dirname /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64 - mkdir -p /home/makerpm/rpmbuild/BUILDROOT
- mkdir /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64
- LANG=C
- export LANG
- unset DISPLAY
- rm -rf /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64
- mkdir -p /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64/usr/bin
- mkdir -p /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64/usr/share
- mkdir -p /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64/usr/share/icons/hicolor/128x128/apps
++ uname -p - cp -Rf GtkRadiant-1.6-Linux-x86_64-20121007/ /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64/usr/share/gtkradiant
- install -p -m 755 /home/makerpm/rpmbuild/SOURCES/gtkradiant.desktop /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64/usr/bin/gtkradiant
- desktop-file-install --dir /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64/usr/share/applications /home/makerpm/rpmbuild/SOURCES/gtkradiant.desktop
- install -p -m 644 /home/makerpm/rpmbuild/SOURCES/gtkradiant.png /home/makerpm/rpmbuild/BUILDROOT/gtkradiant-1.6-20121007.1.fc17.x86_64/usr/share/icons/hicolor/128x128/apps
- /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
- WARNING: ‘check-rpaths’ detected a broken RPATH and will cause ‘rpmbuild’
-
to fail. To ignore these errors, you can set the '$QA_RPATHS'
-
environment variable which is a bitmask allowing the values
-
below. The current value of QA_RPATHS is 0x0000.
- 0x0001 … standard RPATHs (e.g. /usr/lib); such RPATHs are a minor
-
issue but are introducing redundant searchpaths without
-
providing a benefit. They can also cause errors in multilib
-
environments.
- 0x0002 … invalid RPATHs; these are RPATHs which are neither absolute
-
nor relative filenames and can therefore be a SECURITY risk
- 0x0004 … insecure RPATHs; these are relative RPATHs which are a
-
SECURITY risk
- 0x0008 … the special ‘$ORIGIN’ RPATHs are appearing after other
-
RPATHs; this is just a minor issue but usually unwanted
- 0x0010 … the RPATH is empty; there is no reason for such RPATHs
-
and they cause unneeded work while loading libraries
- 0x0020 … an RPATH references ‘…’ of an absolute path; this will break
-
the functionality when the path before '..' is a symlink
- Examples:
-
- to ignore standard and empty RPATHs, execute ‘rpmbuild’ like
- $ QA_RPATHS=$ 0x0001|0x0010 ] rpmbuild my-package.src.rpm
-
- to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like
- $ RPM_BUILD_ROOT= /usr/lib/rpm/check-rpaths
ERROR 0004: file ‘/usr/share/gtkradiant/q3data’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/q3map2’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/bobtoolz.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/model.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/ufoai.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/bkgrnd2d.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/camera.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/surface_heretic2.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/imagewal.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/map.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/vfswad.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/prtview.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/mapxml.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/entity.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/surface_ufoai.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/imagehl.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/imagepng.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/vfspk3.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/surface_quake2.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/shaders.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/spritemodel.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/fgd.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/imagem8.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/image.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/gtkgensurf.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/surface.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/textool.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/hydratoolz.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/vfspak.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/modules/vfsqlpk3.so’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/radiant.bin’ contains an insecure rpath ‘.’ in .]
ERROR 0004: file ‘/usr/share/gtkradiant/q3map2_urt’ contains an insecure rpath ‘.’ in .]
errore: Stato d’uscita errato da /var/tmp/rpm-tmp.hCYHkI (%install)
Errori di compilazione RPM:
Stato d’uscita errato da /var/tmp/rpm-tmp.hCYHkI (%install)
[makerpm@alb SPECS]$[/code]
La cosa strana è che questo errore me lo da solo con l’ultima versione, la http://icculus.org/pipermail/gtkradiant/2012-October/011825.html.
Provando a ricompilare la vecchia versione (20120520), quella sulla pagina http://icculus.org/gtkradiant/downloads.html#gtkr16 non ancora aggioranta, non si presentano problemi e la compilazione va a buon fine.
Mi pare di aver dedotto però che il problema è nel pacchetto e non in rpmbuild, anche perché non c’è niente da compilare nella sezione %build. Anche a qualcun altro sono successi problemi del genere? Sono warning importanti? Hanno senso di essere ascoltati? Se no, come fare per ignorarli?
Se servono maggiori info fatelo sapere.
Ciao!