baruch / diskscan

Scan disk for bad or near failure sectors, performs disk diagnostics
GNU General Public License v3.0
108 stars 29 forks source link

Compilation problem with Documentation #43

Closed jdn06 closed 8 years ago

jdn06 commented 8 years ago

I try to make a PKGBUILD for Archlinux, but I have two problems. First one is an error about the sed script for Documentation:

ninja: error: build.ninja:93: unknown build rule 'script'
build Documentation/diskscan.1: script Documentation/diskscan.1.in

I tried to follow the instructions and used ninja 1.6.0, ctags 5.8 and python-yaml 3.11 My Python version is Python 3.5.0.

baruch commented 8 years ago

I'm using ninja 1.5.1 and it works. ninja 1.6 doesn't work though.

baruch commented 8 years ago

I'm planning to switch away from ninja to cmake soon (work in progress), you can use the following in configure to overcome the issue, it will break the build in 1.5.1 but will work for 1.6:

rule script
  command = $script $in > $out
  description = SCRIPT $script $in
jdn06 commented 8 years ago

Seems to work. Thank you very much. I published the PKGBUILD: https://aur4.archlinux.org/packages/diskscan/