diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:29:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:29:53 +0000 |
commit | 92293a803cf17c1aa525b9bde7beb1daf954d202 (patch) | |
tree | dd638d71d3035c8d0a7f95ea89a30c55499c0401 /debian/patches | |
parent | Adding debian version 2:4.20.1+dfsg-1. (diff) | |
download | samba-92293a803cf17c1aa525b9bde7beb1daf954d202.tar.xz samba-92293a803cf17c1aa525b9bde7beb1daf954d202.zip |
Adding debian version 2:4.20.1+dfsg-2.debian/2%4.20.1+dfsg-2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/make-python-optional.diff | 25 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/make-python-optional.diff b/debian/patches/make-python-optional.diff new file mode 100644 index 0000000..4cf50f6 --- /dev/null +++ b/debian/patches/make-python-optional.diff @@ -0,0 +1,25 @@ +From: Michael Tokarev <mjt@tls.msk.ru> +Subject: samba-log-parser: make python optional +Date: Sun, 26 May 2024 14:40:40 +0300 +Forwarded: not-needed +Debian-Specific: yes + +samba-log-parser is a rarely used utility written in python. +It is the only python program in the samba-common-bin package. +By using this simple trick (wrapping the script into #!/bin/sh) +we can make the python package optional, to be able to install +minimal samba client. + +--- a/source3/script/samba-log-parser ++++ b/source3/script/samba-log-parser +@@ -1,4 +1,9 @@ +-#!/usr/bin/env python3 ++#! /bin/sh ++""":" ++[ -x /usr/bin/python3 ] && exec /usr/bin/python3 "$0" "$@" ++echo "This program requires python3. Please install python3 package to use it." >&2 ++exit 42 ++":""" + # + ####################################################################### + # diff --git a/debian/patches/series b/debian/patches/series index b06c91a..681595b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -25,3 +25,4 @@ silence-can-not-convert-group-sid.diff edns0.patch passchange-error-message.patch lower-dns-lookup-mismatch-messages.patch +make-python-optional.diff |