You are not logged in.

#1 2019-07-07 20:09:39

kindaro
Member
Registered: 2017-01-16
Posts: 19

AUR web interface shows wrong package information.

I just created a new package. Here it is.

And this is how it looks to me.

As you may notice, the information displayed does not make sense.

1. Version should be 0, as it is derived from `git` situation.
2. The description is clearly wrong.

These values actually were in place while I was drafting the PKGBUILD (I used 1oom-git as a prototype), but I amended them before pushing. I even pushed a minor change specifically to see if the information displayed in the web interface would reflect the change. You can see for yourself if you clone the repository.

Offline

#2 2019-07-07 20:13:13

loqs
Member
Registered: 2014-03-06
Posts: 17,325

Re: AUR web interface shows wrong package information.

You did not regenerate .SRCINFO after altering the PKGBUILD.
edit:
AUR_submission_guidelines#Publishing_new_package_content

Last edited by loqs (2019-07-07 20:17:43)

Offline

#3 2019-07-07 20:23:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: AUR web interface shows wrong package information.

The version number looks correct.  You can remove the empty 'conflicts' array when you update it.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2019-07-07 20:39:37

kindaro
Member
Registered: 2017-01-16
Posts: 19

Re: AUR web interface shows wrong package information.

Thank you!

I did not know it is .SRCINFO that the values to be displayed in the web interface come from.

Offline

#5 2019-07-07 21:17:02

loqs
Member
Registered: 2014-03-06
Posts: 17,325

Re: AUR web interface shows wrong package information.

I tried building it in a clean chroot it fails due to missing dependency on libxkbcommon.
Adding that it built but without RELRO due to the Makefile overriding LDFLAGS and without FORTIFY_SOURCE as CFLAGS are also overridden.
Edit:
added libxkbcommon to depends,  added havoc to conflicts,  use sed to modify Makefiles to extend CFLAGS and LDFLAGS rather than override them,  installed MIT based license.

# Maintainer: Ignat Insarov <kindaro@gmail.com>

pkgname=havoc-git
pkgver=r25.f620c9b
pkgrel=1
pkgdesc='A minimal terminal emulator for Wayland on Linux.'
arch=(x86_64)
url='https://github.com/ii8/havoc'
license=('MIT')
depends=('wayland' 'libxkbcommon')
makedepends=('wayland-protocols' 'git')
provides=(havoc)
conflicts=(havoc)
source=('git+https://github.com/ii8/havoc')
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/havoc"
	echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
	cd havoc
	sed -i 's/CFLAGS=/CFLAGS+=/' Makefile tsm/Makefile
	sed -i 's/LDFLAGS=/LDFLAGS += /' Makefile
	make PREFIX='/usr'
}

package() {
	cd havoc
	install -dm 755 "${pkgdir}/usr/share/licenses/${pkgname}"
	install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
	make PREFIX='/usr' DESTDIR="${pkgdir}" install
}

Last edited by loqs (2019-07-07 23:22:31)

Offline

Board footer

Powered by FluxBB