All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Pfeiffer <roto@gmx.net>
To: Russell Coker <russell@coker.com.au>,
	SE-Linux <selinux@tycho.nsa.gov>,
	Erich Schubert <erich@debian.org>,
	Colin Walters <walters@verbum.org>,
	Luke Kenneth Casson Leighton <lkcl@lkcl.net>
Subject: Re: [Fwd: Re: Building SE-ssh. Result: fakeroot: Permission denied]
Date: Sun, 01 Aug 2004 15:56:07 +0200	[thread overview]
Message-ID: <1091368566.1295.213.camel@debby> (raw)
In-Reply-To: <1091278744.1295.40.camel@debby>

On Sat, 2004-07-31 at 14:59, Wolfgang Pfeiffer wrote:

                   [ ... ]

> 
> Tomorrow, Sunday, I will try to re-establish conditions for a failing
> se-openssh build, i.e. I will try to first uninstall
> ecos, ecosconfig, libwxgtk2.4
> again and then rebuild ssh: the stock debian one and the other one
> patched for SE-Linux, logging both builts, if possible --- I hope things
> will become clear by that.

           [ ... ]

I'm stumped: Today the builds worked without
ecos, ecosconfig and libwxgtk2.4 being installed:

# apt-get remove --purge ecos ecosconfig libwxgtk2.4
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  ecos* ecosconfig* libwxgtk2.4*
0 upgraded, 0 newly installed, 3 to remove and 124 not upgraded.
Need to get 0B of archives.
After unpacking 94.3MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 136765 files and directories currently installed.)
Removing ecos ...
Removing ecosconfig ...
Purging configuration files for ecosconfig ...
Removing libwxgtk2.4 ...

$ locate ansi.h
/usr/src/ecos/packages/net/common/v2_0/include/machine/ansi.h
shorty@ 14:26:04:$ ls /usr/src/ecos/packages/net/common/v2_0/include/machine/ansi.h
ls: /usr/src/ecos/packages/net/common/v2_0/include/machine/ansi.h: No such file or directory

:# apt-get build-dep openssh
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 to remove and 124 not upgraded.

# ll `which gcc`
lrwxrwxrwx  1 root root 8 Jul 30 16:48 /usr/bin/gcc -> gcc-2.95

Then AFAIKS, successfully building a default Debian ssh package with
this script I called
ssh-default-debian.getandbuild.sh:

###############################################
#!/bin/sh -x
/bin/sh -n $HOME/ssh-default-debian.getandbuild.sh && \
cd $HOME/ssh-default-debian.getandbuild/ && \
rm -rf * && \
fakeroot apt-get source --compile openssh
##############################################

I ran the latter like that:
./ssh-default-debian.getandbuild.sh &> ssh-default-debian.getandbuild.log.txt

(during the build I slightly hit the desk where the computer did the
compile: I didn't repeat the above compile for that ... )

Here's what I got:

:$ ls -R ssh-default-debian.getandbuild/ | egrep '(\.udeb|\.deb)$'
openssh-client-udeb_3.8.1p1-8_powerpc.udeb
openssh-server-udeb_3.8.1p1-8_powerpc.udeb
ssh-askpass-gnome_3.8.1p1-8_powerpc.deb
ssh_3.8.1p1-8_powerpc.deb

The log for the latter build is on
<http://www.geocities.com/wolfgangpfeiffer/ssh-default-debian.getandbuild.log.txt>


Now the SE-build:

With the sources from http://www.coker.com.au/newselinux/ repositories
it worked like a charm.
Here's the script ("ssh-SE.getandbuild.sh") I used:

######################################
#!/bin/sh -x
/bin/sh -n $HOME/ssh-SE.getandbuild.sh && \
cd $HOME/ssh-SE.getandbuild/ && \
rm -rf * && \
curl -f -O http://www.coker.com.au/newselinux/ssh/openssh_3.8.1p1.orig.tar.gz && \
curl -f -O http://www.coker.com.au/newselinux/ssh/openssh-selinux.patch.gz && \
curl -f -O http://www.coker.com.au/newselinux/ssh/openssh-selinux.patch.gz.sign && \
curl -f -O http://www.coker.com.au/newselinux/ssh/openssh_3.8.1p1-7.se1.diff.gz && \
tar -xzvf *\.tar.gz && \
cd openssh-3.8.1p1/ && \
cp ../openssh_3.8.1p1-7.se1.diff.gz . && \
gzip -cd  openssh_3.8.1p1-7.se1.diff.gz | patch -p1 && \
chmod +x debian/rules && \
autoconf && \
fakeroot debian/rules binary
###########################################

I ran the latter like that:
./ssh-SE.getandbuild.sh &> ssh-SE.getandbuild.sh.log.txt

$ ls -R ssh-SE.getandbuild/ | egrep '(\.udeb|\.deb)$'
openssh-client-udeb_3.8.1p1-7.se1_powerpc.udeb
openssh-server-udeb_3.8.1p1-7.se1_powerpc.udeb
ssh-askpass-gnome_3.8.1p1-7.se1_powerpc.deb
ssh_3.8.1p1-7.se1_powerpc.deb

The log for the build is here
<http://www.geocities.com/wolfgangpfeiffer/ssh-SE.getandbuild.sh.log.txt>


Now the build with the sources from
<http://selinux.lemuria.org/newselinux/ssh/>

Here's the script ("ssh-SE-lemuria.getandbuild.sh") that I ran
like that:
./ssh-SE-lemuria.getandbuild.sh &> ssh-SE-lemuria.getandbuild.log.txt

ssh-SE-lemuria.getandbuild.sh:
######################################################
#!/bin/sh -x
/bin/sh -n $HOME/ssh-SE-lemuria.getandbuild.sh && \
cd $HOME/ssh-SE-lemuria.getandbuild/ && \
rm -rf * && \
curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh_3.8.1p1.orig.tar.gz && \
curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh-selinux.patch.gz && \
curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh-selinux.patch.gz.sign && \
curl -f -O http://selinux.lemuria.org/newselinux/ssh/openssh_3.8.1p1-7.se1.diff.gz && \
tar -xzvf *\.tar.gz && \
cd openssh-3.8.1p1/ && \
cp ../openssh_3.8.1p1-7.se1.diff.gz . && \
gzip -cd  openssh_3.8.1p1-7.se1.diff.gz | patch -p1 && \
chmod +x debian/rules && \
autoconf && \
fakeroot debian/rules binary
######################################################

This last build also worked, IINM:

$ ls -R ssh-SE-lemuria.getandbuild/ | egrep '(\.udeb|\.deb)$'
openssh-client-udeb_3.8.1p1-7.se1_powerpc.udeb
openssh-server-udeb_3.8.1p1-7.se1_powerpc.udeb
ssh-askpass-gnome_3.8.1p1-7.se1_powerpc.deb
ssh_3.8.1p1-7.se1_powerpc.deb

log:
<http://www.geocities.com/wolfgangpfeiffer/ssh-SE-lemuria.getandbuild.log.txt>

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

      reply	other threads:[~2004-08-01 13:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-31 12:59 [Fwd: Re: Building SE-ssh. Result: fakeroot: Permission denied] Wolfgang Pfeiffer
2004-08-01 13:56 ` Wolfgang Pfeiffer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1091368566.1295.213.camel@debby \
    --to=roto@gmx.net \
    --cc=erich@debian.org \
    --cc=lkcl@lkcl.net \
    --cc=russell@coker.com.au \
    --cc=selinux@tycho.nsa.gov \
    --cc=walters@verbum.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.