logo       


[viewvc-users] ViewVC tar missing a byte or two?: msg#00044

Subject: [viewvc-users] ViewVC tar missing a byte or two?
I'm trying to debug a problem we have with pulling source code to build RPMs
out of our CVS repo.  It may not be ViewCV related but I'm starting here as
I can't point to anything else yet.

Cvs and dev system are RHEL4, same patch.

We use something like

"wget -O demo-downloaded.tar.gz
http://cvs/viewvc/demo.tar.gz?view=tar&pathrev=$BRANCH "  to grab the source
with the correct TAG or branch.

 Then we 
"rpmbuild -tb demo-downloaded.tar.gz" to process the tarball with the
specfile inside and presto...we get an RPM.

But it fails on the tar ball as is.  If I unpack, then repack the tarball it
works.  

tar -xzvf demo-downloaded.tar.gz
tar -czvf demo-repack.tar.gz demo

What I find is the tarballs are slightly different in size.

tar -tzvf demo-downloaded.tar.gz
tar: Record size = 10 blocks
drwxr-xr-x viewvc/viewvc     0 2006-03-29 11:07:08 demo/
-rwxr-xr-x viewvc/viewvc   322 2006-03-29 11:07:08 demo/demo.spec
-rwxr-xr-x viewvc/viewvc   182 2005-07-11 16:51:51 demo/makefile
drwxr-xr-x viewvc/viewvc     0 2005-12-30 12:50:32 demo/src/
-rwxr-xr-x viewvc/viewvc   284 2005-12-30 12:50:32 demo/src/demo.c


-rw-r--r--   1 zelston psi_dev  609 Mar 29 11:42 demo-downloaded.tar.gz
-rw-r--r--   1 zelston psi_dev  647 Mar 29 12:13 demo-repack.tar.gz
-rwxr-x---   1 zelston psi_dev  622 Mar 29 12:19 demo-web.tar.gz
  


I've downloaded the repo from browsers, from curl and wget and I get the
same result from rpmbuild (failure).   After unpacking and repacking
rpmbuild works.

Is VIEWVC doing anything funky when packaging the tar?  Any ideas?

Thanks
-zac


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe