[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#688896: This is a bad idea



I agree it is a bad idea to package fpm officially for Debian.

For those interested in creating dirty packages,
here is a dirty set of commands to create a dirty fpm package:


sudo apt install gem2deb apt-file python3-debian ruby-backports ruby-cabin ruby-childprocess ruby-clamp ruby-ffi ruby-json ruby-stud ruby-dotenv ruby-insist ruby-mustache ruby-rspec git
sudo apt update
gem2deb ruby-xz
gem2deb arr-pm
gem2deb -s pleaserun
cd ruby-pleaserun-*
perl -i -pe 's/"mustache"\K, "[\d.]+"//' pleaserun.gemspec
DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc --source-option=--auto-commit
cd ..
sudo dpkg -i *.deb
gem2deb -s fpm
cd ruby-fpm-*
perl -i -pe 's/<json>.freeze, \[\K"< [\d.]+", //' fpm.gemspec
perl -i -pe 's/<(arr-pm|pleaserun|ruby-xz)>\.freeze, \[">= \K[\d.]+/0/g' fpm.gemspec
perl -i -pe 's/~> [0.]+/>= 0/g' fpm.gemspec
sed -i '/ruby-json (<< 2.0),/d' debian/control
echo fpm.gemspec > debian/source/include-binaries
dpkg-buildpackage -us -uc --source-option=--auto-commit
cd ..
dpkg -i ruby-fpm_*.deb


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

Attachment: signature.asc
Description: signature


Reply to: