/srv/irclogs.ubuntu.com/2012/04/19/#ubuntu-motu.txt

=== bobweaver is now known as sticky_fingers
sticky_fingerscan anybody tell me where I can get some examples of debconf config files and also templeate files. I am a little confued about the frontend part and how it i called. Also where it stires its info and how to rm all of it in postrm. Thanks00:55
sticky_fingersI have read all joey hess stuff00:55
cjwatson'man debconf-devel'00:56
cjwatsonfrontend part: packages do not need to know00:56
cjwatsonwhere it stores its info: in the debconf database, by default in /var/cache/debconf/00:56
cjwatsonhow to rm all of it in postrm: dh_installdebconf sets this up for you00:57
sticky_fingersthanks cjwatson01:01
sticky_fingersI have read the man page and also debconf.conf.01:02
sticky_fingersfunny that there is no tutorial video on the issue01:02
sticky_fingersI guess that many people dont use ?01:02
sticky_fingersI see I put Frontend inn my config file then put that in /debian/source/DEBIAN01:04
sticky_fingersalong with temlet files01:04
sticky_fingerslike01:05
sticky_fingers# This is a sample config file that is01:05
sticky_fingers         # sufficient to use debconf.01:05
sticky_fingers         Config: configdb01:05
sticky_fingers        Frontend: dialog  Templates: templatedb01:05
sticky_fingersI am calling dialog01:05
sticky_fingerssweet and thanks01:06
sticky_fingersI see why  pre depends in the controol file can be cool now01:06
cjwatsonVery few people in this line of work use tutorial videos.01:23
cjwatsonIn my experience.01:23
cjwatsonGenerally you should not be touching the capitalised DEBIAN directory directly.01:23
cjwatsonAnd you should certainly not be writing out that config file with "Config: configdb" etc. in it.  That's what goes in /etc/debconf.conf, which comes with the system.  Packages shouldn't touch it.01:24
cjwatsonPre-Depends should be used only with care and typically only after discussion.01:24
cjwatsonThere's certainly a place for it, but it can do bad things to upgrades if you're not careful.01:24
cjwatsonAnd it's often unnecessary.01:24
=== sticky_fingers is now known as c1ph3r
=== c1ph3r is now known as bobweaver
bobweaverThanks for all the tips cjwatson02:32
bobweaverbut when you say that very few people in your line of work dont use video tutorials. what do they use ? or did you go to school. Just wondering do I can also learn "the right way so to say " thanks :)02:33
cjwatsonText documentation is much better at conveying this kind of information.  You can copy and paste from it, you can search it, you can page back and forward and read at your own pace, and so on.02:35
cjwatsonI guess there are some people who learn better from videos; I'm just saying that not many of them seem to be involved in packaging.02:36
bobweaveryea but what about use peps with dyslisia02:36
=== Whoopie_ is now known as Whoopie
cjwatsonProbably not very well-served at the moment, I'm afraid, although I do know of some Ubuntu developers with dyslexia who seem to get along.02:36
bobweavercool02:37
cjwatsonAlso some blind developers.02:37
bobweaverthat gives me hope02:37
cjwatson(Though I expect text is strictly better than video for them!)02:37
* bobweaver nods02:37
cjwatsonIsn't being able to copy and paste pretty useful if you're dyslexic, anyway?02:38
bobweaverno not really because it is the way that you persive what you are reading02:38
bobweaverpre-sieve *02:39
bobweaverI ahve what is know as nonsence word dysilica02:39
cjwatsonRight, but output is a problem as well as input, as I understand it02:39
bobweaveryes that is correct02:39
cjwatsonAnd packaging files aren't going to be tolerant of typos02:39
cjwatsonSo having something to copy and paste from seems like it'd be a useful aid02:40
bobweavercode is different to me as it has things that are like start and stop ect02:40
bobweaverbut I mess up all the time :)02:40
bobweaverso yeah manual are great02:40
cjwatsonThe other thing that makes videos hard to do is that packaging is pretty non-linear - lots of branches depending on what you're doing02:46
cjwatsonThere are some slides presentations on packaging you might be able to dig up, and I guess some of those might come with videos02:46
cjwatson*slide presentations02:46
cjwatsonBut I don't have any specific pointers02:46
cjwatsonAnd they probably don't exist for each specific niche02:46
bobweaverI am sorry if I am dense here with this debconf   I am going to try and explain whre I am not understanding   here is what I have to make into debconf 3 things for questions and answerers thisis how I was doing before http://paste.ubuntu.com/936330/   so I would like to make this all happen at once at the start maybe in preinst I gather that I have to take and make a templetes file and also a configs file I think then in the templets file02:49
bobweaveris where I hold anwsers and questions to be printed to the screen that are called using the config file but how is that called by the preinst ?02:49
cjwatsonYou use a config file for asking lots of things at once at the start, not a preinst.02:49
bobweaversweet thanks02:50
cjwatsonA preinst isn't necessary here as far as I can see.02:50
cjwatson(This is called "preconfiguration" in debconf-speak.)02:50
cjwatsonYes, you need to write a templates file describing the questions you want to ask.02:51
cjwatsonSome of those questions shouldn't be asked at all, though; the FQDN can be picked up from the system, rather than asked again by individual packages.02:52
bobweaverthese are the things that must happen at postinst I think then package is done for tonight http://paste.ubuntu.com/936336/02:52
bobweaveryeah I could fix that great idea thanks !!02:52
cjwatsonLikewise, most packages that think they need to know your public IP address are mistaken, although there are a tiny handful that actually do.02:52
bobweaveryou can see where I call all the vars in the 2nd paste02:53
bobweaverwhere I am guessing that I am going to be calling some sorta db_go or something like that I was reading about02:53
cjwatsonDon't sed /etc/apache2/apache2.conf; non-apache packages aren't permitted to do that.  You should ship a sites-available fragment instead, I think.02:53
cjwatsonUse adduser (and addgroup if necessary) to create users and groups, not groupadd and useradd.  Check the section in the Debian Policy Manual about which ID ranges you may use.02:54
cjwatsonDon't hardcode user and group IDs.02:54
cjwatsonYour postinst needs to work correctly if run more than once, so think about all those cases where you're inserting lines.  Maybe they should be substitutions on a template or something instead.02:55
cjwatsonYou really shouldn't fiddle with /etc/postfix/main.cf or /etc/dovecot/dovecot.conf; those are owned by the respective packages.  I don't know if those particular packages offer a better mechanism.02:56
bobweaverthat is awesome like make foo/var102:56
cjwatsonDitto /etc/proftpd/proftpd.conf and /etc/bind/named.conf.02:56
cjwatsonThe postinst shouldn't compile files.  Do that at build time and ship the compiled objects.02:56
bobweaverlike zsudo02:57
cjwatsonYes.02:57
bobweaverI can also take out cron correct02:57
cjwatsonGet somebody competent at security to check whether you need zsudo at all.  Extra set-id binaries are worrisome.02:57
cjwatsonShipping a file in /etc/cron.d/ is fine, although I don't quite see why you need to touch it and set its mode in the postinst.02:58
bobweaveryeah it is just a moudual that is not needed02:58
cjwatsonIf you need to ship one, just include it in the package.02:58
bobweaveroh yeah the /debian folder cron one02:58
cjwatsonSQL_LINE_NO=`expr $SQL_LINE + 1`  more efficient as  SQL_LINE_NO=$(($SQL_LINE + 1))  (etc.)02:58
bobweaveror in make file ?02:58
bobweaverI will post make file02:59
cjwatsonthat depends whether the cron job is maintained as part of the package or by the upstream developers02:59
* cjwatson -> bed, yikes, 4am02:59
bobweaverok thanks for your help again cjwatson02:59
cjwatsonno problem03:00
cjwatsonlooks like it's getting gradually simpler03:00
bobweaveryup I am also seeing that03:00
bobweaveresp postinst03:00
bobweaverI would like to get that out there as most things say try not to use03:00
cjwatsonThis package probably has an excuse for some postinst code, but yes, the less of it the better, generally03:01
cjwatsonFeatures are an asset but code is a liability, and all that stuff03:01
cjwatsonAnyway, bed03:01
bobweavercya thanks again03:04
=== jalcine is now known as JackyAlcine
dholbachgood morning07:14
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
* bregma_ sips his coffee11:03
=== rsalveti` is now known as rsalveti
=== almaisan-away is now known as al-maisan
=== bregma_ is now known as bregma
=== al-maisan is now known as almaisan-away
=== AlanChicken is now known as AlanBell
=== almaisan-away is now known as al-maisan
=== genupulas is now known as ubucop
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== ubucop is now known as badfox
=== nixmaniack is now known as n1x
Laneyquiet day :O19:17
highvoltagemoo19:19
=== jalcine is now known as Guest31570
micahgScottK: the request is invalid, but the package was syncd19:22
ScottKmicahg: We both sync'ed it.19:22
ScottKLooks like yours won.19:23
micahgScottK: ah, ok, I figured you accepted it :)19:24
ScottKI did.19:24
ScottKUnseeded Universe isn't frozen, so I ran syncpackage and since it was there in the queue, I accepted it.19:25
ScottKBut it was yours.19:25
jtaylorfreeze is tuesday right?19:25
ScottKI don't remember.19:26
jtaylorstill need to get a ipython bugfix release in :/19:26
* Laney looks for a schooltool ffe19:26
Laneyoh. someone accepted it19:27
=== jalcine_ is now known as JackyAlcine
nigelb4/ws 2023:27

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!