On Ubuntu, clone and then make a sources archive that includes all necessary JARs.
Note: If upgrading to a newer clj tool version, then
debian/source-include-binaries
needs to be updated.
If a release has not yet been made for the desired release version, follow these steps:
ssh
to Ubuntu build box.curl -O https://download.clojure.org/install/linux-install-1.10.1.763.sh
chmod +x linux-install-1.10.1.763.sh
sudo ./linux-install-1.10.1.763.sh
git clone https://github.com/planck-repl/planck
git clone https://github.com/planck-repl/ubuntu-ppa
cp -r ubuntu-ppa/debian planck
cd planck
cp /usr/local/bin/clojure planck-cljs/script
cp /usr/local/lib/clojure/deps.edn planck-cljs/script
cp /usr/local/lib/clojure/example-deps.edn planck-cljs/script
cp -r /usr/local/lib/clojure/libexec planck-cljs/script/libexec
(make sure files copied are listed indebian/source/include-binaries
)- Edit
planck-cljs/script/clojure
and reviseinstall_dir
to bescript
script/build-sandbox
BUILD_PPA=1 script/clean
cd ..
tar cvzf planck_2.<x>.<y>.orig.tar.gz planck
To check that there are no problems building in a sandbox, unarchive the above into a new directory in
/tmp
,export HOME=/sbuild-nonexistent
, and tryscript/build-sandbox
.
If a release has already been made for the desired release version, and a release for a new Ubuntu version is desired, use the existing planck_2.<x>.<y>.orig.tar.gz
file. (Go onto LaunchPad and download a previous copy if needed.)
If the planck
tree is no longer available:
tar xvzf planck_2.24.0.orig.tar.gz
- For a given Ubuntu release, copy
debian/control.<ubuntu-release>
anddebian/changelog.<ubuntu-release>
to unsuffixed versions. - Set the
2.<x>.<y>
version number indebian/changelog
appropriately.
- Go into the
planck
directory debuild -S -sa
cd
to the topdput ppa:mfikes/planck planck_2.<x>.<y>-1ppa1~<ubuntu-release>1_source.changes
Copyright © 2018–2020 Mike Fikes and Contributors
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.