unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [ELPA] Getting zeroPaddedFilemode: contains zero-padded file modes?
@ 2018-06-21 23:38 Mats Lidell
  2018-06-21 23:54 ` Noam Postavsky
  2018-06-22  0:32 ` Paul Eggert
  0 siblings, 2 replies; 4+ messages in thread
From: Mats Lidell @ 2018-06-21 23:38 UTC (permalink / raw)
  To: emacs-devel

Hi,

When cloning or fetching from elpa I get this:

    error: object 2699d230e3b592ae42506d7b5c969a7ac6a4593c: zeroPaddedFilemode: contains zero-padded file modes

and the transfer stops. I could not find any info about this problem for elpa. Is it a recent thing or am I doing something wrong? I could also only find workarounds that sets fsckobjects to false which is not according to recommended git setup for working with emacs (and elpa!?) repos!?

Yours
-- 
%% Mats



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

* Re: [ELPA] Getting zeroPaddedFilemode: contains zero-padded file modes?
  2018-06-21 23:38 [ELPA] Getting zeroPaddedFilemode: contains zero-padded file modes? Mats Lidell
@ 2018-06-21 23:54 ` Noam Postavsky
  2018-06-22  8:00   ` Mats Lidell
  2018-06-22  0:32 ` Paul Eggert
  1 sibling, 1 reply; 4+ messages in thread
From: Noam Postavsky @ 2018-06-21 23:54 UTC (permalink / raw)
  To: Mats Lidell; +Cc: Emacs developers

On 21 June 2018 at 19:38, Mats Lidell <mats.lidell@cag.se> wrote:

> When cloning or fetching from elpa I get this:
>
>     error: object 2699d230e3b592ae42506d7b5c969a7ac6a4593c: zeroPaddedFilemode: contains zero-padded file modes
>
> and the transfer stops. I could not find any info about this problem for elpa. Is it a recent thing or am I doing something wrong?

It's a known bug: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22690

> I could also only find workarounds that sets fsckobjects to false which is not according to recommended git setup for working with emacs (and elpa!?) repos!?

Yeah, that's the only thing to do though.



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

* Re: [ELPA] Getting zeroPaddedFilemode: contains zero-padded file modes?
  2018-06-21 23:38 [ELPA] Getting zeroPaddedFilemode: contains zero-padded file modes? Mats Lidell
  2018-06-21 23:54 ` Noam Postavsky
@ 2018-06-22  0:32 ` Paul Eggert
  1 sibling, 0 replies; 4+ messages in thread
From: Paul Eggert @ 2018-06-22  0:32 UTC (permalink / raw)
  To: Mats Lidell, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 522 bytes --]

It's a known problem in the ELPA repository; see:

https://debbugs.gnu.org/22690

This particular issue is not serious corruption; it's only the use of a 
deprecated format.

I installed the attached patch into ELPA to try to give advice about 
this glitch. Perhaps similar warnings need to be put into the source of 
ELPA packages (I didn't check). Also, I suspect that this URL:

https://savannah.gnu.org/git/?group=emacs

should have similar advice, but only maintainers can change that page 
and I'm not a maintainer.

[-- Attachment #2: 0001-Warn-about-transfer.fsckObjects.patch --]
[-- Type: text/x-patch, Size: 2185 bytes --]

From 9edaf982859a30d37dda2029953d852f287c514d Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Thu, 21 Jun 2018 17:27:23 -0700
Subject: [PATCH] Warn about transfer.fsckObjects

---
 README                          | 6 ++++--
 packages/ada-mode/ada-mode.texi | 7 +++++--
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/README b/README
index a1d6fd30d..4318bad3a 100644
--- a/README
+++ b/README
@@ -267,7 +267,7 @@ packages/ directory.  You can then add that directory, e.g. with:
 
 ** To deploy the package repository as a remotely-accessible archive:
 
-   git clone .../elpa
+   git -c fetch.fsckObjects=false clone .../elpa
    (cd elpa; git clone .../emacs)    #If you want to generate :core packages.
    mkdir build
    cd build
@@ -278,7 +278,9 @@ packages/ directory.  You can then add that directory, e.g. with:
 
 This deploys the packages to the staging/ directory (sibling of "build").
 Unlike "make", this makes a full copy of the packages, tars up
-multi-file packages, and doesn't byte-compile any files.
+multi-file packages, and doesn't byte-compile any files.  The
+fetch.fsckObjects setting works around a glitch in the ELPA repository
+<https://debbugs.gnu.org/22690>.
 
 ** To access a deployed archive
 
diff --git a/packages/ada-mode/ada-mode.texi b/packages/ada-mode/ada-mode.texi
index 05e6e77c3..b6ca48f14 100755
--- a/packages/ada-mode/ada-mode.texi
+++ b/packages/ada-mode/ada-mode.texi
@@ -2254,16 +2254,19 @@ Gnu ELPA via git:
 
 @example
 cd /Projects
-git clone git://git.savannah.gnu.org/emacs/elpa.git
+git -c fetch.fsckObjects=false clone git://git.savannah.gnu.org/emacs/elpa.git
 @end example
 
 If you have an Emacs Savannah developer account, you can use:
 
 @example
 cd /Projects
-git clone <login>@@git.savannah.gnu.org/emacs/elpa.git
+git -c fetch.fsckObjects=false clone <login>@@git.savannah.gnu.org/emacs/elpa.git
 @end example
 
+The @samp{fetch.fsckObjects} setting works around a
+@url{https://debbugs.gnu.org/22690, glitch in the ELPA repository}.
+
 @file{build/Makefile} contains targets for copying Ada mode source to
 the elpa workspace, and for building the elpa archive there.
 
-- 
2.17.1


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

* Re: [ELPA] Getting zeroPaddedFilemode: contains zero-padded file modes?
  2018-06-21 23:54 ` Noam Postavsky
@ 2018-06-22  8:00   ` Mats Lidell
  0 siblings, 0 replies; 4+ messages in thread
From: Mats Lidell @ 2018-06-22  8:00 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: Emacs developers

> Noam Postavsky writes:
> On 21 June 2018 at 19:38, Mats Lidell <mats.lidell@cag.se> wrote:
> Yeah, that's the only thing to do though.

Great. Then I know. Thanks or clarifying. I could not find it in debbugs but I do now. Sorry for the noise.

Yours
-- 
%% Mats



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

end of thread, other threads:[~2018-06-22  8:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-21 23:38 [ELPA] Getting zeroPaddedFilemode: contains zero-padded file modes? Mats Lidell
2018-06-21 23:54 ` Noam Postavsky
2018-06-22  8:00   ` Mats Lidell
2018-06-22  0:32 ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).