emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Installing Orgmode through ELPA-tarball
@ 2010-11-01 12:05 Jambunathan K
  2010-11-01 12:14 ` Jambunathan K
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Jambunathan K @ 2010-11-01 12:05 UTC (permalink / raw)
  To: emacs-orgmode


Just pushed a FAQ on installing Orgmode through ELPA-tarballs to
Worg.. Here is a dump for the sake of record.

** What is the easiest way to install latest version of Orgmode?

   The easiest way to install or update Orgmode is through Emacs'
   package manager.
   
   Orgmode is distributed as a ELPA-tar from [[http://elpa.gnu.org/packages/][GNU Emacs Lisp Package
   Archive]] as well as from [[http://orgmode.org/pkg/daily/][Orgmode Emacs Lisp Archive]].
   
   Steps for adding Orgmode as a package archive:
   1. Add Orgmode as a package archive. This can be done in two ways.
      1. Use =M-x customize-variable RET package-archives=
      2. Add the following line to your =.emacs= and reload Emacs.

         #+begin_src emacs-lisp
           (push '("Orgmode" . "http://orgmode.org/pkg/daily/") package-archives)
         #+end_src
		
   2. Use the Emacs package manager's =M-x list-packages= to browse
      and install the latest version.

** How do I install Emacs package manager?
   
   If you are running Emacs-24 or find the command =M-x list-packages=
   available you already have the package manager installed.
   
   Steps for installing package manager:
   1. Download the latest package manager -
      [[http://repo.or.cz/w/emacs.git/blob_plain/HEAD:/lisp/emacs-lisp/package.el][package.el]].
   2. Add the following to your =.emacs= and reload Emacs.
      #+begin_src emacs-lisp
        ;; change "~/elisp/" as appropiate
        (setq load-path (cons "~/elisp" load-path))
        (package-initialize)
      #+end_src
   
** I don't see Orgmode as an installation option in Package Manager Menu?
   
   Emacs Package Manager is a very recent addition to Emacs. Work is
   under way to have have Orgmode seamlessly integrate with Emacs'
   Package Manager. As a result, it will be some time before the
   Orgmode packages are available and usable from either GNU or
   Orgmode package archives.
   
   In the meanwhile, you can install Orgmode via package manager
   through ELPA-compatible tar. Refer [[Installing from ELPA-tar][this FAQ entry]] for more information.
   
** How do I install Orgmode from a ELPA-compatible tarball?
# <<Installing from ELPA-tar>>
   
   Orgmode is distributed as an ELPA-compatible tar which can be used
   in conjunction with Emacs' package manager.
   
   1. If you are already running Orgmode, note the current version
      reported by M-x org-version.
   2. Download the latest tarball from [[http://orgmode.org/pkg/daily/][Orgmode repo]].
   3. Do =M-x package-install-file=. When prompted for =Package file
      name=, point it to .tar file downloaded in step 2.
      
      You will now see Package Manager compiling the files and
      installing it.
   4. Reload emacs. This step is very important.
   5. Note the version of the new installation using M-x
      org-version. If the new and old versions are different, the
      installation is done and you are all set to enjoy the updated
      Orgmode. Otherwise skip to step 6.
   6. Review you load-path using =C-h v load-path=. Most likely that
      your old installation path takes precedence over the path chosen
      by package manager (which is typically
      =~/.emacs.d/elpa/...=). Fix this anamoly by moving
      =(package-initialize)= line in .emacs to a more appropriate
      location.
      
***  Additional Note on =org-install.el=
     Functionality of Orgmode's =org-install.el= is supplanted by
     Package Manager's =org-autoloads.el=. 
     
     Since Package Manager autoloads Orgmode for you, the following
     line =(require 'org-install)= in your =.emacs= is no longer
     required and can be safely removed.
   
Jambunathan K.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Installing Orgmode through ELPA-tarball
  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 17:40 ` Martin Stemplinger
  2 siblings, 0 replies; 12+ messages in thread
From: Jambunathan K @ 2010-11-01 12:14 UTC (permalink / raw)
  To: emacs-orgmode


> ** I don't see Orgmode as an installation option in Package Manager Menu?
>    
>    Emacs Package Manager is a very recent addition to Emacs. Work is
>    under way to have have Orgmode seamlessly integrate with Emacs'
>    Package Manager. As a result, it will be some time before the
>    Orgmode packages are available and usable from either GNU or
>    Orgmode package archives.
>    
>    In the meanwhile, you can install Orgmode via package manager
>    through ELPA-compatible tar. Refer [[Installing from ELPA-tar][this
>    FAQ entry]] for more information.

For the sake of clarification, 

http://orgmode.org/pkg/daily/ doesn't provide the 'archive-contents'
file for the tarballs it distributes. As a result, the package manager
wouldn't know what tarballs are available for installation from the
repo.

