emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: ELPA + gnuwin32 tar (Issues, Help with packaging)
Date: Sat, 06 Nov 2010 15:01:41 +0530	[thread overview]
Message-ID: <81tyjuol1e.fsf@gmail.com> (raw)
In-Reply-To: 8162wbsbz4.fsf@gmx.de



>> Thanks for trying out ELPA.

>> May I ask you what version of Emacs you use and what OS you run on?
> Sorry I shuld have mentioned that. It's GNU Emacs 24.0.50.1
> (i386-mingw-nt6.1.7600) of 2010-10-18 on windows 7 Home Premium
>>
>> There is a comment in the package manager that there is a dependency on
>> GNU tar. May be the tar binary that you are running is not "GNU tar
>> compatible"
> I use the one from gnuwin32. It says tar (GNU tar) 1.22.

On my own machine I have issues while using gnuwin32 tar for
extraction. I encounter *no* errors while using Cygwin tar (See the
enclosed logs down below)

While running the following command:
- tar -xOf org-20101101.tar org-20101101/org-pkg.el

the error reporter in my setup is:
,---- [error with gnuwin32 tar on my machine]
| "tar: Header contains "\200\000\000\000\000'\347\033" where octal uid_t
| value expected"
`----

while the error encountered in your setup is:
,---- [error with gnuwin32 as reported by you]
| "tar: Archive value 297315 is out of gid_t range 0..65535"
`----

The thing that seems common in both these errors is that it relates to
the username and groupnames (uid_t and gid_t). This has something to do
with how tar archives are created on build machine.

I don't have much experience with packaging. I am dumping my analysis
hoping that someone would offer a quick fix for the problem.

For the sake of reference, here is how the elpa archives are built.

,----
| pkg:
|         [...]
| 	rm -rf org-$(PKG_TAG) org-$(PKG_TAG).tar
| 	$(MKDIR) org-$(PKG_TAG)
| 	cp -r $(PKG_FILES) org-$(PKG_TAG)
| 	echo "(define-package \"org\" \"$(PKG_TAG)\" \"$(PKG_DOC)\" $(PKG_REQ))" > org-$(PKG_TAG)/org-pkg.el
| 	tar cf org-$(PKG_TAG).tar org-$(PKG_TAG) --remove-files
`----


,---- [Using GnuWin32 tar is problematic]
| C:\Program Files\GnuWin32\bin>tar --version
| tar (GNU tar) 1.13
| 
| Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc.
| This is free software; see the source for copying conditions.  There is NO
| warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
| 
| Written by John Gilmore and Jay Fenlason.
| 
| C:\Program Files\GnuWin32\bin>tar -xOf org-20101101.tar
| org-20101101/org-pkg.el 
| 
| tar: Header contains "\200\000\000\000\000'\347\033" where octal uid_t
| value expected (define-package "org" "20101101" "Outline-based notes
| management and organizer" nil) tar: Error exit delayed from previous
| errors
`----

,---- [Using Cygwin tar is smooth]
| 
| bash-3.2$ tar --version
| tar (GNU tar) 1.23
| Packaged by Cygwin (1.23-1)
| Copyright (C) 2010 Free Software Foundation, Inc.
| License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
| 
| Written by John Gilmore and Jay Fenlason.
| 
| bash-3.2$ tar -xOf org-20101101.tar org-20101101/org-pkg.el
| 
| (define-package "org" "20101101" "Outline-based notes management and
| organizer" nil)
| 
`----


> Debugger entered--Lisp error: (error "Can't read whole string")
>   signal(error ("Can't read whole string"))
>   error("Can't read whole string")
>   package-read-from-string("tar: Archive value 297315 is out of gid_t range 0..65535\n(define-package \"org\" \"20101101\" \"Outline-based notes management and organizer\" nil)\ntar: Exiting with failure status due to previous errors\n")
>   (progn (setq default-directory "~/tmp/") (package-read-from-string (shell-command-to-string (concat "tar -xOf org-20101101.tar org-20101101/org-pkg.el"))))
>   eval((progn (setq default-directory "~/tmp/") (package-read-from-string (shell-command-to-string (concat "tar -xOf org-20101101.tar org-20101101/org-pkg.el")))))
>   eval-last-sexp-1(nil)
>   eval-last-sexp(nil)

Jambunthan K.

  reply	other threads:[~2010-11-06  9:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-01 12:05 Installing Orgmode through ELPA-tarball Jambunathan K
2010-11-01 12:14 ` Jambunathan K
2010-11-01 13:02 ` Tom Short
2010-11-01 15:15   ` Erik Iverson
2010-11-01 15:57     ` Jambunathan K
2010-11-01 16:04   ` Jambunathan K
2010-11-01 17:40 ` Martin Stemplinger
2010-11-01 18:49   ` Jambunathan K
2010-11-01 18:56     ` Jambunathan K
2010-11-05 21:21     ` Martin Stemplinger
2010-11-06  9:31       ` Jambunathan K [this message]
2010-11-06  9:38         ` ELPA + gnuwin32 tar (Issues, Help with packaging) Jambunathan K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81tyjuol1e.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).