Skip to content
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

dev-libs/tvision: Version bump to 2.2.1.4 #6295

Closed
wants to merge 1 commit into from

Conversation

waebbl
Copy link
Contributor

@waebbl waebbl commented Nov 25, 2017

Copied over from release 2.1.0_pre2-r4
Add some USE flags: X, debug, gpm, static
Update metadata.xml: Add maintainer, longdescription, use

Application to proxy maintaining this package.

Closes: https://bugs.gentoo.org/638794
Package-Manager: Portage-2.3.16, Repoman-2.3.6

Feedback welcome :)

Update: Renamed to tvision-2.2.1.4.ebuild, all patches for this version have also been renamed, include the review changes from @SoapGentoo

@gentoo-repo-qa-bot
Copy link
Collaborator

Pull Request assignment

Areas affected: ebuilds
Packages affected: dev-libs/tvision

dev-libs/tvision: @gentoo/proxy-maint (maintainer needed)

Bugs linked: 638794

@gentoo-repo-qa-bot gentoo-repo-qa-bot added maintainer-needed There is at least one affected package with no maintainer. Review it if you can. assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Nov 25, 2017
@jonasstein
Copy link
Contributor

-r4 in gentoo means a revision https://devmanual.gentoo.org/general-concepts/ebuild-revisions/

@a17r
Copy link
Member

a17r commented Nov 26, 2017

-r4 in gentoo means a revision

Moreover, 'revision bump' would not qualify as a good commit message. Just describe what you are doing. New USE flags: X, debug, gpm, static

While we are at it, why do you add 'static'?

@waebbl
Copy link
Contributor Author

waebbl commented Nov 26, 2017

@jonasstein I haven't read this chapter and was only comparing the naming of the current ebuild with the names of the source file and came to the wrong conclusion that the -r4 was because a -4 in the naming of the source code file. So what would you recommend in naming the ebuild? The source code file is named rhtvision-2.2.1-4.tar.gz. Just use tvision-2.2.1.ebuild and ignore the -4 from the source file?

@a17r The commit message is not named 'revision bump', it's named 'Version bump' and that's what I see a lot when an ebuild gets it's version bumped. The current version is tvision-2.1.0_pre2-r4.ebuild. If you still have objections about the commit message, please let me know.

I was adding the 'static' USE flag for several reasons:

  • In the current ebuild static libraries are getting installed by default.
  • The configure script offers an option to disable building static libraries, so why not give the same offering to the user by adding a USE flag for it? I can set it to default enabled to mimic current behaviour if you wish.
  • IMO static libraries are mostly useless nowadays. Their use case is very limited and mostly related to whether you are building against a library and have heavy debugging to do. In such a case the user can opt in to use the static USE flag and install the static libraries. To my knowledge they don't have any other meaning besides a little easier debugging of apps linked against them, but they usually use up a lot of disk space while actually almost never used.

Why do have objections to adding the static USE flag? In fact, I was wondering why it's not already there. A whole lot of libraries, at least such which are around for a long time, that offer both, static and shared libraries have a static USE flag.

@a17r
Copy link
Member

a17r commented Nov 26, 2017

@a17r The commit message is not named 'revision bump', it's named 'Version bump' and that's what I see a lot when an ebuild gets it's version bumped. The current version is tvision-2.1.0_pre2-r4.ebuild. If you still have objections about the commit message, please let me know.

'Version bumps' are actual upstream bumps where that is of course the relevant news in git summary. Revisions are for ebuild changes and we don't announce those because they are implied.

If upstream chooses tarball versions like 2.2.1-4.tar.gz, make the ebuild 2.2.1.4 and use ${PV/_/.} in SRC_URI.

The configure script offers an option to disable building static libraries, so why not give the same offering to the user by adding a USE flag for it? I can set it to default enabled to mimic current behaviour if you wish.

Is there any use for static-libs? If no one asked for it, just hard-disable the option.

@waebbl
Copy link
Contributor Author

waebbl commented Nov 26, 2017

Is there any use for static-libs? If no one asked for it, just hard-disable the option.

I like this 👍 just don't want to go the radical way in the first step.

S=${WORKDIR}/${PN}

# installed lib links to those
RDEPEND="sys-libs/ncurses:0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:0=

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

x11-libs/libXau
x11-libs/libXdmcp
x11-libs/libSM
x11-libs/libICE )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for multiline clauses, always do

X? (
	foo/bar
	other/pkg
)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


src_prepare() {
default
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this, will happen anyways

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

src_configure() {
./configure --fhs \
--cflags="${CFLAGS} --std=c99" \
--cxxflags="${CXXFLAGS} --std=c++98" \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this really need C++98? Can't you rather fix it not to require C++98 crappiness

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... strangely I no longer get the errors I have been getting before, so I removed those. Thanks for the hint :)
Done

dosym rhtvision /usr/include/tvision

# remove CVS directory which gets copied over
rm -rf "${D}/usr/share/doc/${PN}-${PVR}/html/CVS"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing || die
also use ${ED%/} instead of ${D}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a thought that came up to me: Wouldn't it even be better to remove the CVS directory inside the source tree before calling einstalldocs?


src_install() {
emake DESTDIR="${D}" install \
prefix="\${DESTDIR}/usr" \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefix="\${DESTDIR}/${EPREFIX}/usr" \

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@waebbl
Copy link
Contributor Author

waebbl commented Nov 26, 2017

Build log for current status should be at https://drive.google.com/open?id=1xX_4Ykq2sBk4uIyOINkUKalxGufSXDRI

@waebbl waebbl changed the title dev-libs/tvision: Version bump to 2.2.1-r4 dev-libs/tvision: Version bump to 2.2.1.4 Nov 26, 2017

# installed lib links to those
RDEPEND="sys-libs/ncurses:0=
X? ( x11-libs/libX11
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the first line as well (the indentation looks weird otherwise)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done
I also changed the ${PN}-${PVR} in src_install rm command to ${P}, it's no longer necessary.

@waebbl waebbl force-pushed the tvision-bump branch 2 times, most recently from b2e1570 to 0814223 Compare November 26, 2017 15:22
src_install() {
emake DESTDIR="${D}" install \
prefix="\${DESTDIR}/${EPREFIX}/usr" \
libdir="\$(prefix)/$(get_libdir)" || die
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

die not necessary

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the die.

)

src_configure() {
./configure --fhs \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't you use econf ?

Copy link
Contributor Author

@waebbl waebbl Nov 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think so, it's no autoconf configure script, but an ancient perl based configure. It's copied over from the current ebuild, so I was guessing this doesn't work.
#!/bin/sh
perl config.pl "$@"
is the contents of the configure file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh then you are right :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps you should leave comment about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I'll do it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added comment about configure script, please review

@waebbl waebbl force-pushed the tvision-bump branch 4 times, most recently from 2a745d2 to 5ef7814 Compare November 27, 2017 17:47
@gentoo-repo-qa-bot
Copy link
Collaborator

👍 All QA issues have been fixed!

Copied over from release 2.1.0_pre2-r4
Add some USE flags: X, debug, gpm
Update metadata.xml: Add maintainer, longdescription, use

Application to proxy maintaining this package.

Closes: https://bugs.gentoo.org/638794
Package-Manager: Portage-2.3.16, Repoman-2.3.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. maintainer-needed There is at least one affected package with no maintainer. Review it if you can.
Projects
None yet
7 participants