I'm trying to compile php with my own options from SuSE's source rpm with rpm -ba, but I keep getting the weirdest errors. I had to take everything that was in an if..else..then statement out and put it in the main section, and now I've run into this: + --with-config-file-path=/etc/httpd --with-apxs=/usr/sbin/apxs --with-exec-dir=/usr/lib/apache/bin i386-suse-linux-gnu /var/tmp/rpm-tmp.82667: --with-config-file-path=/etc/httpd: No such file or directory Bad exit status from /var/tmp/rpm-tmp.82667 (%install) I do not see how that can possibly be a valid error, since rpm gets the valude /etc/httpd from a variable: --with-config-file-path=%{apache_sysconfdir} and {apache_sysconfdir} comes from: %define apache_sysconfdir %(apxs -q SYSCONFDIR) Does anyone know how I can get around this? I don't see why the variables are failing. ---------------------------------------------------- Jonathan Wilson System Administrator Cedar Creek Software http://www.cedarcreeksoftware.com Central Texas IT http://www.centraltexasit.com
Before you start messing with the configuration files, why don't you just build the package with the suse options. If that is successful, then make your modifications in the .spec file. Who knows what you did when you messed with those if statements, but what you posted: -- Rafael
[oops, pressed the send button by mistake] Before you start messing with the configuration files, why don't you just build the package with the suse options. If that is successful, then make your modifications in the .spec file. Who knows what you did when you messed with those if statements, but what you posted:
+ --with-config-file-path=/etc/httpd --with-apxs=/usr/sbin/apxs --with-exec-dir=/usr/lib/apache/bin i386-suse-linux-gnu /var/tmp/rpm-tmp.82667: --with-config-file-path=/etc/httpd: No such file or directory Bad exit status from /var/tmp/rpm-tmp.82667 (%install)
means that "--with-config-file-path=/etc/httpd" was passed to a shell as a command. So, you broke the build scripts. Look into the .spec file, there should be a line in there with the arguments passed to configure, put yours there. -- Rafael
participants (2)
-
Rafael Herrera
-
wilson@claborn.net