Re: [opensuse-factory] Fwd: [systemd-devel] [ANNOUNCE] systemd 193 (jounal networking support)

Le vendredi 28 septembre 2012 à 10:59 +0200, Michael Schroeder a écrit :
On Fri, Sep 28, 2012 at 10:37:56AM +0200, Frederic Crozat wrote:
I'm working on systemd 192 for Factory, but it is quite heavy (due to udev merge and moving to /usr). A staging repository has been created for it (openSUSE:Factory:systemd) and we will test it there before pushing to Factory.
Huh, "moving to /usr"? How's systemd affected?
Both udev and systemd will be located in /usr(/lib/udev,/lib/systemd).. I've taken care of creating compatibility symlinks at package upgrade time (and I have a pending patch for mkinitrd to handle udev rules properly). Feel free to review my "work in progress" package in https://build.opensuse.org/package/show?package=systemd&project=home% 3Afcrozat%3Abranches%3ABase%3ASystem -- Frederic Crozat <fcrozat@suse.com> SUSE -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Fri, Sep 28, 2012 at 10:03:00AM +0100, Frederic Crozat wrote:
Feel free to review my "work in progress" package in https://build.opensuse.org/package/show?package=systemd&project=home% 3Afcrozat%3Abranches%3ABase%3ASystem
Ohhh, a %pretrans bash script. That can't work for initial installs, as there is no bash. Basically all %pretrans scripts have to be written in lua. Also, there really is no sane way to replace a directory by a link, you'll completely confuse rpm's shared file/dir calculation (which is done before the pretrans runs). I.e. rpm will remove the old files from /lib/udev (thereby deleteing the new files because of the symlink), as it doesn't see that files in /lib/udev and /usr/lib/udev are shared. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Friday 28 September 2012 11:09:49 Michael Schroeder wrote:
On Fri, Sep 28, 2012 at 10:03:00AM +0100, Frederic Crozat wrote:
Feel free to review my "work in progress" package in https://build.opensuse.org/package/show?package=systemd&project=home% 3Afcrozat%3Abranches%3ABase%3ASystem
Ohhh, a %pretrans bash script. That can't work for initial installs, as there is no bash. Basically all %pretrans scripts have to be written in lua.
Maybe I am wrong here, but if I have an initial install for 12.3, then this means that I do not have to upgrade of move any files to /usr. As everything should already be installed in its right place. So this %pretrans script should only be executed if there is a package update and not during an initial install. And during a package update, bash is most likely installed on the system. But as indicated, I could be making a wrong assumption :-) Raymond -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Le vendredi 28 septembre 2012 à 11:33 +0200, Raymond Wooninck a écrit :
On Friday 28 September 2012 11:09:49 Michael Schroeder wrote:
On Fri, Sep 28, 2012 at 10:03:00AM +0100, Frederic Crozat wrote:
Feel free to review my "work in progress" package in https://build.opensuse.org/package/show?package=systemd&project=home% 3Afcrozat%3Abranches%3ABase%3ASystem
Ohhh, a %pretrans bash script. That can't work for initial installs, as there is no bash. Basically all %pretrans scripts have to be written in lua.
Maybe I am wrong here, but if I have an initial install for 12.3, then this means that I do not have to upgrade of move any files to /usr. As everything should already be installed in its right place.
Well, there are still packages installing stuff in /lib/udev or /lib/systemd and even after cleaning 12.3, I'm pretty sure we'll have other packages doing so, so it is not only a matter of upgrade. -- Frederic Crozat <fcrozat@suse.com> SUSE -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Fri, Sep 28, 2012 at 11:33:26AM +0200, Raymond Wooninck wrote:
Maybe I am wrong here, but if I have an initial install for 12.3, then this means that I do not have to upgrade of move any files to /usr. As everything should already be installed in its right place.
So this %pretrans script should only be executed if there is a package update and not during an initial install.
Yeah, but rpm doesn't know that. Rpm always executes %pretrans scriplets, regardless of whether it's an update or not. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Frederic Crozat
-
Michael Schroeder
-
Raymond Wooninck