* [Fwd: Re: Building SE-ssh. Result: fakeroot: Permission denied]
@ 2004-07-31 12:59 Wolfgang Pfeiffer
2004-08-01 13:56 ` Wolfgang Pfeiffer
0 siblings, 1 reply; 2+ messages in thread
From: Wolfgang Pfeiffer @ 2004-07-31 12:59 UTC (permalink / raw)
To: SE-Linux
Sorry,
I forgot to send the message below to this list, too ..
I slightly re-formatted the message headers below for readability
reasons ..
Wolfgang
-----Forwarded Message-----
From: Wolfgang Pfeiffer <roto@gmx.net>
To: Luke Kenneth Casson Leighton <lkcl@lkcl.net>,
Russell Coker <russell@coker.com.au>, Erich Schubert <erich@debian.org>,
Colin Walters <walters@verbum.org>
Subject: Re: Building SE-ssh. Result: fakeroot: Permission denied
Date: Sat, 31 Jul 2004 14:54:21 +0200
On Sat, 2004-07-31 at 00:08, Luke Kenneth Casson Leighton wrote:
> typically what you should do when building a package is to to
> apt-get build-dep <packagename> before-hand.
I do this usually before a build, yes ...
> that will pull in any source building dependencies for you.
>
> if the package DOESN'T compile when you do this, then you need to
> run (and install if you didn't have it) reportbug to report the
> problem, mentioning in this case (if it is actually true!) that
> a build dependency isn't included.
You're right: But the problem, IIRC, didn't show up with official
openssh sources from debian mirrors but with ssh sources from debian
*after* patching them with openssh-selinux.patch.gz and *after* running
"autoconf" before the actual build.
Running autoconf for a *successful default*, i.e. non-SE debian ssh
build isn't necessary, IINM.
Remember my posting from July 28:
"SeLinux packages compiled smoothly on ppc (after some help ..)"?
I wrote there I had build successfully, amongst others, these packages:
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
For the built of the latter ecos, ecosconfig, libwxgtk2.4 were not
installed, IINM ...
So what do I tell the openssh Debian maintainer: Your sources don't
work if I patch them with files that are not (yet ?) part of the Debian
system?
So for me it's not quite clear where the problem lies ... it doesn't
seem to be a bug in a debian package ... or did I miss something?
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.
Please let me someone one if the latter procedure isn't worth the effort
...
Please remember:
I'm running Debian only since about 12 months .. it's still possible I
make mistakes here ..
Thanks for any suggestions
Nice weekend
Wolfgang
--
Profile: http://profiles.yahoo.com/wolfgangpfeiffer
3 more reasons for Linux:
<http://uptime.netcraft.com/up/graph?site=http%3A%2F%2Fwww.whitehouse.gov%2F>
<http://uptime.netcraft.com/up/graph?site=http%3A%2F%2Fwww.fbi.gov%2F>
<http://uptime.netcraft.com/up/graph?site=http%3A%2F%2Fwww.defenselink.mil>
--
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] 2+ messages in thread
* Re: [Fwd: Re: Building SE-ssh. Result: fakeroot: Permission denied]
2004-07-31 12:59 [Fwd: Re: Building SE-ssh. Result: fakeroot: Permission denied] Wolfgang Pfeiffer
@ 2004-08-01 13:56 ` Wolfgang Pfeiffer
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Pfeiffer @ 2004-08-01 13:56 UTC (permalink / raw)
To: Russell Coker, SE-Linux, Erich Schubert, Colin Walters,
Luke Kenneth Casson Leighton
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-01 13:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-31 12:59 [Fwd: Re: Building SE-ssh. Result: fakeroot: Permission denied] Wolfgang Pfeiffer
2004-08-01 13:56 ` 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.