Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Baselayout 2 / OpenRC
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sat Dec 01, 2007 10:58 am    Post subject: Reply with quote

lucapost wrote:
Secondo me è un'ottimo compromesso, che ne pensate?

No, e' una cosa pessima.

Gli script che usano #!/bin/sh dovrebbero essere conformi alle specifiche posix per sh, mentre quelli che usano bashism dovrebbero usare #!/bin/bash. Fine della storia.

Altre soluzioni o compromessi non ce ne sono.
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Sat Dec 01, 2007 11:52 am    Post subject: Reply with quote

Sono d'accordo.

A questo punto ci sono un sacco di script che cominciano con #!/bin/sh che non rispettano lo standard posix?
Sbaglio o questo è un problema della sintassi che piace solo a bash?
_________________
LP
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Sat Dec 01, 2007 1:26 pm    Post subject: Reply with quote

lucapost wrote:
A questo punto ci sono un sacco di script che cominciano con #!/bin/sh che non rispettano lo standard posix?

Esatto...
lucapost wrote:
Sbaglio o questo è un problema della sintassi che piace solo a bash?

Yep, sono i cosiddetti bashism.
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Wed Dec 05, 2007 4:18 pm    Post subject: Reply with quote

[OT]
ho appena scoperto che le ultime release di ubuntu utilizzano dash come shell di default
[OT]
_________________
LP
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Wed Dec 05, 2007 5:26 pm    Post subject: Reply with quote

lucapost wrote:
[OT]
ho appena scoperto che le ultime release di ubuntu utilizzano dash come shell di default
[OT]

false

Dash e' la shell a cui punta /bin/sh.
La shell di default e' bash ;)
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Thu Dec 06, 2007 8:52 am    Post subject: Reply with quote

yep, in effetti $SHELL è impostata su /bin/bash :?
ma uno script dash è sempre compatibile con posix?
_________________
LP
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Thu Dec 06, 2007 10:17 am    Post subject: Reply with quote

lucapost wrote:
yep, in effetti $SHELL è impostata su /bin/bash :?
ma uno script dash è sempre compatibile con posix?

man dash ;)
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Sat Dec 08, 2007 9:34 am    Post subject: Reply with quote

man dash wrote:
Only features designated by POSIX, plus a few Berkeley extensions, are
being incorporated into this shell.

vediamo se riesco a trovare quali sono queste Berkeley extensions....cercherò....


Ora ho un'altro problemino, ho scoperto che non funge il boot interattivo, per capirci meglio, quando durante l'avvio degli initsciprt premo ctrl+i, ottengo il solito menù a 4 opzioni, ma se premo 4 e quindi provo a fare il login come singolo utente, non accetta l'immissione della password.
Non è che non riconosce la password, ma non compare proprio la riga"Password: ", e devo riavviare brutalmente il piccì.
Capita solo a me?
_________________
LP
Back to top
View user's profile Send private message
riverdragon
Veteran
Veteran


Joined: 14 Sep 2006
Posts: 1269
Location: Verona

PostPosted: Thu Dec 13, 2007 3:35 pm    Post subject: Reply with quote

Due cose interessanti che ho trovato girando in cerca di notizie:

1 nuovo target/split per baselayout2? Non ho ben capito dove questo OpenRC, o come si chiamerà, si inserisca.

2 per chi ha seguito la guida per la gestione energetica del wiki, ecco dove è finito il file "softlevel" che risultava introvabile.

EDIT: ho fatto un paio di prove modificando il link /bin/sh, e facendo ripartire a mano gli script di init: con busybox già i primi tentativi danno errore, e sono sempre errori di sintassi dei comandi; con dash, aggiornando un paio di ebuild alla loro versione ~x86 funziona tutto alla stessa velocità di bash (23 secondi al boot testuale, 1 minuto e qualche secondo a gnome caricato), con il problema che "source /etc/profile" all'avvio di xdm non funziona. Se non avete consigli particolari (ad esempio, chi ha provato busybox l'ha fatto con la versione stabile -1.7*- o quella in test -1.8*-?), intanto quindi tengo bash.
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Fri Dec 14, 2007 8:57 am    Post subject: Reply with quote

