Pacman Source

Hi!
I would like to know if there's a way I could get pacman source? I would like to install it on LFS and try it on,
Thanks
Michel

I found the link when showing someone the website
Thanks
Michel
ftp://ftp.archlinux.org/other/pacman/

Similar Messages

  • [SOLVED] check pacman source sign failed on sh4 CPU

    I've build 'base' packages on sh4 CPU. (Some base library still use the original linux distributions. eg. gcc,glibc,...)
    I followed Pacman-key to setup key rings.
    pacman-key --init
    pacman-key --populate archlinux
    pacman-key --refresh-keys
    I run previous commands through ssh.  I tried to build haveged, but it occurs following messages, I guess it is caused by old kernel and my hardware haven't realtime clock. So I forgive it.
    gcc -Wall -I.. -O2 -pipe -o haveged haveged.o havege.o havegetune.o havegecollect.o havegetest.o
    havegecollect.o: In function `havege_gather':
    havegecollect.c:(.text+0x264): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x6a0): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x9d0): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0xd8c): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x1208): undefined reference to `HARDCLOCK'
    havegecollect.o:havegecollect.c:(.text+0x1684): more undefined references to `HARDCLOCK' follow
    collect2: ld returned 1 exit status
    And rerun makepkg on pacman.
    ==> Validating source files with md5sums...
    pacman-4.0.3.tar.gz ... Passed
    pacman-4.0.3.tar.gz.sig ... Passed
    0001-Add-conflict-for-replacing-owned-empty-directory.patch ... Passed
    0002-Check-empty-subdirectory-ownership.patch ... Passed
    0003-Ensure-pre_upgrade-scriptlet-gets-old-package-version.patch ... Passed
    pacman.conf ... Passed
    pacman.conf.x86_64 ... Passed
    pacman.conf.sh4 ... Passed
    makepkg.conf ... Passed
    ==> Verifying source file signatures with gpg...
    pacman-4.0.3.tar.gz ... FAILED (unknown public key 5C2E46A0F53A76ED)
    ==> WARNING: Warnings have occurred while verifying the signatures.
    Please make sure you really trust them.
    Even I manual add the key on message, it is still failed.
    $ sudo pacman-key -r 5C2E46A0F53A76ED
    gpg: requesting key F53A76ED from hkp server pool.sks-keyservers.net
    gpg: key F53A76ED: "Dan McGee <[email protected]>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1
    ==> Updating trust database...
    gpg: next trustdb check due at 2014-01-22
    $ makepkg
    ==> Verifying source file signatures with gpg...
    pacman-4.0.3.tar.gz ... FAILED (unknown public key 5C2E46A0F53A76ED)
    BTW, in the process of building gpgme, I can not build pinentry successful, so I pass and use fedora's.
    fedora9 pinentry 0.7.4-5.fc9.sh4
    Solved, I guess wrong direction, that's cause I forgot to read Makepkg again.
    gpg --list-keys
    echo 'keyring /etc/pacman.d/gnupg/pubring.gpg' >> ~/.gnupg/gpg.conf
    Last edited by dlin (2013-02-07 01:42:56)

    I've build 'base' packages on sh4 CPU. (Some base library still use the original linux distributions. eg. gcc,glibc,...)
    I followed Pacman-key to setup key rings.
    pacman-key --init
    pacman-key --populate archlinux
    pacman-key --refresh-keys
    I run previous commands through ssh.  I tried to build haveged, but it occurs following messages, I guess it is caused by old kernel and my hardware haven't realtime clock. So I forgive it.
    gcc -Wall -I.. -O2 -pipe -o haveged haveged.o havege.o havegetune.o havegecollect.o havegetest.o
    havegecollect.o: In function `havege_gather':
    havegecollect.c:(.text+0x264): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x6a0): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x9d0): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0xd8c): undefined reference to `HARDCLOCK'
    havegecollect.c:(.text+0x1208): undefined reference to `HARDCLOCK'
    havegecollect.o:havegecollect.c:(.text+0x1684): more undefined references to `HARDCLOCK' follow
    collect2: ld returned 1 exit status
    And rerun makepkg on pacman.
    ==> Validating source files with md5sums...
    pacman-4.0.3.tar.gz ... Passed
    pacman-4.0.3.tar.gz.sig ... Passed
    0001-Add-conflict-for-replacing-owned-empty-directory.patch ... Passed
    0002-Check-empty-subdirectory-ownership.patch ... Passed
    0003-Ensure-pre_upgrade-scriptlet-gets-old-package-version.patch ... Passed
    pacman.conf ... Passed
    pacman.conf.x86_64 ... Passed
    pacman.conf.sh4 ... Passed
    makepkg.conf ... Passed
    ==> Verifying source file signatures with gpg...
    pacman-4.0.3.tar.gz ... FAILED (unknown public key 5C2E46A0F53A76ED)
    ==> WARNING: Warnings have occurred while verifying the signatures.
    Please make sure you really trust them.
    Even I manual add the key on message, it is still failed.
    $ sudo pacman-key -r 5C2E46A0F53A76ED
    gpg: requesting key F53A76ED from hkp server pool.sks-keyservers.net
    gpg: key F53A76ED: "Dan McGee <[email protected]>" not changed
    gpg: Total number processed: 1
    gpg: unchanged: 1
    ==> Updating trust database...
    gpg: next trustdb check due at 2014-01-22
    $ makepkg
    ==> Verifying source file signatures with gpg...
    pacman-4.0.3.tar.gz ... FAILED (unknown public key 5C2E46A0F53A76ED)
    BTW, in the process of building gpgme, I can not build pinentry successful, so I pass and use fedora's.
    fedora9 pinentry 0.7.4-5.fc9.sh4
    Solved, I guess wrong direction, that's cause I forgot to read Makepkg again.
    gpg --list-keys
    echo 'keyring /etc/pacman.d/gnupg/pubring.gpg' >> ~/.gnupg/gpg.conf
    Last edited by dlin (2013-02-07 01:42:56)

  • Latest glibc breaks pacman

    Am i right in saying this?
    Of course if that's the case i'm sure the developers are aware of this and are recompiling pacman to use the new glibc version   
    I'd do it myself but abs fails to update too...and since this is a fresh install...my /var/abs tree is empty...a slight setback in my install but i'll live
    until then can anyone point me to the pacman source code?

    Sorry about that, everyone.
    If you're having pacman problems with the new glibc, download the latest pacman package with wget and install it.
    # wget ftp://ftp.archlinux.org/current/os/i686/pacman-2.8.2-2.pkg.tar.gz
    # pacman -U pacman-2.8.2-2.pkg.tar.gz

  • [solved] Xorg 1.8.1 + FGLRX Mouse and keyboard don't work...

    Beginning this week i installed Arch linux for the first time (several times infact) and i followed the installtion guide to get gnome working on my machine...
    pacman -Sy
    pacman -S xorg
    pacman -S gnome gnome-system-tools gnome-extra gdm gksu
    I also added the "fuse usblp"  and " fam hal" entries to /etc/rc.conf in their respective sections as decribed there.
    When i would reboot and type gdm the system would start up and i could configure everything else, but after reinstalling this morning this no longer works because the xorg got upgraded to a new version.
    When i type gdm or startx in complains that "vesa" has no modes, so i installed and configure the fglrx drivers from the pacman source.
    Now comes the actual problem, when i now type gdm or startx i get the graphical enviroment but my keyboard and mouse do not work and the computer is frozen.
    I tried going to a diffirent tty but it won't take those commands either.
    Does anyone have any idea what the problem could be ? i do not understand what is wrong....
    The Solution - Because the vesa driver didn't work i installed fglrx and i deleted this folder called /etc/X11/xorg.conf.d as i had never seen it before and figured that  i didn't need it if xorg.conf was present.
    Leaving the folder intact solved the problem
    it was a noobish mistake from a beginner, sorry folks
    Last edited by Dennis Beekman (2010-06-21 10:17:04)

    Beginning this week i installed Arch linux for the first time (several times infact) and i followed the installtion guide to get gnome working on my machine...
    pacman -Sy
    pacman -S xorg
    pacman -S gnome gnome-system-tools gnome-extra gdm gksu
    I also added the "fuse usblp"  and " fam hal" entries to /etc/rc.conf in their respective sections as decribed there.
    When i would reboot and type gdm the system would start up and i could configure everything else, but after reinstalling this morning this no longer works because the xorg got upgraded to a new version.
    When i type gdm or startx in complains that "vesa" has no modes, so i installed and configure the fglrx drivers from the pacman source.
    Now comes the actual problem, when i now type gdm or startx i get the graphical enviroment but my keyboard and mouse do not work and the computer is frozen.
    I tried going to a diffirent tty but it won't take those commands either.
    Does anyone have any idea what the problem could be ? i do not understand what is wrong....
    The Solution - Because the vesa driver didn't work i installed fglrx and i deleted this folder called /etc/X11/xorg.conf.d as i had never seen it before and figured that  i didn't need it if xorg.conf was present.
    Leaving the folder intact solved the problem
    it was a noobish mistake from a beginner, sorry folks
    Last edited by Dennis Beekman (2010-06-21 10:17:04)

  • Important file modification for Cornerstone users

    After having problems with HTML5 files not loading in Internet Explorer in Cornerstone, I asked Cornerstone to look at one of my HTML5 published zip files. The issue I was having with this particular file was that the course wouldn't load in Internet Explorer but would load in any other browser. They found that there was an error message with the DoFinish command.
    I did some digging and found that since the file SCORM_utilities.js wasn't being referenced in the index_SCORM.html file that Cornerstone wasn't loading the SCORM_utilities.js file at all. I added the line <script type='text/javascript' src="SCORM_utilities.js"></script> in the header section of my index_SCORM.html file and was able to open the file correctly in Cornerstone. I also found that having this in my index file also fixed other problems I was having in Cornerstone with swf published files not working correctly, such as the close/exit button of the playbar being non-functional.
    You can modify the default html files and add the line to them so that every time you publish a file the fill will always be referenced. The following directories are where the html files are located.
    FOR HTML5
    <install path>\Adobe Captivate 8 (64 Bit)\Adobe Captivate 8 x64\HTML
    FOR SWF SCORM 1.2
    <install path>\Adobe Captivate 8 (64 Bit)\Adobe Captivate 8 x64\Templates\Publish\LMS\Standard\SCORM\Default\1_2
    FOR SWF SCORM 2004
    <install path>\Adobe Captivate 8 (64 Bit)\Adobe Captivate 8 x64\Templates\Publish\LMS\Standard\SCORM\Default\2004

    Thanks everyone for your replies.
    phrakture, I have included a patch file also. It's in the archive but you can download it directly:
    http://www.iogopro.co.uk/contrib/pacman … earch.diff
    Here is how to try it out (assuming the diff and pacman source archive is in the CWD):
    $ tar xvzf pacman-2.9.5.tar.gz
    $ cd pacman-2.9.5
    $ patch -p1 -i ../pacman_and_search.diff
    $ ./configure
    $ make
    $ ./pacman -Ss 3d game
    Pink Chick, for that I would have to write a mini parser and interpreter. It's a bit beyond the scope of what I was aiming for ;-) Most of the time I don't imagine needing the full power of arbitrary expressions. It would probably be possible to add support for NOT e.g. 3d !game without too much trouble, I'll look into it.
    stonecrest, I could add another command line flag. Any suggestions? Personally I wouldn't mind it replacing the default behaviour, but I'm biased :-)
    I will file this as a feature request in the bug tracker as suggested.

  • [solved] a "permanent" home for srcdir, via makepkg

    I use a very low-bandwidth connection at home... it is as good as dial-up. When updating packages from AUR, I see many of them get a lot of data via git and hg. Some remember to limit the data using --depth=1, and some don't -- but that's beside the point Currently, I see that it is all downloaded to a directory in /tmp, and deleted soon after the package is installed. Some other packages download the source tar, and build from it. If there is any error in building it, it deletes all that it has done, and I have to download it again to attempt to fix it.
    3 questions:
    1. In makepkg, if I set the srcdir to /usr/src, and remove the rm -rf $srcdir, are there any downsides to doing this? (... besides the fact that I would have to clean up /usr/src for old and/or deleted packages myself, and that an update to pacman will over-write my changes.)
    2. Can the pacman source be changed to make this a configuration option? (... defaulting to srcdir in /tmp.)
    3. Or even better... can yaourt be changed to have an --import option for updates?
    I could have gone ahead and made the change (in 1) on my own system... but I am quite new to Arch, and am not aware of the various interdependencies. I did not want to risk running ahead with this and cluttering up (or nuking)  my system beyond repair.
    Last edited by prash (2011-12-30 04:36:17)

    It won't overwrite your changes because makepkg.conf is in the backup array ('Backup Files' at the bottom)
    [karol@black ~]$ pacman -Qii pacman
    Name : pacman
    Version : 4.0.1-1
    URL : http://www.archlinux.org/pacman/
    Licenses : GPL
    Groups : base
    Provides : None
    Depends On : bash glibc>=2.14 libarchive>=2.8.4 curl>=7.19.4 gpgme
    pacman-mirrorlist
    Optional Deps : fakeroot: for makepkg usage as normal user
    Required By : expac-git nosr-git package-query-git packer pacman-contrib
    pacmanxg-bin pkgstats yaourt-git
    Conflicts With : None
    Replaces : None
    Installed Size : 3412,00 KiB
    Packager : Dan McGee <[email protected]>
    Architecture : i686
    Build Date : pon, 21 lis 2011, 05:04:37
    Install Date : pon, 21 lis 2011, 21:24:59
    Install Reason : Explicitly installed
    Install Script : Yes
    Description : A library-based package manager with dependency support
    Backup Files:
    MODIFIED /etc/pacman.conf
    MODIFIED /etc/makepkg.conf
    so the new config will be created as makepkg.conf.pacnew - https://wiki.archlinux.org/index.php/Pa … save_Files
    Yaourt has its own configs. You can tell yaourt to build somewhere else, use --tmp commandline switch or edit /etc/yaourtrc, uncomment and change
    #TMPDIR="/tmp"
    to somewhere else.

  • [SOLVED] glibc upgrade problem (moved /lib myself)

    Hi,
      I went to upgrade my Archlinux system,
      and had to apply both the June and July intervention upgrades described in the announcements.
      Neither of the sets of instructions worked on their own,
      and before I thought of how to combine them properly,
      I tried moving the files from /lib to /usr/lib and making /lib a symlink (to usr/lib),
      so that maybe I could skip the July intervention instructions.
      I didn't break my system (for long), I successfully moved the stuff over,
      and then I ran 
    pacman -Syu --ignore glibc --ignore filesystem
    pacman -S filesystem --force
      and then the upgrade was mostly done.
      But then upgrading to glibc still doesn't work.
      From pacman -Su,
      I get the output
    error: failed to commit transaction (conflicting files)
    glibc: /lib exists in filesystem
    glibc: /usr/lib/ld-linux-x86-64.so.2 exists in filesystem
    glibc: /usr/lib/libBrokenLocale.so.1 exists in filesystem
    glibc: /usr/lib/libSegFault.so exists in filesystem
    glibc: /usr/lib/libanl.so.1 exists in filesystem
    glibc: /usr/lib/libc.so.6 exists in filesystem
    glibc: /usr/lib/libcidn.so.1 exists in filesystem
    glibc: /usr/lib/libcrypt.so.1 exists in filesystem
    glibc: /usr/lib/libdl.so.2 exists in filesystem
    glibc: /usr/lib/libm.so.6 exists in filesystem
    glibc: /usr/lib/libmemusage.so exists in filesystem
    glibc: /usr/lib/libnsl.so.1 exists in filesystem
    glibc: /usr/lib/libnss_compat.so.2 exists in filesystem
    glibc: /usr/lib/libnss_db.so.2 exists in filesystem
    glibc: /usr/lib/libnss_dns.so.2 exists in filesystem
    glibc: /usr/lib/libnss_files.so.2 exists in filesystem
    glibc: /usr/lib/libnss_hesiod.so.2 exists in filesystem
    glibc: /usr/lib/libnss_nis.so.2 exists in filesystem
    glibc: /usr/lib/libnss_nisplus.so.2 exists in filesystem
    glibc: /usr/lib/libpcprofile.so exists in filesystem
    glibc: /usr/lib/libpthread.so.0 exists in filesystem
    glibc: /usr/lib/libresolv.so.2 exists in filesystem
    glibc: /usr/lib/librt.so.1 exists in filesystem
    glibc: /usr/lib/libthread_db-1.0.so exists in filesystem
    glibc: /usr/lib/libthread_db.so.1 exists in filesystem
    glibc: /usr/lib/libutil.so.1 exists in filesystem
      Running
    grep '^lib/' /var/lib/pacman/local/*/files
      returns
    /var/lib/pacman/local/gcc-multilib-4.7.0-6/files:lib/
    /var/lib/pacman/local/gcc-multilib-4.7.0-6/files:lib/cpp
    /var/lib/pacman/local/glibc-2.15-10/files:lib/
    /var/lib/pacman/local/glibc-2.15-10/files:lib/ld-2.15.so
    /var/lib/pacman/local/glibc-2.15-10/files:lib/ld-linux-x86-64.so.2
    /var/lib/pacman/local/glibc-2.15-10/files:lib/libBrokenLocale-2.15.so
    /var/lib/pacman/local/glibc-2.15-10/files:lib/libutil.so.1
    /var/lib/pacman/local/lib32-glibc-2.15-10/files:lib/
    /var/lib/pacman/local/lib32-glibc-2.15-10/files:lib/ld-linux.so.2
      Running
    find /lib -exec pacman -Qo -- {} +
      returns
    error: No package owns /lib
      So it seems that there was more to be done than just moving the lib files and making the symlink...
      I'm sorry that I went against the instructions,
      but I had to deviate in some way to do this upgrade.
      I just probably deviated in the wrong direction.
      Does anyone know how I can finish upgrading my system?
      I can think of things to try, but I don't want to be wrong and make it worse.
    Deschutron
    Last edited by Deschutron (2012-07-26 12:06:04)

    If not, you should be okay forcing the glibc update at this point.
    I did.
    It worked.
    My system is saved.
    Thank you very much.
    What follows is information about what I did since your post, in case it helps anyone else.
    Are you sure that you've updated all the file locations for glibc?
    No. I don't understand the structure of pacman well enough to know that there isn't another set of files I have to edit.
    I had gcc-multilib and glibc complaining when I tried pacman -Su
    I did see a thread where someone said that uninstalling everything that complains, except for glibc, allows glibc to upgrade.
    I tried to run pacman -R gcc-multilib, but a package complained that it needed gcc, as if gcc and gcc-multilib are the same thing.
    I gave up on that lead there.
    After the advice here,
    I tried figuring out what --force does.
    man pacman said that it does "Bypass file conflict checks and overwrite conflicting files."
    Then I tried finding out what conflict checks get done.
    I looked at the pacman source code and learnt nothing useful.
    Then I looked inside the package archive for glibc. (/var/cache/pacman/pkg/glibc-2.16.0-2-x86_64.pkg.tar.xz)
    Inside, it was in the structure of a root file system, with presumably the set of files it would try to copy into my system.
    I saw that all the files getting complained about were symlinks in both the archive and my system.
    I couldn't just delete them all off my system because /lib was one of them.
    I looked at the other files in the archive, and there was only one file I was afraid of it overwriting - locale.gen,
    so I backed up locale.gen, and did
    pacman --force -S glibc
    That ran without complaints.
    Then I ran
    pacman -Su
    That ran without complaints and upgraded about 5 things.
    Then I rebooted, and I could succesfully start X and visit this webpage.
    Also, I installed my system in early June. That's why I didn't try the "for installs that have not been updated during 2012" package.
    I didn't know why that was there, so I didn't know that it would apply to me.
    Or if the way the wiki article did apply to my exact situation is something else, then I still haven't found it.

  • Updating on slow connection

    Hi, today my connection to the net is very slow because we are using it alot right now. But I still want to update my computer with pacman. The problem is that very often pacmans downloading drops to 0.0K/s and does not download anything at all, and it does not seem to reconnect, so it just stays at 0.0K/s forever, the only way to restart the download is to restart pacman. Is this a bug in pacman or is something wrong with my configuration?
    -- Edit --
    I started looking at the pacman source and found that if no XferCommand is set it will download using FtpGet - I'll try changing XferCommand to use wget.
    Btw, since i don't get any  "nfailed downloading %s from %s: %sn" I am guessing there is something wroing with the FtpGet command

    I think, I have the same problem. I have 3 computers connected to the Internet via Linksys Router: one works on WinXP, one on Ubuntu, and my computer works on Arch. When I start p2p on computer with Windows, apt-get, pacman and others downloaders (http, ftp, scp, etc) drops to 0.0KB/s and only way I found is to restart downloading in programs like gwget, kget and restart pacman/apt-get. Even IM works bad! I found that if I close p2p everything works good. Maybe - if you are in LAN network - somebody started using some p2p dowloaders?

  • Make a custom package-cd

    I run now arch-linux since the release of 0.5 and I am very happy with it!
    Now I'd like to install Arch on another computer. All my packages here are up to date and instead of installing Arch on the other computer and make pacman -Syu (and to wait several hours) I'd like to burn a cd wich contains all my updated packages from /var/cache/pacman/pkg/ and use that as an custom package repository.
    I tried to build a compressed package database out of this directory but I didn't work...
    Are there any suggestions how I could achieve that? The computer would also be in the same network if I could even install it over the network!

    take a look at how the base iso is set up (if you have one). make an arch/ directory with a pkg/ (or is it pkgs) directory within that then place all your packages in it, then gensync (see the pacman manpage on how to use gensync) and with that you can create your "current.db.tar.gz" . then create a setup/ directory like there is on the iso. in this directory there is a packages.txt (apparently there is some way of generating this) and the pacman source if i am not mistaken. once you have your arch/ directory set up like the iso create and iso of it. yiou do not need to make a isolinux directory. then make floppies of the floppy images available on the ftp server and then use those to start your install procedure then when you get to the part where it asks if you are installing via cdrom or ftp put your disc in and select cdrom install. from there it will be just like installing via cd.
    make sure that your current.db.tar.gz package and packages.txt all match or you will have to start all over generating a new iso, etc. i suggest that you use a cdrw just incase you have to go back and correct any content in packages.txt, current.db.tar.gz or your actual package directory.

  • [SOLVED] Dual boot with ubuntu w/o installing GRUB? (YES)

    Hi all -
    This is my first shot at arch, tho I've installed a few other linux distros.
    So far I really appreciate the excellent documentation, especially compared to other linuxes!
    But I can't find a good answer to this question:
    I already have ubuntu installed and would like to dual-boot with arch.  (I also have Win7 but boot it from a separate disk selected via BIOS, and usually leave this disk disconnected anyway, so it's not an issue; grub doesn't know it exists).
    Q:  Before installing, can I make a new LOGICAL ext4 partition (say /dev/sda7),
    - then install arch on that **w/o installing grub** and **without messing with the MBR**,
    - then edit ubuntu's existing menu.lst to add arch to the boot options?
    Current $ fdisk -l
    /dev/sda1    ext4 primary/boot (/ for ubuntu)
    /dev/sda2    extended
    --/dev/sda6  linux-swap
    --/dev/sda5  NTFS (data - mp3s, etc)
    unallocated  480GB  --> Create new ext4 partition /dev/sda7,  (logical or primary? Prefer logical)
    Current menu.lst entry that I normally boot:
    title       Ubuntu 12.04 LTS, kernel 3.2.0-24-generic REGULAR
    uuid        UUIDforSDA1 (file has actual UUID number...)
    kernel      /boot/vmlinuz-3.2.0-24-generic root=UUID=UUIDforSDA1 ro
    initrd      /boot/initrd.img-3.2.0-24-generic
    and add something like this to menu.lst:
    title  Arch Linux
    uuid  UUIDforSDA7
    kernel /boot/vmlinuz-linux root=/dev/sda7/ARCH ro  (??? - from example in arch docs)
    initrd /boot/initramfs-linux.img
    or
    kernel /boot/vmlinuz-linux root=UUID=UUIDforSDA7 ro  (??? - like the ubuntu entry)
    I'd really like to NOT mess up booting ubuntu!  (Another option might be install arch to a separate disk with the ubuntu disk disconnected, then copy the whole install over via a USB adapter...I've done worse!)
    TIA for any help!
    Edit: so I guess there's three questions:
    1 - Can I install arch w/o installing grub & MBR messing-wth?
    2 - What's the correct syntax for menu.lst to access and boot arch?
    3 - Will this work?
    Last edited by Flemur (2012-05-25 15:24:18)

    Well, it worked and booted up first time - no grub install.
    The main hassle was merely creating a new ext4 partitions because "Partition Wizard" boot CD screwed up and I kept getting "Unable to update kernel until reboot" messages until I deleted and rebuilt all the partitions in the extended partition with puppy linux & gparted instead of Partition Wizard.
    In case others stumble upon this trhread, here's some info:
    The entry in the ubuntu (original) menu.lst was this:
       title           Arch Linux
       uuid          af7...etc...9f3c
       kernel        /boot/vmlinuz-linux root=UUID=af7...etc.f3c ro
       initrd          /boot/initramfs-linux.img
    I'm even posting this from arch/fluxbox/Firefox, although getting X set up with nvidia (PITA!) apparently required using a different pacman source:
    File "mirrorlist" now points to
        Server = http://mirror.us.leaseweb.net/archlinux/$repo/os/$arch
    which wasn't in the original file.
    Then
    $ pacman -Su --> "/etc/mtab exists" --> delete it and something else broke,
    so
    $ pacman -Su --force --> worked fine (against official advice)
    Also: needed to install nvidia-utils and xorg-xinit
    Thanks again!

  • Apricots- Old school, side-scrolling fighter jet game!

    Sometime ago, maybe five or six years, I stumbled upon a game by chance. Just looking through the package list in Gentoo and trying out games with interesting names. The game was instantly a favorite and still is to this day. Fellow Archers, I introduce you to Apricots, available in extra!
    A little history...
    The original version of the game dates back to around 1991. The very first version of the game was written on an Amiga, using the AMOS language, and the game was called 'Planegame'. This was a very simple affair with simplistic landscapes, no guns or shrapnel, and very limited computer AI. It was also dreadfully slow. The AMOS compiler improved things somewhat at a later date. A couple of years later I obtained the BLITZ language for the Amiga, and ported 'Planegame' carefully over to that, resulting in a huge speedup. Impressed by the capabilites of BLITZ, in 1995 I proceeded to rewrite the game entirely from scratch, even using completely new graphics and sound. The result was 'Planegame2', which, for various reasons also got dubbed 'Apricots'. This new version of the game added anti-aircraft guns, shrapnel, trees, towers, water, better airbases and a huge improvement on graphics, sound, and intelligent computer AI. Slightly later, in 1996, the Draks were added as a bit of amusement. The result was a highly playable game, which I distributed to a few of my friends. A few years later and I now use a PC, which can run Linux. Having learnt C++ by this time, at the beginning of 2002 I felt ready enough to port 'Apricots' cross platform from BLITZ on the Amiga to C++ on a Linux PC. What you see here is work in progress on that port. The game has been tweaked slightly while being ported over, so is not identical to the Amiga version.  Apricots homepage
    For as simple of a game as it is, it really can be loads of fun. It almost seems to follow the Dwarf Fortress strategy of "Losing is Fun", as I don't think I've ever really won a game. Even then, the city is fully destructible. As you play, buildings will fall, homes will burn and trees will be blown to pieces. I think that blowing up objects on an enemies airstrip prevents them from re-loading when they land.. I'd have the check the source to be sure. There is a configuration file with loads of options, further ensuring you can get the most out of the game
    I've also just loved the fact that the game is open source, as simple as it is. I enjoy browsing this games source code and at one point got to know it pretty well. If anyone is interested, I'd enjoy reviving this project. Maybe add some new features, fix some bugs.
    Just wanted to share this great game and see if anyone else has or still does play it.
    Protip: Point the plane towards the ground if you happen to stall to recover from it.
    To Install:
    sudo pacman -S apricots
    To tweak:
    sudo $EDITOR /usr/share/apricots/apricots.cfg

    Thanks everyone for your replies.
    phrakture, I have included a patch file also. It's in the archive but you can download it directly:
    http://www.iogopro.co.uk/contrib/pacman … earch.diff
    Here is how to try it out (assuming the diff and pacman source archive is in the CWD):
    $ tar xvzf pacman-2.9.5.tar.gz
    $ cd pacman-2.9.5
    $ patch -p1 -i ../pacman_and_search.diff
    $ ./configure
    $ make
    $ ./pacman -Ss 3d game
    Pink Chick, for that I would have to write a mini parser and interpreter. It's a bit beyond the scope of what I was aiming for ;-) Most of the time I don't imagine needing the full power of arbitrary expressions. It would probably be possible to add support for NOT e.g. 3d !game without too much trouble, I'll look into it.
    stonecrest, I could add another command line flag. Any suggestions? Personally I wouldn't mind it replacing the default behaviour, but I'm biased :-)
    I will file this as a feature request in the bug tracker as suggested.

  • Pacman wrapper to allow source builds (srcpac)

    This is mostly just something that I did because I had never written a wrapper for pacman before and wanted to see if it worked with the current pacman feature set.
    It's 1:30ish in the morning, so my eyes are a little blurry.
    The wrapper is called srcpac.  It's version 0.1 at this point
    The code is quite ugly because I threw it together in the past 3 hours, but my inital tests have been successes.
    Now, for the pitch.  Imagine if you could use pacman to install binary packages as well as build those same packages from source (with your own optimizations).  Not only that, but upgrades remembered which packages were precompiled and which were compiled on the spot.
    Now, imagine that pacman didn't actually handle that, because the hard-core KISS people would complain too much and you wouldn't be able to think while you watch gcc output flash by.  Imagine instead a wrapper around pacman that handled it for you.
    Enter srcpac.  Lights brighten, music comes to a peak, close up!
    srcpac acts exactly the same as pacman (well, it should anyway), except you get this little extra flag -b (or --build) tacked on to -S (--sync) to build from source instead of install from a binary package.
    Let's see an example:
    srcpac -Sb w3m
    will compile w3m, install it, and remember that it was compiled
    srcpac -Sybu
    will upgrade all the packages that need upgrading by building them and remember that they were compiled (be careful with this one, it will include packages that weren't previously compiled).
    srcpac -Syu
    will upgrade all binary packages by installing binaries and upgrade all source packages by compiling from source.
    srcpac -Qi w3m adds an extra line too, "Source", with a simple yes or no.
    Which packages are source and which aren't are stored in /var/lib/srcpac just as files.  If the file exists, then the package was a source package (so it's easy to fix it if srcpac gets confused, also it doesn't touch anything pacman uses).
    While I can guarantee that this wrapper won't break your packages (because it uses pacman and makepkg to do all of it's package related stuff), I can't guarantee it'll work 100% correctly (it's 1:45 now!).
    If anyone is interested, the script is available here: http://xentac.net/svn/arch-tools/srcpac/tags/0.1/srcpac
    Yes, it's in bash.
    Feel free to tell me problems you run into using this tool.  Remember, if you use pacman instead of using srcpac, then all the packages will continue installing as binary packages.
    BEWARE: the -r option isn't fully implemented and may install to / in some cases, I'm pretty sure I don't ever write to / when -r is specified, but I can't be sure.
    .:edit - changed title to show srcpac name - dibble:.

    rls wrote:ABS is fine, but unless I am mistaken, it does nothing to ensure the configure and make stages go smoothly. It is a good way to integrate "home-rolled" packages into the Arch system.
    hmmmm... I could be wrong because I've never used Gentoo, but if you make a package that doesn't already exist for Gentoo, does it do anything to make sure the compilation goes smoothly?  If the package exists, then there is a way to build the package that has been tested by somebody else. This is how ABS works too; if a PKGBUILD exists, you can be reasonably sure it will work.
    I can't imagine a program that can automatically fix or recover from compiler or Makefile errors. If it does, then... wow.
    I assume that Gentoo has a larger package base than Arch, but let's not get into that discussiong again!
    Xentacs script is basically designed to allow you to choose whether you are going to install from source or binary. Assuming the PKGBUILDS are in order (which for arch repository programs they are, because the binaries were built from them!), this should work as flawlessly as installing from binaries.
    Dusty

  • Implications of new 'source' in pacman.conf

    I apologize in advance for what seems to be a very basic and FAQ-ish question.
    I've always wanted to know, what are the implications of adding new sources
    to my pacman.conf (or in the case of Ubuntu/Debian, the /etc/apt/sources.list file?)
    Let's say that you put some joker's site in your pacman.conf file, and they put
    a malicious FOO version 2 software in their repository.
    When I run pacman -Syu, does pacman say "Well, software FOO is at version 1 in
    the official Arch repos, but it's at version 2 in Joker's repository, what do you want to do?"
    Sorry for the basic question, but often think that if I was trying to proliferate some keylogger or
    other malware, what I would do is write some good software FOO, or act as a mirror for some good software FOO,
    and then provide updates for software BAR, and have BAR be a new version of some core-software
    that takes data from your keyboard and forwards it to my e-mail account.
    Is my question/concern valid, or am I totally off track?  I recently thought about this when adding
    a repository to my pacman.conf file so that I could get updates for the yaourt application.  I'm not
    accusing the author of yaourt of anything at all, and think the product is great.  But I just want to know if
    the author of yaourt issues an update to "readline", if Arch will accept this update as a valid update the next time
    I run pacman -Syu?
    Thanks very much, and links/RTFMs are appreciated.
    --Nate

    In pacman.conf(8) (man pacman.conf), under "REPOSITORY SECTIONS":
    The order of repositories in the configuration files matters;
    repositories listed first will take precedence over those listed later
    in the file when packages in two repositories have identical names,
    regardless of version number.
    I tested this with a local repo and it appears to work as documented; pacman didn't prompt me to upgrade 'bash' to the newer version I had put in my test repo which was below [core] in pacman.conf.
    Last edited by foutrelis (2009-07-30 08:50:02)

  • Installing from sources, not with pacman, problem!

    Hi!
    I wanna to install some software form sources, but after installing, programs doesn't work
    some guys form irc sed, that  my $PATH is wrong!
    Here it is
    /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/opt/gnome/bin:/opt/gnome/bin:/opt/gnome/bin:/opt/mozilla/bin:/opt/xfce4/bin
    but i donno what its wrong
    What should i do?
    THX

    ok.
    so at first i istalled graphical links, all i did was step-by-setp.
    configure
    make
    I found this in one of steps:
    If you got a root access, log in as root and do "make install" in the same directory. If you are installing Links as an ordinary user, place the "links" executable file that was created by the "make" command into some suitable place possibly within your $PATH.
    i'm root so i make install
    make install
    after his i ran in command shell
    [lfx@localhost ~]# links
    bash: links: command not found
    [lfx@localhost ~]#
    secondaly i wanted to install free pascal (it's for my state exams)
    i downloaded sources, unpacked them and found install.sh, i ran it, installet without problems.
    but command shell can't find it
    sorry for stupids, i am newbie 

  • Github as a source for an unofficial repo? https support in pacman

    I suspect the answer is no but can pacman handle a server over https?  I'd like to use my github repo as an unofficial pacman repo, but AFAIK, I can only do so via https, not http.
    Last edited by graysky (2011-01-14 22:28:20)

    Allan wrote:
    graysky wrote: Maybe Allan can do it in his spare time
    no need...  falconindy has already coded a switch from libfetch to libcurl.  https support will be there once that is finished.
    Oh man those pacman devs are so cool they just add features even if you don't want too 

Maybe you are looking for