apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61417] apr-util MUST NOT use buildflags of installed apr
Date Sun, 29 Oct 2017 15:13:32 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61417

--- Comment #8 from Reindl Harald <h.reindl@thelounge.net> ---
maybe the script below makes it more understandable, it build all that packages
with -mtune=native and these are always installed on the buildmachine

i want to build httpd for older machines without replace apr/apr-util every
time and i have seen no other case where GCC flags are inhertied from whatever
library especially when CFLAGS and LDFLAGS are explicit set

[builduser@testserver:/rpmbuild/SPECS]$ cat build-native.sh
#!/usr/bin/bash

akt_user=`whoami`
if test $akt_user == "root"
then
 echo "NOT AS ROOT"
 exit 1
fi

cd /rpmbuild/SPECS/

basearch=`uname -i`
releasever=`rpm -q --qf "%{version}\n" generic-release`

function rh_update_built_packages
{
 sudo yum-deprecated --nogpgcheck -y update /rpmbuild/RPMS/$basearch/*.rpm
 sudo yum-deprecated --nogpgcheck -y update /rpmbuild/RPMS/noarch/*.rpm
}

> /rpmbuild/build-native.log

rpmbuild -bb apr.spec --with production 2>&1 | tee -a
/rpmbuild/build-native.log
rh_update_built_packages
rpmbuild -bb apr-util.spec --with production 2>&1 | tee -a
/rpmbuild/build-native.log
rh_update_built_packages
rpmbuild -bb httpd.spec --with production 2>&1 | tee -a
/rpmbuild/build-native.log
rh_update_built_packages
rpmbuild -bb mariadb.spec --with production 2>&1 | tee -a
/rpmbuild/build-native.log
rpmbuild -bb mod_security.spec --with production 2>&1 | tee -a
/rpmbuild/build-native.log
rpmbuild -bb php.spec --with production 2>&1 | tee -a
/rpmbuild/build-native.log
rpmbuild -bb php-pecl*.spec --with production 2>&1 | tee -a
/rpmbuild/build-native.log
rpmbuild -bb trafficserver.spec --with production 2>&1 | tee -a
/rpmbuild/build-native.log
rh_update_built_packages

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message