From owner-freebsd-ports@freebsd.org Sat Apr 2 19:21:04 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B7810AECD9C for ; Sat, 2 Apr 2016 19:21:04 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8186C1BA3 for ; Sat, 2 Apr 2016 19:21:04 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ig0-x236.google.com with SMTP id sy18so35173886igc.1 for ; Sat, 02 Apr 2016 12:21:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=Utpe1XFEicjZZynR6UjWEY23ZtVrHC5WcoALp8/ek9k=; b=rcZm9xX4lhXQxHQ3bzyPTlkqZEDmFRyl1Me7VVUAsDpmqJtoh4qz3DvQFiSoRho6lr ySNTgmFhsBctcX+9/1aZNC3THuLKnq0uxgoKt/DU/2Ni0uKqDmWGXnhW1DVq4PDqnPzF VfnUdnNgxqBJo9eyE6oObDGWoKKdkegmxRKP0Hwc8eZ7gBZV422737ekDLrxCY8gBVAV XI3xBUa7fYve4feEIShcHYko+dXv8/kbzzNk5kkGPHdYACInS3qrihm16J5lQUIC5tm0 ZDtJ/wFzwQnXYYNbUZyYU/7Ss8+yzQSwN2AaCKkTzLRtwEdxr+3np4aAEYoHAnlyOdwk 4zrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Utpe1XFEicjZZynR6UjWEY23ZtVrHC5WcoALp8/ek9k=; b=lrxF4wM1z1qH3OHeiGFZEnVmee2GqmMesXJ0oTLMZTeyA6Yl6ApOQOfG+LITMofA7C 8u58z/QpQwfP/u36AP4K3RPuodVRwvsGOwXlJNu7ixNf/A8N8Bk+xciC0FyAXGZNxMn+ VdbNd/rydHZsdomDZetUzxBobYcaHugyPhnV5uxJq5xNRLXIzpFu7TAhQ6lvb+3OBM2t Zxq2JvUMoCLBF+8n5otsh7s/lndRnQZu6JdzZ0wflXyWspDKJ+gKXyfij9cu0dK4K/Ry Im0dsvt1x1+eOGRmXyU5w8FV5l0hM4KRZ14zuMEAhn0NBVzfL3qxF0OFoDmsyRNx+hgg 9tTw== X-Gm-Message-State: AD7BkJLCIFvGvPvyw2mGPc7t369r+9E5Z50SZvIbWBPstGEjB0YP+N36mJHnq1VrUgF1N10F3yWegIBkZDMXCA== MIME-Version: 1.0 X-Received: by 10.50.8.101 with SMTP id q5mr4026110iga.22.1459624863594; Sat, 02 Apr 2016 12:21:03 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.79.35.33 with HTTP; Sat, 2 Apr 2016 12:21:03 -0700 (PDT) In-Reply-To: <56FFC9F4.3060102@yahoo.com> References: <56FFC9F4.3060102@yahoo.com> Date: Sat, 2 Apr 2016 12:21:03 -0700 X-Google-Sender-Auth: oBCmAndw0-X66Q-HOlfYNRj8SRs Message-ID: Subject: Re: Need an expect script or p5-*Expect* to lessen keystrokes upon large ports tree changes From: Kevin Oberman To: Jeffrey Bouquet Cc: FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Apr 2016 19:21:04 -0000 On Sat, Apr 2, 2016 at 6:32 AM, Jeffrey Bouquet via freebsd-ports < freebsd-ports@freebsd.org> wrote: > Today svn-of-ports has about 600 (tc,mc) /200 (r) = 800 responses > required (tree and etc conflicts) > > > -------------------------------------------------------------------------------------------- > > 1... > > Select: > (mc) prepare for updating moved-away children, if any (recommended), > (p) postone, (q) quit resolution, (h) help: > > [ I need expect to return mc, and a RET ] IF expect works upon svn > responses > > 2... > > Select: > (p) (df) (e) (m) > (mc) (tc) > (s) > > [ I need expect to return tc , and a RET] Sorry for the omitted svn > context > > 3... > > Select: > (r) (p) (q) (h) [ sorry for the omitted svn > context] > > [I need expect to return r , and a RET ] > > > > > --------------------------------------------------------------------------------------------------------------------------------- > > Writing this request about 100/800 done for today, so cannot help this > time, not > urgent -- better yet if it was integrated into svn as a feature... > > Seems that, once-a-year or so, it is way too time consuming all of a > sudden, and sometimes > exceedingly inconvenient -- so it would be nice to have a backup plan. > > I will provide context in a followup, after a few days, if that is necc. > for some expert or > semi-expert in expect to craft a script. > > Thanks in advance, or any other ideas appreciated. Not wanting to waste > anyone's time. > > Jeff > I am not volunteering to write an expect script for you though it could be done with either expect or p5-Expect-Simple. Expect scripts, if reliable, are very difficult to write and mistakes can, in many cases, be disastrous. I had to write and support scripts to talk to network routers and switches and I can't recommend it. There is always some possible response that you either didn't know about or thought you would never receive that blows things out of the water. And screen scraping is always risky as a minor change between versions can break everything. I am concerned with why this is happening. I have run "svn up /user/ports" nightly for years with no issues like you describe. This simply should not be happening. I'm curious as to why. Are you running svn in a script or manually? What command are you using? What version of subversion is installed or are you running the base svnlite? (I use the full-blown subversion.) Are you manually doing any edits to the ports tree? Have you looked at the output of "svn status /usr/ports"? -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683