Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIJY8-0004Y5-Bg for pgsql-jdbc@arkaria.postgresql.org; Tue, 25 Feb 2014 15:04:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WIJY7-0001iu-SK for pgsql-jdbc@arkaria.postgresql.org; Tue, 25 Feb 2014 15:03:59 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIJY6-0001io-SS for pgsql-jdbc@postgresql.org; Tue, 25 Feb 2014 15:03:59 +0000 Received: from mail-ig0-x22d.google.com ([2607:f8b0:4001:c05::22d]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WIJY2-0005s5-SC for pgsql-jdbc@postgresql.org; Tue, 25 Feb 2014 15:03:58 +0000 Received: by mail-ig0-f173.google.com with SMTP id r1so7544272igi.0 for ; Tue, 25 Feb 2014 07:03:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=uQS/Ek/COazPXhi0wOyfy2MFIxaEIARukCsr43gLO5c=; b=vA79gNu9qxIeRPL31SP1fQy7HGgAF3qEm9HloJxfu357aSm9CNjuWxN8Hzc/GI5zyl d1QYtTg0bSk/xDC0MWUz2fnEhe1t063lUnUc/TBCUIczlA3rXMudpY08dkUw85dOWiyt pUSxATcfBr8e9QNwVmRAKWTbFpjJzG8IvWS/wO2pYRJ+Iyzm1xwVVS5oQfAoTM+Qlpa8 wscbCHpanFYXjburLN9G4tGrjJJqR5y2GDJ1AQmny/25wer0zwfavoZmb+RlS8uuFSL+ PQpSo1d8UkYDbU8LlQ6IOu5KrRWaoKtOrSgGY+zJIdgidHe7K3cOVVkD/PWAIygrw8Ou xZQA== X-Received: by 10.51.17.40 with SMTP id gb8mr3964005igd.18.1393340633922; Tue, 25 Feb 2014 07:03:53 -0800 (PST) Received: from [192.168.0.241] ([76.9.214.82]) by mx.google.com with ESMTPSA id qk2sm39018514igc.1.2014.02.25.07.03.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 07:03:52 -0800 (PST) Content-Type: multipart/alternative; boundary="Apple-Mail=_D44DF66B-D42C-4C94-A7FF-A870B3D67F1E" Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: JDBC Maven Checksum From: Adib Saikali In-Reply-To: Date: Tue, 25 Feb 2014 09:10:08 -0500 Cc: Stephen Nelson , "pgsql-jdbc@postgresql.org" Message-Id: <7C450971-C44B-4290-81B0-33469D578DFF@gmail.com> References: , , , , , , To: David Shepherd X-Mailer: Apple Mail (2.1827) X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org --Apple-Mail=_D44DF66B-D42C-4C94-A7FF-A870B3D67F1E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Jar files are zip files and zip files contain a timestamp in their = header. If you execute the the jar task on the same directory to output = two jars then the generated jars will have identical content but = different SHA1 because of the timestamps in the zip file headers will be = different.=20 Check the build scripts to see if they invoke jar task twice once to = generate the maven jar and once to generate the website jar. If jar is = invoked twice that explains they different SHA and the timestamps you = have below. I guess the fix would be to generate the jars only once in the build = script.=20 On Feb 22, 2014, at 1:39 PM, David Shepherd = wrote: > Hi >=20 > Possibly answering my own question. Looking at the extracted jar = contents the dates are different between the Maven and website versions. = E.g. > jar1 - Feb 19 18:44 META-INF/ > jar2 - Feb 19 19:49 META-INF/ > It would explain the difference in checksum. Are the jars rebuilt = before uploading to each site? >=20 > Thanks >=20 > From: daveshep666@hotmail.com > To: stephen@eccostudio.com; pgsql-jdbc@postgresql.org > Subject: Re: [JDBC] JDBC Maven Checksum > Date: Sat, 22 Feb 2014 18:15:37 +0000 >=20 > Hi >=20 > Sorry but I am not seeing the same checksums, even with the latest = build of driver. I noticed the filename is different for the jars = depending on where it comes from, maybe that's the issue? Contents of = the jar looks the same after extracting it and doing a directory diff = with meld. Apologies if I am doing something stupid, I am new to Maven. >=20 > SAH1 =46rom PostgreSQL website > dfa6c29a6c81094260cd903d40475e84c731cbd9 = postgresql-9.3-1101.jdbc41.jar > 66bb9af92e4b399cb4563a9efe51ea20433ec0a4 = postgresql-9.3-1101.jdbc4.jar >=20 > SAH1 =46rom Maven > f68c2783393afc9a642035964869417043d2c7dc = postgresql-9.3-1101-jdbc41.jar > 9da59f12badea19b3b2884161f624bcf6750f985 = postgresql-9.3-1101-jdbc4.jar >=20 > Date: Fri, 21 Feb 2014 20:37:00 +0000 > Subject: Re: [JDBC] JDBC Maven Checksum > From: stephen@eccostudio.com > To: pgsql-jdbc@postgresql.org >=20 >=20 > > On Sun, Jan 26, 2014 at 4:22 PM, David Shepherd = > > wrote: > >> > >> Hi > >> > >> Can someone please explain why there is a checksum difference = between the > >> JDBC drivers on the PostgreSQL website and those in Maven? I am = using Maven > >> for the first time so am unsure which file is correct or why there = is a > >> difference. > >> > >> These are the sha1 hashes I am seeing: > >> > >> Maven > >> 7a09dd2b8c01babc07617973fd6f99c007e2b786 = postgresql-9.3-1100-jdbc4.jar > >> > >> PostgreSQL website > >> fe6ed26ff71d75ebb99e2ec2123003e05ea16dc5 = postgresql-9.3-1100.jdbc4.jar > >> > >> Thank you > > > > >=20 > Dave, >=20 > When you build the jar for the site which targets do you run? >=20 > The Maven upload part of the build script uses the same jar target > that I presume is used for building the website jar. I'll take a look > at it to see what's happening. >=20 >=20 > I just took a look into this and can't seem to find that jar on the = postgresql jdbc website anymore.=20 >=20 > So I tried it with the latest 9.3-1101-jdbc41 jar and found them to be = exactly the same. I also confirmed from the build script that it is = using the same jar file for the website and uploading to Maven. There is = a Java version string put into the MANIFEST.MF file but that should be = constant across the jars. >=20 > If you have the older jar, what I did was extract both of them into = separate directories and then perform a recursive diff. --Apple-Mail=_D44DF66B-D42C-4C94-A7FF-A870B3D67F1E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Jar = files are zip files and zip files contain a timestamp in their header. =  If you execute the the jar task on the same directory to output = two jars then the generated jars will have identical content but = different SHA1 because of the timestamps in the zip file headers will be = different. 

 Check the build scripts to see = if they invoke jar task twice once to generate the maven jar and once to = generate the website jar.  If jar is invoked twice that explains = they different SHA and the timestamps you have = below.

I guess the fix would be to generate the = jars only once in the build = script. 


On Feb 22, = 2014, at 1:39 PM, David Shepherd <daveshep666@hotmail.com> = wrote:

Hi

Possibly = answering my own question. Looking at the extracted jar contents the = dates are different between the Maven and website versions. E.g.
jar1 = - Feb 19 18:44 META-INF/
jar2 - Feb 19 19:49 META-INF/
It would = explain the difference in checksum. Are the jars rebuilt before = uploading to each site?

Thanks


From: daveshep666@hotmail.com
To:=  stephen@eccostudio.com; pgsql-jdbc@postgresql.orgSubject: Re: [JDBC] JDBC Maven Checksum
Date: Sat, 22 Feb 2014 = 18:15:37 +0000

Hi

Sorry but I am not = seeing the same checksums, even with the latest build of driver. I = noticed the filename is different for the jars depending on where it = comes from, maybe that's the issue? Contents of the jar looks the same = after extracting it and doing a directory diff with meld. Apologies if I = am doing something stupid, I am new to Maven.

SAH1 =46rom = PostgreSQL website
dfa6c29a6c81094260cd903d40475e84c731cbd9  = postgresql-9.3-1101.jdbc41.jar
66bb9af92e4b399cb4563a9efe51ea20433ec0a4=   postgresql-9.3-1101.jdbc4.jar

SAH1  =46rom = Maven
f68c2783393afc9a642035964869417043d2c7dc  = postgresql-9.3-1101-jdbc41.jar
9da59f12badea19b3b2884161f624bcf6750f985=   postgresql-9.3-1101-jdbc4.jar


Date: Fri, 21 Feb 2014 20:37:00 +0000
Subject: = Re: [JDBC] JDBC Maven Checksum
From: stephen@eccostudio.com
To: pgsql-jdbc@postgresql.org

> On Sun, Jan 26, 2014 at = 4:22 PM, David Shepherd <daveshep666@hotmail.com>
> = wrote:
>>
>> Hi
>>
>> Can someone = please explain why there is a checksum difference between = the
>> JDBC drivers on the PostgreSQL website and those in = Maven? I am using Maven
>> for the first time so am unsure = which file is correct or why there is a
>> = difference.
>>
>> These are the sha1 hashes I am = seeing:
>>
>> Maven
>> = 7a09dd2b8c01babc07617973fd6f99c007e2b786 =  postgresql-9.3-1100-jdbc4.jar
>>
>> PostgreSQL = website
>> fe6ed26ff71d75ebb99e2ec2123003e05ea16dc5 =  postgresql-9.3-1100.jdbc4.jar
>>
>> Thank = you
>
>

Dave,

When you build the jar for the = site which targets do you run?

The Maven upload part of the build = script uses the same jar target
that I presume is used for building = the website jar. I'll take a look
at it to see what's = happening.


I just took a look into this and can't seem to find that jar on = the postgresql jdbc website anymore. 

So I = tried it with the latest 9.3-1101-jdbc41 jar and found them to be = exactly the same. I also confirmed from the build script that it is = using the same jar file for the website and uploading to Maven. There is = a Java version string put into the MANIFEST.MF file but that should be = constant across the jars.

If you have the older = jar, what I did was extract both of them into separate directories and = then perform a recursive = diff.

= --Apple-Mail=_D44DF66B-D42C-4C94-A7FF-A870B3D67F1E--