You are not logged in.

#1 2006-04-05 14:04:30

CyRiX_BlAcK
Member
Registered: 2006-03-02
Posts: 35

pacworld.py to fix xorg, need link?!

Anyone got a link that works to download this program, coz the link here:

http://bbs.archlinux.org/viewtopic.php? … c&start=15

Dont work...

Offline

#2 2006-04-05 14:14:29

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: pacworld.py to fix xorg, need link?!

pacworld.py will only list missing libs and does nothing to install them
you can acheive the same with any of the gui front ends for pacman.
install one and install all x related package you can find except the drivers that you know you dont need...

Offline

#3 2006-04-05 14:29:22

CyRiX_BlAcK
Member
Registered: 2006-03-02
Posts: 35

Re: pacworld.py to fix xorg, need link?!

once I have it, when I run it will it echo out the missing files i need or does it output them to a file?

Offline

#4 2006-04-05 14:31:24

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: pacworld.py to fix xorg, need link?!

it just echo's them it I'm not at my archbox right now otherwise I would post a link for you but install jacman then scroll through and select the needed pkgs..
lots of the need packages have proto in them..

Offline

#5 2006-04-06 07:36:12

ibrahim
Member
Registered: 2006-02-18
Posts: 53

Re: pacworld.py to fix xorg, need link?!

mpie wrote:

pacworld.py will only list missing libs and does nothing to install them

Actually it can automatically install them for you if you want it to.

Here's the source cyrix

pacworld.py

#!/usr/bin/env python

__author__    = 'L0cutus'
__email__     = 'never@e-kki.it'
__program__   = 'PacWorld'
__version__   = '0.1'
__date__      = 'Date: 22/02/2006'
__copyright__ = 'Copyright (c) 2006 L0cutus'
__license__   = 'GPL'


import os
import sys
import string

if os.path.isfile("pacworld.not"):
  not_input = open("pacworld.not", "r")
  N=not_input.readlines()

def test(file, pkg):
  lfinput = open(file, "r")
  lL=lfinput.readlines()  
  tst=False
  for lcmd in range(len(lL)):
    a = lL[lcmd].split()[1]
    if not (os.path.isfile(a) or os.path.isdir(a) or os.path.islink(a)):
      print "<< is missing >> [" + a + "]"
      tst=True
  return tst

def test1(pkg, np):
  tst=True
  for lcmd in range(len(np)):
    if pkg==string.strip(np[lcmd]):
      tst=False
  return tst

os.system("pacman -Q>pacworld.tmp")
finput = open("pacworld.tmp", "r")
L=finput.readlines()
for cmd in range(len(L)):
  a = L[cmd].split()[0]
  print "processing..." + a
  os.system("pacman -Ql " + a + " >" + a + ".tmp")
  if test(a + ".tmp", a):
    if len(sys.argv)>1 and string.lower(sys.argv[1]) == "-e":
      if N and test1(a, N):
        os.system("pacman -S " + L[cmd].split()[0])
        print "<< Fixed: " + a + " >>"
      else:
        print "<< Skipped[pacworld.not]: " + a + " >>"
    else:
      print "<< run: pacman -S " + a + " >>"
  os.remove(a + ".tmp")
os.remove("pacworld.tmp")

pacworld.not

nvidia
cups
apache
grub
lilo
nforce

Offline

#6 2006-04-06 08:04:10

CyRiX_BlAcK
Member
Registered: 2006-03-02
Posts: 35

Re: pacworld.py to fix xorg, need link?!

wow that seemed to fix all my xorg problems, and my wee laptops got 50% higher fps on glxgers. thanks loads!

this should be in AUR or something as a repair program for xorg

Offline

#7 2006-04-17 02:25:35

Ryochan7
Member
From: Peoria, IL
Registered: 2006-01-02
Posts: 45
Website

Re: pacworld.py to fix xorg, need link?!

It is a bit late but here is a working link to the page for pacworld.

http://www.zamprogno.it/dokuwiki/doku.p … o_pacworld

Here is a link to the program.

http://www.zamprogno.it/files/pacworld.tar.gz

It was already mentioned but pacworld can install the packages that are broken. However, the way to use the program to install the packages wasn't directly mentioned here even though you obviously figured it out. For those who happen to stumble onto this thread, here is how to run the program so that it will reinstall any broken packages. Cd into the directory that you have pacworld stored and run "python pacworld.py -e" (without the quotes) as root.

Also, Cerebral mentioned in the other thread that pacworld doesn't handle file locations that have spaces. It was a one line fix but I fixed that problem. This is mainly a problem with stepmania and stepmania-extras. Here is the modified version of pacworld.

pacworld.py

#!/usr/bin/env python

__author__    = 'L0cutus'
__email__     = 'never@e-kki.it'
__program__   = 'PacWorld'
__version__   = '0.1'
__date__      = 'Date: 22/02/2006'
__copyright__ = 'Copyright (c) 2006 L0cutus'
__license__   = 'GPL'


import os
import sys
import string

if os.path.isfile("pacworld.not"):
  not_input = open("pacworld.not", "r")
  N=not_input.readlines()

def test(file, pkg):
  lfinput = open(file, "r")
  lL=lfinput.readlines()  
  tst=False
  for lcmd in range(len(lL)):
    a = lL[lcmd].splitlines()[0].replace(pkg + " ","",1)
    if not (os.path.isfile(a) or os.path.isdir(a) or os.path.islink(a)):
      print "<<is>> [" + a + "]"
      tst=True
  return tst

def test1(pkg, np):
  tst=True
  for lcmd in range(len(np)):
    if pkg==string.strip(np[lcmd]):
      tst=False
  return tst

os.system("pacman -Q>pacworld.tmp")
finput = open("pacworld.tmp", "r")
L=finput.readlines()
for cmd in range(len(L)):
  a = L[cmd].split()[0]
  print "processing..." + a
  os.system("pacman -Ql " + a + " >" + a + ".tmp")
  if test(a + ".tmp", a):
    if len(sys.argv)>1 and string.lower(sys.argv[1]) == "-e":
      if N and test1(a, N):
        os.system("pacman -S " + L[cmd].split()[0])
        print "<<Fixed>>"
      else:
        print "<<Skipped>>"
    else:
      print "<<run>>"
  os.remove(a + ".tmp")
os.remove("pacworld.tmp") 

I also think that pacworld should probably be put into the AUR.

Offline

#8 2006-04-17 09:22:35

Ryochan7
Member
From: Peoria, IL
Registered: 2006-01-02
Posts: 45
Website

Re: pacworld.py to fix xorg, need link?!

Pacworld has been added to the AUR.

http://aur.archlinux.org/packages.php?d … =1&ID=4279

Offline

Board footer

Powered by FluxBB