Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1232650

Summary: dovecot FTBFS on s390(x) and ppc64
Product: [Fedora] Fedora Reporter: Jakub Čajka <jcajka>
Component: dovecotAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: janfrode, mhlavink, rdossant
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.2.18-3.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-01 23:22:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765, 1071880    
Attachments:
Description Flags
Proposed fix none

Description Jakub Čajka 2015-06-17 08:58:31 UTC
Created attachment 1039814 [details]
Proposed fix

Description of problem:
dovecot fails to build due to test failure.
.
.
.
net_is_in_network() .................................................. : ok
test-net.c:59: Assert failed: net_addr2ip("127.0.0.1", &ip) == 0 && ip.family == AF_INET && ip.u.ip4.s_addr == (127 | (1 << 24))
net_ip2addr() ........................................................ : FAILED
test: random seed #1 was 1433227365
numpack (good) ....................................................... : ok
.
.
.



Version-Release number of selected component (if applicable):
dovecot-2.2.18-2.fc20
dovecot-2.2.18-2.fc21
dovecot-2.2.18-2.fc22
dovecot-2.2.18-2.fc23


How reproducible:
Always

Steps to Reproduce:
1. build package on s390(x), ppc64

Actual results:
build fails
http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=308866
http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=309422
http://s390.koji.fedoraproject.org/koji/buildinfo?buildID=316615
http://s390.koji.fedoraproject.org/koji/buildinfo?buildID=317126
http://s390.koji.fedoraproject.org/koji/buildinfo?buildID=321213

Expected results:
build passes

Additional info:
It seems as bug in test suit as test is expecting IPv4 address in LE format (0x0100007f), but it gets address in BE format(0x7f000001). Patch in attachment should fix this issue. Please fix it in all branches.

Thanks Jakub

Scratch builds with patch:
http://koji.fedoraproject.org/koji/taskinfo?taskID=10092460
http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=1843558
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=2550313
http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=3038039

Comment 1 Rafael Fonseca 2015-08-13 12:43:14 UTC
Any updates on this? Has the patch been proposed upstream?

Comment 2 Rafael Fonseca 2015-08-17 13:52:13 UTC
Looks like the patch was applied upstream:

changeset:   18892:b268e186d029
user:        Timo Sirainen <tss>
date:        Mon Jun 29 13:36:38 2015 +0300
summary:     lib: Fixed unit test with big-endian CPUs.

and there is a patch downstream for this ('dovecot-2.2.18-fixbuild.patch') included in dovecot-2.2.18-3.

Can we close this bug?

Comment 3 Fedora Update System 2015-08-17 13:58:21 UTC
dovecot-2.2.18-3.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/dovecot-2.2.18-3.fc22

Comment 4 Fedora Update System 2015-08-19 07:56:49 UTC
Package dovecot-2.2.18-3.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dovecot-2.2.18-3.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-13631/dovecot-2.2.18-3.fc22
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-09-01 23:22:49 UTC
dovecot-2.2.18-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.