pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/libgphoto2



Module Name:    pkgsrc
Committed By:   tnn
Date:           Tue Aug 18 00:30:13 UTC 2020

Modified Files:
        pkgsrc/devel/libgphoto2: distinfo
Added Files:
        pkgsrc/devel/libgphoto2/patches:
            patch-packaging_generic_check-ptp-camera

Log Message:
libgphoto2: shell portability


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 pkgsrc/devel/libgphoto2/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/libgphoto2/patches/patch-packaging_generic_check-ptp-camera

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/libgphoto2/distinfo
diff -u pkgsrc/devel/libgphoto2/distinfo:1.29 pkgsrc/devel/libgphoto2/distinfo:1.30
--- pkgsrc/devel/libgphoto2/distinfo:1.29       Wed Jan 31 10:53:40 2018
+++ pkgsrc/devel/libgphoto2/distinfo    Tue Aug 18 00:30:13 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.29 2018/01/31 10:53:40 jperkin Exp $
+$NetBSD: distinfo,v 1.30 2020/08/18 00:30:13 tnn Exp $
 
 SHA1 (libgphoto2-2.5.8.tar.bz2) = 976feb07d51026e6ca647f9fa333c500c5e0c041
 RMD160 (libgphoto2-2.5.8.tar.bz2) = bbb57fdace9783f9829bafbd89818949f6d0fce3
@@ -18,3 +18,4 @@ SHA1 (patch-camlibs_panasonic_coolshot_l
 SHA1 (patch-camlibs_st2205_st2205.c) = 2269a9d6d143bd74c49e21fafb706c6ee528748e
 SHA1 (patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h) = 9f62a7c4213f8be273b6da7b2cbbd1f68e697631
 SHA1 (patch-libgphoto2_gphoto2-file.c) = 2b63f2e3bb3b6ef73c8d860efdda5e342f093eb8
+SHA1 (patch-packaging_generic_check-ptp-camera) = d828f1e36f2d86c6b3cfc68969efddd3fea0784d

Added files:

Index: pkgsrc/devel/libgphoto2/patches/patch-packaging_generic_check-ptp-camera
diff -u /dev/null pkgsrc/devel/libgphoto2/patches/patch-packaging_generic_check-ptp-camera:1.1
--- /dev/null   Tue Aug 18 00:30:13 2020
+++ pkgsrc/devel/libgphoto2/patches/patch-packaging_generic_check-ptp-camera    Tue Aug 18 00:30:13 2020
@@ -0,0 +1,22 @@
+$NetBSD: patch-packaging_generic_check-ptp-camera,v 1.1 2020/08/18 00:30:13 tnn Exp $
+
+double brackets
+
+--- packaging/generic/check-ptp-camera.orig    2020-08-18 00:27:22.303662350 +0000
++++ packaging/generic/check-ptp-camera
+@@ -20,13 +20,13 @@ INTERFACE="${1:-06/01/01}"
+ 
+ BASENAME=${DEVPATH##*/}
+ for d in /sys/${DEVPATH}/${BASENAME}:*; do
+-      [[ -d ${d} ]] || continue
++      [ -d ${d} ] || continue
+       INTERFACEID="$(< ${d}/bInterfaceClass)"
+       INTERFACEID="${INTERFACEID}/$(< ${d}/bInterfaceSubClass)"
+       INTERFACEID="${INTERFACEID}/$(< ${d}/bInterfaceProtocol)"
+ 
+       #echo ${d}: ${INTERFACEID}
+-      if [[ ${INTERFACE} == ${INTERFACEID} ]]; then
++      if [ ${INTERFACE} = ${INTERFACEID} ]; then
+               # Found interface
+               exit 0
+       fi



Home | Main Index | Thread Index | Old Index