[MacPorts] #52211: bzip2 refuses to work, attempts to create /opt/local/bin/bzip2.bz2 file

MacPorts noreply at macports.org
Sun Sep 11 20:58:06 CEST 2016


#52211: bzip2 refuses to work, attempts to create /opt/local/bin/bzip2.bz2 file
--------------------+--------------------------------
 Reporter:  uri@…   |      Owner:  macports-tickets@…
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.3.4
 Keywords:          |       Port:  bzip2
--------------------+--------------------------------
 When I try to bzip2 a file, I get this problem:

 {{{
 $ pwd
 /Users/uri/src/ast61
 $ ll Astro.txt
 -r--r--r--  1 uri  staff  4620 Sep 11 11:42 Astro.txt
 $ bzip2 Astro.txt
 bzip2: Can't create output file /opt/local/bin/bzip2.bz2: Permission
 denied.
 $ ll Astro.txt*
 -r--r--r--  1 uri  staff  2219 Sep 11 11:42 Astro.txt.bz2
 $ bunzip2 Astro.txt.bz2
 bunzip2: Can't guess original name for /opt/local/bin/bzip2 -- using
 /opt/local/bin/bzip2.out
 bunzip2: Output file /opt/local/bin/bzip2.out already exists.
 $ ll Astro.txt*
 -r--r--r--  1 uri  staff  4620 Sep 11 11:42 Astro.txt
 $
 }}}

 While bzip2 does (usually - when not invoked from the script) create
 compressed file despite that complaint, it does not work when, e.g., bzip2
 is invoked by GnuTAR:

 {{{
 $ gnutar -cjvf t.tbz Astro.txt
 Astro.txt
 bzip2: Can't create output file /opt/local/bin/bzip2.bz2: Permission
 denied.
 gnutar: Child returned status 1
 gnutar: Error is not recoverable: exiting now
 $ ll t.tbz
 -rw-r--r--  1 uri  staff  0 Sep 11 14:56 t.tbz
 $
 }}}

 This bug (that I suspect is present in the upstream) prevents use of bzip2
 - I'd appreciate your help.

-- 
Ticket URL: <https://trac.macports.org/ticket/52211>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list