How to package systemd user instance services?
by Tadej Janež
Hi!
First a little context. I'm in the process of packaging bup [1] (review
request [2]), a backup system based on the git packfile format.
One of its sub-commands/functionalities is "bup web" [3], a web server
for browsing through bup repositories. By default, "bup web" will show
the bup repository stored in user's ~/.bup directory.
Thus, it seems most appropriate to provide a systemd user instance
service which a user can enable and start.
Since the current systemd packaging guidelines [4] don't mention user
instance services at all, I've researched this a bit and found that the
systemd package ships /usr/lib/rpm/macros.d/macros.systemd file, which
contains various "user" macros:
- %_userunitdir
- %systemd_user_post
- %systemd_user_preun
- %systemd_user_postun
- %systemd_user_postun_with_restart
My naive attempt at using them was to follow [4] and just replace all %
systemd_* calls with appropriate %systemd_user_* calls (and %_unitdir
with %_userunitdir). The SPEC file can be viewed here:
https://github.com/tjanez/bup-package/blob/5f4abed/bup.spec
However, this doesn't work as expected. This is the output of rpmlint:
Rpmlint
-------
Checking: bup-0.27-0.3.fc24.x86_64.rpm
bup-web-0.27-0.3.fc24.x86_64.rpm
bup-0.27-0.3.fc24.src.rpm
bup.x86_64: W: spelling-error Summary(en_US) packfile -> pack file,
pack-file, packsaddle
[... trimmed spelling warnings ...]
bup-web.x86_64: W: empty-%postun
bup.src: W: spelling-error Summary(en_US) packfile -> pack file,
pack-file, packsaddle
[... trimmed spelling warnings ...]
bup.src: E: specfile-error systemd_post: invalid option -- '-'
bup.src: E: specfile-error error: Unknown option - in systemd_post()
3 packages and 0 specfiles checked; 2 errors, 15 warnings.
Rpmlint (installed packages)
----------------------------
bup-web.x86_64: W: empty-%postun
3 packages and 0 specfiles checked; 0 errors, 1 warnings.
I would appreciate help and feedback on this topic.
Thanks and regards,
Tadej
[1] https://bup.github.io/
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1222334
[3] http://bup.github.io/man/bup-web.html
[4] https://fedoraproject.org/wiki/Packaging:Systemd
7 years, 10 months
Summary/Minutes from today's FPC Meeting (2015-10-29 16:00 - 17:05 UTC)
by James Antill
======================
#fedora-meeting-1: fpc
======================
Meeting started by geppetto at 16:00:19 UTC. The full logs are available
at
http://meetbot.fedoraproject.org/fedora-meeting-1/2015-10-29/fpc.2015-10-...
.
Meeting summary
---------------
* Roll Call (geppetto, 16:00:19)
* Schedule (geppetto, 16:06:40)
* LINK:
https://lists.fedoraproject.org/pipermail/packaging/2015-October/011073.html
(geppetto, 16:06:42)
* #577 Update references to SysV Init scripts (geppetto, 16:06:55)
* LINK: https://fedorahosted.org/fpc/ticket/577 (geppetto, 16:06:55)
* ACTION: tibbs Cleanup policy wrt sysV init scripts. (+1:6, 0:0,
-1:0) (geppetto, 16:16:43)
* #575 Bundling Guidelines Overhaul (geppetto, 16:19:58)
* LINK: https://fedorahosted.org/fpc/ticket/575 (geppetto, 16:19:58)
* ACTION: Move this ticket to writeup, and then close, if something
else gets voted on we can open new ones. (geppetto, 16:21:48)
* #567 Packaging Python 3 applications and modules for EPEL 7+
(geppetto, 16:22:12)
* LINK: https://fedorahosted.org/fpc/ticket/567 (geppetto, 16:22:13)
* Open Floor (geppetto, 16:29:42)
* LINK: http://paste.fedoraproject.org/284890/44613700/ (geppetto,
16:44:02)
Meeting ended at 17:07:16 UTC.
Action Items
------------
* tibbs Cleanup policy wrt sysV init scripts. (+1:6, 0:0, -1:0)
* Move this ticket to writeup, and then close, if something else gets
voted on we can open new ones.
Action Items, by person
-----------------------
* tibbs
* tibbs Cleanup policy wrt sysV init scripts. (+1:6, 0:0, -1:0)
* **UNASSIGNED**
* Move this ticket to writeup, and then close, if something else gets
voted on we can open new ones.
People Present (lines said)
---------------------------
* tibbs|w (98)
* geppetto (94)
* tomspur (16)
* zodbot (13)
* mbooth (10)
* sgallagh (7)
* racor (4)
* orionp (4)
* SmootherFrOgZ (3)
* Rathann (3)
* tibbs (0)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
7 years, 10 months
Summary/Minutes from today's FPC Meeting (2015-10-22 16:00 - 16:40 UTC)
by James Antill
======================
#fedora-meeting-1: fpc
======================
Meeting started by geppetto at 16:01:18 UTC. The full logs are available
at
http://meetbot.fedoraproject.org/fedora-meeting-1/2015-10-22/fpc.2015-10-...
.
Meeting summary
---------------
* Roll Call (geppetto, 16:01:18)
* Schedule (geppetto, 16:06:56)
* LINK:
https://lists.fedoraproject.org/pipermail/packaging/2015-October/011066.html
(geppetto, 16:06:59)
* #575 Bundling Guidelines Overhaul (geppetto, 16:07:33)
* LINK: https://fedorahosted.org/fpc/ticket/575 (geppetto, 16:07:33)
* #567 Packaging Python 3 applications and modules for EPEL 7+
(geppetto, 16:08:48)
* LINK: https://fedorahosted.org/fpc/ticket/567 (geppetto, 16:08:48)
* Open Floor (geppetto, 16:16:04)
* LINK: https://fedorahosted.org/fesco/ticket/1491 (Rathann,
16:16:45)
Meeting ended at 16:43:53 UTC.
Action Items
------------
Action Items, by person
-----------------------
* **UNASSIGNED**
* (none)
People Present (lines said)
---------------------------
* geppetto (43)
* tibbs|w (32)
* Rathann (24)
* zodbot (10)
* racor (4)
* mbooth (2)
* orionp (1)
* tibbs (0)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
7 years, 11 months
Schedule for Thursday's FPC Meeting (2015-10-22 16:00 UTC)
by James Antill
Following is the list of topics that will be discussed in the FPC
meeting Thursday at 2015-10-22 16:00 UTC in #fedora-meeting-1 on
irc.freenode.net.
Local time information (via. rktime):
2015-10-22 09:00 Thu US/Pacific PDT
2015-10-22 12:00 Thu US/Eastern EDT
2015-10-22 16:00 Thu UTC <-
2015-10-22 17:00 Thu Europe/London BST
2015-10-22 18:00 Thu Europe/Paris CEST
2015-10-22 18:00 Thu Europe/Berlin CEST
2015-10-22 21:30 Thu Asia/Calcutta IST
------------------new day----------------------
2015-10-23 00:00 Fri Asia/Singapore SGT
2015-10-23 00:00 Fri Asia/Hong_Kong HKT
2015-10-23 01:00 Fri Asia/Tokyo JST
2015-10-23 02:00 Fri Australia/Brisbane EST
Links to all tickets below can be found at:
https://fedorahosted.org/fpc/report/13
= Followups =
#topic #558 Application/Library distinction and package splitting
.fpc 558
https://fedorahosted.org/fpc/ticket/558
#topic #566 RPM file triggers
.fpc 566
https://fedorahosted.org/fpc/ticket/566
#topic #567 Packaging Python 3 applications and modules for EPEL 7+
.fpc 567
https://fedorahosted.org/fpc/ticket/567
#topic #575 Bundling Guidelines Overhaul
.fpc 575
https://fedorahosted.org/fpc/ticket/575
= Open Floor =
For more complete details, please visit each individual ticket. The
report of the agenda items can be found at:
https://fedorahosted.org/fpc/report/13
If you would like to add something to this agenda, you can reply to
this e-mail, file a new ticket at https://fedorahosted.org/fpc,
e-mail me directly, or bring it up at the end of the meeting, during
the open floor topic. Note that added topics may be deferred until
the following meeting.
7 years, 11 months
Summary/Minutes from today's FPC Meeting (2015-10-15 16:00 - 17:30 UTC)
by James Antill
======================
#fedora-meeting-1: fpc
======================
Meeting started by geppetto at 16:01:28 UTC. The full logs are available
at
http://meetbot.fedoraproject.org/fedora-meeting-1/2015-10-15/fpc.2015-10-...
.
Meeting summary
---------------
* Roll Call (geppetto, 16:01:28)
* Schedule (geppetto, 16:04:29)
* LINK:
https://lists.fedoraproject.org/pipermail/packaging/2015-October/011063.html
(geppetto, 16:04:31)
* #563 PYTHON_PATH in MPI modules (geppetto, 16:04:40)
* LINK: https://fedorahosted.org/fpc/ticket/563 (geppetto, 16:04:41)
* LINK:
https://fedoraproject.org/w/index.php?title=User%3AZbyszek%
2FMPIPackagingDraft&diff=424068&oldid=424066
(geppetto, 16:05:25)
* LINK:
https://fedoraproject.org/w/index.php?title=User%3ARathann%
2FPackaging%3AMPI%3ADraft&diff=424467&oldid=424465
(Rathann, 16:25:01)
* LINK:
https://fedoraproject.org/w/index.php?title=User%3ARathann%
2FPackaging%3AMPI%3ADraft&diff=424468&oldid=424465
(Rathann, 16:35:42)
* LINK:
https://fedoraproject.org/w/index.php?title=User%3ARathann%
2FPackaging%3AMPI%3ADraft&diff=424469&oldid=424465
(Rathann, 16:42:54)
* ACTION: Re-work MPI policy, PYTHON_PATH, remove _cc_name_suffix,
remove old packages (+1:5, 0:0, -1:0) (geppetto, 17:12:31)
* #576 Add extra pari-sage package (geppetto, 17:12:53)
* LINK: https://fedorahosted.org/fpc/ticket/576 (geppetto, 17:12:54)
* ACTION: Under the new bundling guidelines it'll just be much easier
to bundle the devel. version of pari, just don't ship the -devel
files. (geppetto, 17:19:02)
* Open Floor (geppetto, 17:19:24)
Meeting ended at 17:32:24 UTC.
Action Items
------------
* Re-work MPI policy, PYTHON_PATH, remove _cc_name_suffix, remove old
packages (+1:5, 0:0, -1:0)
* Under the new bundling guidelines it'll just be much easier to bundle
the devel. version of pari, just don't ship the -devel files.
Action Items, by person
-----------------------
* **UNASSIGNED**
* Re-work MPI policy, PYTHON_PATH, remove _cc_name_suffix, remove old
packages (+1:5, 0:0, -1:0)
* Under the new bundling guidelines it'll just be much easier to
bundle the devel. version of pari, just don't ship the -devel files.
People Present (lines said)
---------------------------
* geppetto (65)
* Rathann (63)
* orionp (22)
* tomspur (22)
* zodbot (10)
* racor (7)
* mbooth (3)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
7 years, 11 months
Packaging of PlayOnLinux
by Jiří Konečný
Hello all,
is there any reason why the PlayOnLinux is not in Fedora repository? I
know that they have database of proprietary stuff but they don't
download that and you can't purchase anything with the PoL.
If there is no reason I will be happy to package this one.
Thank you for the answers,
Jirka Konecny
7 years, 11 months
Summary/Minutes from today's FPC Meeting (2015-10-08 16:00 - 16:50 UTC)
by James Antill
======================
#fedora-meeting-1: fpc
======================
Meeting started by geppetto at 16:00:20 UTC. The full logs are available
at
http://meetbot.fedoraproject.org/fedora-meeting-1/2015-10-08/fpc.2015-10-...
.
Meeting summary
---------------
* Roll Call (geppetto, 16:00:20)
* Schedule (geppetto, 16:04:18)
* LINK:
https://lists.fedoraproject.org/pipermail/packaging/2015-October/011043.html
(geppetto, 16:04:23)
* Rant about bundling (geppetto, 16:04:39)
* LINK: https://fedoraproject.org/wiki/User:Tibbs/BundlingDraft2 as
well as "deleting" the two standalone pages on bundling. (tibbs|w,
16:17:06)
* ACTION: Bundling Guidelines Overhaul (+1:7, 0:0, -1:0) (geppetto,
16:23:49)
* For what it's worth nobody in FPC seems to be of the opinion that
this was a good change. (geppetto, 16:24:38)
* #567 Packaging Python 3 applications and modules for EPEL 7+
(geppetto, 16:25:02)
* LINK: https://fedorahosted.org/fpc/ticket/567 (geppetto, 16:25:03)
* #558 Application/Library distinction and package splitting
(geppetto, 16:41:31)
* LINK: https://fedorahosted.org/fpc/ticket/558 (geppetto, 16:41:32)
* Open Floor (geppetto, 16:46:33)
Meeting ended at 16:50:41 UTC.
Action Items
------------
* Bundling Guidelines Overhaul (+1:7, 0:0, -1:0)
Action Items, by person
-----------------------
* **UNASSIGNED**
* Bundling Guidelines Overhaul (+1:7, 0:0, -1:0)
People Present (lines said)
---------------------------
* geppetto (55)
* tibbs|w (52)
* tomspur (16)
* zodbot (11)
* orionp (9)
* racor (6)
* Rathann (6)
* mbooth (4)
* nirik (3)
* tibbs (0)
Generated by `MeetBot`_ 0.1.4
.. _`MeetBot`: http://wiki.debian.org/MeetBot
7 years, 11 months