jordansissel/fpm · error

epoch in Version is set

Error message

epoch in Version is set

What it means

Error "epoch in Version is set" thrown in jordansissel/fpm.

Source

Thrown at lib/fpm/package/deb.rb:1085

      args = [ tar_cmd, "-C", control_path ] + compression_flags + [ "-cf", controltar,
        "--owner=0", "--group=0", "--numeric-owner", "." ]
      if tar_cmd_supports_sort_names_and_set_mtime? and not attributes[:source_date_epoch].nil?
        # Force deterministic file order and timestamp
        args += ["--sort=name", ("--mtime=@%s" % attributes[:source_date_epoch])]
      end
      args.unshift(compressor_options)
      safesystem(*args)
    end

    logger.debug("Removing no longer needed control dir", :path => control_path)
  ensure
    FileUtils.rm_r(control_path)
  end # def write_control_tarball

  def write_control
    # warn user if epoch is set
    logger.warn("epoch in Version is set", :epoch => self.epoch) if self.epoch

    # calculate installed-size if necessary:
    if attributes[:deb_installed_size].nil?
      logger.info("No deb_installed_size set, calculating now.")
      total = 0
      Find.find(staging_path) do |path|
        stat = File.lstat(path)
        next if stat.directory?
        total += stat.size
      end
      # Per http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Installed-Size
      #   "The disk space is given as the integer value of the estimated
      #    installed size in bytes, divided by 1024 and rounded up."
      attributes[:deb_installed_size] = total / 1024
    end

    # Write the control file
    control_path("control").tap do |control|

View on GitHub (pinned to b6d77ba72a)

When it happens

Trigger: Thrown at lib/fpm/package/deb.rb:1085 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of jordansissel/fpm@b6d77ba72a (2026-08-21). Data as JSON: /api/errors/6ffc104a9c69efd3. Report an issue: GitHub.