riverdragon wrote:
nuovo target/split per baselayout2? Non ho ben capito dove questo OpenRC, o come si chiamerà, si inserisca.


che intendi?
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Fri Dec 14, 2007 10:36 am    Post subject: Reply with quote

Lancio il kernel al boot con l'opzione quiet, login manager non li ho, quindi prendo il tempo da quando parte in runlevel di boot a quando il framebuffer è pronto per il login. Ho fatto tre prove per shell, questi che seguono i risultati in media:
  • bash: 12,5 secondi
  • dash: 11.2 secondi

_________________
LP
Back to top
View user's profile Send private message
riverdragon
Veteran
Veteran


Joined: 14 Sep 2006
Posts: 1269
Location: Verona

PostPosted: Fri Dec 14, 2007 12:44 pm    Post subject: Reply with quote

!equilibrium wrote:
che intendi?
Hai letto il post di uberlord raggiungibile cliccando su "1"?

La frase in questione è
roy marples wrote:
Basically baselayout will be split into two entities. Firstly, the bit that lays out the initial file system and provides the core system files shall remain as baselayout. The rest of it (ie, rc, init scripts, etc) will be forked off into a new package called OpenRC (working title).
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Fri Dec 14, 2007 4:07 pm    Post subject: Reply with quote

riverdragon wrote:
Hai letto il post di uberlord raggiungibile cliccando su "1"?


certo

riverdragon wrote:
La frase in questione è
roy marples wrote:
Basically baselayout will be split into two entities. Firstly, the bit that lays out the initial file system and provides the core system files shall remain as baselayout. The rest of it (ie, rc, init scripts, etc) will be forked off into a new package called OpenRC (working title).


e continuo a non capire il senso della tua frase originaria "Non ho ben capito dove questo OpenRC si inserisca".
esattamente *cosa intendi* con il termine "inserire" ?
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
riverdragon
Veteran
Veteran


Joined: 14 Sep 2006
Posts: 1269
Location: Verona

PostPosted: Fri Dec 14, 2007 4:22 pm    Post subject: Reply with quote

Che ruolo svolge, e in che parte dell'init interviene (prima o dopo baselayout, lo sostituisce... ecc)?
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Fri Dec 14, 2007 4:35 pm    Post subject: Reply with quote

riverdragon wrote:
Che ruolo svolge, e in che parte dell'init interviene (prima o dopo baselayout, lo sostituisce... ecc)?


Oo'
è scritto nella stessa frase di Roy che hai incollato:

Quote:
Basically baselayout will be split into two entities. Firstly, the bit that lays out the initial file system and provides the core system files shall remain as baselayout. The rest of it (ie, rc, init scripts, etc) will be forked off into a new package called OpenRC (working title).


cioè l'attuale baselayout viene suddiviso in 2 parti:

- baselayout (il core e la parte che genera il filesystem iniziale)
- OpenRC (tutto il resto: rc, scripts ecc)
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Fri Dec 14, 2007 4:47 pm    Post subject: Reply with quote

anche se non esistono ancora gli ebuild ne di baselayout-core ne di openrc, si conosce già il nome di qualche alternativa a quest'ultimo?
_________________
LP
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Fri Dec 14, 2007 5:19 pm    Post subject: Reply with quote

un'alternativa a una cosa che non e' ancora stata rilasciata ? Mi sembri un po precoce
Back to top
View user's profile Send private message
riverdragon
Veteran
Veteran


Joined: 14 Sep 2006
Posts: 1269
Location: Verona

PostPosted: Fri Dec 14, 2007 8:25 pm    Post subject: Reply with quote

!equilibrium wrote:
cioè l'attuale baselayout viene suddiviso in 2 parti:

- baselayout (il core e la parte che genera il filesystem iniziale)
- OpenRC (tutto il resto: rc, scripts ecc)
Allora devo ripassare come funziona il core di baselayout, ero convinto che tutto quello che facesse fosse avviare gli initscript. :roll:
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Thu Dec 20, 2007 1:46 pm    Post subject: Reply with quote

lavish wrote:
lucapost wrote:
[OT]
ho appena scoperto che le ultime release di ubuntu utilizzano dash come shell di default
[OT]

false

