Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555724 - net-p2p/classified-ads-0.07_p1 version bump
Summary: net-p2p/classified-ads-0.07_p1 version bump
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Antti Järvinen
URL: http://katiska.org/classified_ads/
Whiteboard:
Keywords:
Depends on:
Blocks: 555560
  Show dependency tree
 
Reported: 2015-07-23 20:55 UTC by Antti Järvinen
Modified: 2015-08-01 13:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
diff -u between previous version and the updated version (classified-ads-0.07_p1.diff,970 bytes, patch)
2015-07-23 20:57 UTC, Antti Järvinen
Details | Diff
Updated ebuild (classified-ads-0.07_p1.ebuild,2.26 KB, text/plain)
2015-07-23 20:58 UTC, Antti Järvinen
Details
Ebuild diff -u between 0.07 and proposed 0.07_p20150728 (classified-ads-0.07_p20150728.diff,1.81 KB, patch)
2015-07-29 19:39 UTC, Antti Järvinen
Details | Diff
Updated ebuild (classified-ads-0.07_p20150728.ebuild,2.20 KB, text/plain)
2015-07-29 19:40 UTC, Antti Järvinen
Details
Ebuild diff -u between 0.07 and proposed 0.07_p20150728 (classified-ads-0.07_p20150728.diff,2.37 KB, patch)
2015-07-30 20:49 UTC, Antti Järvinen
Details | Diff
Updated ebuild (classified-ads-0.07_p20150728.ebuild,2.05 KB, text/plain)
2015-07-30 20:50 UTC, Antti Järvinen
Details
Ebuild diff -u between 0.07 and proposed 0.07_p20150728 (classified-ads-0.07_p20150728.diff,2.56 KB, patch)
2015-07-31 20:51 UTC, Antti Järvinen
Details | Diff
Updated ebuild (classified-ads-0.07_p20150728.ebuild,2.05 KB, text/plain)
2015-07-31 20:52 UTC, Antti Järvinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Järvinen 2015-07-23 20:55:56 UTC
Here is a small bugfix release of classified ads. This is for addressing bug #555560 where software stops compiling after library miniupnpc version update. The problem had to be fixed upstream so this includes an update from upstream sources. 

Reproducible: Always
Comment 1 Antti Järvinen 2015-07-23 20:57:15 UTC
Created attachment 407478 [details, diff]
diff -u between previous version and the updated version
Comment 2 Antti Järvinen 2015-07-23 20:58:01 UTC
Created attachment 407480 [details]
Updated ebuild
Comment 3 Manuel Rüger (RETIRED) gentoo-dev 2015-07-25 10:58:56 UTC
1) Please use _pYYYYMMDD while YYYYMMDD is dated to the last commit that is included in your version

2) Use COMMIT_ID as a variable to store the commit hash and use this in SRC_URI

3) You might want to use vcs-snapshot.eclass to avoid fiddling with $S.
Comment 4 Manuel Rüger (RETIRED) gentoo-dev 2015-07-25 11:04:06 UTC
4) Please replace make with emake in src_test.
Comment 5 Antti Järvinen 2015-07-29 19:39:51 UTC
Created attachment 407952 [details, diff]
Ebuild diff -u between 0.07 and proposed 0.07_p20150728

Hello Manuel, thank you for you comments. Please find attached diff
that has following modifications

> 1) Please use _pYYYYMMDD while YYYYMMDD is dated 
> to the last commit that is included in your version

Ok.

> 2) Use COMMIT_ID as a variable to store the commit hash 
> and use this in SRC_URI

Ok. 

> 3) You might want to use vcs-snapshot.eclass to avoid fiddling with $S.

Ok. 

> 4) Please replace make with emake in src_test.

Ok, test-cases are all passing ;what is the difference btw
between emake and make, they seem to behave in similar manner..
Comment 6 Antti Järvinen 2015-07-29 19:40:40 UTC
Created attachment 407954 [details]
Updated ebuild
Comment 7 Manuel Rüger (RETIRED) gentoo-dev 2015-07-30 11:02:46 UTC
> > 4) Please replace make with emake in src_test.
> 
> Ok, test-cases are all passing ;what is the difference btw
> between emake and make, they seem to behave in similar manner..

emake is a wrapper around make and respect settings in make.conf like MAKE_OPTS. 
It also calls "|| die" internally if something goes wrong.
Comment 8 Manuel Rüger (RETIRED) gentoo-dev 2015-07-30 11:05:17 UTC
You can simplify the ebuild if RDEPEND is a subset of DEPEND by setting RDEPEND first and then add DEPEND="${RDEPEND} otherdeps"

