Re: rclone

2023-07-03 Thread Theo de Raadt
amd64 snapshot contains a different IBT diff which appears to fix go.

Solène Rapenne  wrote:

> On Sun, 2023-07-02 at 18:36 -0500, Edward Ahlsen-Girard wrote:
> > Has it been removed from packages? rclone-browser is still a package,
> > but it can't install. I've tried number mirrors.
> > 
> 
> lang/go is broken on snapshots due to a general work on IBT
> 
> See https://marc.info/?t=16871853121=1=2
> 
> as a result, go programs can't be built at the moment
> 



Re: rclone

2023-07-03 Thread Solène Rapenne
On Sun, 2023-07-02 at 18:36 -0500, Edward Ahlsen-Girard wrote:
> Has it been removed from packages? rclone-browser is still a package,
> but it can't install. I've tried number mirrors.
> 

lang/go is broken on snapshots due to a general work on IBT

See https://marc.info/?t=16871853121=1=2

as a result, go programs can't be built at the moment



rclone

2023-07-02 Thread Edward Ahlsen-Girard
Has it been removed from packages? rclone-browser is still a package,
but it can't install. I've tried number mirrors.

-- 

Edward Ahlsen-Girard
Ft Walton Beach, FL




UPDATE sysutils/rclone-1.58.0

2022-03-20 Thread Bjorn Ketelaars
Simple updates for rclone-1.58.0, which introduces experimental
bidirectional cloud sync. Full changelog can be found at
https://rclone.org/changelog/#v1-58-0-2022-03-18.

Run tested on amd64 using a couple of backends (sftp, webdav and B2).
Additional testing is more than welcome.

Tests/comments/OK?


diff --git Makefile Makefile
index 228cb40870d..09ff548d512 100644
--- Makefile
+++ Makefile
@@ -3,10 +3,9 @@ BROKEN-arm =   SIGBUS when running rclone
 
 COMMENT =  rsync for cloud storage
 
-V =1.57.0
+V =1.58.0
 DISTNAME = rclone-v${V}
 PKGNAME =  rclone-${V}
-REVISION = 0
 
 CATEGORIES =   sysutils
 
diff --git distinfo distinfo
index 24534340fd9..56af5477f15 100644
--- distinfo
+++ distinfo
@@ -1,4 +1,4 @@
-SHA256 (rclone-v1.57.0-vendor.tar.gz) = 
PgTETNvGFyHt75KsBcx+VI5X5pOX5Uwkh44u3Fbd0/s=
-SHA256 (rclone-v1.57.0.tar.gz) = OnYsAsICqRQsLVwaOSdWOlVtFoOrrdJdL2leI35OppM=
-SIZE (rclone-v1.57.0-vendor.tar.gz) = 7935321
-SIZE (rclone-v1.57.0.tar.gz) = 15406543
+SHA256 (rclone-v1.58.0-vendor.tar.gz) = 
2D6GUsEb0jJHIer1WiMIxxvpIz7xXOcs4Gw+n+2rYyA=
+SHA256 (rclone-v1.58.0.tar.gz) = jgxJ+taVJdEhlBXS8GUf0kPd8CKR/ZXpHSsHTUhYwx8=
+SIZE (rclone-v1.58.0-vendor.tar.gz) = 7898867
+SIZE (rclone-v1.58.0.tar.gz) = 15640940



enable fish shell completion in sysutils/rclone

2021-04-03 Thread Solene Rapenne
Hi,

this adds the completion for fish shell.

Index: Makefile
===
RCS file: /home/reposync/ports/sysutils/rclone/Makefile,v
retrieving revision 1.25
diff -u -p -r1.25 Makefile
--- Makefile8 Mar 2021 19:09:25 -   1.25
+++ Makefile3 Apr 2021 11:18:52 -
@@ -8,6 +8,7 @@ COMMENT =   rsync for cloud storage
 V =1.54.1
 DISTNAME = rclone-v${V}
 PKGNAME =  rclone-${V}
+REVISION = 0
 
 CATEGORIES =   sysutils
 
@@ -32,7 +33,7 @@ post-extract:
mv ${WRKDIR}/vendor ${WRKDIST}
 
 post-build:
-.for s in bash zsh
+.for s in bash fish zsh
cd ${MODGO_WORKSPACE}/bin && \
HOME=${WRKSRC} ./rclone genautocomplete $s rclone.$s
 .endfor