Absence of 'archive-contents' file is a minor glitch and will be
addressed in due course of time.

Jambunathan K.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Installing Orgmode through ELPA-tarball
  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 16:04   ` Jambunathan K
  2010-11-01 17:40 ` Martin Stemplinger
  2 siblings, 2 replies; 12+ messages in thread
From: Tom Short @ 2010-11-01 13:02 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

On Mon, Nov 1, 2010 at 8:05 AM, Jambunathan K <kjambunathan@gmail.com> wrote:
>
> ** What is the easiest way to install latest version of Orgmode?
>

That's all good information to have, but I'm not sure it's the easiest
way to install the latest version. It may eventually be easy, but the
existing steps look relatively cumbersome.

Using git seems like the easiest way to get the latest version with
the advantage that you can pick the version you want (latest
up-to-the-minute, latest release, or some other release).

- Tom

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Installing Orgmode through ELPA-tarball
  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
  1 sibling, 1 reply; 12+ messages in thread
From: Erik Iverson @ 2010-11-01 15:15 UTC (permalink / raw)
  To: Tom Short; +Cc: emacs-orgmode, Jambunathan K

I agree about the word 'easiest'.  Perhaps a more neutral
phrasing of the question, such as:

"How can I install Orgmode through Emacs' Package Manager?"

Tom Short wrote:
> On Mon, Nov 1, 2010 at 8:05 AM, Jambunathan K <kjambunathan@gmail.com> wrote:
>> ** What is the easiest way to install latest version of Orgmode?
>>
> 
> That's all good information to have, but I'm not sure it's the easiest
> way to install the latest version. It may eventually be easy, but the
> existing steps look relatively cumbersome.
> 
> Using git seems like the easiest way to get the latest version with
> the advantage that you can pick the version you want (latest
> up-to-the-minute, latest release, or some other release).
> 
> - Tom
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Installing Orgmode through ELPA-tarball
  2010-11-01 15:15   ` Erik Iverson
@ 2010-11-01 15:57     ` Jambunathan K
  0 siblings, 0 replies; 12+ messages in thread
From: Jambunathan K @ 2010-11-01 15:57 UTC (permalink / raw)
  To: Erik Iverson; +Cc: emacs-orgmode, Tom Short


> I agree about the word 'easiest'.  Perhaps a more neutral
> phrasing of the question, such as:
>

> "How can I install Orgmode through Emacs' Package Manager?"

Ok. I have modified the phrasing as suggested by you.


Jambunathan K.

>
> Tom Short wrote:
>> On Mon, Nov 1, 2010 at 8:05 AM, Jambunathan K <kjambunathan@gmail.com> wrote:
>>> ** What is the easiest way to install latest version of Orgmode?
>>>
>>
>> That's all good information to have, but I'm not sure it's the easiest
>> way to install the latest version. It may eventually be easy, but the
>> existing steps look relatively cumbersome.
>>
>> Using git seems like the easiest way to get the latest version with
>> the advantage that you can pick the version you want (latest
>> up-to-the-minute, latest release, or some other release).
>>
>> - Tom
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Installing Orgmode through ELPA-tarball
  2010-11-01 13:02 ` Tom Short
  2010-11-01 15:15   ` Erik Iverson
@ 2010-11-01 16:04   ` Jambunathan K
  1 sibling, 0 replies; 12+ messages in thread
From: Jambunathan K @ 2010-11-01 16:04 UTC (permalink / raw)
  To: Tom Short; +Cc: emacs-orgmode

Tom Short <tshort.rlists@gmail.com> writes:

> On Mon, Nov 1, 2010 at 8:05 AM, Jambunathan K <kjambunathan@gmail.com> wrote:
>>
>> ** What is the easiest way to install latest version of Orgmode?
>>
>
> That's all good information to have, but I'm not sure it's the easiest
> way to install the latest version. 

Stronger opinion there, equally strong as the wording I used.  I welcome
your feedback.

> It may eventually be easy, but the existing steps look relatively
> cumbersome.

This is the key. That is a placeholder entry for ELPA-related things.

>
> Using git seems like the easiest way to get the latest version with
> the advantage that you can pick the version you want (latest
> up-to-the-minute, latest release, or some other release).
>

We need to remember that most people who are part of this list
(including me) already use git. For this section of population the use
of git would outweigh using other methods.

There is also this other section in the wild trying to make their first
foray in to the magic garden ...

Jambunathan K.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Installing Orgmode through ELPA-tarball
  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 17:40 ` Martin Stemplinger
  2010-11-01 18:49   ` Jambunathan K
  2 siblings, 1 reply; 12+ messages in thread
From: Martin Stemplinger @ 2010-11-01 17:40 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Hi all,

being curious I tried the upgrade via ELPA but for for some reasons it
didn't work. Any ideas?

>    2. Use the Emacs package manager's =M-x list-packages= to browse
>       and install the latest version.

Failed with the error message: Failed to download `Orgmode' archive.

