Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#66721 - [btrfs-progs] systemd timers use incorrect WantedBy=multi-user.target

Attached to Project: Arch Linux
Opened by Nils (nlswrnr) - Wednesday, 20 May 2020, 12:12 GMT
Last edited by Sébastien Luttringer (seblu) - Thursday, 21 May 2020, 08:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version 5.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

While for system timers it is technically possible to use a

[Install]
WantedBy=multi-user.target

section, the correct way is to use

[Install]
WantedBy=timers.target

The timers in most packages do it right, however these two/four timers do not:

./community/gitlab/repos/community-x86_64/gitlab-backup.timer
./community/gitlab/trunk/gitlab-backup.timer
./packages/btrfs-progs/repos/core-x86_64/btrfs-scrub@.timer
./packages/btrfs-progs/trunk/btrfs-scrub@.timer

Steps to Reproduce:

Grep all packages in both community.git and packages.git:

grep -R --include="*.timer" WantedBy=multi-user .

Steps to Fix:

Simply replace

[Install]
WantedBy=multi-user.target

with

[Install]
WantedBy=timers.target
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Thursday, 21 May 2020, 08:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  btrfs-progs-5.6.1-3
Comment by Eli Schwartz (eschwartz) - Wednesday, 20 May 2020, 12:20 GMT
  • Field changed: Attached to Project (Pacman → Arch Linux)
  • Field changed: Summary (Several systemd timers use incorrect WantedBy=multi-user.target → [btrfs-progs] systemd timers use incorrect WantedBy=multi-user.target)
How on earth is this supposed to be a bug in the /usr/bin/pacman program???
Comment by Nils (nlswrnr) - Wednesday, 20 May 2020, 12:21 GMT
Patches attached
Comment by Nils (nlswrnr) - Wednesday, 20 May 2020, 12:24 GMT
Sorry for the incorrect report, I am unfamiliar with this tool and didn't know if/how I could select the project the ticket was going to.
Comment by Eli Schwartz (eschwartz) - Wednesday, 20 May 2020, 15:13 GMT
If you go to https://www.archlinux.org/packages/core/x86_64/btrfs-progs/ the "Package Details" sidebar has a link to "Add New Bug" which automatically handles assigning to the correct project and component.
Comment by Nils (nlswrnr) - Wednesday, 20 May 2020, 19:21 GMT
Ah I see. I searched the entire package tree and didn't think of reporting them individually. Sorry again.

Loading...