openbsd-ports/print/hplip/patches/patch-base_magic_py
ajacoutot 0018626186 Update to hplip-3.18.10.
Very *lightly* tested so far; please send any regression to me directly.
2018-10-31 14:14:30 +00:00

19 lines
1.1 KiB
Plaintext

$OpenBSD: patch-base_magic_py,v 1.3 2018/10/31 14:14:30 ajacoutot Exp $
--- base/magic.py.orig Thu Jan 29 13:20:35 2015
+++ base/magic.py Thu Feb 5 14:32:58 2015
@@ -255,10 +255,10 @@ magic = [
[0, 'string', '=', b'#! /usr/bin/python', 'application/x-python'],
[0, 'string', '=', b'#! /usr/bin/python', 'application/x-python'],
[0, 'string', '=', b'eval "exec /usr/bin/python', 'application/x-python'],
- [0, 'string', '=', b'#!/usr/local/bin/python', 'application/x-python'],
+ [0, 'string', '=', b'#!${MODPY_BIN}', 'application/x-python'],
+ [0, 'string', '=', b'#! ${MODPY_BIN}', 'application/x-python'],
[0, 'string', '=', b'#! /usr/local/bin/python', 'application/x-python'],
- [0, 'string', '=', b'#! /usr/local/bin/python', 'application/x-python'],
- [0, 'string', '=', b'eval "exec /usr/local/bin/python', 'application/x-python'],
+ [0, 'string', '=', b'eval "exec ${MODPY_BIN}', 'application/x-python'],
[0, 'string', '=', b'#!/usr/bin/env python', 'application/x-python'],
[0, 'string', '=', b'#! /usr/bin/env python', 'application/x-python'],
[0, 'string', '=', b'#!/bin/rc', 'text/script'],