These files are written by gem intall in the directory specified by the --install-dir option. Distributions are taking this whole direcory to create the distribution package (.deb for instance).
I think the mkmf.log should not be written in the install-dir. But what about the Makefile? Could it be still used after the ruby gem build? If not, it could also be removed from the install-dir.
What do you think about removing these two files (Makefile and mkmf.log) from the --install-dir ?
I think the mkmf.log should not be written in the install-dir. But what about the Makefile? Could it be still used after the ruby gem build? If not, it could also be removed from the install-dir.
These (and page-Makefile.ri) are all garbages after installation.
What do you think about removing these two files (Makefile and mkmf.log) from the --install-dir ?
I dislike that rubygems installs junk files including *.o files.
These (and page-Makefile.ri) are all garbages after installation.
Hmm, I'm not sure to understand, because several distributions have these files remaining in the install-dir provided to rubygem, ie. these files are not garbage collected by rubygem. So, this is not what we are observing.
Or do you mean these files have to be removed by the distribution itself?
Regarding files under usr/lib/ruby/gems/2.5.0/extensions/x86_64-linux/2.5.0/msgpack-1.2.4/, I think that rubygems is lazy not to select files properly.
And ./usr/lib/ruby/gems/2.5.0/gems/msgpack-1.2.4/ext/msgpack/ is a working directory where is not expected to be packaged, I think.
You may want to distclean there before packaging.