> ** How do I install Orgmode from a ELPA-compatible tarball?
> # <<Installing from ELPA-tar>>
>    
>    2. Download the latest tarball from [[http://orgmode.org/pkg/daily/][Orgmode repo]].
>    3. Do =M-x package-install-file=. When prompted for =Package file
>       name=, point it to .tar file downloaded in step 2.
>
Failed with the error message: package-read-from-string: Can't read whole string
       
Martin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Installing Orgmode through ELPA-tarball
  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
  0 siblings, 2 replies; 12+ messages in thread
From: Jambunathan K @ 2010-11-01 18:49 UTC (permalink / raw)
  To: emacs-orgmode


Hello Martin

Thanks for trying out ELPA.


> Hi all,
>
> being curious I tried the upgrade via ELPA but for for some reasons it
> didn't work. Any ideas?
>
>>    2. Use the Emacs package manager's =M-x list-packages= to browse
>>       and install the latest version.
>
> Failed with the error message: Failed to download `Orgmode' archive.
>

This is expected. Orgmode cannot act as ELPA repo. There are some minor
things to be fixed.  Tarball is the way to go atleast for next few days
...

>> ** How do I install Orgmode from a ELPA-compatible tarball?
>> # <<Installing from ELPA-tar>>
>>    
>>    2. Download the latest tarball from [[http://orgmode.org/pkg/daily/][Orgmode repo]].
>>    3. Do =M-x package-install-file=. When prompted for =Package file
>>       name=, point it to .tar file downloaded in step 2.
>>
> Failed with the error message: package-read-from-string: Can't read whole string

Does any one else experience this issue.

Questions:
=========

What package.el you are using? I hope it is the one that is bundled in
to Emacs and *not* the one distributed from http://tromey.com.

May I ask you what version of Emacs you use and what OS you run on?

I use GNU Emacs 23.1.91.1 (i386-mingw-nt5.1.2600) of 2010-01-03 on
PRETEST. I also have cygwin running. After your report, I downloaded
org-20101101.tar and I am able to run things successfully without any
issues.

Possible Root Cause:
===================

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"

Just to confirm, copy the below elisp code to scratch buffer and do a
C-x C-e with cursor before the marker '@'.

(progn
  (setq default-directory "~/tmp/")
  (package-read-from-string
   (shell-command-to-string
    ;; Requires GNU tar.
    (concat "tar -xOf org-20101101.tar org-20101101/org-pkg.el")))) @

What do you get?

Jambunathan K.

>        
> Martin
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Installing Orgmode through ELPA-tarball
  2010-11-01 18:49   ` Jambunathan K
@ 2010-11-01 18:56     ` Jambunathan K
  2010-11-05 21:21     ` Martin Stemplinger
  1 sibling, 0 replies; 12+ messages in thread
From: Jambunathan K @ 2010-11-01 18:56 UTC (permalink / raw)
  To: Martin Stemplinger; +Cc: emacs-orgmode


Martin

A small addtion:

> Possible Root Cause:
> ===================
>
> 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"
>
> Just to confirm, copy the below elisp code to scratch buffer and do a
> C-x C-e with cursor before the marker '@'.
>
> (progn
>   (setq default-directory "~/tmp/")
>   (package-read-from-string
>    (shell-command-to-string
>     ;; Requires GNU tar.
>     (concat "tar -xOf org-20101101.tar org-20101101/org-pkg.el")))) @
>
> What do you get?

Before doing C-x C-e, change the "~/tmp/" and "org-20101101" to whatever
is right in your setup.

Jambunathan K.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Re: Installing Orgmode through ELPA-tarball
  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       ` ELPA + gnuwin32 tar (Issues, Help with packaging) Jambunathan K
  1 sibling, 1 reply; 12+ messages in thread
From: Martin Stemplinger @ 2010-11-05 21:21 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Hallo Jambunathan K.,

> Thanks for trying out ELPA.

It looks pretty interesting and is an ideaa long overdue IMHO!
>
>
>>>    2. Use the Emacs package manager's =M-x list-packages= to browse
>>>       and install the latest version.
>>
>> Failed with the error message: Failed to download `Orgmode' archive.
>>
>
> This is expected. Orgmode cannot act as ELPA repo. There are some minor
> things to be fixed.  Tarball is the way to go atleast for next few days
> ...
OK
>
>>>    3. Do =M-x package-install-file=. When prompted for =Package file
>>>       name=, point it to .tar file downloaded in step 2.
>>>
>> Failed with the error message: package-read-from-string: Can't read whole string
>
> Questions:
> =========
>
> What package.el you are using? I hope it is the one that is bundled in
> to Emacs and *not* the one distributed from http://tromey.com.
Yes. It says in the header

;; Author: Tom Tromey <tromey@redhat.com>
;; Created: 10 Mar 2007
;; Version: 0.9
;; Keywords: tools

>
> 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.
>
> Just to confirm, copy the below elisp code to scratch buffer and do a
> C-x C-e with cursor before the marker '@'.
>
> What do you get?
>
I get this:

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)
  call-interactively(eval-last-sexp nil nil)
  recursive-edit()
  byte-code("\306\x10	@\307=\203!\0\310\311\312\"\210\313\311!\211\x1aA@)\242\314=\203!\0\310\315\312\"\210\316\v!\210\317 \210\320	!\210\f\203d\0\321ed\"\rV\203W\0eb\210\322\r\245y\210`\x1e^[db\210\322\r\245\rZy\210\x0e^[`|\210)\323c\210eb\210\324\325\326 \"\210\327\306!\210\324\330!\210\331\312\x1e\x1c\x1e\x1d\324\330!\210\212\332 \210+\331\207" [unread-command-char debugger-args x debugger-buffer noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-edit middlestart buffer-read-only standard-output] 4)
  debug(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: org-20101101.tar: Cannot open: No such file or directory\ntar: Error is not recoverable: exiting now\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)
  call-interactively(eval-last-sexp nil nil)
  recursive-edit()
  byte-code("\306\x10	@\307=\203!\0\310\311\312\"\210\313\311!\211\x1aA@)\242\314=\203!\0\310\315\312\"\210\316\v!\210\317 \210\320	!\210\f\203d\0\321ed\"\rV\203W\0eb\210\322\r\245y\210`\x1e^[db\210\322\r\245\rZy\210\x0e^[`|\210)\323c\210eb\210\324\325\326 \"\210\327\306!\210\324\330!\210\331\312\x1e\x1c\x1e\x1d\324\330!\210\212\332 \210+\331\207" [unread-command-char debugger-args x debugger-buffer noninteractive debugger-batch-max-lines -1 debug backtrace-debug 4 t backtrace-frame lambda 5 pop-to-buffer debugger-mode debugger-setup-buffer count-lines 2 "...\n" message "%s" buffer-string kill-emacs "" nil recursive-edit middlestart buffer-read-only standard-output] 4)
  debug(error (file-error "Setting current directory" "no such file or directory" "~/tmp/"))
  call-process("D:/Entwicklung/emacs-24.0.50/bin/cmdproxy.exe" nil t nil "-c" "tar -xOf org-20101101.tar org-20101101/org-pkg.el")
  shell-command-to-string("tar -xOf org-20101101.tar org-20101101/org-pkg.el")
  (package-read-from-string (shell-command-to-string (concat "tar -xOf org-20101101.tar org-20101101/org-pkg.el")))
  (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)
  call-interactively(eval-last-sexp nil nil)

Thanks for your support!

Regards,
Martin

^ permalink raw reply	[flat|nested] 12+ messages in thread

* ELPA + gnuwin32 tar (Issues, Help with packaging)
  2010-11-05 21:21     ` Martin Stemplinger
@ 2010-11-06  9:31       ` Jambunathan K
  2010-11-06  9:38         ` Jambunathan K
  0 siblings, 1 reply; 12+ messages in thread
From: Jambunathan K @ 2010-11-06  9:31 UTC (permalink / raw)
  To: emacs-orgmode



>> 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.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: ELPA + gnuwin32 tar (Issues, Help with packaging)
  2010-11-06  9:31       ` ELPA + gnuwin32 tar (Issues, Help with packaging) Jambunathan K
@ 2010-11-06  9:38         ` Jambunathan K
  0 siblings, 0 replies; 12+ messages in thread
From: Jambunathan K @ 2010-11-06  9:38 UTC (permalink / raw)
  To: emacs-orgmode


For the sake of record, file attributes of ELPA tar as is distributed
now:

,----
| 
| bash-3.2$ tar tvf org-20101101.tar  | head
| drwxr-xr-x cdominik/pg1095168 0 2010-11-01 12:30 org-20101101/
| -rw-r--r-- cdominik/pg1095168 17889 2010-11-01 12:30 org-20101101/ob-tangle.el
| -rw-r--r-- cdominik/pg1095168 45603 2010-11-01 12:30 org-20101101/org-remember.el
| -rw-r--r-- cdominik/pg1095168  8294 2010-11-01 12:30 org-20101101/org-bibtex.el
| -rw-r--r-- cdominik/pg1095168  1417 2010-11-01 12:30 org-20101101/ob-matlab.el
| 
`----

Jambunathan K.

>>> 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.
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-11-06  9:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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       ` ELPA + gnuwin32 tar (Issues, Help with packaging) Jambunathan K
2010-11-06  9:38         ` Jambunathan K

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).