Topic: test errors when rebuilding icu-last-50.1.2-10 from srpm

Hi Remi,

First of all, thank you for the great repository. It helps me a lot!

I'm getting some test errors when trying to rebuild icu-last-50.1.2-10 from the source RPM. Here is what I did.

1) download icu-last-50.1.2-10.remi.src.rpm and installed it on a CentOS 6.4 Amazon instance (x64).

2) run "rpmbuild -bb icu-last.spec" to build it.

The build itself looks OK but when it's running the self test, I keep getting the same errors as follows. I have tried it on two Amazon instances. They both are CentOS 6.4 x64. Could you kindly let me know what could be the cause? Thanks a lot.

      DateFormatTest {
         TestPatterns {
         } OK:   TestPatterns  (154ms) 
         TestEquals {
         } OK:   TestEquals 
         TestTwoDigitYearDSTParse {
         } OK:   TestTwoDigitYearDSTParse 
         TestFieldPosition {
         } OK:   TestFieldPosition  (31ms) 
         TestPartialParse994 {
         } OK:   TestPartialParse994 
         TestRunTogetherPattern985 {
         } OK:   TestRunTogetherPattern985 
         TestRunTogetherPattern917 {
         } OK:   TestRunTogetherPattern917 
         TestCzechMonths459 {
         } OK:   TestCzechMonths459 
         TestLetterDPattern212 {
         } OK:   TestLetterDPattern212 
         TestDayOfYearPattern195 {
         } OK:   TestDayOfYearPattern195 
         TestQuotePattern161 {
         } OK:   TestQuotePattern161 
         TestBadInput135 {
         } OK:   TestBadInput135  (15ms) 
         TestBadInput135a {
         } OK:   TestBadInput135a 
         TestTwoDigitYear {
         FAIL: Expected -1122739200000
      
         } ERRORS (1) in TestTwoDigitYear

  TestDateFormatZone061 {
         } OK:   TestDateFormatZone061 
         TestDateFormatZone146 {
         } OK:   TestDateFormatZone146  (26ms) 
         TestLocaleDateFormat {
         } OK:   TestLocaleDateFormat 
         TestWallyWedel {
         } OK:   TestWallyWedel  (16ms) 
         TestDateFormatCalendar {
         } OK:   TestDateFormatCalendar 
         TestSpaceParsing {
         } OK:   TestSpaceParsing 
         TestExactCountFormat {
         } OK:   TestExactCountFormat 
         TestWhiteSpaceParsing {
         } OK:   TestWhiteSpaceParsing 
         TestInvalidPattern {
         } OK:   TestInvalidPattern 
         TestGeneral {
         } OK:   TestGeneral 
         TestGreekMay {
         } OK:   TestGreekMay 
         TestGenericTime {
         } OK:   TestGenericTime  (29ms) 
         TestGenericTimeZoneOrder {
         } OK:   TestGenericTimeZoneOrder  (532ms) 
         TestHost {
         } OK:   TestHost 
         TestEras {
         } OK:   TestEras 
         TestNarrowNames {
         } OK:   TestNarrowNames 
         TestStandAloneDays {
         } OK:   TestStandAloneDays 
         TestStandAloneMonths {
         } OK:   TestStandAloneMonths  (31ms) 
         TestQuarters {
         } OK:   TestQuarters 
         TestZTimeZoneParsing {
         } OK:   TestZTimeZoneParsing 
         TestRelative {
         } OK:   TestRelative  (6ms) 
         TestRelativeClone {
         } OK:   TestRelativeClone 
         TestHostClone {
         } OK:   TestHostClone 
         TestTimeZoneDisplayName {
         } OK:   TestTimeZoneDisplayName  (300ms) 
         TestRoundtripWithCalendar {
         } OK:   TestRoundtripWithCalendar  (27ms) 
         Test6338 {
         } OK:   Test6338 
         Test6726 {
         } OK:   Test6726 
         TestGMTParsing {
         } OK:   TestGMTParsing 
         Test6880 {
         } OK:   Test6880 
         TestISOEra {
         } OK:   TestISOEra 
         TestFormalChineseDate {
         } OK:   TestFormalChineseDate 
         TestNumberAsStringParsing {
         } OK:   TestNumberAsStringParsing 
         TestStandAloneGMTParse {
         } OK:   TestStandAloneGMTParse 
         TestParsePosition {
         } OK:   TestParsePosition 
         TestMonthPatterns {
         } OK:   TestMonthPatterns  (90ms) 
         TestContext {
         } OK:   TestContext 
         TestNonGregoFmtParse {
         } OK:   TestNonGregoFmtParse  (12ms) 
         TestDotAndAtLeniency {
         } OK:   TestDotAndAtLeniency  (40ms) 
   
      } ERRORS (1) in DateFormatTest( 1.35s )

