From owner-freebsd-ppc@freebsd.org Mon Jun 5 20:54:18 2017 Return-Path: Delivered-To: freebsd-ppc@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 D5FEEB7A4B5 for ; Mon, 5 Jun 2017 20:54:18 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B3E536A8FE for ; Mon, 5 Jun 2017 20:54:18 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id AFF84B7A4B4; Mon, 5 Jun 2017 20:54:18 +0000 (UTC) Delivered-To: ppc@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 ADDB6B7A4B3 for ; Mon, 5 Jun 2017 20:54:18 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-qt0-x230.google.com (mail-qt0-x230.google.com [IPv6:2607:f8b0:400d:c0d::230]) (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 63F0D6A8FD for ; Mon, 5 Jun 2017 20:54:18 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-qt0-x230.google.com with SMTP id u12so80495439qth.0 for ; Mon, 05 Jun 2017 13:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=yHoZZJnwZMBSLw5XjOnXjY2Ls/gyy6H98miduYx+ypA=; b=rSglgsE0345rPrYK2o/8JVZfj3mJC76GAD2toIFpXgBK6iwz1UHC6e+xibRAFoMx3d Czf2Ud8+hOAet6s5oFLCWy/Sb5smxyXPnbrzvWVvh20Jm68At/+TNIw0MYsQir2IhfJj ALQ4xOFDq1zldqWqgy+r1Q8pkUyixNO/tvN7xoOWj2yhyjNw3FdYKBrm00jHPkwjztEE 4tuFNoTNGOl83o4iH4K5HcF2PLy+v1oytvQooC5tpH5K8xiInFlUjZru+CwXKoWdpMcQ 7o9G/8xwMA2T7j9Jl7SF3cX1TcIzQ7zRFEePYbyXi97LylLdxxbxakM7M6DCHyPyIxt4 ykoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=yHoZZJnwZMBSLw5XjOnXjY2Ls/gyy6H98miduYx+ypA=; b=lPAGr5p5pmPwHyr8tocSi92TEwtVT1EvCQrwsuVH3gtmOCUHqUjA8V+1XOAZluPSCC HxiYuqa60w34uDRfcULek+YHJYF7IlzXFxYTV5BgQ+FEK40HRIcNMSBLhrPVBswxtPXG 9OuSfZKs+Y/23cBoWkwykssMxjV9tsbenWE5ittuIxQdMidWk1YpPL9OZl+Kd78vzRyD i49FFjILzJtiSH1vn8QWxI9InyREPhW9yZ+OxvXOXFbdApO7c+ZbC/DchB1tJtyXA4p3 ENA4eGSb1Fe2LhLqDxRW+OZHcWlWvyfy1NBXjVpYabIHzokYhLXjamqCVRBx4EfjUiMl wmEg== X-Gm-Message-State: AODbwcBefwVKZNkFjVU5Udp3DKaEMN+I4Yrf9pivDViA/AAbp9WiyJDd li99i4sR3hoo2vIr39Nt0yJ3r/sB654f X-Received: by 10.200.56.136 with SMTP id f8mr27880291qtc.234.1496696057405; Mon, 05 Jun 2017 13:54:17 -0700 (PDT) MIME-Version: 1.0 Sender: chmeeedalf@gmail.com Received: by 10.12.168.154 with HTTP; Mon, 5 Jun 2017 13:54:16 -0700 (PDT) In-Reply-To: References: From: Justin Hibbits Date: Mon, 5 Jun 2017 15:54:16 -0500 X-Google-Sender-Auth: PhLOsD7cwCdfxDtTnga2oSN0C7c Message-ID: Subject: Re: 64-bit time_t on 32-bit powerpc To: ppc@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2017 20:54:18 -0000 On Fri, Jun 2, 2017 at 11:45 PM, Justin Hibbits wrote: > Calling all powerpc(32) users, > > Attached is a patch which changes the size of time_t from 32-bit to 64-bit > on powerpc. ARM and MIPS already use 64-bit time_t, the only other holdout > is i386, which cannot be changed. I want to get this in soon so there's > plenty of soak time before 12 is branched. It works well enough for my > cases, but I want others to poke, prod, and try to break it. Especially try > your favorite ports builds, and make sure things still a) build, and b) work > as expected. > > Almost forgot, too... With powerpc64 users, the compat32 has been updated as > well, obviously. So, some testing of that is needed, too. > > - Justin I was just informed I forgot a very crucial part of the patch -- the update to UPDATING: 20170612: The FreeBSD/powerpc platform now uses a 64-bit type for time_t. This is a very major incompatible change, so users of FreeBSD/powerpc must be careful when performing source upgrades. It is best to run 'make installworld' from an alternate root system, either a live CD/memory stick, or a temporary root partition. Additionally, all ports must be recompiled. In short: Do _not_ try to reboot to the new kernel with existing userland. Boot to an alternate userland and install from there. Also, shortly after I sent out the patch, I realized I hadn't tested with TARGET_ARCH=powerpc64, which broke. I'll send out an updated patch later tonight. - Justin