@@ -41,9 +42,12 @@ do-install:
${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/rclone ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/rclone.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/bash-completion/completions/ \
+   ${PREFIX}/share/fish/vendor_completions.d/ \
${PREFIX}/share/zsh/vendor-completions/
${INSTALL_DATA} ${MODGO_WORKSPACE}/bin/rclone.bash \
${PREFIX}/share/bash-completion/completions/rclone
+   ${INSTALL_DATA} ${MODGO_WORKSPACE}/bin/rclone.fish \
+   ${PREFIX}/share/fish/vendor_completions.d/_rclone
${INSTALL_DATA} ${MODGO_WORKSPACE}/bin/rclone.zsh \
${PREFIX}/share/zsh/vendor-completions/_rclone
 
Index: pkg/PLIST
===
RCS file: /home/reposync/ports/sysutils/rclone/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   9 Jul 2018 06:34:25 -   1.2
+++ pkg/PLIST   3 Apr 2021 11:18:17 -
@@ -4,6 +4,9 @@
 share/bash-completion/
 share/bash-completion/completions/
 share/bash-completion/completions/rclone
+share/fish/
+share/fish/vendor_completions.d/
+share/fish/vendor_completions.d/_rclone
 share/zsh/
 share/zsh/vendor-completions/
 share/zsh/vendor-completions/_rclone



Re: backport sysutils/rclone update

2020-11-28 Thread Stuart Henderson
On 2020/11/28 08:39, Bjorn Ketelaars wrote:
> 
> Actually, it fails to run on both arm and arm64. From phessler@'s bulk
> reports I learned that rclone fails in the post-build phase for both
> arches, and it has done so for some time. In the post-build phase rclone
> tries to generate completions for bash and zsh, which fails with a
> SIGILL for arm64 and a SIGBUS for arm. For now I have marked rclone
> BROKEN for both arches in current.

There is definitely something wrong with go on arm64.

https://marc.info/?l=openbsd-ports=160612352117181=2



Re: backport sysutils/rclone update

2020-11-27 Thread Bjorn Ketelaars
On Fri 27/11/2020 21:56, Solene Rapenne wrote:
> On Fri, 27 Nov 2020 16:00:54 +0100
> Bjorn Ketelaars :
> 
> > On Fri 20/11/2020 07:02, Bjorn Ketelaars wrote:
> > > On Fri 20/11/2020 06:56, Bjorn Ketelaars wrote:  
> > > > I would like to backport the recent rclone update to 6.8.
> > > > 
> > > > Why? It fixes CVE-2020-28924: Some passwords generated with rclone
> > > > config may be insecure. In particular if you used the 'g' generate
> > > > option with rclone v1.49 - v1.53.2 then your password will based on the
> > > > second it was generated in. This means that there are fixed number of
> > > > passwords in that period.
> > > > 
> > > > Diff below includes a cve entry for quirks.
> > > > 
> > > > OK?  
> > > 
> > > Oops...previous diff contained an omission in the quirks entry. New
> > > diff:  
> > 
> > Ping...
> > 
> > Diff enclosed again.
> > 
> > 
> 
> it fails to build on arm64 on 6.8-stable

After a bit of investigating:

Actually, it fails to run on both arm and arm64. From phessler@'s bulk
reports I learned that rclone fails in the post-build phase for both
arches, and it has done so for some time. In the post-build phase rclone
tries to generate completions for bash and zsh, which fails with a
SIGILL for arm64 and a SIGBUS for arm. For now I have marked rclone
BROKEN for both arches in current.

For arm64 the issue seems to have arisen when I updated rclone to
1.52.0 (Makefile r1.14, 2020/05/28). arm started failing when I updated
rclone to 1.51.0 (Makefile r1.13, 2020/02/03). As a result there is no
rclone package in 6.7- and 6.8-stable for arm, and no rclone package in
6.8-stable for arm64. The backport did not cause breakage as rclone was
already broken.

I will try to resolve the underlying issue so that we have a working
rclone on current. However, this will take a bit of time as I have
currently no access arm and arm64.



Re: backport sysutils/rclone update

2020-11-27 Thread Solene Rapenne
On Fri, 27 Nov 2020 16:00:54 +0100
Bjorn Ketelaars :

> On Fri 20/11/2020 07:02, Bjorn Ketelaars wrote:
> > On Fri 20/11/2020 06:56, Bjorn Ketelaars wrote:  
> > > I would like to backport the recent rclone update to 6.8.
> > > 
> > > Why? It fixes CVE-2020-28924: Some passwords generated with rclone
> > > config may be insecure. In particular if you used the 'g' generate
> > > option with rclone v1.49 - v1.53.2 then your password will based on the
> > > second it was generated in. This means that there are fixed number of
> > > passwords in that period.
> > > 
> > > Diff below includes a cve entry for quirks.
> > > 
> > > OK?  
> > 
> > Oops...previous diff contained an omission in the quirks entry. New
> > diff:  
> 
> Ping...
> 
> Diff enclosed again.
> 
> 

it fails to build on arm64 on 6.8-stable

cd /build/tmp/pobj//rclone-1.53.3/go/bin &&  
HOME=/build/tmp/pobj//rclone-1.53.3/go/src/github.com/rclone/rclone ./rclone 
genautocomplete bash rclone.bash
SIGILL: illegal instruction
PC=0xca0700 m=0 sigcode=1
instruction bytes: 0x0 0x6 0x38 0xd5 0xe0 0x7 0x0 0xf9 0xc0 0x3 0x5f 0xd6 0x0 
0x0 0x0 0x0

goroutine 1 [running, locked to thread]:
github.com/rclone/rclone/vendor/golang.org/x/sys/cpu.getisar0(0x20a7180)

/build/tmp/pobj/rclone-1.53.3/go/src/github.com/rclone/rclone/vendor/golang.org/x/sys/cpu/cpu_arm64.s:13
 fp=0x40003dfd40 sp=0x40003dfd40 pc=0xca0700
github.com/rclone/rclone/vendor/golang.org/x/sys/cpu.readARM64Registers()

/build/tmp/pobj/rclone-1.53.3/go/src/github.com/rclone/rclone/vendor/golang.org/x/sys/cpu/cpu_arm64.go:36
 +0x28 fp=0x40003dfd60 sp=0x40003dfd40 pc=0xca0448
github.com/rclone/rclone/vendor/golang.org/x/sys/cpu.init.0()

/build/tmp/pobj/rclone-1.53.3/go/src/github.com/rclone/rclone/vendor/golang.org/x/sys/cpu/cpu_arm64.go:28
 +0x18 fp=0x40003dfd70 sp=0x40003dfd60 pc=0xca0408
runtime.doInit(0x1fd45e0)
/usr/local/go/src/runtime/proc.go:5625 +0x94 fp=0x40003dfdb0 
sp=0x40003dfd70 pc=0x51e24
runtime.doInit(0x1fdc160)
/usr/local/go/src/runtime/proc.go:5620 +0x50 fp=0x40003dfdf0 
sp=0x40003dfdb0 pc=0x51de0
runtime.doInit(0x1fe5dc0)
/usr/local/go/src/runtime/proc.go:5620 +0x50 fp=0x40003dfe30 
sp=0x40003dfdf0 pc=0x51de0
runtime.doInit(0x1fe3320)
/usr/local/go/src/runtime/proc.go:5620 +0x50 fp=0x40003dfe70 
sp=0x40003dfe30 pc=0x51de0
runtime.doInit(0x1fe9f80)
/usr/local/go/src/runtime/proc.go:5620 +0x50 fp=0x40003dfeb0 
sp=0x40003dfe70 pc=0x51de0
runtime.doInit(0x1fe2de0)
/usr/local/go/src/runtime/proc.go:5620 +0x50 fp=0x40003dfef0 
sp=0x40003dfeb0 pc=0x51de0
runtime.doInit(0x1feb7e0)
/usr/local/go/src/runtime/proc.go:5620 +0x50 fp=0x40003dff30 
sp=0x40003dfef0 pc=0x51de0
runtime.doInit(0x1fd5ee0)
/usr/local/go/src/runtime/proc.go:5620 +0x50 fp=0x40003dff70 
sp=0x40003dff30 pc=0x51de0
runtime.main()
/usr/local/go/src/runtime/proc.go:191 +0x1b0 fp=0x40003dffd0 
sp=0x40003dff70 pc=0x45300
runtime.goexit()
/usr/local/go/src/runtime/asm_arm64.s:1136 +0x4 fp=0x40003dffd0 
sp=0x40003dffd0 pc=0x748a4

goroutine 9 [select]:
github.com/rclone/rclone/vendor/go.opencensus.io/stats/view.(*worker).start(0x4ef100)
    
/build/tmp/pobj/rclone-1.53.3/go/src/github.com/rclone/rclone/vendor/go.opencensus.io/stats/view/worker.go:276
 +0x9c
created by github.com/rclone/rclone/vendor/go.opencensus.io/stats/view.init.0

/build/tmp/pobj/rclone-1.53.3/go/src/github.com/rclone/rclone/vendor/go.opencensus.io/stats/view/worker.go:34
 +0x68

r0  0x1
r1  0x40003603a0
r2  0x40003dfd60
r3  0x1
r4  0xffa0c0
r5  0x0
r6  0x1292f91
r7  0x32
r8  0xf
r9  0x1
r10 0x0
r11 0xd
r12 0x1
r13 0x0
r14 0xff
r15 0x0
r16 0x0
r17 0x16
r18 0x4a9270658
r19 0x8
r20 0x400025bdf0
r21 0x400025be50
r22 0x1f
r23 0x0
r24 0x0
r25 0x0
r26 0x1fd4600
r27 0x20a66f4
r28 0x400180
r29 0x0
lr  0xca0448
sp  0x40003dfd40
pc  0xca0700
fault   0xca0700
*** Error 2 in . (Makefile:34 'post-build')
*** Error 2 in . (/home/ports//infrastructure/mk/bsd.port.mk:2929 
'/build/tmp/pobj//rclone-1.53.3/build-aarch64/.build_done': @cd /home/port...)
*** Error 2 in /home/ports/sysutils/rclone 
(/home/ports//infrastructure/mk/bsd.port.mk:2584 'all': @lock=rclone-1.53.3;  
export _LOCKS_HELD=...)



Re: backport sysutils/rclone update

2020-11-27 Thread Bjorn Ketelaars
On Fri 20/11/2020 07:02, Bjorn Ketelaars wrote:
> On Fri 20/11/2020 06:56, Bjorn Ketelaars wrote:
> > I would like to backport the recent rclone update to 6.8.
> > 
> > Why? It fixes CVE-2020-28924: Some passwords generated with rclone
> > config may be insecure. In particular if you used the 'g' generate
> > option with rclone v1.49 - v1.53.2 then your password will based on the
> > second it was generated in. This means that there are fixed number of
> > passwords in that period.
> > 
> > Diff below includes a cve entry for quirks.
> > 
> > OK?
> 
> Oops...previous diff contained an omission in the quirks entry. New
> diff:

Ping...

Diff enclosed again.


Index: sysutils/rclone/Makefile
===
RCS file: /cvs/ports/sysutils/rclone/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- sysutils/rclone/Makefile8 Aug 2020 16:41:13 -   1.17
+++ sysutils/rclone/Makefile20 Nov 2020 06:01:17 -
@@ -2,7 +2,7 @@
 
 COMMENT =  rsync for cloud storage
 
-V =    1.52.3
+V =1.53.3
 DISTNAME = rclone-v${V}
 PKGNAME =  rclone-${V}
 
@@ -18,15 +18,21 @@ PERMIT_PACKAGE = Yes
 WANTLIB += c pthread
 
 MASTER_SITES =  https://downloads.rclone.org/v${V}/
+DISTFILES =${DISTNAME}${EXTRACT_SUFX} \
+   ${DISTNAME}-vendor${EXTRACT_SUFX}
 
 MODULES =  lang/go
 MODGO_TYPE =   bin
 
 ALL_TARGET =   github.com/rclone/rclone
 
+post-extract:
+   mv ${WRKDIR}/vendor ${WRKDIST}
+
 post-build:
 .for s in bash zsh
-   cd ${MODGO_WORKSPACE}/bin && ./rclone genautocomplete $s rclone.$s
+   cd ${MODGO_WORKSPACE}/bin && \
+   HOME=${WRKSRC} ./rclone genautocomplete $s rclone.$s
 .endfor
 
 do-install:
Index: sysutils/rclone/distinfo
===
RCS file: /cvs/ports/sysutils/rclone/distinfo,v
retrieving revision 1.14
diff -u -p -r1.14 distinfo
--- sysutils/rclone/distinfo8 Aug 2020 16:41:13 -   1.14
+++ sysutils/rclone/distinfo20 Nov 2020 06:01:17 -
@@ -1,2 +1,4 @@
-SHA256 (rclone-v1.52.3.tar.gz) = 9IOeAVPu5UYV26N2qFvpQ60EBTAMPupdXgKywn7XsN0=
-SIZE (rclone-v1.52.3.tar.gz) = 19431808
+SHA256 (rclone-v1.53.3-vendor.tar.gz) = 
21jG7eFRsD3xrEPZhJsy9afrf5rKp7MBfY4A7ZrgBJY=
+SHA256 (rclone-v1.53.3.tar.gz) = 8eITvG+3xG+aTMhgSuCFZxhDS9r+B/o85EmumlEKV2M=
+SIZE (rclone-v1.53.3-vendor.tar.gz) = 5723994
+SIZE (rclone-v1.53.3.tar.gz) = 14683066
Index: devel/quirks/Makefile
===
RCS file: /cvs/ports/devel/quirks/Makefile,v
retrieving revision 1.1047
diff -u -p -r1.1047 Makefile
--- devel/quirks/Makefile   25 Sep 2020 21:40:55 -  1.1047
+++ devel/quirks/Makefile   20 Nov 2020 06:01:17 -
@@ -5,7 +5,7 @@ CATEGORIES =devel databases
 DISTFILES =
 
 # API.rev
-PKGNAME =  quirks-3.439
+PKGNAME =  quirks-3.440
 PKG_ARCH = *
 MAINTAINER =   Marc Espie 
 
Index: devel/quirks/files/Quirks.pm
===
RCS file: /cvs/ports/devel/quirks/files/Quirks.pm,v
retrieving revision 1.1065
diff -u -p -r1.1065 Quirks.pm
--- devel/quirks/files/Quirks.pm25 Sep 2020 21:40:55 -  1.1065
+++ devel/quirks/files/Quirks.pm20 Nov 2020 06:01:17 -
@@ -2047,6 +2047,7 @@ my $cve = {
'shells/bash' => 'bash-<4.3.27',
'sysutils/ansible,-main' => 'ansible-<2.7.1',
'sysutils/mcollective' => 'mcollective-<2.5.3',
+   'sysutils/rclone' => 'rclone-<1.53.3',
'sysutils/salt' => 'salt-<2018.3.3p2',
'telephony/asterisk,-main' => 'asterisk-<13.23.1',
'telephony/coturn' => 'turnserver-<4.5.1.2',



[new] net/rclone-browser

2020-11-26 Thread Solene Rapenne
Hi,

this is a new port, the program is a GUI to browse rclone repositories
and easily make sync scripts.

Note that sometimes it will produce a core dump upon exit but it's
a Qt bug that also happen in all Qt programs...

I chose net category but maybe sysutils where rclone already is
would suits better.


rclone-browser.tar.gz
Description: application/gzip


Re: backport sysutils/rclone update

2020-11-19 Thread Bjorn Ketelaars
On Fri 20/11/2020 06:56, Bjorn Ketelaars wrote:
> I would like to backport the recent rclone update to 6.8.
> 
> Why? It fixes CVE-2020-28924: Some passwords generated with rclone
> config may be insecure. In particular if you used the 'g' generate
> option with rclone v1.49 - v1.53.2 then your password will based on the
> second it was generated in. This means that there are fixed number of
> passwords in that period.
> 
> Diff below includes a cve entry for quirks.
> 
> OK?

Oops...previous diff contained an omission in the quirks entry. New
diff:


Index: sysutils/rclone/Makefile
===
RCS file: /cvs/ports/sysutils/rclone/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- sysutils/rclone/Makefile8 Aug 2020 16:41:13 -0000   1.17
+++ sysutils/rclone/Makefile20 Nov 2020 06:01:17 -
@@ -2,7 +2,7 @@
 
 COMMENT =  rsync for cloud storage
 
-V =1.52.3
+V =    1.53.3
 DISTNAME = rclone-v${V}
 PKGNAME =  rclone-${V}
 
@@ -18,15 +18,21 @@ PERMIT_PACKAGE = Yes
 WANTLIB += c pthread
 
 MASTER_SITES =  https://downloads.rclone.org/v${V}/
+DISTFILES =${DISTNAME}${EXTRACT_SUFX} \
+   ${DISTNAME}-vendor${EXTRACT_SUFX}
 
 MODULES =  lang/go
 MODGO_TYPE =   bin
 
 ALL_TARGET =   github.com/rclone/rclone
 
+post-extract:
+   mv ${WRKDIR}/vendor ${WRKDIST}
+
 post-build:
 .for s in bash zsh
-   cd ${MODGO_WORKSPACE}/bin && ./rclone genautocomplete $s rclone.$s
+   cd ${MODGO_WORKSPACE}/bin && \
+   HOME=${WRKSRC} ./rclone genautocomplete $s rclone.$s
 .endfor
 
 do-install:
Index: sysutils/rclone/distinfo
===
RCS file: /cvs/ports/sysutils/rclone/distinfo,v
retrieving revision 1.14
diff -u -p -r1.14 distinfo
--- sysutils/rclone/distinfo8 Aug 2020 16:41:13 -   1.14
+++ sysutils/rclone/distinfo20 Nov 2020 06:01:17 -
@@ -1,2 +1,4 @@
-SHA256 (rclone-v1.52.3.tar.gz) = 9IOeAVPu5UYV26N2qFvpQ60EBTAMPupdXgKywn7XsN0=
-SIZE (rclone-v1.52.3.tar.gz) = 19431808
+SHA256 (rclone-v1.53.3-vendor.tar.gz) = 
21jG7eFRsD3xrEPZhJsy9afrf5rKp7MBfY4A7ZrgBJY=
+SHA256 (rclone-v1.53.3.tar.gz) = 8eITvG+3xG+aTMhgSuCFZxhDS9r+B/o85EmumlEKV2M=
+SIZE (rclone-v1.53.3-vendor.tar.gz) = 5723994
+SIZE (rclone-v1.53.3.tar.gz) = 14683066
Index: devel/quirks/Makefile
===
RCS file: /cvs/ports/devel/quirks/Makefile,v
retrieving revision 1.1047
diff -u -p -r1.1047 Makefile
--- devel/quirks/Makefile   25 Sep 2020 21:40:55 -  1.1047
+++ devel/quirks/Makefile   20 Nov 2020 06:01:17 -
@@ -5,7 +5,7 @@ CATEGORIES =devel databases
 DISTFILES =
 
 # API.rev
-PKGNAME =  quirks-3.439
+PKGNAME =  quirks-3.440
 PKG_ARCH = *
 MAINTAINER =   Marc Espie 
 
Index: devel/quirks/files/Quirks.pm
===
RCS file: /cvs/ports/devel/quirks/files/Quirks.pm,v
retrieving revision 1.1065
diff -u -p -r1.1065 Quirks.pm
--- devel/quirks/files/Quirks.pm25 Sep 2020 21:40:55 -  1.1065
+++ devel/quirks/files/Quirks.pm20 Nov 2020 06:01:17 -
@@ -2047,6 +2047,7 @@ my $cve = {
'shells/bash' => 'bash-<4.3.27',
'sysutils/ansible,-main' => 'ansible-<2.7.1',
'sysutils/mcollective' => 'mcollective-<2.5.3',
+   'sysutils/rclone' => 'rclone-<1.53.3',
'sysutils/salt' => 'salt-<2018.3.3p2',
'telephony/asterisk,-main' => 'asterisk-<13.23.1',
'telephony/coturn' => 'turnserver-<4.5.1.2',



backport sysutils/rclone update

2020-11-19 Thread Bjorn Ketelaars
I would like to backport the recent rclone update to 6.8.

Why? It fixes CVE-2020-28924: Some passwords generated with rclone
config may be insecure. In particular if you used the 'g' generate
option with rclone v1.49 - v1.53.2 then your password will based on the
second it was generated in. This means that there are fixed number of
passwords in that period.

Diff below includes a cve entry for quirks.

OK?


Index: sysutils/rclone/Makefile
===
RCS file: /cvs/ports/sysutils/rclone/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- sysutils/rclone/Makefile8 Aug 2020 16:41:13 -   1.17
+++ sysutils/rclone/Makefile20 Nov 2020 05:55:08 -
@@ -2,7 +2,7 @@
 
 COMMENT =  rsync for cloud storage
 
-V =1.52.3
+V =1.53.3
 DISTNAME = rclone-v${V}
 PKGNAME =  rclone-${V}
 
@@ -18,15 +18,21 @@ PERMIT_PACKAGE = Yes
 WANTLIB += c pthread
 
 MASTER_SITES =  https://downloads.rclone.org/v${V}/
+DISTFILES =${DISTNAME}${EXTRACT_SUFX} \
+   ${DISTNAME}-vendor${EXTRACT_SUFX}
 
 MODULES =  lang/go
 MODGO_TYPE =   bin
 
 ALL_TARGET =   github.com/rclone/rclone
 
+post-extract:
+   mv ${WRKDIR}/vendor ${WRKDIST}
+
 post-build:
 .for s in bash zsh
-   cd ${MODGO_WORKSPACE}/bin && ./rclone genautocomplete $s rclone.$s
+   cd ${MODGO_WORKSPACE}/bin && \
+   HOME=${WRKSRC} ./rclone genautocomplete $s rclone.$s
 .endfor
 
 do-install:
Index: sysutils/rclone/distinfo
===
RCS file: /cvs/ports/sysutils/rclone/distinfo,v
retrieving revision 1.14
diff -u -p -r1.14 distinfo
--- sysutils/rclone/distinfo8 Aug 2020 16:41:13 -   1.14
+++ sysutils/rclone/distinfo20 Nov 2020 05:55:08 -
@@ -1,2 +1,4 @@
-SHA256 (rclone-v1.52.3.tar.gz) = 9IOeAVPu5UYV26N2qFvpQ60EBTAMPupdXgKywn7XsN0=
-SIZE (rclone-v1.52.3.tar.gz) = 19431808
+SHA256 (rclone-v1.53.3-vendor.tar.gz) = 
21jG7eFRsD3xrEPZhJsy9afrf5rKp7MBfY4A7ZrgBJY=
+SHA256 (rclone-v1.53.3.tar.gz) = 8eITvG+3xG+aTMhgSuCFZxhDS9r+B/o85EmumlEKV2M=
+SIZE (rclone-v1.53.3-vendor.tar.gz) = 5723994
+SIZE (rclone-v1.53.3.tar.gz) = 14683066
Index: devel/quirks/Makefile
===
RCS file: /cvs/ports/devel/quirks/Makefile,v
retrieving revision 1.1047
diff -u -p -r1.1047 Makefile
--- devel/quirks/Makefile   25 Sep 2020 21:40:55 -  1.1047
+++ devel/quirks/Makefile   20 Nov 2020 05:55:08 -
@@ -5,7 +5,7 @@ CATEGORIES =devel databases
 DISTFILES =
 
 # API.rev
-PKGNAME =  quirks-3.439
+PKGNAME =  quirks-3.440
 PKG_ARCH = *
 MAINTAINER =   Marc Espie 
 
Index: devel/quirks/files/Quirks.pm
===
RCS file: /cvs/ports/devel/quirks/files/Quirks.pm,v
retrieving revision 1.1065
diff -u -p -r1.1065 Quirks.pm
--- devel/quirks/files/Quirks.pm25 Sep 2020 21:40:55 -  1.1065
+++ devel/quirks/files/Quirks.pm20 Nov 2020 05:55:09 -
@@ -2047,6 +2047,7 @@ my $cve = {
'shells/bash' => 'bash-<4.3.27',
'sysutils/ansible,-main' => 'ansible-<2.7.1',
'sysutils/mcollective' => 'mcollective-<2.5.3',
+   'sysutils/rclone' => 'rclone-1.53.3',
'sysutils/salt' => 'salt-<2018.3.3p2',
'telephony/asterisk,-main' => 'asterisk-<13.23.1',
'telephony/coturn' => 'turnserver-<4.5.1.2',



Re: UPDATE sysutils/rclone

2020-10-22 Thread Bjorn Ketelaars
On Thu 15/10/2020 22:01, Bjorn Ketelaars wrote:
> On Thu 15/10/2020 20:39, Bjorn Ketelaars wrote:
> > Diff below updates sysutils/rclone to 1.53.1. Overview on changes can be
> > found at https://rclone.org/changelog/#v1-53-0-2020-09-02 and
> > https://rclone.org/changelog/#v1-53-1-2020-09-13.
> > 
> > Changes to port:
> > - Switch to MODGO_* as upstream removed vendor directory in favour of Go
> >   modules
> > - bit of clean-up (indentation)
> > 
> > Testing:
> > - Run tested webdav capabilities on amd64
> > 
> > Comments/OK?
> 
> I just noticed that upstream provides a vendor tarball, which makes
> updating easier (no need to rely on MODGO_*).
> 
> Build and run tested on amd64.
> 
> OK?

Ping...

Diff enclosed for your convenience.


Index: Makefile
===
RCS file: /cvs/ports/sysutils/rclone/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile8 Aug 2020 16:41:13 -   1.17
+++ Makefile15 Oct 2020 19:56:41 -
@@ -2,7 +2,7 @@
 
 COMMENT =  rsync for cloud storage
 
-V =1.52.3
+V =1.53.1
 DISTNAME = rclone-v${V}
 PKGNAME =  rclone-${V}
 
@@ -18,15 +18,21 @@ PERMIT_PACKAGE = Yes
 WANTLIB += c pthread
 
 MASTER_SITES =  https://downloads.rclone.org/v${V}/
+DISTFILES =${DISTNAME}${EXTRACT_SUFX} \
+   ${DISTNAME}-vendor${EXTRACT_SUFX}
 
 MODULES =  lang/go
 MODGO_TYPE =   bin
 
 ALL_TARGET =   github.com/rclone/rclone
 
+post-extract:
+   mv ${WRKDIR}/vendor ${WRKDIST}
+
 post-build:
 .for s in bash zsh
-   cd ${MODGO_WORKSPACE}/bin && ./rclone genautocomplete $s rclone.$s
+   cd ${MODGO_WORKSPACE}/bin && \
+   HOME=${WRKSRC} ./rclone genautocomplete $s rclone.$s
 .endfor
 
 do-install:
Index: distinfo
===
RCS file: /cvs/ports/sysutils/rclone/distinfo,v
retrieving revision 1.14
diff -u -p -r1.14 distinfo
--- distinfo8 Aug 2020 16:41:13 -   1.14
+++ distinfo15 Oct 2020 19:56:41 -
@@ -1,2 +1,4 @@
-SHA256 (rclone-v1.52.3.tar.gz) = 9IOeAVPu5UYV26N2qFvpQ60EBTAMPupdXgKywn7XsN0=
-SIZE (rclone-v1.52.3.tar.gz) = 19431808
+SHA256 (rclone-v1.53.1-vendor.tar.gz) = 
MpBfBIr1b6P9pkQnItAfF3V1PfSJ555BGOxV5In5e+w=
+SHA256 (rclone-v1.53.1.tar.gz) = 1y10qQoZH8CWRwUnD/WdWAlOK/SYL5+gvBUPcpZiDK8=
+SIZE (rclone-v1.53.1-vendor.tar.gz) = 5723919
+SIZE (rclone-v1.53.1.tar.gz) = 14675854



Re: UPDATE sysutils/rclone

2020-10-15 Thread Bjorn Ketelaars
On Thu 15/10/2020 20:39, Bjorn Ketelaars wrote:
> Diff below updates sysutils/rclone to 1.53.1. Overview on changes can be
> found at https://rclone.org/changelog/#v1-53-0-2020-09-02 and
> https://rclone.org/changelog/#v1-53-1-2020-09-13.
> 
> Changes to port:
> - Switch to MODGO_* as upstream removed vendor directory in favour of Go
>   modules
> - bit of clean-up (indentation)
> 
> Testing:
> - Run tested webdav capabilities on amd64
> 
> Comments/OK?

I just noticed that upstream provides a vendor tarball, which makes
updating easier (no need to rely on MODGO_*).

Build and run tested on amd64.

OK?


Index: Makefile
=======
RCS file: /cvs/ports/sysutils/rclone/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile8 Aug 2020 16:41:13 -   1.17
+++ Makefile15 Oct 2020 19:56:41 -
@@ -2,7 +2,7 @@
 
 COMMENT =  rsync for cloud storage
 
-V =1.52.3
+V =    1.53.1
 DISTNAME = rclone-v${V}
 PKGNAME =  rclone-${V}
 
@@ -18,15 +18,21 @@ PERMIT_PACKAGE = Yes
 WANTLIB += c pthread
 
 MASTER_SITES =  https://downloads.rclone.org/v${V}/
+DISTFILES =${DISTNAME}${EXTRACT_SUFX} \
+   ${DISTNAME}-vendor${EXTRACT_SUFX}
 
 MODULES =  lang/go
 MODGO_TYPE =   bin
 
 ALL_TARGET =   github.com/rclone/rclone
 
+post-extract:
+   mv ${WRKDIR}/vendor ${WRKDIST}
+
 post-build:
 .for s in bash zsh
-   cd ${MODGO_WORKSPACE}/bin && ./rclone genautocomplete $s rclone.$s
+   cd ${MODGO_WORKSPACE}/bin && \
+       HOME=${WRKSRC} ./rclone genautocomplete $s rclone.$s
 .endfor
 
 do-install:
Index: distinfo
=======
RCS file: /cvs/ports/sysutils/rclone/distinfo,v
retrieving revision 1.14
diff -u -p -r1.14 distinfo
--- distinfo8 Aug 2020 16:41:13 -   1.14
+++ distinfo    15 Oct 2020 19:56:41 -
@@ -1,2 +1,4 @@
-SHA256 (rclone-v1.52.3.tar.gz) = 9IOeAVPu5UYV26N2qFvpQ60EBTAMPupdXgKywn7XsN0=
-SIZE (rclone-v1.52.3.tar.gz) = 19431808
+SHA256 (rclone-v1.53.1-vendor.tar.gz) = 
MpBfBIr1b6P9pkQnItAfF3V1PfSJ555BGOxV5In5e+w=
+SHA256 (rclone-v1.53.1.tar.gz) = 1y10qQoZH8CWRwUnD/WdWAlOK/SYL5+gvBUPcpZiDK8=
+SIZE (rclone-v1.53.1-vendor.tar.gz) = 5723919
+SIZE (rclone-v1.53.1.tar.gz) = 14675854



Re: UPDATE sysutils/rclone-1.52.1

2020-06-19 Thread Thomas Frohwein
On Thu, Jun 18, 2020 at 11:33:09PM +0200, Bjorn Ketelaars wrote:
> On Thu 11/06/2020 21:06, Bjorn Ketelaars wrote:
> > Simple diff for updating rclone to 1.52.1. No exciting or big changes.
> > Changelog can be found at https://rclone.org/changelog/.
> > 
> > Run tested on amd64 (synchronising with a WebDAV account).
> > 
> > Comments/OK?
> 
> Ping...
> 
> Patch enclosed again for your convenience.

Only build tested up to fake target, but the update itself is trivial.
Passes portcheck, make port-lib-depends-check, and make update-plist.

I noticed that when I run 'make update-patches' (to see if any patches
need to be regenerated), the following happens:

$ make update-patches
WRKDIST=/usr/ports/pobj/rclone-1.52.1/rclone-v1.52.1 does not exist
*** Error 1 in /usr/ports/mystuff/sysutils/rclone 
(/usr/ports/infrastructure/mk/bsd.port.mk:2567 'update-patches': 
@toedit=`WRKDIST=/usr/por...)
$ make show=WRKDIST
/usr/ports/pobj/rclone-1.52.1/rclone-v1.52.1
$ make show=WRKSRC  
/usr/ports/pobj/rclone-1.52.1/go/src/github.com/rclone/rclone

Looking at the Makefile, it would seem that go.port.mk is behind this.

I'm not familiar with the go module, but this error looks like it could
be an issue when updating patches?

Since no other issues and trivial port update, ok thfr@ for the rclone
diff.
> 
> 
> diff --git Makefile Makefile
> index 88c6184ef58..0d24dc90a98 100644
> --- Makefile
> +++ Makefile
> @@ -2,7 +2,7 @@
>  
>  COMMENT =rsync for cloud storage
>  
> -V =      1.52.0
> +V =  1.52.1
>  DISTNAME =   rclone-v${V}
>  PKGNAME =rclone-${V}
>  
> diff --git distinfo distinfo
> index 92dc754c0e6..ba94f608f2c 100644
> --- distinfo
> +++ distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (rclone-v1.52.0.tar.gz) = uM0G9i+hYjqnfoqPYPSjDALITJdIje0VmWi/B77t8xs=
> -SIZE (rclone-v1.52.0.tar.gz) = 19927470
> +SHA256 (rclone-v1.52.1.tar.gz) = qV+6w3aLxfpWP/+DBXhvbP3dNFfetXCjraTHdvGodVM=
> +SIZE (rclone-v1.52.1.tar.gz) = 19928880
> 



Re: UPDATE sysutils/rclone-1.52.1

2020-06-18 Thread Bjorn Ketelaars
On Thu 11/06/2020 21:06, Bjorn Ketelaars wrote:
> Simple diff for updating rclone to 1.52.1. No exciting or big changes.
> Changelog can be found at https://rclone.org/changelog/.
> 
> Run tested on amd64 (synchronising with a WebDAV account).
> 
> Comments/OK?

Ping...

Patch enclosed again for your convenience.


diff --git Makefile Makefile
index 88c6184ef58..0d24dc90a98 100644
--- Makefile
+++ Makefile
@@ -2,7 +2,7 @@
 
 COMMENT =  rsync for cloud storage
 
-V =1.52.0
+V =1.52.1
 DISTNAME = rclone-v${V}
 PKGNAME =  rclone-${V}
 
diff --git distinfo distinfo
index 92dc754c0e6..ba94f608f2c 100644
--- distinfo
+++ distinfo
@@ -1,2 +1,2 @@
-SHA256 (rclone-v1.52.0.tar.gz) = uM0G9i+hYjqnfoqPYPSjDALITJdIje0VmWi/B77t8xs=
-SIZE (rclone-v1.52.0.tar.gz) = 19927470
+SHA256 (rclone-v1.52.1.tar.gz) = qV+6w3aLxfpWP/+DBXhvbP3dNFfetXCjraTHdvGodVM=
+SIZE (rclone-v1.52.1.tar.gz) = 19928880



UPDATE sysutils/rclone-1.52.1

2020-06-11 Thread Bjorn Ketelaars
Simple diff for updating rclone to 1.52.1. No exciting or big changes.
Changelog can be found at https://rclone.org/changelog/.

Run tested on amd64 (synchronising with a WebDAV account).

Comments/OK?


diff --git Makefile Makefile
index 88c6184ef58..0d24dc90a98 100644
--- Makefile
+++ Makefile
@@ -2,7 +2,7 @@
 
 COMMENT =  rsync for cloud storage
 
-V =1.52.0
+V =1.52.1
 DISTNAME = rclone-v${V}
 PKGNAME =  rclone-${V}
 
diff --git distinfo distinfo
index 92dc754c0e6..ba94f608f2c 100644
--- distinfo
+++ distinfo
@@ -1,2 +1,2 @@
-SHA256 (rclone-v1.52.0.tar.gz) = uM0G9i+hYjqnfoqPYPSjDALITJdIje0VmWi/B77t8xs=
-SIZE (rclone-v1.52.0.tar.gz) = 19927470
+SHA256 (rclone-v1.52.1.tar.gz) = qV+6w3aLxfpWP/+DBXhvbP3dNFfetXCjraTHdvGodVM=
+SIZE (rclone-v1.52.1.tar.gz) = 19928880



Re: UPDATE sysutils/rclone-1.50.2

2019-12-29 Thread Aaron Bieber
On Sun, 29 Dec 2019 at 12:38:39 +0100, Björn Ketelaars wrote:
> Enclosed diff brings rclone to 1.50.2, which fixes a couple of bugs. The
> list of changes between the version in ports and this update is a bit
> long. Overview can be found at https://rclone.org/changelog/.
> 
> I'm a frequent user of rclone and would like to take MAINTAINER.
> 
> The webdav backend has been tested extensively. No regressions found.
> 
> OK?
> 
> diff --git Makefile Makefile
> index b6f813d22bc..7afddf985ec 100644
> --- Makefile
> +++ Makefile
> @@ -2,15 +2,16 @@
>  
>  COMMENT =rsync for cloud storage
>  
> -V =  1.48.0
> +V =      1.50.2
>  DISTNAME =   rclone-v${V}
>  PKGNAME =rclone-${V}
> -REVISION =   0
>  
>  CATEGORIES = sysutils
>  
>  HOMEPAGE =   https://rclone.org/
>  
> +MAINTAINER = Bjorn Ketelaars 
> +
>  # MIT
>  PERMIT_PACKAGE = Yes
>  
> @@ -21,7 +22,7 @@ MASTER_SITES =  
> https://github.com/ncw/rclone/releases/download/v${V}/
>  MODULES =lang/go
>  MODGO_TYPE = bin
>  
> -ALL_TARGET = github.com/ncw/rclone
> +ALL_TARGET = github.com/rclone/rclone
>  
>  do-install:
>   ${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/rclone ${PREFIX}/bin/
> diff --git distinfo distinfo
> index 58e0372fae7..a9606cc6019 100644
> --- distinfo
> +++ distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (rclone-v1.48.0.tar.gz) = jP7QsODDQcdNRm0+zITjXjJmY5HQdURdUP5iMDXNA+Q=
> -SIZE (rclone-v1.48.0.tar.gz) = 17613425
> +SHA256 (rclone-v1.50.2.tar.gz) = bdiZinJRTTgg0kGuRtxgnAMFt0Ku49tqr2AXtGyZYJE=
> +SIZE (rclone-v1.50.2.tar.gz) = 18472434
> 

OK abieber@!

-- 
PGP: 0x1F81112D62A9ADCE / 3586 3350 BFEA C101 DB1A  4AF0 1F81 112D 62A9 ADCE



UPDATE sysutils/rclone-1.50.2

2019-12-29 Thread Björn Ketelaars
Enclosed diff brings rclone to 1.50.2, which fixes a couple of bugs. The
list of changes between the version in ports and this update is a bit
long. Overview can be found at https://rclone.org/changelog/.

I'm a frequent user of rclone and would like to take MAINTAINER.

The webdav backend has been tested extensively. No regressions found.

OK?

diff --git Makefile Makefile
index b6f813d22bc..7afddf985ec 100644
--- Makefile
+++ Makefile
@@ -2,15 +2,16 @@
 
 COMMENT =  rsync for cloud storage
 
-V =1.48.0
+V =1.50.2
 DISTNAME = rclone-v${V}
 PKGNAME =  rclone-${V}
-REVISION = 0
 
 CATEGORIES =   sysutils
 
 HOMEPAGE = https://rclone.org/
 
+MAINTAINER =   Bjorn Ketelaars 
+
 # MIT
 PERMIT_PACKAGE = Yes
 
@@ -21,7 +22,7 @@ MASTER_SITES =  
https://github.com/ncw/rclone/releases/download/v${V}/
 MODULES =  lang/go
 MODGO_TYPE =   bin
 
-ALL_TARGET =   github.com/ncw/rclone
+ALL_TARGET =   github.com/rclone/rclone
 
 do-install:
${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/rclone ${PREFIX}/bin/
diff --git distinfo distinfo
index 58e0372fae7..a9606cc6019 100644
--- distinfo
+++ distinfo
@@ -1,2 +1,2 @@
-SHA256 (rclone-v1.48.0.tar.gz) = jP7QsODDQcdNRm0+zITjXjJmY5HQdURdUP5iMDXNA+Q=
-SIZE (rclone-v1.48.0.tar.gz) = 17613425
+SHA256 (rclone-v1.50.2.tar.gz) = bdiZinJRTTgg0kGuRtxgnAMFt0Ku49tqr2AXtGyZYJE=
+SIZE (rclone-v1.50.2.tar.gz) = 18472434



Re: rclone / go problem (was Re: your mail)

2019-01-02 Thread Antonio Murdaca
On Wed, Jan 2, 2019, 16:58 Juan Francisco Cantero Hurtado  On Wed, Jan 02, 2019 at 06:47:22AM +0100, Sebastien Marie wrote:
> > On Wed, Jan 02, 2019 at 01:21:51AM +0100, antoniomurd...@gmail.com
> wrote:
> > > >Synopsis:  rclone Illegal instruction (core dumped)
> > > >Category:  sysutils
> > > >Environment:
> > > System  : OpenBSD 6.4
> > > Details : OpenBSD 6.4 (GENERIC) #3: Thu Dec 20 18:03:29 CET
> 2018
> > >  r...@syspatch-64-i386.openbsd.org:
> /usr/src/sys/arch/i386/compile/GENERIC
> > >
> > > Architecture: OpenBSD.i386
> > > Machine : i386
> > > >Description:
> > > rclone as installed with pkg_add on i386 is broken (couldn't test
> on amd64 though).
> > > >How-To-Repeat:
> > > # pkg_add rclone
> > > # rclone
> > > >Fix:
> > > backtrace from gdb shows the following, not sure if it could help
> but this is easily reproducible anyway:
> > >
> > > openbsd# gdb rclone
> > > GNU gdb 6.3
> > > Copyright 2004 Free Software Foundation, Inc.
> > > GDB is free software, covered by the GNU General Public License, and
> you are
> > > welcome to change it and/or distribute copies of it under certain
> conditions.
> > > Type "show copying" to see the conditions.
> > > There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
> > > This GDB was configured as "i386-unknown-openbsd6.4"...(no debugging
> symbols found)
> > >
> > > (gdb) r
> > > Starting program: /usr/local/bin/rclone
> > >
> > > Program received signal SIGILL, Illegal instruction.
> >
> > it would be interesting to have the offending instruction, using
> > disassemble gdb command (if I remember correctly).
> >
> > (gdb) disassemble
> >
> >
> > My guest would be that go generates code for i686 (using some SSE
> > instruction code for example), and your cpu doesn't have this
> > instructions (so it complains).
> >
> > > cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
> 586-class) 499 MHz, 05-0a-02
> > > cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
> >
> > If it is the case, several possibilities:
> > - your host is too old for using such program, just not do that
> > - the go compiler should generate i386 code (so no extending instruction
> >   sets) - but does it make sens to try running such program on so old
> >   hardware ? (we already had such discussion about firefox using SSE2
> with
> >   Rust on i386. but I dunno if rclone fall in same class than firefox)
>
> There was the same discussion for golang and sse on i386. I would prefer
> to change the default from sse to 387.
>
> Antonio, this patch should fix your problem with rclone:
>
> Index: Makefile
> ===========
> RCS file: /cvs/ports/sysutils/rclone/Makefile,v
> retrieving revision 1.4
> diff -u -p -r1.4 Makefile
> --- Makefile22 Sep 2018 08:30:07 -  1.4
> +++ Makefile2 Jan 2019 15:56:27 -
> @@ -20,6 +20,7 @@ MASTER_SITES =  https://github.com/ncw/r
>
>  MODULES =  lang/go
>  MODGO_TYPE =   bin
> +MODGO_ENV +=   GO386=387
>

Thanks a lot Juan for pointing that out. That's indeed what I've been able
to find upstream in golang/rclone github issues.


>  ALL_TARGET =   github.com/ncw/rclone
>
>


Re: rclone / go problem (was Re: your mail)

2019-01-02 Thread Juan Francisco Cantero Hurtado
On Wed, Jan 02, 2019 at 06:47:22AM +0100, Sebastien Marie wrote:
> On Wed, Jan 02, 2019 at 01:21:51AM +0100, antoniomurd...@gmail.com wrote:
> > >Synopsis:  rclone Illegal instruction (core dumped)
> > >Category:  sysutils
> > >Environment:
> > System  : OpenBSD 6.4
> > Details : OpenBSD 6.4 (GENERIC) #3: Thu Dec 20 18:03:29 CET 2018
> >  
> > r...@syspatch-64-i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> > 
> > Architecture: OpenBSD.i386
> > Machine : i386
> > >Description:
> > rclone as installed with pkg_add on i386 is broken (couldn't test on 
> > amd64 though).
> > >How-To-Repeat:
> > # pkg_add rclone
> > # rclone
> > >Fix:
> > backtrace from gdb shows the following, not sure if it could help but 
> > this is easily reproducible anyway:
> > 
> > openbsd# gdb rclone
> > GNU gdb 6.3
> > Copyright 2004 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License, and you are
> > welcome to change it and/or distribute copies of it under certain 
> > conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB.  Type "show warranty" for details.
> > This GDB was configured as "i386-unknown-openbsd6.4"...(no debugging 
> > symbols found)
> > 
> > (gdb) r
> > Starting program: /usr/local/bin/rclone
> > 
> > Program received signal SIGILL, Illegal instruction.
> 
> it would be interesting to have the offending instruction, using
> disassemble gdb command (if I remember correctly).
> 
> (gdb) disassemble
> 
> 
> My guest would be that go generates code for i686 (using some SSE
> instruction code for example), and your cpu doesn't have this
> instructions (so it complains).
> 
> > cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 
> > 499 MHz, 05-0a-02
> > cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
> 
> If it is the case, several possibilities:
> - your host is too old for using such program, just not do that
> - the go compiler should generate i386 code (so no extending instruction
>   sets) - but does it make sens to try running such program on so old
>   hardware ? (we already had such discussion about firefox using SSE2 with
>   Rust on i386. but I dunno if rclone fall in same class than firefox)

There was the same discussion for golang and sse on i386. I would prefer
to change the default from sse to 387.

Antonio, this patch should fix your problem with rclone:

Index: Makefile
===
RCS file: /cvs/ports/sysutils/rclone/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile22 Sep 2018 08:30:07 -  1.4
+++ Makefile2 Jan 2019 15:56:27 -
@@ -20,6 +20,7 @@ MASTER_SITES =  https://github.com/ncw/r
 
 MODULES =  lang/go
 MODGO_TYPE =   bin
+MODGO_ENV +=   GO386=387
 
 ALL_TARGET =   github.com/ncw/rclone
 



Re: rclone / go problem (was Re: your mail)

2019-01-01 Thread Sebastien Marie
On Wed, Jan 02, 2019 at 01:21:51AM +0100, antoniomurd...@gmail.com wrote:
> >Synopsis:rclone Illegal instruction (core dumped)
> >Category:sysutils
> >Environment:
>   System  : OpenBSD 6.4
>   Details : OpenBSD 6.4 (GENERIC) #3: Thu Dec 20 18:03:29 CET 2018
>
> r...@syspatch-64-i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> 
>   Architecture: OpenBSD.i386
>   Machine     : i386
> >Description:
>   rclone as installed with pkg_add on i386 is broken (couldn't test on 
> amd64 though).
> >How-To-Repeat:
>   # pkg_add rclone
>   # rclone
> >Fix:
>   backtrace from gdb shows the following, not sure if it could help but 
> this is easily reproducible anyway:
> 
> openbsd# gdb rclone
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-unknown-openbsd6.4"...(no debugging symbols 
> found)
> 
> (gdb) r
> Starting program: /usr/local/bin/rclone
> 
> Program received signal SIGILL, Illegal instruction.

it would be interesting to have the offending instruction, using
disassemble gdb command (if I remember correctly).

(gdb) disassemble


My guest would be that go generates code for i686 (using some SSE
instruction code for example), and your cpu doesn't have this
instructions (so it complains).

> cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 
> 499 MHz, 05-0a-02
> cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW

If it is the case, several possibilities:
- your host is too old for using such program, just not do that
- the go compiler should generate i386 code (so no extending instruction
  sets) - but does it make sens to try running such program on so old
  hardware ? (we already had such discussion about firefox using SSE2 with
  Rust on i386. but I dunno if rclone fall in same class than firefox)

Thanks.
-- 
Sebastien Marie