Skip to contentSkip to conversation

SeLinux packages compiled smoothly on ppc (after some help ..)

DISCUSSION Wolfgang Pfeiffer 2 participants 3 messages Jul 27, 2004 – Jul 28, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hi all

With the patches/packages from (IIRC :)
http://www.coker.com.au/newselinux/
it's possible to build these binaries on ppc (on Debian/unstable and a Powerbook G4):

cron_3.0pl1-83.se1_powerpc.deb
dpkg-dev_1.10.22_all.deb
dpkg-doc_1.10.22_all.deb
dpkg_1.10.22_powerpc.deb
dselect_1.10.22_powerpc.deb
logrotate_3.7-2.se1_powerpc.deb
libpam-cracklib_0.77-0.se5_powerpc.deb
libpam-doc_0.77-0.se5_all.deb
libpam-modules_0.77-0.se5_powerpc.deb
libpam-runtime_0.77-0.se5_all.deb
libpam0g-dev_0.77-0.se5_powerpc.deb
libpam0g_0.77-0.se5_powerpc.deb
openssh-client-udeb_3.8.1p1-7_powerpc.udeb
openssh-server-udeb_3.8.1p1-7_powerpc.udeb
ssh-askpass-gnome_3.8.1p1-7_powerpc.deb
ssh_3.8.1p1-7_powerpc.deb
initscripts_2.85-22.se2_powerpc.deb
sysv-rc_2.85-22.se2_all.deb
sysvinit_2.85-22.se2_powerpc.deb

FYI:
Not all of them built with the same compiler, provided I didn't make any other mistake.
For example:

fakeroot apt-get source --compile dpkg=1.10.22-se1

works not with 2.95, but with 3.4.
The build with 2.95 ended with:
______________________________________
checking for initscr in -lncurses... yes
checking if TIOCNOTTY is defined in sys/ioctl.h... yes
checking for va_copy... no
checking for va_list assignment copy... configure: error: no
make: *** [/home/shorty/testone/dpkg-1.10.22/build/configure-stamp] Error 1 Build command 'cd dpkg-1.10.22 && dpkg-buildpackage -b -uc' failed.
E: Child process failed
______________________________________

And this:
I patched the openssh sources only with the openssh-selinux.patch.gz and *not* with the
ssh.diff.gz
that can be found in the same directory on
http://www.coker.com.au/newselinux/

Like that:
---------------------------------
apt-get source openssh
cd openssh-3.8.1p1/
cp ../../openssh-selinux.patch.gz .

$ gzip -cd openssh-selinux.patch.gz | patch -p1
patching file contrib/redhat/sshd.init
patching file configure.ac
Hunk #2 succeeded at 2924 (offset -2 lines).
patching file sshpty.c
patching file config.h.in
patching file Makefile.in
patching file session.c
$

fakeroot debian/rules binary

-----------------------------------------

I hope the latter procedure is OK ....

And please let me know in case someone would like to upload ppc packages like the ones above. With detailed guidance on how exactly to build them I'd enjoy to help here, and make them available for others, too ...

Best Regards
And Thanks for your work ..

Wolfgang

Signature · 7 lines
Profile, links: http://profiles.yahoo.com/wolfgangpfeiffer


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 2 lines · Wolfgang Pfeiffer

dpkg_1.10.22_powerpc.deb
ssh_3.8.1p1-7_powerpc.deb

Looks like you got the wrong version of these two.

Quoted 13 lines

fakeroot apt-get source --compile dpkg=1.10.22-se1

works not with 2.95, but with 3.4.
The build with 2.95 ended with:
______________________________________
checking for initscr in -lncurses... yes
checking if TIOCNOTTY is defined in sys/ioctl.h... yes
checking for va_copy... no
checking for va_list assignment copy... configure: error: no
make: *** [/home/shorty/testone/dpkg-1.10.22/build/configure-stamp] Error 1 Build command 'cd dpkg-1.10.22 && dpkg-buildpackage -b -uc' failed.
E: Child process failed
______________________________________

File a FTBFS bug against dpkg in the Debian BTS.

Quoted 6 lines

And this:
I patched the openssh sources only with the openssh-selinux.patch.gz and *not* with the
ssh.diff.gz
that can be found in the same directory on
http://www.coker.com.au/newselinux/

Then you need to run "autoconf" before building it, otherwise you don't get SE Linux support.

Quoted 3 lines

And please let me know in case someone would like to upload ppc packages like the ones above. With detailed guidance on how exactly to build them I'd enjoy to help here, and make them available for others, too ...

Please make them available for the benefit of other people.

Signature · 10 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw

Addendum: SeLinux packages compiled smoothly on ppc (after some help ..)

In reply to Wolfgang Pfeiffer
Quoted 3 lines · Wolfgang Pfeiffer

Hi all

With the patches/packages from (IIRC :)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

should read:
With the patches or packages plus patches from (IIRC :)

Quoted 4 lines

http://www.coker.com.au/newselinux/
it's possible to build these binaries on ppc (on Debian/unstable and a Powerbook G4):
[ ... ]

IIRC: At least in one case (openssl) I took the package from a Debian mirror and and the patch for it from
http://www.coker.com.au/newselinux/

This made the build with the Debian package build system easier for me ... :)

Sorry
Wolfgang

Signature · 7 lines
Profile, links: http://profiles.yahoo.com/wolfgangpfeiffer


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.