You are not logged in.

#1 2014-08-25 15:55:10

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

[solved]AURINFO: architecture depended dependencies aren't shown anym.

Hello,

today, I was noticed by the maintainer of https://aur.archlinux.org/packages/bin32-jre/ which my package https://aur.archlinux.org/packages/activinspire/ depends on for the 64 Bit version to update my package because of changes in bin32-jre.

So far, so good. According to https://wiki.archlinux.org/index.php/AU … g_packages , I used the new mkaurball in order to create a .AURINFO file.
But now, architecture depended dependencies aren't shown anymore at the aur webpage: https://aur.archlinux.org/packages/activinspire/
Which is bad, because the maintainer of bin32-jre only informed me, because on his webpage was shown that my package depends on his.

So what is the cleanest way to keep such dependencies on the AUR page?

The part of my PKGBUILD regarding this is:

if [ "$CARCH" = "i686" ]; then
  _arch='i386'
  _md5sum='ee5be21afd73cbcc8ab42fc18a3e9a4a'
  depends=('qt4' 'gstreamer0.10-good-plugins' 'libjpeg6' 'jre7-openjdk')
elif [ "$CARCH" = "x86_64" ]; then
  _arch='amd64'
  _md5sum='5f4c9028d4813f0c394bb9b2258169ce'
  depends=('qt4' 'gstreamer0.10-good-plugins' 'bin32-jre' 'lib32-libjpeg' 'lib32-libjpeg6' 'lib32-libxmu')
fi

Whole PKGBUILD: https://aur.archlinux.org/packages/ac/a … e/PKGBUILD

Thanks!

Last edited by Carl Karl (2014-08-26 19:49:55)

Offline

#2 2014-08-25 16:00:31

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,089
Website

Re: [solved]AURINFO: architecture depended dependencies aren't shown anym.

I don't believe this will help with the initial problem, but as a stylistic decision, you should probably separate out the universal depends. E.g.,

depends=('qt4' 'gstreamer0.10-good-plugins')

if [[ "$CARCH" == "i686" ]]; then
    depends+=('libjpeg6' 'jre7-openjdk')
else
    …

All the best,

-HG

Offline

#3 2014-08-26 01:57:29

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved]AURINFO: architecture depended dependencies aren't shown anym.

Carl Karl wrote:

But now, architecture depended dependencies aren't shown anymore at the aur webpage: https://aur.archlinux.org/packages/activinspire/
Which is bad, because the maintainer of bin32-jre only informed me, because on his webpage was shown that my package depends on his.

Anymore? I don't get it -- architecture-specific attributes have never displayed on the AUR.

However...

Coming Soon™ to mkaurball: https://github.com/falconindy/pkgbuild- … dd2646b8a0
Coming Soon™ to the AUR: https://projects.archlinux.org/aur.git/ … 99753268b9
Coming Soon™ to makepkg: https://projects.archlinux.org/pacman.g … 3ffb1163de

And an example of how architecture-specific attrs will look: https://aur-dev.archlinux.org/packages/wine/

Offline

#4 2014-08-26 04:21:41

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,089
Website

Re: [solved]AURINFO: architecture depended dependencies aren't shown anym.

falconindy wrote:

awesome things

To the "Ooh, nice!" thread!

All the best,

-HG

Offline

#5 2014-08-26 06:11:14

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

Re: [solved]AURINFO: architecture depended dependencies aren't shown anym.

@HalosGhost:
Thanks, that looks better indeed, I'll include that.

@falconindy:
I swear, that Info WAS included before. My package was included in the "required by" section of https://aur.archlinux.org/packages/bin32-jre/ which is now empty. See the update-warning-comment of the maintainer josephgbr of bin32-jre in my package https://aur.archlinux.org/packages/activinspire/ , there is nearly no way he knew he should tell me. (He almost surely doesn't use my package, as you need expensive "activeboard" hardware to use it in a useful way. [I'm a teacher, we have these things in school...])
But thanks for reporting the good news!

@all:
As I like to be informed in the future too about such updates in packages my package depends on (as josephgbr did yesterday), I think about adding those dependencies manually in the .AURINFO file. Is there a reason why I shouldn't do that?

Offline

#6 2014-08-26 19:49:16

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

Re: [solved]AURINFO: architecture depended dependencies aren't shown anym.

OK, manually adding dependencies doesn't seem to cause problems. Solved.

Offline

#7 2014-08-27 12:42:57

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved]AURINFO: architecture depended dependencies aren't shown anym.

Carl Karl wrote:

OK, manually adding dependencies doesn't seem to cause problems. Solved.

But it does cause problems. Your depends are only accurate for x86_64 consumers, not i686.

Offline

#8 2014-08-27 14:03:54

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

Re: [solved]AURINFO: architecture depended dependencies aren't shown anym.

@falconindy:
But that's only on the AUR site, not if you makepg with the PKGBUILD. There, the architecture separation works flawlessly regarding dependencies.

Offline

#9 2014-08-27 19:32:35

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [solved]AURINFO: architecture depended dependencies aren't shown anym.

Carl Karl wrote:

But that's only on the AUR site, not if you makepg with the PKGBUILD. There, the architecture separation works flawlessly regarding dependencies.

Yes, I understand that. I still think it's a lousy idea (and also note there's other consumers of this data, namely the RPC interface). You could just as easily "fix" this by rearranging your PKGBUILD. You probably had something previously like:

if [[ $CARCH == i686 ]]; then
  depends=(foo bar)
else
  depends=(lib32-foo lib32-bar)
fi

...and since CARCH isn't defined at the time mkaurball runs, you end up with the depends in the else branch. Until AURINFO (and the AUR) support architecture specific attributes, you can't possibly craft an AURINFO which is accurate. Why go out of your way to edit the AURINFO?

Last edited by falconindy (2014-08-27 19:32:52)

Offline

#10 2014-08-30 08:05:15

Carl Karl
Member
Registered: 2013-06-12
Posts: 231

Re: [solved]AURINFO: architecture depended dependencies aren't shown anym.

Thanks, that also leads to acceptable dependencies via mkaurball. (Although now i686-only dependencies are not shown, bad that's not so bad I suppose.)
AUR package updated.

Last edited by Carl Karl (2014-08-30 08:05:44)

Offline

Board footer

Powered by FluxBB