unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Guix Packages - unpack issue
@ 2019-01-06 11:14 Reza Alizadeh Majd
  2019-01-06 12:19 ` Ricardo Wurmus
  0 siblings, 1 reply; 4+ messages in thread
From: Reza Alizadeh Majd @ 2019-01-06 11:14 UTC (permalink / raw)
  To: help-guix

Hi, 

I'm trying to create package of my application for GuixSD. during unpack phase 
I receive following Error. could anyone help me to fix this error? 

...
starting phase `install-locale'
using 'en_US.utf8' locale for category "LC_ALL"
phase `install-locale' succeeded after 0.0 seconds
starting phase `unpack'
...
./README.md
./exec_tests.sh
tar: .: Cannot utime: Operation not permitted
tar: .: Cannot change mode to rwxr-xr-t: Operation not permitted
tar: Exiting with failure status due to previous errors
Backtrace:
           5 (primitive-load "/gnu/store/n73lb40f47mqcyvg85df7v92277…")
In ice-9/eval.scm:
   191:35  4 (_ #f)
In srfi/srfi-1.scm:
   863:16  3 (every1 #<procedure 644b60 at /gnu/store/6bwkbm3a80v0x…> …)
In /gnu/store/6bwkbm3a80v0xab5qsicij7bjvmn5yna-module-import/guix/build/gnu-build-system.scm:
   799:28  2 (_ _)
   166:12  1 (unpack #:source _)
In /gnu/store/6bwkbm3a80v0xab5qsicij7bjvmn5yna-module-import/guix/build/utils.scm:
    616:6  0 (invoke _ . _)

/gnu/store/6bwkbm3a80v0xab5qsicij7bjvmn5yna-module-import/guix/build/utils.scm:616:6: In procedure invoke:
Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "tar" arguments: ("xvf" "/gnu/store/43q0i8n7l3bfg23s4rjgqlvjl20zslwf-guix-tools_0.1.1.tgz") exit-status: 2 term-signal: #f stop-signal: #f] 78cfc0>)'.
builder for `/gnu/store/r8wls692iqlqqnv75k1g7w7a40wag0nw-guix-tools-0.1.1.drv' failed with exit code 1
build of /gnu/store/r8wls692iqlqqnv75k1g7w7a40wag0nw-guix-tools-0.1.1.drv failed
View build log at '/var/log/guix/drvs/r8/wls692iqlqqnv75k1g7w7a40wag0nw-guix-tools-0.1.1.drv.bz2'.
guix build: error: build failed: build of `/gnu/store/r8wls692iqlqqnv75k1g7w7a40wag0nw-guix-tools-0.1.1.drv' failed

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

* Re: Guix Packages - unpack issue
  2019-01-06 11:14 Guix Packages - unpack issue Reza Alizadeh Majd
@ 2019-01-06 12:19 ` Ricardo Wurmus
       [not found]   ` <1546886752.2949311.1627979648.27750D23@webmail.messagingengine.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2019-01-06 12:19 UTC (permalink / raw)
  To: Reza Alizadeh Majd; +Cc: help-guix


Hi,

> I'm trying to create package of my application for GuixSD. during unpack phase 
> I receive following Error. could anyone help me to fix this error? 

This would be easier if we could look at the tarball in question.

-- 
Ricardo

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

* Re: Guix Packages - unpack issue
       [not found]   ` <1546886752.2949311.1627979648.27750D23@webmail.messagingengine.com>
@ 2019-01-07 19:38     ` Ricardo Wurmus
  2019-01-08 11:55       ` Reza Alizadeh Majd
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Wurmus @ 2019-01-07 19:38 UTC (permalink / raw)
  To: Reza Alizadeh Majd; +Cc: help-guix


Hi Reza,

please always send replies to all recipents, including the list.

> (source (origin
>     (method url-fetch)
>     (uri (string-append 
>         "https://s3.eu-central-1.amazonaws.com/source-git-pantherx-org/guix-tools_"
>         version ".tgz"))
>     (sha256 
>         (base32 "125h6h1b2i2q9vwlsi1y1yzqcn27vziqmg0w0cyaigkj9q0mc09q"))))

This is a tarbomb.  Its contents are directly unpacked to the current
directory.  A well-behaved tarball should unpack into a directory.

You can use (method url-fetch/tarbomb) in this case.

-- 
Ricardo

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

* Re: Guix Packages - unpack issue
  2019-01-07 19:38     ` Ricardo Wurmus
@ 2019-01-08 11:55       ` Reza Alizadeh Majd
  0 siblings, 0 replies; 4+ messages in thread
From: Reza Alizadeh Majd @ 2019-01-08 11:55 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

Thanks, 
using (method url-fetch/tarbomb) fixed my issue, later I need to fix package definition 
to prevent occurrence of tarbomb. 

--
Reza


On Mon, Jan 7, 2019, at 11:08 PM, Ricardo Wurmus wrote:
> 
> Hi Reza,
> 
> please always send replies to all recipents, including the list.
> 
> > (source (origin
> >     (method url-fetch)
> >     (uri (string-append 
> >         "https://s3.eu-central-1.amazonaws.com/source-git-pantherx-org/guix-tools_"
> >         version ".tgz"))
> >     (sha256 
> >         (base32 "125h6h1b2i2q9vwlsi1y1yzqcn27vziqmg0w0cyaigkj9q0mc09q"))))
> 
> This is a tarbomb.  Its contents are directly unpacked to the current
> directory.  A well-behaved tarball should unpack into a directory.
> 
> You can use (method url-fetch/tarbomb) in this case.
> 
> -- 
> Ricardo
> 

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

end of thread, other threads:[~2019-01-08 11:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-06 11:14 Guix Packages - unpack issue Reza Alizadeh Majd
2019-01-06 12:19 ` Ricardo Wurmus
     [not found]   ` <1546886752.2949311.1627979648.27750D23@webmail.messagingengine.com>
2019-01-07 19:38     ` Ricardo Wurmus
2019-01-08 11:55       ` Reza Alizadeh Majd

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