Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Development (http://www.linux-archive.org/archlinux-development/)
-   -   devtools will require running systemd (http://www.linux-archive.org/archlinux-development/704129-devtools-will-require-running-systemd.html)

Pierre Schmitz 09-15-2012 06:51 PM

devtools will require running systemd
 
Am 15.09.2012 19:37, schrieb Lukas Jirkovsky:
> If there's anything I can do (such as fixing bugs specific to chroot)
> to put back the move to systemd I'll try to do it.

It's not too complex to add support for both; I just would have saved
the investment if nobody would have needed it anyway.

Greetings,

Pierre

--
Pierre Schmitz, https://pierre-schmitz.com

Rashif Ray Rahman 09-15-2012 07:26 PM

devtools will require running systemd
 
On 16 September 2012 01:26, Pierre Schmitz <pierre@archlinux.de> wrote:
> Hi all,
>
> I am working on using systemd's nspawn instead of plain chroot. I was
> wondering if any DEV or TU does not run systemd on his build system and
> is also not able to switch to it yet (e.g. as not all daemons have been
> ported yet).

I am not running systemd either. But also, I don't often use archbuild
locally (i.e. I rely on brynhild).


--
GPG/PGP ID: C0711BF1

Jan Steffens 09-15-2012 11:20 PM

devtools will require running systemd
 
On Sat, Sep 15, 2012 at 7:43 PM, Tom Gundersen <teg@jklm.no> wrote:
> On Sat, Sep 15, 2012 at 7:37 PM, Lukas Jirkovsky <l.jirkovsky@gmail.com> wrote:
>> I'm not using systemd and I don't want to switch to systemd on my
>> development machine any time soon.
>
> Are there any specific problems that is holding you back from using
> systemd? If so, I'd be happy to help sorting them out.
>
> -t

One problem was the fact that nspawn requires a terminal, so using it
from a cronjob is hard or impossible.

I asked about it, and Lennart added this to systemd's TODO recently.

Giovanni Scafora 09-16-2012 02:06 AM

devtools will require running systemd
 
Il 15/09/2012 19:26, Pierre Schmitz ha scritto:

Hi all,

I am working on using systemd's nspawn instead of plain chroot. I was
wondering if any DEV or TU does not run systemd on his build system and
is also not able to switch to it yet (e.g. as not all daemons have been
ported yet).


I am not running systemd.


--
Arch Linux Developer
http://www.archlinux.org
http://www.archlinux.it

keenerd 10-07-2012 01:50 PM

devtools will require running systemd
 
The whole nspawn thing puts a bit of a crimp in those of us who us
build helpers. But there are exciting workarounds!

I was going to post a clever one liner that gets around nspawn, but I
am not clever enough to get it on one line. I needed 9. And screen.
And you need to manually tell it when the build is done. And you can
only build one thing at a time. Those last two are kind of annoying,
but whatever.

if ! grep pkgbuilder <<< "$(ssh pkgbuild.com screen -ls)"; then
ssh pkgbuild.com screen -d -m -S pkgbuilder
fi

# start build
# '-X exec' runs in a clean shell (~, non-tty) and is not usable
# '-X stuff' needs everything escaped
ssh pkgbuild.com screen -rx pkgbuilder -p0 -X stuff
"cd ~/packages/pkgbuilder-$pkgname/;
sudo extra-x86_64-build;
sudo extra-i686-build;
echo 'Press ^a d...'$'15'"

# wait for user to detach
ssh -t pkgbuild.com screen -rx pkgbuilder -p0

Contact me privately if you'd like to see the rest of the build script
- I don't consider it nice enough to post here.

-Kyle
http://kmkeen.com

Jan Steffens 10-07-2012 01:52 PM

devtools will require running systemd
 
On Sun, Oct 7, 2012 at 3:50 PM, keenerd <keenerd@gmail.com> wrote:
> The whole nspawn thing puts a bit of a crimp in those of us who us
> build helpers. But there are exciting workarounds!
>
> I was going to post a clever one liner that gets around nspawn, but I
> am not clever enough to get it on one line. I needed 9. And screen.
> And you need to manually tell it when the build is done. And you can
> only build one thing at a time. Those last two are kind of annoying,
> but whatever.
>
> if ! grep pkgbuilder <<< "$(ssh pkgbuild.com screen -ls)"; then
> ssh pkgbuild.com screen -d -m -S pkgbuilder
> fi
>
> # start build
> # '-X exec' runs in a clean shell (~, non-tty) and is not usable
> # '-X stuff' needs everything escaped
> ssh pkgbuild.com screen -rx pkgbuilder -p0 -X stuff
> "cd ~/packages/pkgbuilder-$pkgname/;
> sudo extra-x86_64-build;
> sudo extra-i686-build;
> echo 'Press ^a d...'$'15'"
>
> # wait for user to detach
> ssh -t pkgbuild.com screen -rx pkgbuilder -p0
>
> Contact me privately if you'd like to see the rest of the build script
> - I don't consider it nice enough to post here.
>
> -Kyle
> http://kmkeen.com

Notice pkgbuild.com's motd. I already installed a helper to use.

keenerd 10-07-2012 02:20 PM

devtools will require running systemd
 
On 10/7/12, Jan Steffens <jan.steffens@gmail.com> wrote:
> Notice pkgbuild.com's motd. I already installed a helper to use.
>

Yeah, I saw that and was not terribly impressed. It trashes
stdout/error. Useless.

Anyway, whole thing is irrelevant because heftig pointed out that "ssh
-t pkgbuild.com ..." works fine for non-interactive commands. The
only change us over-scripters need to make is adding '-t'.

-Kyle


All times are GMT. The time now is 04:47 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.