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!
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!
FS#59301 - [msmtp] Retain executable bit for all users for the packaged scripts
Attached to Project:
Arch Linux
Opened by naveen (naveen) - Wednesday, 11 July 2018, 16:17 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 12 July 2018, 12:33 GMT
Opened by naveen (naveen) - Wednesday, 11 July 2018, 16:17 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 12 July 2018, 12:33 GMT
|
DetailsDescription:
Upstream msmtp source has the executable bit set for all users for the scripts (basically 755). However, the installed sources only set executable bit for root. This prevents us from linking to those scripts directly and using them. Please retain the exec bits for the scripts, as present upstream. Upstream git tree: $ ll scripts/msmtpq$ ls -al scripts/msmtpq total 48 drwxr-xr-x 2 naveen naveen 4096 Jul 11 21:40 . drwxr-xr-x 7 naveen naveen 4096 Jul 11 21:40 .. -rwxr-xr-x 1 naveen naveen 23270 Jul 11 21:40 msmtpq -rwxr-xr-x 1 naveen naveen 1005 Jul 11 21:40 msmtp-queue -rw-r--r-- 1 naveen naveen 9298 Jul 11 21:40 README.msmtpq Installed from package: $ ls -al /usr/share/doc/msmtp/msmtpq total 48 drwxr-xr-x 2 root root 4096 Jul 11 21:40 . drwxr-xr-x 6 root root 4096 Jul 11 21:40 .. -rwxr--r-- 1 root root 23270 Jun 16 18:36 msmtpq -rwxr--r-- 1 root root 1005 Jun 16 18:36 msmtp-queue -rw-r--r-- 1 root root 9298 Jun 16 18:36 README.msmtpq Additional info: * package version(s): 1.6.7-1 * config and/or log files etc. Steps to reproduce: Detailed above. |
This task depends upon
Closed by Antonio Rojas (arojas)
Thursday, 12 July 2018, 12:33 GMT
Reason for closing: Fixed
Additional comments about closing: msmtp 1.6.8-1
Thursday, 12 July 2018, 12:33 GMT
Reason for closing: Fixed
Additional comments about closing: msmtp 1.6.8-1
The other option is perhaps to install those under /usr/lib/msmtp?
Additonally additionally, why does the documentation need to be usable at all? The mentioned file itself is a trivial example, why not call `msmtpq --q-mgmt' directly instead? Admittdly `msmtpq' is rather more involved (and full of issues).
diff --git a/msmtp/trunk/PKGBUILD b/msmtp/trunk/PKGBUILD
index 9403b26ac53..da3ce38bd3b 100644
--- a/msmtp/trunk/PKGBUILD
+++ b/msmtp/trunk/PKGBUILD
@@ -33,7 +33,8 @@ package_msmtp() {
install -d "${pkgdir}/usr/share/doc/msmtp"
cp -r scripts/{find_alias,msmtpqueue,msmtpq,set_sendmail} "${pkgdir}/usr/share/doc/msmtp/"
install -D -m644 doc/*.example "${pkgdir}/usr/share/doc/msmtp/"
-
+ chmod 755 ${pkgdir}/usr/share/doc/msmtp/{find_alias,msmtpqueue,set_sendmail}/*.sh
+ chmod 755 ${pkgdir}/usr/share/doc/msmtp/msmtpq/msmtp*
install -D -m644 scripts/vim/msmtp.vim "${pkgdir}/usr/share/vim/vimfiles/syntax/msmtp.vim"
}
This is about setting `msmtpq` to be executable by all users. Specifying an interpreter every time is a hassle.
This is not documentation, but rather a set of useful scripts that are being installed under /usr/share/doc similar to what Debian does (per the comment in the PKGBUILD).
As I mentioned previously, I don't mind having the scripts be installed somewhere else if having them under /usr/share/doc doesn't make sense.