Dash e' la shell a cui punta /bin/sh.
La shell di default e' bash ;)

/bin/sh punta a dash ... forse è per questo che si è velocizzata nell'avvio...
Io l'ho riportato a bash (non fungevano troppi script)... Ma basta parlare du Ubuntu :d
_________________
C.
Back to top
View user's profile Send private message
topper_harley
Guru
Guru


Joined: 05 Apr 2006
Posts: 363
Location: Treviso / Udine (Italy)

PostPosted: Fri Jan 25, 2008 5:22 pm    Post subject: Reply with quote

Qualcuno di voi utilizza openrc dall'openrc overlay disponibile tramite layman?

Io ho rimpiazzato baselayout con openrc e funziona perfettamente, ma ci sono un sacco di ebuild in portage che richiedono baselayout (module-init-tools, udev ecc.).

Qualche idea? Ovviamente mascherare baselayout non basta...
_________________
http://topperh.ath.cx
Jabber: topper_harley@jabber.org
ICQ: 224179391
MSN: Topper_Harley80@gmail.com
Last FM
Back to top
View user's profile Send private message
MeMyselfAndI
l33t
l33t


Joined: 15 Nov 2005
Posts: 784
Location: Between the monitor and the chair

PostPosted: Fri Jan 25, 2008 5:59 pm    Post subject: Reply with quote

aspettare che gli altri ebuild vengano modificati.... sempre che tu non lo voglia fare a mano/e testare tutti gli eventuali errori
Back to top
View user's profile Send private message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Fri Jan 25, 2008 6:16 pm    Post subject: Reply with quote

lo richiedono come dipendenza o per funzionare?

nel primo caso c'e' il package provided che non mi piace niente come soluzione ma 'e sempre un'alternativa per le dipendenze irrisolvibili
_________________
~~ Per amore della rosa si sopportano le spine... ~~
Back to top
View user's profile Send private message
topper_harley
Guru
Guru


Joined: 05 Apr 2006
Posts: 363
Location: Treviso / Udine (Italy)

PostPosted: Fri Jan 25, 2008 6:23 pm    Post subject: Reply with quote

flocchini wrote:
lo richiedono come dipendenza o per funzionare?

nel primo caso c'e' il package provided che non mi piace niente come soluzione ma 'e sempre un'alternativa per le dipendenze irrisolvibili


Gia', ma usare package.provided mi impedirebbe di installare/aggiornare openrc.

L'ideale sarebbe creare un "virtual/baselayout" e creare uno script che sostituisca tuttle le incombenze nel tree e rifaccia il digest degli ebuild modificati dopo ogni sync... Mi viene gia' il mal di pancia...
_________________
http://topperh.ath.cx
Jabber: topper_harley@jabber.org
ICQ: 224179391
MSN: Topper_Harley80@gmail.com
Last FM
Back to top
View user's profile Send private message
riverdragon
Veteran
Veteran


Joined: 14 Sep 2006
Posts: 1269
Location: Verona

PostPosted: Sat Jan 26, 2008 3:07 pm    Post subject: Reply with quote

topper_harley wrote:
Io ho rimpiazzato baselayout con openrc e funziona perfettamente, ma ci sono un sacco di ebuild in portage che richiedono baselayout (module-init-tools, udev ecc.).
Rimpiazzato? Non so da te, ma qui l'ebuild di openrc chiede baselayout "con versione non minore di 2.0" e baselayout-2 chiede openrc. Le due cose non sono mutuamente esclusive.
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Mon Feb 04, 2008 3:40 pm    Post subject: Reply with quote

Ho appena installato da layman openrc. Fila che è una meraviglia!
Ho dovuto comunque risolvere questo bug, è bastato l'upgrade a udev-118-r2.

PS: Sarebbe interessante che qualche mod aggiornasse il titolo del thread con qualche riferimento al nome Openrc!
PPS: Auguri a Uberlord!

/edit
ho visto che c'è un nuovo initscript:
Code:
 ~> qfile /etc/init.d/swap
sys-apps/openrc (/etc/init.d/swap)

Non avendo una partizione di swap, mi sono permesso di toglierlo dal runlevel di boot :P
_________________
LP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 4 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum