From owner-freebsd-questions@freebsd.org Thu Jul 23 15:24:45 2015 Return-Path: Delivered-To: freebsd-questions@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 66F679A8070 for ; Thu, 23 Jul 2015 15:24:45 +0000 (UTC) (envelope-from Vivara@s1108385463.m.en25.com) Received: from mail03.news.vivara.com.br (mail03.news.vivara.com.br [142.0.164.35]) by mx1.freebsd.org (Postfix) with ESMTP id 9AD4E1CC2 for ; Thu, 23 Jul 2015 15:24:42 +0000 (UTC) (envelope-from Vivara@s1108385463.m.en25.com) Received: from [10.34.116.104] ([10.34.116.104:64632] helo=P03INJECT006) by msm-mta08-dc6 (envelope-from ) (ecelerity 3.6.9.48312 r(Core:3.6.9.0)) with ESMTP id 1C/A2-08798-92201B55; Thu, 23 Jul 2015 11:03:05 -0400 Message-ID: X-Binding: 1108385463 X-elqSiteID: 1108385463 X-elqPod: 0x4FAD31AC84944479F0D71EA9AF9E5B508254F4720DA05EDD7E2289D7C62F1F76 MIME-Version: 1.0 From: "Vivara" To: freebsd-questions@freebsd.org Reply-To: "Vivara" Date: 23 Jul 2015 11:03:05 -0400 Subject: =?utf-8?B?Q29uaGXDp2EgbyBwZXJmdW1lIHF1ZSBleHByZXNzYSBhIHNvZmlzdGljYcOnw6NvLCByb21hbnRpc21vIGUgc2Vuc3VhbGlkYWRlIGRhIG11bGhlciBWSVZBUkEu?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2015 15:24:45 -0000 SWYgeW91IGhhdmUgdHJvdWJsZSB2aWV3aW5nIHRoaXMgZW1haWwsIHJlYWQgdGhlIG9u b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ByaXZhY3kgUG9saWN5DQpbTElOSyBUTyBDTElFTlQgUFJJVkFDWSBQ T0xJQ1kgR09FUyBIRVJFXQ== From owner-freebsd-questions@freebsd.org Thu Jul 23 15:40:51 2015 Return-Path: Delivered-To: freebsd-questions@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 E53CB9A85FE for ; Thu, 23 Jul 2015 15:40:51 +0000 (UTC) (envelope-from vrwmiller@gmail.com) Received: from mail-oi0-x236.google.com (mail-oi0-x236.google.com [IPv6:2607:f8b0:4003:c06::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 AB4FC1CA5 for ; Thu, 23 Jul 2015 15:40:51 +0000 (UTC) (envelope-from vrwmiller@gmail.com) Received: by oihq81 with SMTP id q81so168079344oih.2 for ; Thu, 23 Jul 2015 08:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=gj08A8gKGLiysUWSDXorG1YP2xzna5Nb0uQoA75Eh1c=; b=sx3nTNLAMkqML1QBQhnO9J84c21Vsm59MmZ2hIQ6bDJjDpVFS1rsP8dFQpGOIUpTTa FujBYNLoH1kXFbKHAyQvwB/EQ4jOu0mDxCDg56pz99VSm8ICLGMUHlAmFGIMQzgy+Tpe ED/haoJfhr4jYhAnn3vAZY0cB3+j4GlhSy+YzDJbHKEpEp+VIAcRkyqswRrG5Ya6tdq2 CUNyJwTmvR/W0hOl4xHKujrBlKHSBiZkYTfZRDURSryBsbHfxwf7h1UrrjFcDZFCtf+U WU+DCrSarEgaow0lgewDZB68xgr9+ao2u1tY3kRUASW++2e7VO9hLpnHN51A1iTvzXVk T0Jg== MIME-Version: 1.0 X-Received: by 10.202.185.133 with SMTP id j127mr8847785oif.9.1437666050804; Thu, 23 Jul 2015 08:40:50 -0700 (PDT) Sender: vrwmiller@gmail.com Received: by 10.202.8.142 with HTTP; Thu, 23 Jul 2015 08:40:50 -0700 (PDT) Date: Thu, 23 Jul 2015 11:40:50 -0400 X-Google-Sender-Auth: TmPqdWTP0MPxINJdp_hI3AHHcmE Message-ID: Subject: freebsd-update-server findstamps() problem From: Rick Miller To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2015 15:40:52 -0000 Hi all, Utilizing Colin Percival's freebsd-update-server[1] and instructions[2], I'm building update server content for a customized FreeBSD distribution, which appears to work, but exhibits unexpected behavior. Can someone review and provide information that may help me track this down? The behavior manifests itself in the findstamps() function during the while() loop that executes the findstamps binary (reference code below). The input, as specified in stampedfiles.new, resulting in the behavior is: world|doc|/usr/share/doc/psd/13.rcs/paper.ascii.gz The files as they exist on the disk are as follows: $ ls -ld world0/R/trees/world/doc/usr/share/doc/psd/13.rcs/paper.ascii.gz world1/R/trees/world/doc/usr/share/doc/psd/13.rcs/paper.ascii.gz -r--r--r-- 1 root wheel 22287 Jul 21 18:28 world0/R/trees/world/doc/usr/share/doc/psd/13.rcs/paper.ascii.gz -r--r--r-- 1 root wheel 22290 Aug 24 2016 world1/R/trees/world/doc/usr/share/doc/psd/13.rcs/paper.ascii.gz The files are, obviously, binary gzip compressed files of differing sizes. The output of the operation performed on these files (findstamps piped to lam()) is evident within stampvalues.new and illustrated below where the file begins with ASCII, but where the bottom portion of the file contains garbled characters, as if a binary were cat'd to STDOUT. It is subsequently followed by the error "findstamps: Files have different lengths!" (note, the output is truncated to remove much of the binary output). This suggests differences in buildworld and logs do exist, but admittedly, the low-level details of generating releases is unfamiliar to me so I'm unsure exactly how to interpret the log files. =3D=3D=3D Begin stampvalues.new =3D=3D=3D scanner.po/ 1437502232 0 0 100644 54784 ` reader.po/ 1437502231 0 0 100644 5392 ` api.po/ 1437502230 0 0 100644 38640 ` # date: Tue Jul 21 18:29:06 2015 ?"? r 3 I? |? ?$??w s=3D??????????x???O???? ${WORKDIR}/stamplocations.new \ 2> ${WORKDIR}/stampvalues.new =3D=3D=3D End findstamps() code snippet =3D=3D=3D [1] https://svnweb.freebsd.org/base/user/cperciva/freebsd-update-build/ [2] https://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/= index.html --=20 Take care Rick Miller