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

cjwatsonYour Makefile should only deal with installing the files that need to be in *your* package.00:00
cjwatson(And compiling them if necessary.)00:00
cjwatsonErk, I just spotted the 'chmod 777' calls in there.  Kill those.00:01
bobweaverhow does enduser get upsource from apt ?00:01
cjwatsonIt's almost never appropriate for a package to ship world-writable directories.00:01
bobweaverwill do that is not the actual script00:01
cjwatson"get upsource"?00:01
bobweaverthat is inthe make file ? get upsource ?00:02
cjwatsonSorry, I still don't understand what "upsource" is.00:02
bobweaverI mean how does the make file know that the package /upsource is there like how to mv files that are not there ?00:02
cjwatsonWell, you can't move files that aren't there.  Can you give me a specific example?00:03
bobweaverI made a video of the question here http://www.youtube.com/watch?v=fZYgwJVmn2Y00:03
cjwatsonI'm not going to watch a video, sorry.00:03
bobweaverok so here http://bazaar.launchpad.net/~josephjamesmills/zpanelcp/zpanelcp/files see there is my upstart00:04
cjwatsonMy kids are asleep (so trying to avoid sound) and I have limited bandwidth at this time of night anyway.00:04
bobweaverIts cool00:04
bobweaverI can make example00:04
cjwatsonThe Makefile runs at build time.  It operates on your source code.00:04
cjwatsonIt's not generally allowed to operate on anything else.00:05
cjwatson'make install' should have the effect of installing files into their destination locations, prefixed by $DESTDIR.  So for example, to install a binary to /usr/bin/foo:00:05
cjwatsoninstall:00:05
cjwatson        install -d $DESTDIR/usr/bin00:06
cjwatson        install -m755 bin/foo $DESTDIR/usr/bin/foo00:06
cjwatsonwhere the eight spaces at the start of those lines must actually be a hard tab (make syntax)00:06
cjwatsonIt's just about building and installing your own files, nothing more00:07
bobweaverso I have other programs that I have packed here is one of the rules file for one http://paste.ubuntu.com/933314/   but Zpanel (what I am workinng on ) hass over 6000 files and if I have to call a var for each one two times that that is 12,000 lines of code + the DEST00:07
cjwatsonYou can always use cp -a and the like00:07
cjwatsonOr wildcards00:07
bobweaverthat is the anwser I WANTED \0/00:08
cjwatsonNobody expects a single line of code per file00:08
bobweaverthat is what I thought but could not figure out workaround because I am new00:08
cjwatsonBit of advice from when I was new: don't admit it, just try to make the best imitation of not being new that you can. :-)00:09
bobweaverThanks !00:09
* bregma can not believe that cjwatson was _ever_ new00:10
bobweaverOMG it is so simple I was overthinging this way to much00:10
cjwatsonIn the case of that rules file you pasted, the way I'd do it would be to create a file debian/install that contains:00:10
cjwatsonripper64.png usr/share/icons/hicolor/64x64/app00:10
cjwatsonripper.desktop usr/share/applications00:10
cjwatsonripper rippergui usr/bin00:11
bobweaverwait I can just drop folders?00:11
cjwatsonand then delete the rest of the rules file and replace it with a copy of /usr/share/doc/debhelper/examples/rules.tiny00:11
cjwatsondh_install has special syntax intended to make life easier00:11
cjwatson(dh_install is what parses debian/install or debian/*.install)00:11
cjwatsonIt's documented in its man page00:12
cjwatsonAnyhow, must try to sleep again, night00:12
bobweavernow that I know that I can make wild cards \0/    thanks cjwatson  get some good sleep tonight you should you really helped me out Thanks again !00:13
bregmabobweaver, do you remember the two-line debian/rules file I posted oh, 12 hours ago or so?00:14
bregmathat's what you'll find in /usr/share/doc/debhelper/examples/rules.tiny00:14
bobweaverbregma,  yea I kinda rember that bregma00:28
bobweaverbefore I go any further does this look correct ?  install $(CURDIR)/debian/source/etc/build/config_packs/ubuntu_11_10/* /etc/zpanel/configs/02:06
bobweaverwill that cp everything under install $(CURDIR)/debian/source/etc/build/config_packs/ubuntu_11_10   and put it in /etc/zpanel/configs/02:07
bobweaveror can I do02:07
bobweaverinstall cp /debian/source/etc/build/config_packs/ubuntu_11_10/*  /etc/zpanel/configs/02:08
bobweaveror does it have to be like this02:08
bobweaverinstall cp /debian/source/etc/build/config_packs/ubuntu_11_10/*  $DESTDIR/etc/zpanel/configs/02:09
bobweaveror do I just call the cp /name/of/dir/* /some/dir        Under dh_installdirs ?02:10
RAOFbobweaver: I'm missing context, but that looks incorrect; it looks like you're trying to install files into /etc/zpanel/config during the process of *building* the package, rather than installing the package.02:16
bobweaverRAOF,  so I have to use different tags then at a different point in the make file02:18
RAOFbobweaver: As I said, I'm missing context.  What, exactly, are you trying to do?02:18
bobweaveryou are right thou I am trying to make it so the enduser has them files also on there computers02:19
bobweaverusing the wild card as there is alot stuff under /etc/zpanel/02:20
bregmabobweaver, what happens during packaging is your install command is run to copy the files from a local copy of your source (for example, a bzr checkout) into a temporary staging area under debian/ that mimics the final destination of the installed system02:21
bobweaverRAOF,  My question it has been kinda anwsered but I am trying to get syntax right :)   http://www.youtube.com/watch?v=fZYgwJVmn2Y02:21
bregmathat's why the 'make install' target (or equivalent) needs to work without the packaging system02:21
bregmaand your install script needs to honour the DESTDIR variable02:22
bregmaso your 'install cp /debian/source/etc/build/config_packs/ubuntu_11_10/*  $DESTDIR/etc/zpanel/configs/' comes closest02:22
bregmayou can test it yourself by runing your install script and setting DESTDIR to, say, /tmp/shoebox and seeingwhat gets installed into /tmp/shoebox02:23
bregmaif your install script installs everything in the right place and honours $DESTDIR, then you do not need to do anything special in debian/rules, the tiny example knows how to take the files from there and bundle them up into a .deb02:27
bobweaverbregma,  let me see if I got this right in normal deb packaging for me I alter rule I do not want to do this keep it as is after dh_make but before dh_make I have to make a Makefile called well make file. Do I also have to make a configuration file. ||| Or can I just make a #!/usr/bin/make -f  file call it what foo    then call foo somehow before the build prosses ? ||| now reading above again thanks02:28
bobweaverThat is cool about the tiny I was reading about that earlier02:30
bobweaver1) makefile 2) dh_make 3) alter /debian/ 4) fakeroot dpkg-buildpackage -F 5) hope it builds ??02:31
bobweavermakefile = script02:31
RAOFWhat software are you trying to package?  How would you normally install it?02:35
bregmabobweaver, you probably do not need a configuration script, and using a makefile (called 'Makefile' by convention) will make your debian/rules simpler02:39
bregmayou can use wildcards in your makefile and use the 'cp -r' command for recursive copies of entire directories02:39
bregmaand test it and make sure it does what you expect02:40
bobweaverthe softeare is a http://bazaar.launchpad.net/~josephjamesmills/zpanelcp/zpanelcp/files     it is a control panel   I learned how to package on youtube  by making script making icons and making callto points (depends scripts) tar all that up run dh_make -e <email> -c gpl3 -f the_tar_i_just_made.tar.gz   Now  go into the new debian folder and change the depends and wht not in the control file then copyright then massivly alter rule file to02:41
bobweavermake the build happen then earse all non using .ex files and make unes that I am using as chmod +x then build with fakeroot dpkg-buildpackage -F02:41
bobweaverRAOF,  ^^02:41
bobweaverThanks it is becoming clear bregma02:41
bobweaverI am mixing up Makefile ike  gcc makefiles with #!/usr/bin/make -f      or are they the same and that is just the shebang or are they different types all togeather ?02:42
bregmaonce your makefile works, then yes, use dh_make -- I would suggest using a separate tree for packaging from your upstream source tree, but that may be more advanced than you need at this point02:43
bregmamakefiles can be used to build C programs, too02:44
bobweavercool !02:44
bregmathey're just a collection of rules on how to build files from other files, effectively02:44
* bobweaver takes a 90lbs weight of shoulders 02:44
bobweaverI get it02:44
bobweaverbut02:44
bobweaverhow does the upsource get there (enduser) ?02:45
RAOFI'm not sure what you mean?02:45
bobweaverin the build of dpkg-buildpackage in the source one ?02:45
bobweaverlike how can a end user cp a file that is not on there computer02:46
RAOFThe end user doesn't install a file that's not on their computer.02:46
RAOFThere's two cases here: (1) the end user is installing from your source, (2) the end user is installing a .deb02:46
RAOFIn the first case, the end user has the file, because they've got your source.02:47
RAOFIn the second case, the .deb contains that file and unpacks it into the directory that you copied it to in the build process.02:47
bobweaver \o/02:47
bobweaverthatis what I needed to hear02:48
RAOFYou can see the files in the deb, and where they'll be unpacked to, by running ‘dpkg --contents $PACKAGE.deb’02:48
bobweaverOh my I feel like a million bucks thanks RAOF  and bregma02:49
bobweaverthat is where I was confused I could not see that inside the deb contains also the source packages or do I have to call for repo for that ?02:50
bregmano, the deb is a binary package (although in your case, it's all scripts and stuff)02:51
bobweaverI think I get it and see why I was getting errors last night because I had no makefile I get it I think02:51
bobweaveroff to test brb02:52
bregmathe source package is usually a 'tarball' of the upstream source plus another archive of packaging information, plus a .dsc file describing the other files02:52
bobweaverI see  Thanks !02:52
bobweaverIt is Working !!!! \o/ \o/03:41
dholbachgood morning07:00
Rhondaoh08:10
=== almaisan-away is now known as al-maisan
Rhondaah, micahg responded on the wesnoth bugreport. :)10:31
Rhondamicahg: Also, upstream does usually help me backport fixes if needed even though it wouldn't be a supported release anymore. ;)10:31
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== dholbach_ is now known as dholbach
pabelangercjwatson: okay, thanks for the info15:12
=== al-maisan is now known as almaisan-away
Laneytumbleweed: ScottK: I noticed git-annex FTBFS. I can fix it by syncing haskell-bloomfilter (NEW) and then syncing git-annex itself. It's pretty featureful, though — http://packages.debian.org/changelogs/pool/main/g/git-annex/current/changelog — but some of the changes (7.4 compat and the FTBFS fix / library updates) we definitely want. I think it's easiest/best to go for the syncs.20:18
LaneyYay or nay?20:18
ScottKYay if you think it best.  As long as it's a sync, I don't mind the new.20:19
Laneyok. want ffe?20:19
micahglaney: I had an FTBFS on that package in a local chroot20:21
micahgdoes it work in LP?20:21
Laneydunno20:22
Laney1 N + Apr 17 Source Builder  ( 53K) Log for successful build of git-annex_3.20120406 on amd64 (dist=precise)20:22
micahgit was a hardlink test failure20:22
LaneyCases: 54  Tried: 54  Errors: 0  Failures: 020:23
ScottKLaney: Yes (re FFe) although you can mostly copy/paste this discussion (assuming you solve micahg's issue)20:26
LaneyI don't believe they are real, but I'll upload to a PPA.20:26
* micahg has had various hardlink issues in teh past that no one else seems to have, so wouldn't be surprise if this worked on LP20:27
micahgand it's LP that counts in any event20:28
LaneyI enjoyed writing that FFe for some reason. Something is wrong wih me.20:59
Laneyprobably because I got distracted reading about bloom filters21:00
ajmitchLaney: you like all sorts of weird things though21:00
Laneyyou should see my dungeon21:01
ajmitchI don't think my innocent eyes could handle it21:01
=== almaisan-away is now known as al-maisan
matttbeHello,22:12
matttbeI'm looking for someone to quickly fix the bug #984054 :)22:12
ubottuLaunchpad bug 984054 in cairo-dock-plug-ins (Ubuntu) "package cairo-dock-plug-ins-data 3.0.0.0rc1 failed to upgrade to 3.0.0.1" [Undecided,Confirmed] https://launchpad.net/bugs/98405422:12
matttbeI propose a bzr branch for merging into lp:ubuntu/cairo-dock-plug-ins => https://code.launchpad.net/~cairo-dock-team/ubuntu/precise/cairo-dock-plug-ins/98405422:12
matttbeSomeone can help me to upload this new version? :)22:12
=== al-maisan is now known as almaisan-away
micahgmatttbe: yeah, I canin a bit take a look at that22:13
micahgwow, sily IRC client22:13
micahgI can take a look at that in a bit22:13
matttbemicahg: thank you :)22:13
micahgmatttbe: FYI, whenever files move between packages, you need to add breaks/replaces for them22:14
matttbemicahg: yeah, I know... I just forgot... I should sleep more :)22:15
micahgmatttbe: I'm not sure that will fix it, which package is that file in now?22:18
matttbemicahg: This file was available in cairo-dock-data /usr/share/cairo-dock/gauges/Battery/background.svg22:19
matttbeand now it's in cairo-dock-plug-ins-data22:19
micahgmatttbe: ok, so you want to break on the version where it moved, not the version in the bug22:20
micahgotherwise you need to specify the whole 3.0.0.0rc1-0ubuntu1 version for <=22:21
matttbenot only 3.0.0.0rc1 ?22:21
micahgright, that won't pick up 3.0.0.0rc1-0ubuntu122:21
matttbeoh ok, I didn't know, sorry22:21
micahgmatttbe: that's why we have sponsors ;)22:22
matttbe:)22:22
micahgor rather why the sponsors are supposed to review changes :)22:22
Laneylet this be a lesson to all involved: test package upgrades :P22:22
micahgindeed :)22:22
* micahg still needs to add hooks for that to sbuild22:23
matttbeyes, I should have done that... sorry22:23
matttbebut it's strange. A friend has tested this new version and he didn't have this problem. Maybe because cairo-dock-data has been updated before cairo-dock-plug-ins-data22:25
micahgright22:25
=== yofel_ is now known as yofel

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