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

New package: amule-0.0.20201210 #26999

Closed
wants to merge 9,740 commits into from
Closed

New package: amule-0.0.20201210 #26999

wants to merge 9,740 commits into from

Conversation

hazayan
Copy link

@hazayan hazayan commented Dec 6, 2020

No description provided.

@hazayan
Copy link
Author

hazayan commented Dec 6, 2020

Any pointers on the ircnotify check failure?

@Duncaen
Copy link
Member

Duncaen commented Dec 6, 2020

We generally don't allow untagged releases, fetching with git instead of tar balls and limiting the package to x86_64 or modifiying the root of the masterdir i.e. the symlink you are creating in do_build.
This should also use the gnu-configure build-style instead of using a single do_build.

The irc notification doesn't matter.

@hazayan
Copy link
Author

hazayan commented Dec 6, 2020

We generally don't allow untagged releases, fetching with git instead of tar balls and limiting the package to x86_64 or modifiying the root of the masterdir i.e. the symlink you are creating in do_build.

The release is tagged. The git checkout actually points to a tag. It's just that it doesn't produce proper release tarballs.

@Duncaen
Copy link
Member

Duncaen commented Dec 6, 2020

Those tags come from converting svn to git, they are generated for every single commit, there are not 8 "releases" two months ago on a single day.

@hazayan
Copy link
Author

hazayan commented Dec 6, 2020

Those tags come from converting svn to git, they are generated for every single commit, there are not 8 "releases" two months ago on a single day.

Well, what's the proper procedure then, if the upstream project lacks proper release ?

@fosslinux
Copy link
Contributor

Ask upstream for releases.

revision=1
wrksrc=amule-master
build_style=gnu-configure
configure_args="--prefix=/usr --mandir=/usr/share/man
Copy link
Member

Choose a reason for hiding this comment

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

--prefix and --mandir are set by default for the gnu-configure build-style.

Please indent inside of variables with just one space instead of tab.

Copy link
Author

Choose a reason for hiding this comment

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

Fixed

--enable-fileview --with-boost --with-wx-config=/usr/bin/wx-config-gtk3"
hostmakedepends="tar autoconf automake gettext gettext-devel wxWidgets-gtk3"
makedepends="boost-devel zlib-devel wxWidgets-gtk3-devel gd-devel geoip-devel crypto++-devel"
depends="wxWidgets-gtk3-devel gd-devel geoip-devel crypto++-devel"
Copy link
Member

Choose a reason for hiding this comment

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

Why does this depend on -devel packages, xbps-src will usually look at the resulting binaries and automatically add dependencies by looking at linked shared libraries.
If a dependency is not automatically detected you need to add them, but generally not the -devel ones.

https://github.com/void-linux/void-packages/pull/26999/checks?check_run_id=1514556177#step:10:1156

Copy link
Author

Choose a reason for hiding this comment

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

Fixed

--enable-alcc --enable-webserver --disable-debug
--enable-optimize --enable-geoip --disable-upnp
--enable-fileview --with-boost --with-wx-config=/usr/bin/wx-config-gtk3"
hostmakedepends="tar autoconf automake gettext gettext-devel wxWidgets-gtk3"
Copy link
Member

Choose a reason for hiding this comment

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

Does it actually need tar (bsdtar is used by default to extract distfiles)?

vbin src/amule
vbin src/amuled
vbin src/amulecmd
vbin src/amulegui
Copy link
Member

Choose a reason for hiding this comment

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

Any reason to manually install the binaries instead of using the default make install target?

maintainer="hazayan <hazayan@hotmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/amule-project/amule"
distfiles="https://github.com/amule-project/amule/archive/master.tar.gz"
Copy link
Member

Choose a reason for hiding this comment

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

master is wrong, if you really need to use unreleased tarballs, use a git revision/hash.
If you are using the master tarball, the checksum is going to break as soon as they add new
commits to master and we won't be able to rebuild the package without updating it.

maintainer="hazayan <hazayan@hotmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/amule-project/amule"
_commit="9fd038f8208f085dc7e0b52b73b2e18b6536437b"
Copy link
Member

Choose a reason for hiding this comment

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

put that below revision so it's near the meta data you'd change on an update (grep for _githash in the repo)

Copy link
Author

Choose a reason for hiding this comment

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

Fixed

}

do_install() {
make install DESTDIR="${DESTDIR}"
Copy link
Member

Choose a reason for hiding this comment

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

this is the default

Copy link
Author

Choose a reason for hiding this comment

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

Without that, the build fails because of empty destdir

Copy link
Member

Choose a reason for hiding this comment

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

Probably some other unrelated issue, removing do_install and using the default one should be exactly the same.

Copy link
Author

Choose a reason for hiding this comment

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

Fixed.

@Duncaen
Copy link
Member

Duncaen commented Dec 9, 2020

Also if you invent a version, use some thing like 0.0.20201210 so that in case there is a real release, the version is going to be greater.

@hazayan hazayan changed the title New package: amule-11066 New package: amule-0.0.20201210 Dec 9, 2020
@ericonr ericonr added the new-package This PR adds a new package label Dec 20, 2020
@Piraty
Copy link
Member

Piraty commented Mar 4, 2021

that branch needs a fix

@Piraty
Copy link
Member

Piraty commented Jun 14, 2021

@hazayan rebase your commit onto upstream/master

@github-actions
Copy link

github-actions bot commented May 1, 2022

Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.

@github-actions github-actions bot added the Stale label May 1, 2022
@github-actions github-actions bot closed this May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-package This PR adds a new package Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet