#57861 closed defect (fixed)
dparser: upstream tarball is broken
Reported by: | akimd (Akim Demaille) | Owned by: | jplevyak (John Plevyak) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.5.4 |
Keywords: | Cc: | ||
Port: | dparser |
Description
Hi!
Installing dparser fails. It appears that the problem is that tar refuses to untar the source tarball:
$ tar xf '/opt/local/var/macports/distfiles/dparser/d-1.30-src.tar.gz' d/my.c: Can't create 'd/my.c' d/my.g: Can't create 'd/my.g' tar: Error exit delayed from previous errors.
the reason appears that there are two entries for these files, the second one being very fishy:
$ tar tvf '/opt/local/var/macports/distfiles/dparser/d-1.30-src.tar.gz' | grep d/my -rw-rw-r-- 0 jplevyak jplevyak 346 23 jan 2013 d/my.c -rw-rw-r-- 0 jplevyak jplevyak 124 23 jan 2013 d/my.g hrw-rw-r-- 0 jplevyak jplevyak 0 23 jan 2013 d/my.c link to d/my.c hrw-rw-r-- 0 jplevyak jplevyak 0 23 jan 2013 d/my.g link to d/my.g
If you pass -k to tar, the last two incorrect symlinks will not override the extraction, but tar still exits with failure. I suggest that you just ignore the error and proceed.
Change History (7)
comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 6 years ago by jplevyak (John Plevyak)
I release a new version and github is the new master. I think the new file should be:
PortSystem 1.0 name dparser version 1.31 categories devel lang license BSD maintainers nomaintainer platforms darwin description general-purpose parser generator long_description \ DParser is an simple but powerful tool for parsing. You can specify \ the form of the text to be parsed using a combination of regular \ expressions and grammar productions. Because of the parsing technique \ (technically a scannerless GLR parser based on the Tomita algorithm) \ there are no restrictions. The grammar can be ambiguous, right or \ left recursive, have any number of null productions, and because there \ is no seperate tokenizer, can include whitespace in terminals and have \ terminals which are prefixes of other terminals. DParser handles not \ just well formed computer languages and data files, but just about any \ wacky situation that occurs in the real world. homepage http://github.com/jplevyak/dparser master_sites https://github.com/jplevyak/dparser/releases/download/v${version} checksums rmd160 0986a5cb1951d240aadf0eb1b659b4909ede3703 \ sha256 40e5f262b2ac24895c9fa232100c825663f64e674d34122991432efdcd7849b0 \ size 186818 distname dparser-${version}-src patchfiles patch-Makefile worksrcdir dparser use_configure no build.args-append CC="${configure.cc} ${configure.cflags}" PREFIX=${prefix} destroot.destdir PREFIX=${destroot}${prefix} livecheck.type regex livecheck.url ${homepage} livecheck.regex dparser-(\[0-9.\]+)-src${extract.suffix}
comment:5 Changed 6 years ago by mf2k (Frank Schima)
@jplevyak: Please instead submit a git pull request and the build will be tested and commented on by Macports committers.
comment:6 Changed 6 years ago by jplevyak (John Plevyak)
comment:7 Changed 6 years ago by jplevyak (John Plevyak)
Owner: | set to jplevyak |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
You should report this bug to the developers of dparser so that they can release a new version with a new tarball that does not have this problem. (If you've already done that, please provide the link.) We can then update the port to that new version.