.....

 } ERRORS (1) in format((86.3s))

---------------
ALL TESTS SUMMARY:
ok:  testdata iotest cintltst
===== ERRS:  intltest
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/icu/source/test'
make: *** [check-recursive] Error 2
make: Leaving directory `/root/rpmbuild/BUILD/icu/source'
error: Bad exit status from /var/tmp/rpm-tmp.YNvyEO (%check)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.YNvyEO (%check)

Re: test errors when rebuilding icu-last-50.1.2-10 from srpm

Same problem here (using mock, I never use directly rpmbuild).

Something have probably changed in the system since I build it (Oct 2013).
I don't know what, need investigation (when I will have some free time).

Why do you need to rebuild it ? Can't you simply use the provided binary RPM ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: test errors when rebuilding icu-last-50.1.2-10 from srpm

Thanks for the quick reply Remi.

Yes, I can simply use the binary RPM in the repo. The reason I'm trying to rebuild it (and PHP 2.4 actually, icu-last is a dependancy of PHP 2.4) is I want to be 100% sure that the RPMs will work on CentOS 6.4 x86_64 Amazon instances because I don't know which CentOS version your RPMs were built on. Of course it must be RHEL/CentOS 6 for RPMs in EL6 repo. But I don't know if it's CentOS 6.4. I'm no expert on RPM packaging, so my reason may be not valid. Maybe it doesn't matter what EL6 version your RPMs were built on and they will just work on all CentOS 6.x versions? Could you give me some advice on it?

By the way, thanks for mentioning mock. I didn't know that. It looks like a better tool for building rpm.

I appreciate your help.

Re: test errors when rebuilding icu-last-50.1.2-10 from srpm

> I don't know which CentOS version your RPMs were built on.
This is explained on the annoucement (for php)
Ex: http://blog.famillecollet.com/post/2014 … and-5.5.13

And the date of build should give you the information.

> Maybe it doesn't matter what EL6 version your RPMs were built on and they will just work on all CentOS 6.x versions?
It matters. Especially because of change in openssl in 6.5.

But keeping running 6.4 with old unsecure openssl is just... sort of suicide (heartbleed)

And I don't know how amazon manage those security updates.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: test errors when rebuilding icu-last-50.1.2-10 from srpm

Thanks for the info Remi.

I'm aware of openssl heartbleed and I installed the latest openssl from CentOS 6 updates.

Since I can't rebuild the icu-last due to the test errors, I will use the binary RPM directly and then rebuild PHP 2.4 from your SRPM. If you found out the cause of the build error, please let me know.

Thanks again.

Re: test errors when rebuilding icu-last-50.1.2-10 from srpm

just to share, you can disable run self test if you still want to build it.


%{!?runselftest: %{expand: %%global runselftest 0}}


thanks

Re: test errors when rebuilding icu-last-50.1.2-10 from srpm

How doest this help ?
Disabling the test suite is obviouly not a good solution.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: test errors when rebuilding icu-last-50.1.2-10 from srpm

ya, it's not a good solution. that why i said, if still want to build it, rather than use your binary RPM. smile

9 (edited by nawawi 2014-09-18 03:12:21)

Re: test errors when rebuilding icu-last-50.1.2-10 from srpm

Hi, I already successful rebuild the RPM package by applying this patch

https://gist.github.com/nawawi/dbe0021e3c439d9ccd85

more info at erack.org/blog/index.php?/plugin/tag/TestTwoDigitYear


CentOS: 6.5, mock: 1.1.41, arch: x86_64


thanks