All of lore.kernel.org
 help / color / mirror / Atom feed
* SeLinux packages compiled smoothly on ppc (after some help ..)
@ 2004-07-27 22:36 Wolfgang Pfeiffer
  2004-07-28  7:09 ` Russell Coker
  2004-07-28  9:09 ` Addendum: " Wolfgang Pfeiffer
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfgang Pfeiffer @ 2004-07-27 22:36 UTC (permalink / raw)
  To: SE-Linux

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
-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SeLinux packages compiled smoothly on ppc (after some help ..)
  2004-07-27 22:36 SeLinux packages compiled smoothly on ppc (after some help ..) Wolfgang Pfeiffer
@ 2004-07-28  7:09 ` Russell Coker
  2004-07-28  9:09 ` Addendum: " Wolfgang Pfeiffer
  1 sibling, 0 replies; 4+ messages in thread
From: Russell Coker @ 2004-07-28  7:09 UTC (permalink / raw)
  To: Wolfgang Pfeiffer; +Cc: SE-Linux

On Wed, 28 Jul 2004 08:36, Wolfgang Pfeiffer <roto@gmx.net> wrote:
> dpkg_1.10.22_powerpc.deb
> ssh_3.8.1p1-7_powerpc.deb

Looks like you got the wrong version of these two.

> 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.

> 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.

> 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.

-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Addendum: SeLinux packages compiled smoothly on ppc (after some help ..)
  2004-07-27 22:36 SeLinux packages compiled smoothly on ppc (after some help ..) Wolfgang Pfeiffer
  2004-07-28  7:09 ` Russell Coker
@ 2004-07-28  9:09 ` Wolfgang Pfeiffer
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Pfeiffer @ 2004-07-28  9:09 UTC (permalink / raw)
  To: SE-Linux

On Wed, 2004-07-28 at 00:36, Wolfgang Pfeiffer wrote:
> Hi all
> 
> With the patches/packages from (IIRC :)
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

> 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
-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SeLinux packages compiled smoothly on ppc (after some help ..)
@ 2004-07-28 21:06 Wolfgang Pfeiffer
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Pfeiffer @ 2004-07-28 21:06 UTC (permalink / raw)
  To: SE-Linux; +Cc: russell

Sorry I have to paste  below the content from the archives - By a stupid
accident ("rm -rf *" in the wrong directory: I did this dozens of times
the last 2 days: This time in the wrong dir :) I lost all my mails ... I
had to let nsa Majordomo send me the archives of the messages from the
last few days.

Here's Russell Cokers archived message that I will answer  below (I hope
I didn't destroy the correct formatting of Russell's message):

######################################################
On Wed, 28 Jul 2004 08:36, Wolfgang Pfeiffer <roto@gmx.net> wrote:
> dpkg_1.10.22_powerpc.deb
> ssh_3.8.1p1-7_powerpc.deb

Looks like you got the wrong version of these two.

> 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.


> 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.

> 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.

#########################################################


I have a problem in downloading the openssh sources from
http://selinux.lemuria.org/newselinux/ssh/
with a 
apt-get source openssh

This command will download me a package from the debian mirrors I have
in my sources list, but not the package from
<http://selinux.lemuria.org/newselinux>
that I also have in my sources list.

Is there a possibility to downlowd the openssh sources from
http://selinux.lemuria.org/newselinux manually and then create the
debian/ dir in the unpacked openssh dir with dpkg-source, or a with
similar tool?

I know I could simply try replace the original 
openssh_3.8.1p1-7.diff.gz from the debian mirror with the 
http://selinux.lemuria.org/newselinux/ssh/openssh_3.8.1p1-7.se1.diff.gz

But I'm not sure whether this will mess up the resulting binary ... so
if possible I'd like to run a standard build with one of the
apt/dpkg/whatever tools on Debian

Second:
The compile errors probably will disappear if I run "autoconf" as you
told -- But is it neccessary to run "autoconf" for every build I was
reporting yesterday, or definitely just for the 2 (dpkg, ssh) you were
mentioning?

Thanks in anticipation

Note:
Sorry for the slightly pedantic procedure here: But I'd like to make the
resulting packages available for others, too ...

Note 2:
Those who sent me private mails the last 2 days are invited to send them
again to me, if possible: I lost, as I said, all mails this afternoon: I
have all mails that were double-sent to me *and* this list (Thanks to
nsa Majordomo :) ...


Thanks in anticipation

Regards
Wolfgang

-- 
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 majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-28 21:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-27 22:36 SeLinux packages compiled smoothly on ppc (after some help ..) Wolfgang Pfeiffer
2004-07-28  7:09 ` Russell Coker
2004-07-28  9:09 ` Addendum: " Wolfgang Pfeiffer
  -- strict thread matches above, loose matches on Subject: below --
2004-07-28 21:06 Wolfgang Pfeiffer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.