On Wed, Apr 24, 2019 at 04:30:23PM +0200, Jeremie Courreges-Anglas wrote:
> On Wed, Apr 24 2019, Marc Espie <[email protected]> wrote:
> > I've been playing a bit with new C++, and  to host stuff on github.
> >
> > As a result, I've written a new (smallish) command called rr:
> > -----------
> >
> > rr (random run) runs a command with randomized arguments.
> >   
> > Basically,
> >
> > $ rr mpv *.mp4
> > will give you a true shuffle, that doesn't play the same file twice.
> >
> > there are more options:
> >
> > $ rr xv -nolimit -- *
> > allows you to specify options that won't be jumbled.
> >
> > $ rr -n 500 -x '.*.pdf' xv -nolimit -- *
> > will run xv several times on all files in the current directory
> > except those matching '.*.pdf', limiting each run to 500 parameters.
> >
> > ----------
> >
> > Port attached
> >
> > # $OpenBSD$
> >
> > COMMENT =   run command with randomized parameters
> > PKGNAME =   rr-${GH_TAGNAME}
> > CATEGORIES =        sysutils
> > MAINTAINER =        Marc Espie <[email protected]>
> >
> > GH_PROJECT =        random_run
> > GH_TAGNAME =        1.0
> > GH_ACCOUNT =        marcespie
> >
> > COMPILER =  base-clang ports-gcc
> 
> Doesn't build with current ports-gcc (4.9.4) since it doesn't know about
> C++17.  Builds fine with gcc-8.3.0 though.
So it's currently BROKEN for those arches, but not for long.

> The port doesn't respect CXXFLAGS/DEBUG/LDFLAGS.  Suggestion:
> 
> MAKE_FLAGS =  OPTIMIZE="${CXXFLAGS}" \
>                 LDFLAGS="${LDFLAGS}"

Should work.

Reply via email to