1 |
Greetings- |
2 |
|
3 |
I've got a brand new install in the works but its failing to emerge the |
4 |
last two packages of the emerge system step. Namely grub and bin86. |
5 |
|
6 |
Both result in the following: |
7 |
INCOMPLETE MERGE: /var/db/pkg/sys-boot/-MERGING-grub-0.96-r1 |
8 |
INCOMPLETE MERGE: /var/db/pkg/sys-devel/-MERGING-bin86-0.16.17 |
9 |
|
10 |
Not sure if this is related or note worthy, but this is a quad xeon |
11 |
system installing to software raid devices. |
12 |
|
13 |
This looks like an issue with the segfaulting on chown/chgrp/setfiles |
14 |
commands but being new to selinux I really have no idea whats going on |
15 |
wrong. I can run these commands outside of the emerge without errors, |
16 |
but I'm not sure exactly what I and the ebuild are doing different. |
17 |
|
18 |
I've searched the forums and bugs listings, and hit google with no |
19 |
results. It leads me to think I'm missing something that should be |
20 |
obvious and just not seeing it. |
21 |
|
22 |
The ebuild script for grub mentions: |
23 |
* Assuming you do not have a separate /boot partition. |
24 |
which I do actually, and its even mounted as: |
25 |
/dev/md1 on /boot type ext3 (rw) |
26 |
I've not run into issues with this before and have several gentoo |
27 |
systems with a software raid1 for /boot |
28 |
|
29 |
>From the looks of it my issue isnt related specifically to any package |
30 |
but as to why emerge is failing to set selinux security labels. Again, |
31 |
I'm too new to know a good direction to start poking around in. |
32 |
|
33 |
Any help or suggestions are appreciated. |
34 |
|
35 |
Thanks much. |
36 |
|
37 |
-- |
38 |
Jason K Larson |
39 |
|
40 |
|
41 |
|
42 |
More details on the grub failure: |
43 |
|
44 |
prepallstrip: |
45 |
strip: i686-pc-linux-gnu-strip --strip-unneeded |
46 |
strip: i686-pc-linux-gnu-strip --strip-unneeded |
47 |
sbin/grub |
48 |
bin/mbchk |
49 |
>>> Completed installing grub-0.96-r1 into |
50 |
/var/tmp/portage/grub-0.96-r1/image/ |
51 |
|
52 |
/usr/lib/portage/bin/ebuild.sh: line 1882: 1846 Segmentation fault |
53 |
chown portage:portage "${T}/environment" >&/dev/null |
54 |
/usr/lib/portage/bin/ebuild.sh: line 1882: 1847 Segmentation fault |
55 |
chmod g+w "${T}/environment" >&/dev/null |
56 |
>>> Merging sys-boot/grub-0.96-r1 to / |
57 |
* |
58 |
* Assuming you do not have a separate /boot partition. |
59 |
* |
60 |
>>> Setting SELinux security labels |
61 |
/usr/sbin/setfiles: labeling files, pretending |
62 |
/var/tmp/portage/grub-0.96-r1/image is / |
63 |
/usr/sbin/setfiles: labeling files under |
64 |
/var/tmp/portage/grub-0.96-r1/image/ |
65 |
/usr/lib/portage/bin/ebuild.sh: line 1874: 1889 Segmentation fault |
66 |
/usr/sbin/setfiles -r "${IMAGE}" "${T}/file_contexts" "${IMAGE}" |
67 |
|
68 |
!!! ERROR: sys-boot/grub-0.96-r1 failed. |
69 |
!!! Function dyn_preinst, Line 1246, Exitcode 139 |
70 |
!!! Failed to set SELinux security labels. |
71 |
!!! If you need support, post the topmost build error, NOT this status |
72 |
message. |
73 |
|
74 |
!!! FAILED preinst: 1 |
75 |
|
76 |
|
77 |
similar with bin86: |
78 |
prepallstrip: |
79 |
strip: i686-pc-linux-gnu-strip --strip-unneeded |
80 |
strip: i686-pc-linux-gnu-strip --strip-unneeded |
81 |
usr/bin/as86 |
82 |
usr/bin/ld86 |
83 |
usr/bin/objdump86 |
84 |
>>> Completed installing bin86-0.16.17 into |
85 |
/var/tmp/portage/bin86-0.16.17/image/ |
86 |
|
87 |
/usr/lib/portage/bin/ebuild.sh: line 1882: 2233 Segmentation fault |
88 |
chown portage:portage "${T}/environment" >&/dev/null |
89 |
/usr/lib/portage/bin/ebuild.sh: line 1882: 2234 Segmentation fault |
90 |
chmod g+w "${T}/environment" >&/dev/null |
91 |
>>> Merging sys-devel/bin86-0.16.17 to / |
92 |
>>> Setting SELinux security labels |
93 |
/usr/sbin/setfiles: labeling files, pretending |
94 |
/var/tmp/portage/bin86-0.16.17/image is / |
95 |
/usr/sbin/setfiles: labeling files under |
96 |
/var/tmp/portage/bin86-0.16.17/image/ |
97 |
/usr/lib/portage/bin/ebuild.sh: line 1874: 2253 Segmentation fault |
98 |
/usr/sbin/setfiles -r "${IMAGE}" "${T}/file_contexts" "${IMAGE}" |
99 |
|
100 |
!!! ERROR: sys-devel/bin86-0.16.17 failed. |
101 |
!!! Function dyn_preinst, Line 1246, Exitcode 139 |
102 |
!!! Failed to set SELinux security labels. |
103 |
!!! If you need support, post the topmost build error, NOT this status |
104 |
message. |
105 |
|
106 |
!!! FAILED preinst: 1 |
107 |
|
108 |
|
109 |
emerge info: |
110 |
Portage 2.0.51.19 (selinux/2004.1/x86/hardened, gcc-3.3.5-20050130, |
111 |
glibc-2.3.4.20041102-r1, 2.6.5-gentoo-r1 i686) |
112 |
================================================================= |
113 |
System uname: 2.6.5-gentoo-r1 i686 Pentium II (Deschutes) |
114 |
Gentoo Base System version 1.4.16 |
115 |
Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 10 2005, |
116 |
10:18:38)] |
117 |
dev-lang/python: 2.3.5 |
118 |
sys-apps/sandbox: [Not Present] |
119 |
sys-devel/autoconf: 2.13, 2.59-r6 |
120 |
sys-devel/automake: 1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.5 |
121 |
sys-devel/binutils: 2.15.92.0.2-r7 |
122 |
sys-devel/libtool: 1.5.16 |
123 |
virtual/os-headers: 2.6.8.1-r2 |
124 |
ACCEPT_KEYWORDS="x86" |
125 |
AUTOCLEAN="yes" |
126 |
CFLAGS="-O2 -mcpu=pentium2 -march=pentium2 -mmmx -fPIC |
127 |
-momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer |
128 |
-finline-limit=600 -mfpmath=387 -pipe" |
129 |
CHOST="i686-pc-linux-gnu" |
130 |
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config |
131 |
/usr/share/config /var/qmail/control" |
132 |
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" |
133 |
CXXFLAGS="-O2 -mcpu=pentium2 -march=pentium2 -mmmx -fPIC |
134 |
-momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer |
135 |
-finline-limit=600 -mfpmath=387 -pipe" |
136 |
DISTDIR="/usr/portage/distfiles" |
137 |
FEATURES="autoaddcvs autoconfig ccache distlocks loadpolicy sandbox |
138 |
selinux sfperms strict" |
139 |
GENTOO_MIRRORS="http://distfiles.gentoo.org |
140 |
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" |
141 |
MAKEOPTS="-j5" |
142 |
PKGDIR="/usr/portage/packages" |
143 |
PORTAGE_TMPDIR="/var/tmp" |
144 |
PORTDIR="/usr/portage" |
145 |
SYNC="rsync://rsync.gentoo.org/gentoo-portage" |
146 |
USE="berkdb crypt dlloader gdbm hardened ipv6 ipv6arpa ithreads ncurses |
147 |
nptl pam pcre perl pic pie pwdb python readline selinux slang spell ssl |
148 |
threads x86 zlib userland_GNU kernel_linux elibc_glibc" |
149 |
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, |
150 |
PORTDIR_OVERLAY |
151 |
|
152 |
-- |
153 |
gentoo-hardened@g.o mailing list |