libera/#devuan/ Sunday, 2024-09-22

gnarfacedynastar: still there? first thing that comes to mind for me is to suspect the storage; are you using a usb key or a microSD card or something like that? are any of the partitions nearly full?01:01
gnarfacei dunno what DNS resolution would have to do with your file manager, but if you have avahi-daemon installed and running who knows...01:01
freemI think the nick changed to Xenguy?01:08
freemoh, no, sorry01:08
freemmisread01:09
Xenguyo/01:09
freemsorry for ping, was a mistake01:10
Xenguynot a problem01:19
paculinoHello, I'm trying to turn my C code into a .deb. I can compile it fine, but this is not very convenient for sharing. The guide I found on the debian wiki assumes there is already a debian/ directory. What is a resource that only assumes starting with the bare minimum (code, executable, readme, and license)?07:12
gnarfacedid you look at the debian new maintainer's guide?07:14
gnarfaceyou might have to create that directory by hand, but there's at least documentation on the contents there07:14
gnarfacei forget if there's automation07:15
paculinoNot recently; I was under the impression that the maintainer guide was about the organizational/bureaucratic aspects07:15
gnarfaceit leads with that, but technical details start around chapter 607:15
gnarfacethe stuff you want anyway i think starts about there07:15
gnarfaceyou can skip the bureaucratic part if this is just for your personal use07:16
gnarfaceonly other thing i can think of is check git.devuan.org but stick around, someone else here might know more...07:17
paculinoI've figured out using dch to get the changelog template started, but that's all from the packaging guide07:17
paculinoThank you07:18
paculino(if anyone finds this in logs later, the url for that chapter is https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.en.html as of 2024)07:38
freempaculino: if the point is only to provide a binary package, then the easier is imo to use `dpkg-deb -b`, but this will require you to know the basics of how a binary package is built. It is quite simple, though, and any developper should be able to deduce all they need from an existing binary package. You will find plenty of those in /var/cache/apt/archives, and you can extract their content with `dpkg-deb -x` or other tooling. In a previous life, I08:02
freemwrote a simple to use script for my colleagues so that we'd just run it, get the binary uploated to a local server, and get the street equipments' computers installed automatically with latest stuff & all.08:02
paculinoI have modified octave's .deb a few times. Would this be about the same?08:03
paculinoSo copying and modifying control and such from random packages is standard practice to get a template?08:04
freemI don't know what is octave's deb, but perhaps. The big lines are that there is both a DEBIAN/ directory which only strictly required file (if not changed) is the `control` file, and the other stuff are an "image" of what dpkg should apply on the target system08:05
freemno08:05
freemI didn't said it is standard. It is an ugly but very quick to do way of doing it08:05
freemit would never be accepted by a distro, notably, for obvious reasons.08:06
freemoh, you could also use cmake's cpack feature! this totally slipped out of my mind, since I never used it08:07
freembut I have to say I doubt my colleagues would have been able to understand how to use it... they had enough troubles installing their IDE, really.08:07
freemso I wrote a script which would babysit them and contains only the strict minimum for things to technically work. With time I improved it to be less ugly, but I would not consider this good, still08:08
paculinoI do not expect what I'm doing to make it into any distro. However, why does the start matter for acceptance? If only used as a template, the relevant stuff will be all that remains and will be modified to suit it, will it not?08:08
freemI don't know what are best practices. The guide and documentation are all way too verbose to just get something which works in 5minutes, and reverse engineering a binary to reproduce it was easier08:09
freemeasier and faster08:09
freemstill, I would not claim it's a good idea, people here might have much better advices to give you.08:10
freemperhaps I just enjoy hacking and NiH too much, after all :D08:10
freem(now, knowing how to do this also allowed me to send a bug and it's fix to trenchbroom's authors, so me be that that was not entirely useless for open source I guess)08:12
freemnow that I think about it... back then, I was starting to dislike cmake more than a bit, but not enough yet to just write a makefile or ninja.build. Those days, I think I would just get a script or template of those, instead, which would be cleaner, and possibly easier to use for small pet projects like I do now08:13
freemI honestly think debian's toolchain to build packages is quite complicated, too much for me. It does make sense to have all this stuff to reach debian's quality and portability, I guess, but it's too heavy for small stuff, and is the reason behind the reputation that making a debian package is ultra complicated.08:15
paculinoPerhaps it would be useful practice for me another time to make a package for dillo+; the required control file should be quite similar to that for dillo08:17
freemI think it depends on your goal, really08:22
freemsharing what, whith whom, and under which conditions. Even my quick and dirty script was an improvement compared to what we had before, and there was no licence problem since the stuff was only to be installed on devices owned by my company.08:23
freemnothing open source was modified, so licences were obeyed, as far as I know08:24
paculinoWell, dillo+ is a fork of dillo, so it already covers license stuff08:25
paculinoIt would have minimal changes08:25
freemwhat does this fork brings, btw? Dillo is an interesting project, but hardly usable for most usages sadly08:26
paculinoIt slightly improves css support, adds gemini/gopher support, and better supports more filetypes08:41
freemnice08:41
paculinoSorry, I didn't notice the message08:41
freemnp08:41
paculinoI only browse dev1galaxy using it and monocles (on phone)08:43
freemout of curiosity, do you know why it is a fork and not contributed back?08:43
rrqpaculino: this one is a good startpoint too https://www.debian.org/doc/manuals/debmake-doc/08:43
paculinoThe original website sort-of went MIA for a bit and iirc, that is when dillo-ng was forked. The original dev hasn't done much since afaik08:44
paculinoThank you, rrq08:44
freemok, thx for info08:44
paculinoOh, coincidentally, I also use dillo for debian wiki (I added the search macro for both the wiki and packages)08:45
paculinohttps://www.debian.org/doc/manuals/maint-guide/dother.en.html is good as well08:52
rrqas usual the options makes the documentation a bit unfocused08:58
rrqI tend to use dpkg-buildpackage for very ad-hoc packaging, and "gbp buildpackage" for more serious projects08:59
rrqthe latter is good for separating "upstream" from the debian packaging09:00
rrqwithin a git project (separate branches)09:00
rrqbut "gbp buildpackage" enforces/requires a more strict upgrade procedure09:02
rrqyou can use "dh_make" to generate templates for the debian files09:15
al1r4dfreem, "hardly usable", yeah ia gree12:37

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