public inbox for gentoo-proxy-maint@lists.gentoo.org
 help / color / mirror / Atom feed
From: Gokturk Yuksek <gokturk@gentoo.org>
To: james <garftd@verizon.net>, gentoo-proxy-maint@lists.gentoo.org
Subject: Re: [gentoo-proxy-maint] Packages up for grabs
Date: Tue, 07 Mar 2017 03:34:00 +0000	[thread overview]
Message-ID: <c41ac2e7-5d01-22ff-6c5d-db0e5f77975d@gentoo.org> (raw)
In-Reply-To: <dc12d8f6-9dd8-bdbd-5813-bb368af4893b@verizon.net>


[-- Attachment #1.1: Type: text/plain, Size: 4437 bytes --]

james:
>>>> PS, where is the latest draft of the devmanual and related
>>>> documents, related to EAPI-6.
> Between proxy-maint, mentors, gentoostats, GSoC, graduate school and
> real life issues, devmanual doesn't get the attention it deserves
> unfortunately. I'll try to deprioritize proxy-maint and mentors in the
> coming months to pay more attention to the others hopefully.
> 
>> No problem. Is there a suggested reading list to get current with
>> proxy-maint, gentoo-github basics and other useful docs for proxy work?
> 
There's a Gentoo Github Guide here:
  https://wiki.gentoo.org/wiki/Gentoo_Github

Let's try to be more goal oriented here and try to establish a
development environment first. If you want to learn how to utilize
Github for pull requests:

- Login to your account, browse to 'https://github.com/gentoo/gentoo'
and click the 'Fork' button on the upper right
- If you haven't added your SSH key to Github, do so before proceeding:
https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
- Clicking the fork button should redirect you to the page of your fork
of the repository. Click the 'Clone or download' on the screen, copy the
URI (should look something like 'git@github.com:gktrk/gentoo.git').
- Clone your fork to an appropriate directory in the local machine (I
use "~/stuff/gentoo") by typing 'git clone <URI> <DIR>' where <URI> is
the URI you obtained from the previous step and <DIR> is the destination
directory. For example "git clone git@github.com:gktrk/gentoo.git
~/stuff/gentoo".

Looks like radeontop has a new release (v1.0) according to:
https://github.com/clbr/radeontop/releases. Now let's do a dummy
practice with this fresh dev environment:

- make sure you have app-portage/repoman installed
- cd into the radeontop package directory in the repo:
    $ cd ~/stuff/gentoo/x11-apps/radeontop
- For simplicity, copy the 0.9 ebuild as 1.0:
    $ cp radeontop-0.9.ebuild radeontop-1.0.ebuild
  It needs more work but we're going to ignore that for now
- Regenerate the manifest:
    $ repoman manifest
  It will download the tarball for the version 1.0 and record its checksum
- Let's do a bare-bone QA check:
    $ repoman full
  Uh-oh, it spits 6 'dependency.missingslot' and 1 'ebuild.notadded'
warnings for me. Let's worry about fixing them later.
- Now let's do a runtest, it'd be nice to know if this thing works out
of the box:
    $ ebuild radeontop-1.0.ebuild install
  This command will go through all the ebuild phases up until
src_install() in the correct order: pkg_pretend() -> pkg_setup() ->
src_unpack() -> src_prepare() -> src_configure() -> src_compile() ->
src_test() -> src_install().
- Let's eyeball the installation image:
    $ find /var/tmp/portage/x11-apps/radeontop-1.0/image/
  I see 'radeontop' under sbin, there's a so-file in lib etc.
- It compiles fine for me, let's perform a clean:
    $ ebuild radeontop-1.0.ebuild clean
  It will remove all the stuff under '/var/tmp/portage/x11-apps/radeontop'
- Let's commit this. There are two ways to go about it. We prefer the
following:
    $ git add radeontop-1.0.ebuild
    $ repoman commit
  If you don't have a PGP key set, repoman will refuse to commit. If you
don't know how to set it up, you can commit the following way:
    $ git add radeontop-1.0.ebuild Manifest
    $ git commit
  Either way, it will pop-up an editor for you. Make sure the first line
looks like the following:
    x11-apps/radeontop: bump to 1.0 -- DO NOT MERGE, TEST PURPOSES ONLY
- Let's push our changes on our fork back to github:
    $ git push
- We're done with the command line, browse to the page of our fork on
github. You should be able to see your commit on that page. Click
'Compare' that is under the green 'Clone or download' button.
- Now you are looking at the total changes you've made. Click the green
'Create pull request' button on the screen.
- This will create you a template for the pull request and fill in the
title for you. In the body where it says 'Leave a comment', type the
following:
    Not ready for merge yet. Pinging @gktrk.
- Click the button 'Create pull request'.

Once you get to this stage, I'll help you out with the rest. This setup
is far from being optimal and we will need to change many other things
in the future. For now, it should give you some of the basics.

--
gokturk


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

  reply	other threads:[~2017-03-07  3:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-06  2:43 [gentoo-proxy-maint] Packages up for grabs Gokturk Yuksek
2017-03-06 19:10 ` james
2017-03-06 20:07   ` Gokturk Yuksek
2017-03-06 20:35     ` james
2017-03-07  3:34       ` Gokturk Yuksek [this message]
2017-03-07 16:27         ` james
2017-03-07  0:39   ` Brendan Horan
2017-03-07  3:39     ` Gokturk Yuksek
  -- strict thread matches above, loose matches on Subject: below --
2017-07-21  9:43 Amy Liffey
2017-04-10 17:37 Gokturk Yuksek
2017-03-08  7:41 Gokturk Yuksek
2016-12-29 17:47 Gokturk Yuksek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c41ac2e7-5d01-22ff-6c5d-db0e5f77975d@gentoo.org \
    --to=gokturk@gentoo.org \
    --cc=garftd@verizon.net \
    --cc=gentoo-proxy-maint@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox