Bug 29680 - separate pkg for journalctl without systemd?
Summary: separate pkg for journalctl without systemd?
Status: CLOSED FIXED
Alias: None
Product: Branch p7
Classification: Distributions
Component: systemd (show other bugs)
Version: не указана
Hardware: all Linux
: P3 enhancement
Assignee: Andrey Cherepanov
QA Contact: qa-p7@altlinux.org
URL:
Keywords:
Depends on: 29699 29674
Blocks:
  Show dependency tree
 
Reported: 2014-01-02 19:58 MSK by Ivan Zakharyaschev
Modified: 2014-01-10 09:41 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2014-01-02 19:58:34 MSK
+++ This bug was initially created as a clone of Bug #29674 +++

# rpm -qf /bin/journalctl 
systemd-201-alt1.M70P.1
# 

Can journalctl be useful without systemd? For querying some "foreign" journals on a system without systemd?

If yes, then it would be nice to have it in a separate subpackage.

Is it true that journalctl is used only for "querying" as the manpage tells us in the summary? So that systemd doesn't really depend on journalctl when running? (It only writes, bu doesn't read the journal.)

Another convenience of a separate journalctl package without strict inter-dependencies with the systemd package would be the possibility to install a newer version of journalctl in a stable system (like p7) if one wants to use its new querying options without running into systemd's new bugs.

If a new version of systemd is incompatible with some old version of journalctl, the systemd package could declare a conflict with the old version of journalctl to force its update.

What do you think about this?

----

When tryig to implement this split, I had a problem with automatic strict deps which I solved by writing explicit    
                                                                                  
# We want to be able to install a new journalctl and use the old (stable)         
systemd.                                                                          
Conflicts: journalctl < %version-%release                                         
# We (our post-script) expect it to be at this path; it may change in future:     
Requires(post): /sbin/journalctl                                                  
Requires: /sbin/journalctl                                                        
                                                                                  
The Requires(post) overwrites the implicit Requires(post) from find-requires,     
and thus is not converted into a strict dep automatically -- in accordance with   
http://lists.altlinux.org/pipermail/devel/2013-January/196552.html .              
                                                                                  
The split packages for p7/t7 and Sisyphus are in my repo                          
http://repo.or.cz/w/systemd_ALT/systemd_imz.git (mirror:                          
https://gitorious.org/altlinux/systemd/ ) -- branches t7 and sisyphus.            
                                                                                  
I've tested the upgrade on p7 (Simply Linux) to the split p7 packages, and then   
the installation of journalctl pkg for Sisyphus (new version). It works.          
                                                                                  
So, these modifications can be merged into ALT's p7/t7 and Sisyphus.
Comment 1 Ivan Zakharyaschev 2014-01-02 22:02:22 MSK
My tag alt1.M70P.3 is for p7/t7, and 208-alt4 is for Sisyphus.

(These releases also declare the appropriate file conflicts between the new split pkgs and the old unsplit, which would correctly work in p7/t7, Sisyphus, and when installing journalctl from Sisyphus in p7/t7.)
Comment 2 Repository Robot 2014-01-10 09:41:36 MSK
systemd-1:201-alt1.M70T.1 -> t7:

* Thu Jan 02 2014 Ivan Zakharyaschev <imz@altlinux> 1:201-alt1.M70T.1
- declare the file conflicts with systemd pkgs before the split of journalctl
  (Epoch 1 for the split pkg, so that the new split journalctl from Sisyphus 
  or any branches conflicts with Epoch 0 old pkgs)
- declare shaba@ as the maintainer

* Thu Jan 02 2014 Ivan Zakharyaschev <imz@altlinux> 201-alt1.M70P.2
- split systemd-bash3 completion to several files (shaba@)
- split journalctl into a separate pkg
  (to be used for querying without systemd) (ALT#29680)