{"action":"created","issue":{"url":"https://api.github.com/repos/jordansissel/fpm/issues/1244","repository_url":"https://api.github.com/repos/jordansissel/fpm","labels_url":"https://api.github.com/repos/jordansissel/fpm/issues/1244/labels{/name}","comments_url":"https://api.github.com/repos/jordansissel/fpm/issues/1244/comments","events_url":"https://api.github.com/repos/jordansissel/fpm/issues/1244/events","html_url":"https://github.com/jordansissel/fpm/issues/1244","id":192461693,"number":1244,"title":"can't package / dir","user":{"login":"sfwn","id":13919034,"avatar_url":"https://avatars.githubusercontent.com/u/13919034?v=3","gravatar_id":"","url":"https://api.github.com/users/sfwn","html_url":"https://github.com/sfwn","followers_url":"https://api.github.com/users/sfwn/followers","following_url":"https://api.github.com/users/sfwn/following{/other_user}","gists_url":"https://api.github.com/users/sfwn/gists{/gist_id}","starred_url":"https://api.github.com/users/sfwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfwn/subscriptions","organizations_url":"https://api.github.com/users/sfwn/orgs","repos_url":"https://api.github.com/users/sfwn/repos","events_url":"https://api.github.com/users/sfwn/events{/privacy}","received_events_url":"https://api.github.com/users/sfwn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-30T02:50:36Z","updated_at":"2016-11-30T06:58:24Z","closed_at":null,"body":"I happend to run fpm in my `/` dir.\r\nThe fpm command is:\r\n```fpm\r\n/ # fpm -s dir -t rpm -n rootdir -v 0.1-SNAPSHOT -p /20161130/02_25_54/rootdir-0.1-SNAPSHOT.rpm -C / --rpm-os linux -x \"201*\" --verbose\r\n```\r\nAnd the result:\r\n```\r\nNo args, but -s dir and -C are given, assuming '.' as input {:level=>:info}\r\nSetting workdir {:workdir=>\"/tmp\", :level=>:info}\r\n/usr/local/bundle/gems/fpm-1.7.0/lib/fpm/util.rb:255:in `mknod_w': undefined method `xmknod' for #<FPM::Package::Dir:0x00564b43becbe0> (NoMethodError)\r\nDid you mean?  mknod\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/util.rb:289:in `copy_entry'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/package/dir.rb:210:in `rescue in copy'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/package/dir.rb:204:in `copy'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/package/dir.rb:162:in `block in clone'\r\n\tfrom /usr/local/lib/ruby/2.3.0/find.rb:49:in `block (2 levels) in find'\r\n\tfrom /usr/local/lib/ruby/2.3.0/find.rb:48:in `catch'\r\n\tfrom /usr/local/lib/ruby/2.3.0/find.rb:48:in `block in find'\r\n\tfrom /usr/local/lib/ruby/2.3.0/find.rb:43:in `each'\r\n\tfrom /usr/local/lib/ruby/2.3.0/find.rb:43:in `find'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/package/dir.rb:160:in `clone'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/package/dir.rb:71:in `block in input'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/package/dir.rb:69:in `chdir'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/package/dir.rb:69:in `input'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/command.rb:338:in `block in execute'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/command.rb:337:in `each'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/command.rb:337:in `execute'\r\n\tfrom /usr/local/bundle/gems/clamp-1.0.1/lib/clamp/command.rb:68:in `run'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/lib/fpm/command.rb:560:in `run'\r\n\tfrom /usr/local/bundle/gems/clamp-1.0.1/lib/clamp/command.rb:133:in `run'\r\n\tfrom /usr/local/bundle/gems/fpm-1.7.0/bin/fpm:8:in `<top (required)>'\r\n\tfrom /usr/local/bundle/bin/fpm:22:in `load'\r\n\tfrom /usr/local/bundle/bin/fpm:22:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/jordansissel/fpm/issues/comments/263798448","html_url":"https://github.com/jordansissel/fpm/issues/1244#issuecomment-263798448","issue_url":"https://api.github.com/repos/jordansissel/fpm/issues/1244","id":263798448,"user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T06:58:24Z","updated_at":"2016-11-30T06:58:24Z","body":"This error message is really not informative, sorry about that.\r\n\r\nLooking at the code, it looks like fpm tries to provide a way to invoke `mknod` and if that fails it tries glibc's `__xmknod` (reference: https://github.com/jordansissel/fpm/blob/master/lib/fpm/util.rb#L10-L17). Later, it will call this if it needs to, and calls xmknod on Linux and mknod elsewhere (https://github.com/jordansissel/fpm/blob/master/lib/fpm/util.rb#L252-L258).\r\n\r\nI confess I'm not exactly sure why this code needs to do these checks to call mknod/xmknod. History is commit 7c67bd90 and #539.\r\n\r\nI'll try to reproduce this."}}
{"actor":{"display_login":"jordansissel"}}