I believe I’ve resolved my
package versioning problems, but I’ve ran into another one. It
seems while building the pki-selinux rpm, there’s an error. Has
anyone ever seen this?
[echo]
Completed creating 'pki-selinux' RPM directories.
[echo]
Building 'pki-selinux' RPMS and SRPMS ...
[exec]
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.43161
[exec]
+ umask 022
[exec]
+ cd /home/chris/dogtag-src/release/pki/base/selinux/./dist/rpmpkg/BUILD
[exec]
+ LANG=C
[exec]
+ export LANG
[exec]
+ unset DISPLAY
[exec]
+ cd /home/chris/dogtag-src/release/pki/base/selinux/dist/rpmpkg/BUILD
[exec]
+ rm -rf pki-selinux-1.0.0
[exec]
+ /usr/bin/gzip -dc
/home/chris/dogtag-src/release/pki/base/selinux/dist/source/pki-selinux-1.0.0.tar.gz
[exec]
+ tar -xf -
[exec]
+ STATUS=0
[exec]
+ '[' 0 -ne 0 ']'
[exec]
+ cd pki-selinux-1.0.0
[exec]
++ /usr/bin/id -u
[exec]
+ '[' 500 = 0 ']'
[exec]
++ /usr/bin/id -u
[exec]
+ '[' 500 = 0 ']'
[exec]
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
[exec]
+ exit 0
[exec]
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.43161
[exec]
+ umask 022
[exec]
+ cd /home/chris/dogtag-src/release/pki/base/selinux/./dist/rpmpkg/BUILD
[exec]
+ cd pki-selinux-1.0.0
[exec]
+ LANG=C
[exec]
+ export LANG
[exec]
+ unset DISPLAY
[exec]
+ cd src
[exec]
+ make
[exec]
if [ ! -e /usr/share/selinux/devel/Makefile ]; then echo "You need to
install the SELinux development tools (selinux-policy-devel)" &&
exit 1; fi
[exec]
make -f /usr/share/selinux/devel/Makefile || exit 1;
[exec]
make[1]: Entering directory `/home/chris/dogtag-src/release/pki/base/selinux/dist/rpmpkg/BUILD/pki-selinux-1.0.0/src'
[exec]
Compiling mls pki module
[exec]
pki.te":15:ERROR 'syntax error' at token 'init_script_file' on line 4808:
[exec] init_script_file(pki_ca_script_exec_t)
[exec]
#line 15
[exec]
/usr/bin/checkmodule: error(s) encountered while parsing configuration
[exec]
/usr/bin/checkmodule: loading policy configuration from tmp/pki.tmp
[exec]
make[1]: *** [tmp/pki.mod] Error 1
[exec]
make[1]: Leaving directory
`/home/chris/dogtag-src/release/pki/base/selinux/dist/rpmpkg/BUILD/pki-selinux-1.0.0/src'
[exec]
[exec]
[exec]
RPM build errors:
[exec]
make: *** [all] Error 1
[exec]
error: Bad exit status from /var/tmp/rpm-tmp.43161 (%build)
[exec] Bad exit status from /var/tmp/rpm-tmp.43161
(%build)
[exec]
Result: 1
[echo]
Completed building 'pki-selinux' RPMS and SRPMS.
[echo]
Removing various 'pki-selinux' RPM directories and files ...
[delete] Deleting
directory /home/chris/dogtag-src/release/pki/base/selinux/dist/rpmpkg/BUILD
[echo]
Completed removing various 'pki-selinux' RPM directories and files.
[echo]
Completed generating 'pki-selinux' RPMS and SRPMS.
From: Brown, Chris
Sent: Tuesday, February 03, 2009 10:21 AM
To: 'Veale, Sean'; pki-users@redhat.com
Subject: RE: [Pki-users] building dogtag
I tried
erasing and installing the offending packages, but the packages still were not
at the right version:
[]sudo
yum info nss-devel
Installed
Packages
Name
: nss-devel
Arch
: i386
Version:
3.11.7
Release:
10.fc8
Size
: 950 k
Repo
: installed
From: Veale, Sean [mailto:sean.veale@gdc4s.com]
Sent: Tuesday, February 03, 2009 9:26 AM
To: Brown, Chris; pki-users@redhat.com
Subject: RE: [Pki-users] building dogtag
I would check to see if you have
later package installed (yes I know the message says >=). I found on a
clean install of fedora 9 where I did a Yum upgrade on the system and then
followed the build instructions I had problems with dependencies where the
packkages being too new. I then had to uninstall the offending packages and thier
dependencies. When I did a yum <package name> it picked up the right
dependencies.
I.e. the steps I did was
rpm -q <package name>
to see what I had.
yum install <package
name> check the log to see what errors I recieved.
yum erases <dependencies>
yum install <package
name> as this would also pick up the depencies.
Sean
From:
pki-users-bounces@redhat.com [mailto:pki-users-bounces@redhat.com] On Behalf
Of Brown, Chris
Sent: Tuesday, February 03, 2009 9:19 AM
To: pki-users@redhat.com
Subject: [Pki-users] building dogtag
I am trying to build dogtag from
the latest SVN trunk using the default Fedora 8 installation. While running
the build_pki script, I receive the following unmet dependencies:
[exec]
error: Failed build dependencies:
[exec] java-devel >= 1.6.0 is needed by
osutil-1.0.0-4.fc8.i386
[exec] nspr-devel >= 4.6.99 is needed by
osutil-1.0.0-4.fc8.i386
[exec] nss-devel >= 3.12.0 is needed by
osutil-1.0.0-4.fc8.i386
I’ve tried to update these
rpms, but there are no updates available for Fedora 8. Should I upgrade to
Federa 9 to get these packages? Thanks