libera/#maemo/ Monday, 2018-06-04

jonwilAnyone here any good with debian packaging? Anyone want to help me get OpenSSL 1.1.0h (either the Upstream version or the Debian version) to compile on Fremantle? (the Debian version needs newer versions of dpkg and debhelper than we have and I dont think upgrading a package as critical as dpkg is something I want to do given the risk of bustage)07:07
Oksanajonwil : Links, please? To Upstream and Debian versions? I did debian packaging, aeons ago. No idea why would somebody need newer dpkg version, though - and the latest Debian packaging seems to be significantly different from what it used to be in Maemo-like times.08:13
jonwilhttps://packages.debian.org/source/sid/openssl has links to openssl_1.1.0h.orig.tar.gz (the upstream source package) and openssl_1.1.0h-4.debian.tar.xz (the Debian packaging and local Debian patches)08:14
jonwilWe would need a new dpkg/dpkg-dev version and a new debhelper version if we were to use the Debian packaging rather than writing our own packaging for Maemo (I think we should be using the Debian local patches either way though, if Debian thinks those changes are important they are probably worth having)08:16
OksanaIs 0.9.8n the newest one in Maemo repositories?08:20
* Oksana is surprised to see Diablo as Maemo3 and Fremantle as Maemo408:20
Oksanahttp://maemo.org/packages/view/openssl/ ^08:20
jonwilhttps://github.com/community-ssu/openssl/ is the latest version currently in Maemo08:25
jonwilIts the last 0.9.8 release and its shipped as part of the Community SSU08:26
Oksana0.9.8zf ... Nice, thank you :-)08:26
jonwilNo, thats 0.9.8zh08:26
jonwilI think we can assume that any local patch in08:27
OksanaAh, I was looking at the 1 release at this github08:27
jonwilin Maemo that is also in Debian is either no longer needed for 1.1.0h or is part of the local Debian patches for 1.1.0h08:28
jonwilAnd the few patches in Maemo that aren't in Debian aren't needed in 1.1.0h08:28
jonwilOne got merged upstream and the others aren't relavent anymore08:28
OksanaFor a first try, it would be nice to follow https://github.com/community-ssu/openssl/blob/master/HOWTOBUILD , only use upstream source package http://http.debian.net/debian/pool/main/o/openssl/openssl_1.1.0h.orig.tar.gz08:29
jonwilSo basically none of the patches in that community SSU git repo are needed08:29
OksanaSo, if patches aren't needed, then http://http.debian.net/debian/pool/main/o/openssl/openssl_1.1.0h.orig.tar.gz , and dpkg-buildpackage -rfakeroot -sa -us -uc -i.git08:30
* Oksana needs to get a build environment someday; building this on device would probably overwhelm rootfs08:30
* Oksana used to use MADDE on Windows XP, but Windows XP is too out-of-date to connect it to Internet08:31
jonwilThe easiest way to get a build environment going is to do what I do an use the Maemo Ubuntu build VM08:31
jonwilSo easy to just fire up vmware any time I am doing development08:32
jonwilMuch easier (and cheaper) than trying to set up a second machine just for Linux and for Maemo development08:32
Oksanajonwil : link to VM? /just in case I, or somebody else, get around to running it/08:57
jonwilhttps://www.fladnag.net/downloads/telephone/n900/tools/ has a link to the official Nokia VM09:00
jonwilYou probably want Maemo_Ubuntu_Lucid_Desktop_SDK_Virtual_Image_Final.7z09:00
jonwilThat's the one I am running (although I have a lot of packages installed in there and I have added more disk space and more RAM and stuff as well to the VM image)09:01
jonwilThere is no way Firefox 24.8.1 was gonna compile with the low amount of RAM the image is set up with by default :)09:02
jonwilHeck, even QT was having problems until I bumped up the RAM09:03
jonwilThere is apparently a more modern dev environment/VM out there somewhere but I dont know anything about it09:03
jonwilI am keeping with the Nokia VM just because its what I have been using since about 2014 or so (for a while I was using an old PC as a dev box but then I moved house and decided to retire the old PC rather than pay to have it moved)09:04
Maxdamantusbtw, GitHub to follow Nokia, in case someone hasn't heard.09:31
KotCzarnymaybe they want to access password protected repos?09:35
bencohMaxdamantus: mmh?09:35
bencohoh, shit.09:35
* sparre only has public stuff on Github. And (practically) only as mirrors of his Mercurial repositories on Bitbucket.09:36
bencohI don't use github either, but still :)09:37
jonwilI dont use any private Github stuff but I do use it for public repos10:23
jonwilI have yet to see anything to suggest Microsoft is going to make github suck though10:23
MaxdamantusWell, their intention is presumably to make money, and the way they make money usually involves monopolisation (either encouraging users to lock themselves into their products, or shut the former competitor down)10:27
Maxdamantushttps://en.wikipedia.org/wiki/Embrace,_extend,_and_extinguish10:28
MaxdamantusPersonally, I don't like the idea of relying on things within the Microsoft ecosystem.10:29
Maxdamantusand I don't see why they would spend $2M on GitHub if their intention was not to encourage (in whatever way) users of GH to be incorporated into the ecosystem.10:30
Maxdamantuser, $2B*10:30
Maxdamantusor whatever it was10:30
Maxdamantusah, valued at $2B a few years ago, not known how much they're paying to acquire it.10:31
leakypugI am planning to move back to my n900. Is there anyone with n900 using yappari here? does it still work?14:17
KotCzarnyno support14:18
KotCzarnyno working app14:18
KotCzarnywhatsapp went 'no 3rd party apps'14:18
leakypugoh no. Thank you!! And wow.. such an instant reply!! the reason why I love this community!!14:23
KotCzarnyyou just got lucky14:23
KotCzarnyon irc response time is from 0.5s to 14 days14:23
leakypugha ha :)14:24
leakypugif I want to start using my n900 back, I lost the details of repo urls.. are the ones in the maemo wiki working?14:25
KotCzarny~maemo-repos14:26
infobotwell, maemo-repos is http://wiki.maemo.org/Repository#List_of_Maemo_repositories14:26
KotCzarnyalso:14:26
KotCzarny~flashing14:26
infobotmethinks maemo-flashing is http://wiki.maemo.org/Updating_the_tablet_firmware, or - on linux PC - download&extract http://maemo.cloud-7.de/maemo5/patches_n_tools/maemo-my-private-workdir.tgz, cd into it, do sudo ./flash-it-all.sh; or see ~flashing-cmdline, or see ~lazyflashing14:26
KotCzarnyi suppose you know about cssu?14:26
leakypugyeah, community ssu :D14:27
leakypugyep - was an active user of n900 since 2010 till 201614:27
KotCzarnyk, as usual, t.m.o and w.m.o are your best information source14:27
leakypugcool.. heading there right away!!14:28
DocScrutinizer05(( Oksana is surprised to see Diablo as Maemo3 and Fremantle as Maemo4)) I think the "-maemoN" suffix in versions has nothing to do with Maemo 3 or 4 or 515:10
sparreDocScrutinizer05: Isn't the trailing "-maemoN" in version numbers like "-debN" in Debian - i.e. packaging versions of the same upstream version?15:14
DocScrutinizer05prolly15:14
DocScrutinizer05I've seen everything from maemo0 to maemo8 on arbitrary packages in apt-chace policy et al15:15
DocScrutinizer05leakypug:15:18
DocScrutinizer05~lf15:18
infobotit has been said that #maemo lazyflashing is http://wiki.maemo.org/Updating_the_tablet_firmware#The_Lazy_Approach15:18
DocScrutinizer05~jrtools15:18
infobotwell, jrtools is http://wiki.maemo.org/User:Joerg_rw/tools15:18
DocScrutinizer05should get you started15:18
jonwilLooks like MS paid $7.5B for Github15:44
KotCzarnycash money, ka-ching15:46
jonwilAnd it seems to be driven by the community-focused developer-tools side of Microsoft rather than the all business other half (the side that shoved Windows 10 down everyone's throat for example)15:46
jonwilThey say good things about not wanting github to change for the worse15:46
jonwilThey say nothing about any kind of lock-in15:47
KotCzarnyignore the words, observe the (future) actions15:48
jonwilIf Microsoft does something bad with github, we can always switch things to gitlab or something15:54
jonwilok, so I got some packaging for OpenSSL 1.1.0h that should work but now it turns out that the OpenSSL 1.1.0h configure script (which happens to be a Perl script of all things) needs Perl 5.10.0 and the Perl in scratchbox is only 5.8.4. So now I gotta find a way to get a newer Perl in there (and yes it really does seem to need the newer Perl, I tried changing the version from 5.10.0 to 5.8.4...16:16
jonwil...and it gave me errors)16:16
bencohuh....16:17
bencohnightmare16:17
bencohjonwil: are you absolutely certain it really needs 5.10?16:17
bencohah, nevermind16:17
jonwilYeah it definitely gives errors if I change the script to look for 5.8.4 as mnimum16:18
bencohtbh I'd rather not upgrade perl, since it'd probably end up with yet another tarball that one need to open before being able to build some package16:19
bencoh(just like gcc-4.7 for thumbs)16:19
jonwilSo what do we do?16:21
jonwilI know about as much Perl as I do Python (i.e. none)16:21
bencohhmm16:22
bencohI'd try and patch that configure script, but ... I don't really know what they did and would need to actually read their commit logs16:23
bencohcommits log*16:23
ceenejonwil: I made a .deb package for openssl 1.0.2e16:26
ceenei remember I had to tinker a little bit with some perl scripts16:26
jonwilGot a link to the source code for that?16:26
ceenein fact, I think I simply removed them because they were not needed, although they were useful, they were not essential16:26
jonwilThat might help me figure out what I need to change in 1.1.0h16:26
jonwilOr maybe not if they just got removed16:26
jonwilI can't exactly remove Configure :)16:27
ceenehttps://github.com/agamez/maemo-openssl-1.0.2/commits/master16:27
KotCzarnymaybe you need to rebuild with autotools16:27
ceenegithub...16:27
jonwilConfigure is a Perl script and there is no autotools involved16:27
KotCzarnyahm16:27
jonwilBest way is probably to find someone who can actually program Perl and who can come up with a way to do in 5.8.4 what they are using from 5.10.016:28
ceenebuild-depends for 1.0.2e doesn't require perl16:28
ceenei had to do a few things16:28
bencoheval 'exec perl -S $0 ${1+"$@"}'16:28
ceenei'm sure those commits will be helpful to you16:28
bencohceene: in Configure from your repository16:29
bencohdunno about build-depends, but it looks like perl to me :)16:29
ceenethen it should've been on Build-depends16:29
ceeneyep16:29
ceenebut i built this thing on16:29
ceenescratchbox16:29
ceenei forgot the name for a second16:29
bencohso perl was already available anyway16:30
bencohhaha16:30
ceeneyep16:30
ceenethat's all i remember, it's from dec 201516:30
ceenebut i do know that i was able to build a .deb package for maemo and it did work16:30
bencohI haven't fiddled with maemo/openssl for years either16:30
ceenei also did something to qt416:31
ceenehttps://github.com/agamez/qt-x11-maemo/commits/RemoveSSL316:31
ceeneand also16:32
ceenehttps://github.com/agamez/qt-x11-maemo/commits/UpgradeSSL16:32
ceenei think I had to something to it so yappari could download sent images16:32
jonwilThanks.16:32
ceenebecause whatsapp servers started blocking tls3, as it's insecure16:32
ceenei don't think i got to release this, because few days after that, yappari stopped working at all16:33
ceeneand I left lots of things in progress16:33
jonwilIn my case I need TLS 1.2 because the backend for my public transit agency now needs TLS 1.2 minumum in order to work (which means my Fahrplan backend is broken until I get TLS 1.2 into QT)16:33
ceenei think last branch, UpgradeSSL, should make it work16:34
ceenealongside a modern openssl16:34
ceenethe one from my repo16:34
ceeneboth together should work for you, just as they are, i think16:34
jonwilI am sure I can get the OpenSSL 1.1.0h build I have going working correctly16:34
jonwilMuch better than using an out-of-date build with possible bugs in it./16:34
ceenemy 1.0.2e did work16:34
jonwilI just need to find someone who knows Perl16:34
jonwilmost likely16:35
ceeneso, probably there's not much work to do to port it to build 1.1.0h16:35
ceeneif you take a look, I removed a couple of .pl scripts16:35
ceenei think16:36
ceenei'm a bit confused now16:36
ceeneshould have documented the whole process, not only the repo16:36
ceenein any case, 1.0.2e is still better than what is right now in maemo, so it's a step ahead, even if you don't manage to upgrade to 1.1.0h16:37
jonwilI am sure that if I can find a Perl programmer I can get 1.1.0h working16:44
jonwilThat said, finding someone who can actually understand code written in that abomination may not be so easy :P16:44
ceenedoes it shout a lot?16:48
ceeneor just a couple random things?16:48
ceenecan you post a log?16:48
jonwilWhen I downgrade the version it complains about foreach and then stops16:48
ceenehttp://search.cpan.org/~shay/perl-5.26.2/pod/perl5100delta.pod16:49
ceeneThis document describes the differences between the 5.8.8 release and the 5.10.0 release.16:50
ceenei assume there's no pratical difference between 5.8.4 and 5.8.8, being different only on the third number16:50
jonwilhttps://pastebin.com/mQ0vzF0316:56
jonwilThat's the full log of errors I get16:56
ceeneyour openssl is the one from debian or from openssl repo?16:57
jonwilThe configure file is exactly the one from OpenSSL 1.1.0h (debian uses the upstream version with no applied patches)16:58
ceenei don't get why it complains about the backlash17:03
ceeneforeach (sort split(/\s+/,$target{bn_ops})) {17:03
ceenethis is on your Configure17:03
jonwilI dont know either17:03
ceeneand this is on openssl1.0.2e, still requiring only 5.0.017:03
jonwilI know nothing about Perl17:03
ceeneforeach (sort split(/\s+/,$bn_ops))17:03
ceeneyeah, this perl thing is clearly write once, read never again17:06
ceeneproblem lies not on that line17:06
ceenebut on line 121217:07
ceene        $predefined{$1} = $2 // "";17:07
ceene/ is a new operator on 5.10.017:07
ceene //, I meant17:07
ceene Thus, EXPR1 // EXPR2 returns the value of EXPR1 if it's defined, otherwise, the value of EXPR2 is returned. (EXPR1 is evaluated in scalar context, EXPR2 in the context of // itself). Usually, this is the same result as defined(EXPR1) ? EXPR1 : EXPR217:08
ceenecan you try this17:09
ceene--- Configure2018-06-04 16:58:27.000000000 +020017:09
ceene+++ Configure.new2018-06-04 17:09:17.744789676 +020017:09
ceene@@ -1209,7 +1209,7 @@17:09
ceene     open(PIPE, "$cc -dM -E -x c /dev/null 2>&1 |");17:09
ceene     while (<PIPE>) {17:09
ceene m/^#define\s+(\w+(?:\(\w+\))?)(?:\s+(.+))?/ or last;17:09
ceene-$predefined{$1} = $2 // "";17:09
ceene+$predefined{$1} = defined($2) ? $2 : "";17:09
ceene     }17:09
ceene     close(PIPE);17:09
ceenesome bot didn't like me pasting that here17:09
ceenehttps://pastebin.com/sQyzzzJY17:10
ceenejust replace $predefined{$1} = $2 // ""; at line 1212 with $predefined{$1} = defined($2) ? $2 : "";17:10
jonwilok, so if we have the line return $withargs{zlib_lib} // "ZLIB1"; in perl, what is the right replacement for that one?17:19
ceenereturn defined($withargs{zlib_lib}) ? $withargs{zlib_lib} : "ZLIB1";17:20
ceenebasically, a // b means: if variable 'a' is defined, let's use its value, otherwise, let's use b as fallback value17:21
ceenei'm leaving now17:28
ceenelet me know if this ends up working out17:29
ceeneping my name so i can scroll easily back then :)17:29
ceenecya!17:29
sixwheeledbeast^+0m5 for Maemo5 versioning. -0maemoX would be used for a application port, if I remember my debian packaging correctly.18:58
AlexNoiseyey. being on IRC with a N81021:56
AlexNoisea dream comes true finally21:56
AlexNoise\o21:56
KotCzarnywant to convert n810 into intelligent and remotely controllable audio player too? :)21:57
AlexNoisewithout bricking it?21:58
AlexNoisekinda..21:58
KotCzarnytry oscp21:58
* dreamer has an N810 that is kind of purposeless21:58
AlexNoiseI do heard of it. will try eventually21:59
AlexNoisethis nis such a beautiful device. kb feels strage after 5 years of N90022:00
AlexNoisebut getting familiar with it22:00
KotCzarnyyou can control oscp core running on n810 with remote running on n900 (or pc)22:00
KotCzarnyor the other way round22:01
AlexNoisenice22:02
KotCzarnyit also has internet radio browser built in22:02
KotCzarnyin case you dont have enough audio files22:02
AlexNoiseis internet radio still possible on this?22:03
KotCzarnysure, why not?22:03
AlexNoiseah you answered faster22:03
AlexNoisecool22:03
KotCzarnynot to mention support for plethora of mod formats22:05
AlexNoisewell this is some heavy stuff. i'll need time to set it up properly22:23
AlexNoiseweekend22:23
KotCzarny'this'?22:24
AlexNoiseocsp22:24
KotCzarnynah22:24
KotCzarnyunless starting app manager is heavy stuff22:25

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!