New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net-p2p/classified-ads: Install example files into correct path #22629
Conversation
Closes: https://bugs.gentoo.org/809464 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Antti Järvinen <antti.jarvinen@katiska.org>
Pull Request assignmentSubmitter: @operatornormal net-p2p/classified-ads: @operatornormal, @gentoo/proxy-maint Linked bugsBugs linked: 809464 In order to force reassignment and/or bug reference scan, please append Docs: Code of Conduct ● Copyright policy (expl.) ● Devmanual ● GitHub PRs ● Proxy-maint guide |
Pull request CI reportReport generated at: 2021-10-18 20:20 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
} | ||
|
||
src_configure() { | ||
eqmake5 examplefiles.path=/usr/share/doc/classified-ads-${PV}-r2/examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eqmake5 examplefiles.path=/usr/share/doc/classified-ads-${PV}-r2/examples | |
eqmake5 examplefiles.path=/usr/share/doc/${PF}/examples |
net-p2p/classified-ads/metadata.xml
Outdated
@@ -1,5 +1,5 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> | |||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Must admit I have no clue where this came from. I don't admit having touched metadata.xml. What I suspect is that I copied metadata.xml together with other files from /var/db/repos/.. into git tree, maybe it had http:// scheme in there. Anyway, this change is now reverted.
@@ -0,0 +1,45 @@ | |||
diff -u -r classified-ads-0.13.orig/classified-ads.pro classified-ads-0.13/classified-ads.pro |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
virtual/libintl" | ||
|
||
DEPEND="${RDEPEND} | ||
sys-devel/gettext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this is not in BDEPEND?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At least gettext is not in @System set so to be safe it might be good idea to keep it. Or is there easy way to check what packages are included in BDEPEND?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BDEPEND has nothing to do with @System; think cross-compiling: if you're using arm machine to build the software for ppc64, do you need gettext for which arch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this took me some time to figure out. GNU gettext is build-time dependency (msgfmt program et al.) but the run-time functions required at runtime (setlocale+dgettext etc.) are found from /lib/libc.so.6 -> no extra run-time dep besides libc is needed. So I'll move gettext to BDEPEND.
Last time I was writing ebuild I had EAPI~6 or something and no BDEPEND. While studying documentation I came across a claim that contents of BDEPEND have something to do with system set and that left me confuzed. Bad internet.
I'll push corrected ebuild shortly..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's new in EAPI 7, see https://devmanual.gentoo.org/general-concepts/dependencies/index.html
Closes: https://bugs.gentoo.org/809464 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Antti Järvinen <antti.jarvinen@katiska.org>
Closes: https://bugs.gentoo.org/809464 Package-Manager: Portage-3.0.22, Repoman-3.0.3
Pull request CI reportReport generated at: 2021-10-19 18:30 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
Closes: https://bugs.gentoo.org/809464 Package-Manager: Portage-3.0.22, Repoman-3.0.3 Signed-off-by: Antti Järvinen <antti.jarvinen@katiska.org>
Pull request CI reportReport generated at: 2021-10-24 12:00 UTC There are existing issues already. Please look into the report to make sure none of them affect the packages in question: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sigh now this is a hard one. We definitely shouldn't patch and hardcode the ebuild revision version into the program, since you may get these massive tree-wide commits such as 8f2ed9e that require a revision bump, essentially breaking the program right?
I wonder if we/upstream can patch the program to just search for examples from e.g. /usr/share/classified-ads
, and not under /usr/share/doc/
at all. Would that work better?
Also we like to install .html docs in /usr/share/doc/${PF}/html
(minor issue)
https://dev.gentoo.org/~ulm/pms/head/pms.html#x1-135003r4
Also if possible, can you rebase your branch against fresh master (the metadata.xml conflict) and squash your commits into a single one? Not stricly needed if you're not familiar with the process, but I had merge conflicts trying to test this.
This is a bit tricky yes ; this will work smoothly as long as upstream releases are released in ebuilds "as is" e.g. "2.0" will search for example files from "../doc/classified-ads-2.0/examples" but as soon as ebuild with version "-2.0-r1" or similar is needed, then a patch is needed also. Simple patch, but anyway. One possibility is to have the program to search example files from any directory /usr/share/doc/classified-ads* .. or is there some magick mechanism to have multiple versions at the same time? There could be incompatible examples files between different versions. /usr/bin/classified-ads can exists only once, I'm wondering why there needs to be multitude of document directories when it is possible to have the documented binary from one version only? I'd also go with the idea that example files are moved away from /usr/share/doc to something more datadir kind of folder and naming of that directory could be static. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fix it for now, but you'll probably get a new report if/when revision is bumped again. You know what to do as upstream ;)
Closes: https://bugs.gentoo.org/809464
Package-Manager: Portage-3.0.22, Repoman-3.0.3
Signed-off-by: Antti Järvinen antti.jarvinen@katiska.org