LoginSignup
1
1

More than 5 years have passed since last update.

source-is-missing に対処しよう

Posted at
E: tdiary-contrib source: source-is-missing util/image-gallery/js/SmoothGallery/scripts/mootools-1.2-more.js line length is 278 characters (>256)
E: tdiary-contrib source: source-is-missing util/image-gallery/js/SmoothGallery/scripts/mootools-1.2.1-core-yc.js

cowbuilder の hook で呼び出される lintian で source-is-missing という E (lintian error) が出て build が失敗となる(ビルド自体は成功しているがLintian errorが失敗を返すのでビルドエラーと見なされる)。source-is-missing の内容は https://lintian.debian.org/tags/source-is-missing.html を見れば書いてある。

Please repack your package to include the source or add it to "debian/missing-sources" directory.

ということなので、debian/missing-sources に放り込めばいいのかな(でも全く同じファイル名じゃないとlintian検知しないんじゃないか、という気もする→後述、正解)。

で、元のファイルはmootools-more 1.2mootools-coreだということは分かってるのでダウンロードしてくる。あとはパッケージの中のmergeされてminifiedされた.jsファイルとにらめっこ...(jsのこういう対応する元のソースを付けない文化は悪だと思う...動作おかしいときに直すの面倒にならんのかな。エディタがよろしくやってくれる?)。

で、再度ビルドするがやっぱりファイル名が一致するものがないと駄目なようなので、debian/source/lintian-overrides にエラーを貼り付けて無視することにする。ただ、何で無視したのか判るようにコメントを追加しておいた

# Note: source is added to debian/missing-sources directory but it is merged
#       from multiple files to one source, so lintian cannot detect it and
#       I'll override it.
tdiary-contrib source: source-is-missing util/image-gallery/js/SmoothGallery/scripts/mootools-1.2-more.js line length is 278 characters (>256)
tdiary-contrib source: source-is-missing util/image-gallery/js/SmoothGallery/scripts/mootools-1.2.1-core-yc.js
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1