build fails due file(1) again

Elan Ruusamäe glen at pld-linux.org
Wed Jan 28 00:43:30 CET 2015


this time it fails silently:

+ __spec_install_post_strip
+ set +x
  error: Bad exit status from /tmp/B.129c483e-b190-40b5-9a83-6875372ff3f0/BUILD/tmp/rpm-tmp.84448 (%install)

     RPM build errors:
Bad exit status from /tmp/B.129c483e-b190-40b5-9a83-6875372ff3f0/BUILD/tmp/rpm-tmp.84448 (%install)
  ended at: Wed Jan 28 00:34:51 2015, done in 0:03:11.238332
  error: No files produced.


when looking closely (running with -debug) set -x is invoked and it 
somehow bypasses "exit 1" from file:

Processing files: apache-mod_pagespeed-1.8.31.6-0.29.x86_64
error: magic_file(ms, 
/home/users/glen/tmp/apache-mod_pagespeed-1.8.31.6-root-glen/usr/src/examples/apache-mod_pagespeed-1.8.31
.6/images/Puzzle.jpg) failed: JPEG image data, Exif standard: [TIFF 
image data, big-endian, direntries=13, manufacturer=FUJIFIL
M, model=FinePix F30    , orientation=upper-left, 
orientation=upper-left, xresolution=196, yresolution=204, 
resolutionunit=2, s
oftware=QuickTime 7.1.6, datetime=2007:05:16 11:57:40, hostcomputer=Mac 
OS X 10.4.9, copyright=    ], baseline, precision 8, 10
23x766, frames 3, comment: "AppleMark", baseline, precision 8, 1023x766, 
frames 3name use count (30) exceeded
error: magic_file(ms, 
/home/users/glen/tmp/apache-mod_pagespeed-1.8.31.6-root-glen/usr/src/examples/apache-mod_pagespeed-1.8.31
.6/images/blocking_rewrite_test_dont_reuse_1.jpg) failed: JPEG image 
data, Exif standard: [TIFF image data, big-endian, direntr
ies=13, manufacturer=FUJIFILM, model=FinePix F30    , 
orientation=upper-left, orientation=upper-left, xresolution=196, yresolut
ion=204, resolutionunit=2, software=QuickTime 7.1.6, datetime=2007:05:16 
11:57:40, hostcomputer=Mac OS X 10.4.9, copyright=
], baseline, precision 8, 1023x766, frames 3, comment: "AppleMark", 
baseline, precision 8, 1023x766, frames 3name use count (30
) exceeded
error: magic_file(ms, 
/home/users/glen/tmp/apache-mod_pagespeed-1.8.31.6-root-glen/usr/src/examples/apache-mod_pagespeed-1.8.31
.6/images/blocking_rewrite_test_dont_reuse_2.jpg) failed: JPEG image 
data, Exif standard: [TIFF image data, big-endian, direntr
ies=13, manufacturer=FUJIFILM, model=FinePix F30    , 
orientation=upper-left, orientation=upper-left, xresolution=196, yresolut
ion=204, resolutionunit=2, software=QuickTime 7.1.6, datetime=2007:05:16 
11:57:40, hostcomputer=Mac OS X 10.4.9, copyright=    ], baseline, 
precision 8, 1023x766, frames 3, comment: "AppleMark", baseline, 
precision 8, 1023x766, frames 3name use count (30) exceeded
skipping /usr/src/examples/apache-mod_pagespeed-1.8.31.6 requires detection

$ file 
/home/users/glen/tmp/apache-mod_pagespeed-1.8.31.6-root-glen/usr/src/examples/apache-mod_pagespeed-1.8.31.6/images/Puzzle.jpg 

/home/users/glen/tmp/apache-mod_pagespeed-1.8.31.6-root-glen/usr/src/examples/apache-mod_pagespeed-1.8.31.6/images/Puzzle.jpg: 
ERROR: JPEG image data, Exif standard: [TIFF image data, big-endian, 
direntries=13, manufacturer=FUJIFILM, model=FinePix F30    , 
orientation=upper-left, orientation=upper-left, xresolution=196, 
yresolution=204, resolutionunit=2, software=QuickTime 7.1.6, 
datetime=2007:05:16 11:57:40, hostcomputer=Mac OS X 10.4.9, 
copyright=    ], baseline, precision 8, 1023x766, frames 3, comment: 
"AppleMark", baseline, precision 8, 1023x766, frames 3name use count 
(30) exceeded
$ echo $?
1
$ rpm -q file
file-5.22-1.x86_64

imho files in %{_examplesdir} shouldn't be scanned for strip at all...

should we also try to increase name use count to be bigger than 30?
http://mx.gw.com/pipermail/file/2014/001643.html

-- 
glen



More information about the pld-devel-en mailing list