00:00.26 | *** join/#fredlug IrishW0lf_bbl (n=william@70-41-145-17.cust.wildblue.net) |
00:05.22 | stickster | bbiab == "be back in a bit" |
00:11.27 | *** join/#fredlug IrishW0lf_bbl (n=william@70-41-145-17.cust.wildblue.net) |
00:13.28 | nombyte | how do i get the source |
00:13.49 | stickster | yumdownloader --source <package_name> |
00:14.06 | stickster | Also, make sure you "yum install rpmdevtools" |
00:14.23 | stickster | Then "rpmdev-setuptree" |
00:14.36 | stickster | Then "rpm -ivh <source_package_file>" |
00:14.58 | stickster | The .spec file and source will be in your ~/rpmbuild tree |
00:15.24 | stickster | rpmbuild -bp ~/rpmbuild/SPECS/<specfile> will untar everything and patch it in ~/rpmbuild/BUILD/<pkg> |
00:24.01 | nombyte | wow im so lost |
00:24.15 | nombyte | ok let me do this one step at a time |
00:24.53 | nombyte | also i have that line is sudo to allow me to do everything |
00:25.10 | nombyte | everytime i try to make it so i can just do one program it says i wrote it wrong |
00:25.14 | nombyte | do u know how to do that? |
00:29.55 | stickster | nombyte: I don't understand what you're saying. |
00:30.04 | nombyte | which part? |
00:30.10 | stickster | "also i have that line is sudo to allow me to do everything |
00:30.11 | stickster | " |
00:30.16 | nombyte | oh |
00:30.33 | nombyte | nomb ALL=(ALL) NOPASSWD:ALL |
00:30.38 | nombyte | so i tried like |
00:30.41 | stickster | Yes, you have to "sudo yum install rpmdevtools", but that's the only thing you need to sudo. |
00:31.06 | stickster | Oh, sorry, you need this for the yumdownloader: |
00:31.07 | nombyte | the only question about sudo was how to take out the all and only have select programs in it |
00:31.16 | nombyte | i tried like |
00:31.37 | nombyte | nomb ALL=(/sbin/conky) NOPASSWD:ALL |
00:31.43 | nombyte | and it says the /sbin/conky is wrong |
00:31.50 | nombyte | i also tried |
00:32.04 | nombyte | nomb ALL=(conky) NOPASSWD:ALL |
00:32.08 | nombyte | and got the same thing |
00:32.14 | stickster | nombyte: Sorry, my tech support time is limited. |
00:32.35 | stickster | Here's how to get that yumdownloader & the rest of it: |
00:32.43 | stickster | yumdownloader -e extras-source --source luks-tools |
00:32.50 | stickster | sudo yum install rpmdevtools |
00:32.54 | stickster | rpmdev-setuptree |
00:33.01 | stickster | rpm -ivh luks-tools-*.src.rpm |
00:33.11 | stickster | rpmbuild -bp ~/rpmbuild/SPECS/luks-tools.spec |
00:33.50 | stickster | mv ~/rpmbuild/BUILD/luks-tools-<version> ~/rpmbuild/BUILD/luks-tools-<version>-original |
00:33.54 | stickster | rpmbuild -bp ~/rpmbuild/SPECS/luks-tools.spec |
00:34.14 | stickster | Then you can play around in ~/rpmbuild/BUILD/luks-tools-<version> and get a diff of changes between that and the -original directory |
00:34.22 | nombyte | rpm -ivh luks-tools-*.src.rpm |
00:34.22 | nombyte | <PROTECTED> |
00:34.22 | nombyte | warning: group mockbuild does not exist - using root |
00:34.22 | nombyte | ########################################### [100%] |
00:34.22 | nombyte | warning: user mockbuild does not exist - using root |
00:34.22 | nombyte | warning: group mockbuild does not exist - using root |
00:34.25 | nombyte | is that ok? |
00:34.40 | stickster | Did you do that as root? |
00:34.45 | nombyte | ya |
00:34.47 | stickster | Then no. |
00:34.52 | nombyte | crud |
00:34.56 | stickster | You should never build packages as root. |
00:35.03 | stickster | And you shouldn't _be_ root most of the time. |
00:35.17 | stickster | Do this before you leave root: |
00:35.17 | nombyte | ok |
00:35.28 | nombyte | when i try to uninstall it it says it isn't installed |
00:35.35 | stickster | rpmbuild --clean --rmsource --rmspec /usr/src/redhat/SPECS/luks-tools.spec |
00:35.50 | nombyte | no wait |
00:35.55 | nombyte | i didn't do that as root |
00:35.58 | nombyte | im sorry |
00:36.01 | stickster | Oh ok |
00:36.06 | stickster | Then no, it's not a problem ;-D |
00:36.10 | nombyte | ok sorry |
00:36.51 | nombyte | do i rpmbuild it before i program stuff into it or after? |
00:36.55 | stickster | The rest is OK. Most packages in Extras are built by the 'mockbuild' user; these messages aren't important because the files just get extracted as you. |
00:37.18 | stickster | You are prepping it once, moving that copy to -original, and then prepping it again. |
00:37.51 | stickster | After you make changes to the source in the new directory, you can usually just do ./configure, make to try it out |
00:37.51 | nombyte | failed dependencies |
00:37.57 | stickster | Ah. |
00:38.25 | stickster | To fix that, just do: sudo yum-builddep <src_rpm_file> |
00:38.32 | nombyte | oh cool |
00:38.47 | stickster | That will fetch everything needed to do building. |
00:39.05 | nombyte | i always wondered why i couldn't install source packages |
00:43.11 | nombyte | this was programmed in c |
00:46.26 | stickster | You shouldn't need to do anything with the C parts, they're just convenience functions |
00:46.35 | nombyte | oh |
00:46.40 | nombyte | where would the python be? |
00:46.45 | stickster | gnome-luks-format.in |
00:47.14 | nombyte | oh i thought python was py |
00:47.20 | stickster | It's an ".in" file because it's being processed, probably just to replace a @SOMETHING@ string with content that changes based on the ./configure script |
00:47.37 | stickster | Yup, line 120 |
00:47.49 | stickster | 149 |
00:47.51 | nombyte | lol |
00:48.13 | stickster | So that's your Python code |
00:48.14 | nombyte | oh that was a big part of the book i didn't understand is the self part |
00:48.16 | nombyte | nice |
00:48.17 | stickster | Have fun |
00:48.21 | nombyte | oh i will |
00:48.24 | stickster | self has to do with object oriented stuff |
00:48.47 | stickster | Once you get that, you will find your overall Python reading a much more enriching and educational experience |
00:49.02 | stickster | class myClass: |
00:49.07 | stickster | <PROTECTED> |
00:49.18 | stickster | <PROTECTED> |
00:49.21 | stickster | <PROTECTED> |
00:49.31 | stickster | c = myClass() |
00:49.37 | stickster | print c.stuff |
00:49.39 | stickster | <PROTECTED> |
00:49.44 | stickster | that would output: 'hi' |
00:49.55 | nombyte | so self.stuff is a class variable? |
00:50.05 | stickster | self just refers to the instance of the class |
00:50.36 | stickster | That means that any instance of the myClass class will inherit (at initalization) a property stuff which yields the string 'hi' |
00:51.11 | stickster | So any methods added in that class would look like: |
00:51.12 | stickster | <PROTECTED> |
00:51.18 | stickster | class myClass: |
00:51.25 | stickster | <PROTECTED> |
00:51.26 | stickster | <PROTECTED> |
00:51.55 | stickster | <PROTECTED> |
00:52.10 | stickster | <PROTECTED> |
00:52.12 | stickster | <PROTECTED> |
00:52.16 | stickster | c = myclass() |
00:52.28 | stickster | c.doStuff('Nate') |
00:52.29 | stickster | <PROTECTED> |
00:52.37 | stickster | would print: hi Nate |
00:52.42 | nombyte | so def __init___: means happen at initalization? |
00:52.45 | stickster | Yup |
00:52.48 | stickster | If you did: |
00:52.49 | stickster | <PROTECTED> |
00:52.51 | stickster | c.doStuff() |
00:52.56 | stickster | You'd see: hi you |
00:53.12 | nombyte | cause you is the default value for name |
00:53.16 | stickster | right you are |
00:53.16 | nombyte | unless passed another |
00:53.31 | stickster | Exactly, you're setting a default for an optional argument |
00:53.45 | stickster | Well, to be more precise, the argument is required, but it defaults so you don't need to provide it |
00:53.57 | stickster | OK, Python class dismissed for tonight |
00:54.06 | nombyte | :D |
00:54.07 | nombyte | k |
00:54.12 | nombyte | can't wait till tomorrow :D |
00:54.19 | stickster | The book is better, trust me |
00:54.19 | nombyte | im gonna go play :D |
00:54.26 | nombyte | i don't understand a lot of it tho |
00:54.31 | nombyte | what u said i understand |
00:54.39 | stickster | Find yourself a Python forum friendly to newbies... I don't know any (yet) |
00:55.03 | stickster | I need to find one though |
00:56.25 | stickster | http://mail.python.org/mailman/listinfo/tutor |
00:57.20 | nombyte | ok |
00:58.14 | *** join/#fredlug jsmith (n=jsmith@000-176-826.area3.spcsdns.net) |
00:59.40 | nombyte | woot jared |
01:05.51 | jsmith | Hey all... |
01:05.54 | jsmith | What's up? |
01:15.26 | nombyte | not much |
01:15.40 | nombyte | i downloaded the luks-tools src and im about to add to it |
01:15.46 | nombyte | well try too |
01:15.55 | nombyte | kinda intimidated by the gtk stuff |
14:01.20 | *** join/#fredlug jsmith (n=jsmith@000-176-826.area3.spcsdns.net) |
14:41.07 | *** join/#fredlug quigleymd (n=Matt@24-53-142-5-st.chvlva.adelphia.net) |
19:44.37 | *** join/#fredlug plarsen (n=plarsen@w158.z06400088.was-dc.dsl.cnc.net) |
19:45.18 | jsmith | plarsen: I'd be happy to bring my laptop to the meeting tomorrow |
19:50.14 | plarsen | jsmith: great! I have a vm installed on my laptop now with fc7-test2 .... |
19:50.25 | plarsen | so we should be able to get something going there .... |
19:51.53 | jsmith | Cool. |
20:58.43 | stickster_work | Hi all |
20:58.57 | plarsen | Has someone made a survey to confirm that the higher you get in the organization the more of your brain you lose?? lol |
20:58.59 | plarsen | GRRRR! |
21:06.19 | jsmith | "In most organizations, people rise to the level of their incompetence" |
21:24.29 | plarsen | yeah, the "Peter Principle" ... but why does it have to be SO FRIGGING TRUE!! |
21:31.43 | stickster | Heh... I guess if it weren't no one would have named it |
22:35.27 | *** join/#fredlug nombyte (n=nombyte@sense-sea-MegaSub-1-209.oz.net) |
22:35.56 | nombyte | hey there guys, im at my third job using a webbased irc client... ugh |
22:36.11 | nombyte | stickster: I have a few questions for u |