Re: [PD] recent Pd versions on older ubuntu studio computers
great, it works, thanks ! I followed your advice of the "dh_autoreconf" package and the adapted debian/rules file and then I could successfully compile Pd 0.50 on both laptops (and on a third laptop with Linux Mint 17.3). In case someone searches info to compile and install recent versions of Pd on older Ubuntu computers I summarized the whole procedure at the end of this email. Can I help in some way to spread or upload compiled Pd versions for Ubuntu and derivatives? For sure I am not an expert in compiling programs, I just started trying this a week ago but maybe it can help in making Pd available for more people... best, Hans compiling Pd for Ubuntu 14 or 16 systems First make sure these 5 packages are installed (commands in the terminal like "sudo apt-get install libjack-jackd2-dev" etc.): libjack-jackd2-dev portaudio19-dev equivs debhelper dh-autoreconf Next execute these commands in the terminal: 1) export LANG=C 2) MAINREPO=https://deb.debian.org/debian/pool/main/ 3) PDVER=0.50.2-1 4) sudo apt-get install devscripts 5) mkdir -p build 6) cd build 7) dget -u ${MAINREPO}/p/puredata/puredata_${PDVER}.dsc 8) cd puredata-${PDVER%-*} 9)a) echo 9 > debian/compat b) in the build/debian folder, search for the 'control' file and in this file change "debhelper-compat (= 12)" into "debhelper (>= 9)" c) in the build/debian folder , search for the 'rules' file and change "dh $@" into "dh $@ --with autoreconf" 10) sudo mk-build-deps -ir 11) dpkg-buildpackage -rfakeroot 12) sudo dpkg -i ../*${PDVER}_*.deb (This last command to install Pd) On 1/16/20 1:01 PM, IOhannes m zmoelnig wrote: On 16.01.20 12:52,i...@hansroels.be wrote: Next I ran the script of IOhannes line by line export LANG=C MAINREPO=https://deb.debian.org/debian/pool/main/ PDVER=0.50.2-1 sudo apt-get install devscripts mkdir -p build cd build dget -u ${MAINREPO}/p/puredata/puredata_${PDVER}.dsc cd puredata-${PDVER%-*} echo 9 > debian/compat I changed the line "debhelper-compat (= 12)" in debian/control into "debhelper (>= 9)" since you are using quite old debhelper-package, you might also need to install the "dh_autoreconf" package. if that still doesn't work, you might also need to change the invocation of "dh" in debian/rules to the following (indentation is rather than s): %: dh $@ --with autoreconf gmasdr IOhannes ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->https://lists.puredata.info/listinfo/pd-list -- ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] recent Pd versions on older ubuntu studio computers
On 16.01.20 12:52, i...@hansroels.be wrote: > > Next I ran the script of IOhannes line by line > > export LANG=C > MAINREPO=https://deb.debian.org/debian/pool/main/ > PDVER=0.50.2-1 > sudo apt-get install devscripts > mkdir -p build > cd build > dget -u ${MAINREPO}/p/puredata/puredata_${PDVER}.dsc > cd puredata-${PDVER%-*} > echo 9 > debian/compat > I changed the line "debhelper-compat (= 12)" in debian/control into > "debhelper (>= 9)" since you are using quite old debhelper-package, you might also need to install the "dh_autoreconf" package. if that still doesn't work, you might also need to change the invocation of "dh" in debian/rules to the following (indentation is rather than s): %: dh $@ --with autoreconf gmasdr IOhannes signature.asc Description: OpenPGP digital signature ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] recent Pd versions on older ubuntu studio computers
(This is still about compiling Pd-vanilla on two Ubuntu Studio laptops) I solved the dependencies by installing the following libraries -before running the script- on both Ubuntu 14 Trusty and Ubuntu 16 Xenial laptops: sudo apt-get install libjack-jackd2-dev sudo apt-get install portaudio19-dev sudo apt-get install equivs sudo apt-get install debhelper Next I ran the script of IOhannes line by line export LANG=C MAINREPO=https://deb.debian.org/debian/pool/main/ PDVER=0.50.2-1 sudo apt-get install devscripts mkdir -p build cd build dget -u ${MAINREPO}/p/puredata/puredata_${PDVER}.dsc cd puredata-${PDVER%-*} echo 9 > debian/compat I changed the line "debhelper-compat (= 12)" in debian/control into "debhelper (>= 9)" sudo mk-build-deps -ir And when I ran the following command "dpkg-buildpackage -rfakeroot" there was a problem on both laptops, "No targets specified and no makefile found." I checked and in the folder build/puredata-0.50.2 there is a Makefile.am file. This is the printout after the "dpkg-buildpackage -rfakeroot" command (exactly the same for both laptops): - dpkg-buildpackage: source package puredata dpkg-buildpackage: source version 0.50.2-1 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed by IOhannes m zmölnig (Debian/GNU) dpkg-buildpackage: host architecture i386 dpkg-source --before-build puredata-0.50.2 dpkg-source: warning: unknown information field 'Rules-Requires-Root' in input data in general section of control info file fakeroot debian/rules clean dh clean dh_testdir debian/rules override_dh_auto_clean make[1]: Entering directory `/home/hans/build/puredata-0.50.2' rm -f debian/gui-plugins/pd-gui-plugin.1 dh_auto_clean make[1]: Leaving directory `/home/hans/build/puredata-0.50.2' dh_clean dpkg-source -b puredata-0.50.2 dpkg-source: warning: unknown information field 'Rules-Requires-Root' in input data in general section of control info file dpkg-source: info: using source format `3.0 (quilt)' dpkg-source: info: building puredata using existing ./puredata_0.50.2.orig.tar.gz dpkg-source: info: building puredata in puredata_0.50.2-1.debian.tar.gz dpkg-source: info: building puredata in puredata_0.50.2-1.dsc debian/rules build dh build dh_testdir debian/rules override_dh_auto_configure make[1]: Entering directory `/home/hans/build/puredata-0.50.2' dh_auto_configure -- \ --program-transform-name='s/pd$/puredata/' \ --libdir=/usr/lib/ \ --enable-alsa --enable-jack --without-local-portaudio --without-local-portmidi \ CFLAGS="-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed" make[1]: Leaving directory `/home/hans/build/puredata-0.50.2' debian/rules override_dh_auto_build make[1]: Entering directory `/home/hans/build/puredata-0.50.2' help2man -N -n "enable or disable a Pd GUI plugin" debian/gui-plugins/pd-gui-plugin > debian/gui-plugins/pd-gui-plugin.1 make CPPFLAGS="-DPD_TIMESTAMP_STRING='\"compiled for Debian (0.50.2-1) on 2020/01/16 at 12:06:08 UTC\"' " make[2]: Entering directory `/home/hans/build/puredata-0.50.2' make[2]: *** No targets specified and no makefile found. Stop. make[2]: Leaving directory `/home/hans/build/puredata-0.50.2' make[1]: *** [override_dh_auto_build] Error 2 make[1]: Leaving directory `/home/hans/build/puredata-0.50.2' make: *** [build] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 best, Hans On 1/13/20 10:57 PM, IOhannes m zmölnig wrote: On 1/13/20 10:25 PM, i...@hansroels.be wrote: dpkg-source: warning: unknown information field 'Rules-Requires-Root' in input data in general section of control info file is that the xenial or the bionic host? dpkg-checkbuilddeps: Unmet build dependencies: debhelper-compat (= 12) you might want to remove that line from debian/control and instead try $ echo 9 > debian/compat portaudio19-dev libjack-dev this i don't understand. according to https://packages.ubuntu.com/ both of these packages are present on both xenial and bionic. you must have the "universe" repository enabled (but afaik, this is standard) fasrm IOhannes ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list -- ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] recent Pd versions on older ubuntu studio computers
On 1/13/20 10:57 PM, IOhannes m zmölnig wrote: On 1/13/20 10:25 PM, i...@hansroels.be wrote: dpkg-source: warning: unknown information field 'Rules-Requires-Root' in input data in general section of control info file is that the xenial or the bionic host? The universe repositories of both computers are enabled. I added a log file of the terminal. I think something already went wrong in the previous steps of the scripts. I hope the log files help best, Hans dpkg-checkbuilddeps: Unmet build dependencies: debhelper-compat (= 12) you might want to remove that line from debian/control and instead try $ echo 9 > debian/compat portaudio19-dev libjack-dev this i don't understand. according to https://packages.ubuntu.com/ both of these packages are present on both xenial and bionic. you must have the "universe" repository enabled (but afaik, this is standard) fasrm IOhannes ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list -- hans@dellxps:~$ export LANG=C hans@dellxps:~$ MAINREPO=https://deb.debian.org/debian/pool/main/ hans@dellxps:~$ PDVER=0.50.2-1 hans@dellxps:~$ sudo apt-get install devscripts [sudo] password for hans: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libllvm5.0 snap-confine snapd-login-service Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: at dctrl-tools dput libdistro-info-perl python3-magic wdiff Suggested packages: default-mta | mail-transport-agent debtags bsd-mailx | mailx cvs-buildpackage diffoscope devscripts-el dose-extra gnuplot libterm-size-perl libyaml-syck-perl mozilla-devscripts mutt svn-buildpackage w3m debian-keyring equivs libsoap-lite-perl mini-dinstall python-bzrlib The following NEW packages will be installed: at dctrl-tools devscripts dput libdistro-info-perl python3-magic wdiff 0 upgraded, 7 newly installed, 0 to remove and 7 not upgraded. Need to get 1,016 kB of archives. After this operation, 2,930 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://be.archive.ubuntu.com/ubuntu xenial/main amd64 at amd64 3.1.18-2ubuntu1 [37.8 kB] Get:2 http://be.archive.ubuntu.com/ubuntu xenial/main amd64 dctrl-tools amd64 2.24-2 [59.1 kB] Get:3 http://be.archive.ubuntu.com/ubuntu xenial/main amd64 devscripts amd64 2.16.2ubuntu3 [848 kB] Get:4 http://be.archive.ubuntu.com/ubuntu xenial/main amd64 dput all 0.9.6.4ubuntu3 [33.1 kB] Get:5 http://be.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdistro-info-perl all 0.14ubuntu0.1 [4,690 B] Get:6 http://be.archive.ubuntu.com/ubuntu xenial/main amd64 wdiff amd64 1.2.2-1build1 [28.8 kB] Get:7 http://be.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-magic all 1:5.25-2ubuntu1.3 [5,436 B] Fetched 1,016 kB in 0s (1,993 kB/s) Selecting previously unselected package at. (Reading database ... 303189 files and directories currently installed.) Preparing to unpack .../at_3.1.18-2ubuntu1_amd64.deb ... Unpacking at (3.1.18-2ubuntu1) ... Selecting previously unselected package dctrl-tools. Preparing to unpack .../dctrl-tools_2.24-2_amd64.deb ... Unpacking dctrl-tools (2.24-2) ... Selecting previously unselected package devscripts. Preparing to unpack .../devscripts_2.16.2ubuntu3_amd64.deb ... Unpacking devscripts (2.16.2ubuntu3) ... Selecting previously unselected package dput. Preparing to unpack .../dput_0.9.6.4ubuntu3_all.deb ... Unpacking dput (0.9.6.4ubuntu3) ... Selecting previously unselected package libdistro-info-perl. Preparing to unpack .../libdistro-info-perl_0.14ubuntu0.1_all.deb ... Unpacking libdistro-info-perl (0.14ubuntu0.1) ... Selecting previously unselected package wdiff. Preparing to unpack .../wdiff_1.2.2-1build1_amd64.deb ... Unpacking wdiff (1.2.2-1build1) ... Selecting previously unselected package python3-magic. Preparing to unpack .../python3-magic_1%3a5.25-2ubuntu1.3_all.deb ... Unpacking python3-magic (1:5.25-2ubuntu1.3) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for systemd (229-4ubuntu21.23) ... Processing triggers for ureadahead (0.100.0-19.1) ... ureadahead will be reprofiled on next reboot Processing triggers for install-info (6.1.0.dfsg.1-5) ... Setting up at (3.1.18-2ubuntu1) ... Setting up dctrl-tools (2.24-2) ... Setting up devscripts (2.16.2ubuntu3) ... Setting up dput (0.9.6.4ubuntu3) ... Setting up libdistro-info-perl (0.14ubuntu0.1) ... Setting up wdiff (1.2.2-1build1) ... Setting up python3-magic (1:5.25-2ubuntu1.3) ... Processing triggers for systemd (229-4ubuntu21.23) ... Processing triggers for ureadahead (0.100.0-19.1) ... hans@dellxps:~$ mkdir -p build hans@dellxps:~$ cd build hans@dellxps:~/build$ dget -u ${MAINREPO}/p/puredata/puredata_${PDVER}.dsc dget: retrieving
Re: [PD] recent Pd versions on older ubuntu studio computers
On 1/13/20 10:25 PM, i...@hansroels.be wrote: > dpkg-source: warning: unknown information field 'Rules-Requires-Root' in > input data in general section of control info file is that the xenial or the bionic host? > dpkg-checkbuilddeps: Unmet build dependencies: debhelper-compat (= 12) you might want to remove that line from debian/control and instead try $ echo 9 > debian/compat > portaudio19-dev libjack-dev this i don't understand. according to https://packages.ubuntu.com/ both of these packages are present on both xenial and bionic. you must have the "universe" repository enabled (but afaik, this is standard) fasrm IOhannes signature.asc Description: OpenPGP digital signature ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Re: [PD] recent Pd versions on older ubuntu studio computers
I tried applying your script, you can see the error further on in this email. On 1/13/20 5:11 PM, IOhannes m zmoelnig wrote: On 13.01.20 16:40, Claude Heiland-Allen wrote: Hi, On 13/01/2020 14:13,i...@hansroels.be wrote: Is an installation of a /recent/ version of Pd vanilla (0.49 or 0.50) possible on an older linux computer? Should be possible. I am trying to install Pd 0.50.2 on two older Ubuntu Studio laptops, one has Ubuntu 14.04, the other Ubuntu 16.04. When I try to install the deb package from https://deb.debian.org/debian/pool/main/p/puredata/ Pd is atomised into many tiny debs, you'd need all of them... I get a dependencies error, saying that I need a higher version of libc6. The chances of random binaries from the internet working are smaller than with Windows I guess. Is it a solution to try compiling the Pd source code on both machines? Yes I think so. But it might be awkward with packaged Pd externals (you'd need to keep the old pd around and tell the new Pd where the externals are). here's an old answer, slightly polished (and hopefully not introducing to many bugs). run each line (apart from the -tags) in your terminal: