FS#34668 - [packagekit] needs to use --disable-strict or fix alpm.patch

Attached to Project: Community Packages
Opened by Kevin Mihelich (kmihelich) - Monday, 08 April 2013, 01:52 GMT
Last edited by Jonathan Conder (PirateJonno) - Tuesday, 09 April 2013, 09:54 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jonathan Conder (PirateJonno)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The build's configure needs to use --disable-strict instead of --enable-strict, which enables -Werror, or the alpm.patch file needs to be fixed.
The use of a return value in a void function is not allowed with -Werror, which turns warnings into errors, killing the build.


Additional info:
* package version: 0.7.6-6
* log files:
CC libpk_backend_alpm_la-pk-backend-config.lo
pk-backend-config.c: In function 'pk_backend_config_add_siglevel':
pk-backend-config.c:491:2: error: 'return' with a value, in function returning void [-Werror]
pk-backend-config.c:492:2: error: 'return' with a value, in function returning void [-Werror]
pk-backend-config.c:493:2: error: 'return' with a value, in function returning void [-Werror]
cc1: all warnings being treated as errors
make[3]: *** [libpk_backend_alpm_la-pk-backend-config.lo] Error 1

Steps to reproduce: Build from a clean chroot.
This task depends upon

Closed by  Jonathan Conder (PirateJonno)
Tuesday, 09 April 2013, 09:54 GMT
Reason for closing:  Fixed
Comment by Jonathan Conder (PirateJonno) - Monday, 08 April 2013, 03:21 GMT
Thanks, not sure how I managed to build this with that error. I'll fix it when I get home; in the meantime you can fix it yourself by replacing

g_return_val_if_fail (..., FALSE)

with

g_return_if_fail (...)

on lines 491-3 of pk-backend-config.c

Loading...