If both only share a small set but don't overlap completely, you can also use another variable (usually CDEPEND (C for common)) and add RDEPEND="${CDEPEND} otherdeps" DEPEND="${CDEPEND} otherdeps2"
Comment 9 Antti Järvinen 2015-07-30 20:49:37 UTC
Created attachment 408018 [details, diff]
Ebuild diff -u between 0.07 and proposed 0.07_p20150728

All right, that RDEPEND-suggestion was actually a good one, please find attached ebuild (diff) implementing the change.
Comment 10 Antti Järvinen 2015-07-30 20:50:22 UTC
Created attachment 408020 [details]
Updated ebuild
Comment 11 Ian Delaney (RETIRED) gentoo-dev 2015-07-31 05:12:28 UTC
By convention, .tar.gz\ and raw=true\ should be
               .tar.gz \ and raw=true \ .

SRC_URI="https://github.com/operatornormal/classified-ads/archive/${COMMIT_ID}.tar.gz\
 -> ${P}.tar.gz \

I would tend to put on one line considering it is already reduced, both work.
The 2nd is so long I'd leave it split.

The _pYYYYMMDD is the convention syntax for post release snapshots. Personally I'd locate the COMMIT_ID the line prior to DESCRIPTION, again convention.

Note:

RDEPEND="dev-libs/openssl:0
	dev-libs/qjson
then
	test? (	dev-libs/libgcrypt:0
		dev-qt/qttest:4

By convention, additions after the first dep are indented with 2 tab spaces, as in the test? ( ). See you did it with if use doc. It's style but you may as well set that with the others.

Seeing mrueg has more time now and gave you most tips, let's let you make those minor edits
Comment 12 Ian Delaney (RETIRED) gentoo-dev 2015-07-31 05:13:08 UTC
By convention, .tar.gz\ and raw=true\ should be
               .tar.gz \ and raw=true \ .

SRC_URI="https://github.com/operatornormal/classified-ads/archive/${COMMIT_ID}.tar.gz\
 -> ${P}.tar.gz \

I would tend to put on one line considering it is already reduced, both work.
The 2nd is so long I'd leave it split.

The _pYYYYMMDD is the convention syntax for post release snapshots. Personally I'd locate the COMMIT_ID the line prior to DESCRIPTION, again convention.

Note:

RDEPEND="dev-libs/openssl:0
	dev-libs/qjson
then
	test? (	dev-libs/libgcrypt:0
		dev-qt/qttest:4

By convention, additions after the first dep are indented with 2 tab spaces, as in the test? ( ). See you did it with if use doc. It's style but you may as well set that with the others.

Seeing mrueg has more time now and gave you most tips, let's let you make those minor edits
Comment 13 Antti Järvinen 2015-07-31 20:51:35 UTC
Created attachment 408074 [details, diff]
Ebuild diff -u between 0.07 and proposed 0.07_p20150728

> By convention, .tar.gz\ and raw=true\ should be
>                .tar.gz \ and raw=true \ .
> 
> SRC_URI="https://github.com/operatornormal/classified-ads/archive/${COMMIT_ID}.tar.gz\
>  -> ${P}.tar.gz \
> 
> I would tend to put on one line considering it is already reduced, both work.
> The 2nd is so long I'd leave it split.

The first source is now in one line. Is it btw normal that while
fetching it first tries to download from distfiles.gentoo.org and resort to 
github URL only after having received 404 from distfiles.g.o?

> Personally I'd locate the COMMIT_ID the line prior to DESCRIPTION, 
> again convention.

Order now changed. 

> By convention, additions after the first dep are indented with 2 
> tab spaces, as in the test? ( ). See you did it with if use doc. 
> It's style but you may as well set that with the others.

Indentation is now 2 tabs for all deps.
Comment 14 Antti Järvinen 2015-07-31 20:52:11 UTC
Created attachment 408076 [details]
Updated ebuild
Comment 15 Ian Delaney (RETIRED) gentoo-dev 2015-08-01 13:22:46 UTC
I have edited the syntax amd order of deps slightly to certain norms.  It's too fiddly to explain here, wait until irc.  The content is right and the ebuild 'works' so it's merely 'form addressed here.


*classified-ads-0.07_p20150728 (01 Aug 2015)

  01 Aug 2015; Ian Delaney <idella4@gentoo.org>
  +classified-ads-0.07_p20150728.ebuild:
  bump; a snapshot of a post release to address a version update of library
  miniupnpc wrt bugs #555724 & #555560. SRC_URI adjusted accordingly, also
  improvements to syntax and style