You are not logged in.

#26 2013-09-17 22:41:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] PKGBUILDS's 'provides' entries duplicated in 'conflicts'

You can still install by specifying the repo e.g.

$ sudo pacman -S extra/firefox

I'm watching https://bugs.archlinux.org/task/28826 but never bother to check if this is true.

Is it because firefox doesn't use

provides = ('firefox')

?

Edit:

Gradient wrote:

EDIT : My mistake... I installed pacman-mirrorlist-libre and arch servers are not listed

Can you please check with both mirrorlists enabled?

Last edited by karol (2013-09-17 22:42:50)

Offline

#27 2013-09-17 22:51:05

Gradient
Member
Registered: 2013-05-19
Posts: 101

Re: [Solved] PKGBUILDS's 'provides' entries duplicated in 'conflicts'

With both repos enabled, I get :

$ sudo pacman -S cron   
:: There are 2 providers available for cron:
:: Repository core
   1) cronie
:: Repository community
   2) fcron

Enter a number (default=1):

and

$ sudo pacman -S firefox
resolving dependencies...
looking for inter-conflicts...

Packages (1): firefox-23.0.1-1

Total Installed Size:   56.13 MiB

:: Proceed with installation? [Y/n]

Now, it only suggest the real firefox. This respects the link you provided.

Last edited by Gradient (2013-09-17 23:01:49)

Offline

#28 2013-09-17 22:57:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] PKGBUILDS's 'provides' entries duplicated in 'conflicts'

Gradient wrote:

Now, it only suggest the really firefox. This respects the link you provided.

Good, because I was getting really confused ;P

Offline

#29 2013-09-18 00:43:14

Gradient
Member
Registered: 2013-05-19
Posts: 101

Re: [Solved] PKGBUILDS's 'provides' entries duplicated in 'conflicts'

Thank you for your help! Everything is clear now.

One last question :

In the PKGBUILDS of 'linux-libre', there is :

pkgbase=linux-libre
_kernelname=${pkgbase#linux-libre}
  replaces=("kernel26${_kernelname}" "kernel26-libre${_kernelname}" "linux${_kernelname}")

I don't understand the second line. What is the value of '_kernelname'?

Offline

#30 2013-09-18 00:47:54

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

Re: [Solved] PKGBUILDS's 'provides' entries duplicated in 'conflicts'

That's just bash string manipulation, try it yourself:

$ export TEMP=linux-libre
$ echo kernel26${TEMP#linux-libre}
kernel26
$ export TEMP=linux-libre-ck
$ echo kernel26${TEMP#linux-libre}
kernel26-ck

Last edited by Trilby (2013-09-18 00:48:26)


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

Offline

#31 2013-09-18 00:49:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] PKGBUILDS's 'provides' entries duplicated in 'conflicts'

It's leading substitution:

I=foobar
echo ${I/oo/aa} #replacement
faabar
echo ${I:1:2}   #substring
oo
echo ${I%bar}   #trailing substitution
foo
echo ${I#foo}   #leading substitution
bar

The _kernelname string seems to be empty:

$ export TEMP=linux-libre
$ echo kernel26${TEMP#linux-libre}
kernel26
$ echo ${TEMP#linux-libre}
$ 

Last edited by karol (2013-09-18 00:55:17)

Offline

#32 2013-09-18 01:04:25

Gradient
Member
Registered: 2013-05-19
Posts: 101

Re: [Solved] PKGBUILDS's 'provides' entries duplicated in 'conflicts'

Thank you, it is the expected result. It means 'linux-libre' actually replaces 'linux'.

Last edited by Gradient (2013-09-18 01:07:03)

Offline

Board footer

Powered by FluxBB