X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from web130104.mail.mud.yahoo.com (web130104.mail.mud.yahoo.com [66.94.238.131]) by lists.alpinelinux.org (Postfix) with SMTP id 3EA831EB587 for ; Sat, 26 Feb 2011 11:36:08 +0000 (UTC) Received: (qmail 22829 invoked by uid 60001); 26 Feb 2011 11:36:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298720167; bh=9aOFY8r1MqcJJGUk1tXrVsMyJohdLBp07t3mvChPkEs=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VVWVzMC46Wif+s5Vmor13Fy3Pp85zt6mfcYqI0DLDUfLLrq3sGObFkJJ9yaQo1FcHuvQVtLbPhkizH7TR0O5c0d/EEENFOToiR8tB1jIYEHudwGIzZG0M3kdDkk908Nge9P7AOpCAJy+fiBcfbDBabOiIOs+JgIiifVZJm9p7u0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=GwwcplWr9pJF8dmfh3JSP5jE6KBTKLlBhEUzIp+uD4TDDpa1jDj9wVSeGwtrYhVIW2vS0FIk5+3OmaQpN8Bj1cKVCs6BT9rTLNA8oQwhZ/Jp5BxWXRfDLaddfC9UyUo+HzGhOarKkA4Kk6kjkomCpaULlIe16Ru0hUzmqCfUq1s=; Message-ID: <759731.20927.qm@web130104.mail.mud.yahoo.com> X-YMail-OSG: pnpByZcVM1lc3HbuLbhVNF0gW5LlpQfndqiHtYs.zGHtkFF 74dneShqpALzGfpVBQ4w2G8lJ5_7ARlMMGDCVRtBzfzeQp2EA8kmrGDLySCC GmmsA_Ev_RN4Cbmrpxn7uKupIlqs5V3GCUS3fX5YkL04V18BjaGc_9mPT75h 2nuH3k9OhMVdtnlol.bgD3llcyiVH4erSZZjVVUoNtN0QbC1qPXVFgNzHj8c VBLSrpIDiGkmJPuu97oc.JcacghRcDflNC5eJxEDFxJkUhbbuDbUYSzB6qI_ GXkpQkoy5y.8h5j87IP0PZ53fr6kAmry0Q0q5f6sacNiZgbUWxlLLw_6Lvt2 wC3kBIkhN.jmUbAc066XyipVSmlQ.TR7R7n4hJJsybtfzYw5bJ.5Ok.SCVzB fjnmzCACfUOixzsVgpQ-- Received: from [208.74.141.112] by web130104.mail.mud.yahoo.com via HTTP; Sat, 26 Feb 2011 03:36:07 PST X-Mailer: YahooMailRC/555 YahooMailWebService/0.8.109.292656 Date: Sat, 26 Feb 2011 03:36:07 -0800 (PST) From: Ted Trask Subject: [alpine-devel] Proper way to handle major version upgrade for a package To: Alpine Developers X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I have a major version bump for acf-weblog in the works. Unfortunately, it'= s not =0Abackwards compatible. Since acf-weblog uses postgres, it got me th= inking about =0Ahow the upgrade from postgres 8 to 9 went. In Alpine Linux = 2.1, we released =0Apostgresql 9.0. Since the data directory moved, a simpl= e 'apk upgrade' from =0Apostgres 8 to 9=A0broke any=A0existing postgres dat= abases. There was no real warning =0Afor users. The release notes =0A(http:= //www.alpinelinux.org/wiki/Release_Notes_for_Alpine_2.1.0) mentioned the = =0Aversion bump, but nothing about the incompatibility. The only way they w= ould be =0Aaware of the problem was with insider knowledge about postgres. = I had several =0Ausers run into this problem.=0A=0AWhat is the proper way t= o handle upgrades like this?=0A=0A1) Put the upgraded package in a newer ve= rsion of Alpine Linux (ie 2.2) with a =0Anote in the release notes? Let the= user beware.=0A2) Add upgrade instructions to the Alpine release notes? (l= ike =0Ahttp://www.alpinelinux.org/w/index.php?title=3DTemplate:UpgradeTo2)= =0A3) Try to create pre/post install scripts to make the upgrade seemless?= =0A=0AI know option 3 would be a lot of work, considering the number of pac= kages=A0we =0Anow have,=A0but it's the 'nice' thing to do. Thoughts?=0A=0AT= ed Trask=0A=0AP.S. Should we go back and try to make the postgres upgrade c= leaner for future =0Ausers who upgrade to 2.1?=0A=0A=0A --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---