Author Topic: Question about BuildArch and rpmrc on 64-bit  (Read 4684 times)

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #15 on: November 13, 2011, 10:02:09 PM »
I think what we need is just one set of pkgutils that would work for either the 32 and 64.

cat /etc/pclinuxos-release and determine the platform. copy the necessary files and configs to the proper folders ... you know what? I'm really just blabbing.  ;D

Can someone on a 64 bit install post the output of the cat command above, as well as the output of rpm -E %mandriva_release

Thanks!

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8586
  • Aurum nostrum non est aurum vulgi.
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #16 on: November 13, 2011, 10:06:00 PM »
Here you are:

Code: [Select]
[archie@localhost ~]$ cat /etc/pclinuxos-release
PCLinuxOS release 2011 (PCLinuxOS) for x86_64
[archie@localhost ~]$ rpm -E %mandriva_release
2011

Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #17 on: November 13, 2011, 11:31:37 PM »
..thanks!

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #18 on: November 13, 2011, 11:53:58 PM »
..looks like I will also need a copy of the sources.list file from a 64 bit install.   ::)

 ;D

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8586
  • Aurum nostrum non est aurum vulgi.
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #19 on: November 14, 2011, 12:08:35 AM »
..looks like I will also need a copy of the sources.list file from a 64 bit install.   ::)

 ;D

Ammm... I've already modified my local install and I cannot remember to what extent (additions and deletions) I had changed it.  I will launch the LiveCD and take the sources.lst from there, and get back to you.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2841
    • other projects...
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #20 on: November 14, 2011, 12:09:18 AM »
oh yes, Travis, if you can can that would be great!
another way to get the sysarch could be:
Code: [Select]
sysarch=`getconf LONG_BIT` and the 64-bit repos are the same as the ones for 32-bit, just replace the sections main updates nonfree kde4 games with x86_64
best,
-p.

edit: whoops, forgot to say, and the 64-bit repos have 2011 instead of 2010 in the URL...  :P
« Last Edit: November 14, 2011, 12:19:15 AM by pinoc »

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8586
  • Aurum nostrum non est aurum vulgi.
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #21 on: November 14, 2011, 01:42:09 AM »
Here you go Travis:

Pristine pick and compressed ... the whole /etc/apt folder. ;D

http://min.us/lNcjXz9vAw8d8
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #22 on: November 14, 2011, 02:22:35 AM »
Here is an updated mkrepo script that should work for both 32 and 64 bit installs..  please test and report!

http://dl.dropbox.com/u/2425248/mkrepo

..after install, run it as both user and root, checking the effects on ~/.rpmrc,  ~/.rpmmacros, and /etc/apt/sources.list after each run (it needs to be tested as both, as it should prompt to select a regular user if it is run as root)

« Last Edit: November 14, 2011, 02:27:41 AM by travisn000 »

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8586
  • Aurum nostrum non est aurum vulgi.
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #23 on: November 14, 2011, 02:27:33 AM »
Here is an updated /usr/bin/mkrepo script that should work for both 32 and 64 bit installs..  please test and report!

http://dl.dropbox.com/u/2425248/mkrepo

..after install, run it as both user and root, checking the effects on ~/.rpmrc,  ~/.rpmmacros, and /etc/apt/sources.list after each run (it needs to be tested as both, as it should prompt to select a regular user if it is run as root)


No Dropbox, please.


I am unable to download from Dropbox because of my geographical location. Do you have another link? TIA
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2841
    • other projects...
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #25 on: November 14, 2011, 02:57:40 AM »
just tested, as user and root, on 32 and 64, and it works very well.
Great job Travis!

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #26 on: November 14, 2011, 04:01:35 AM »
I've emailed the updated mkrepo script to Archie. :)     

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8586
  • Aurum nostrum non est aurum vulgi.
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #27 on: November 14, 2011, 04:04:53 AM »
I've emailed the updated mkrepo script to Archie. :)     

Thanks, Neal. I'm too embarrassed to ask Travis for another link. ;)
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #28 on: November 14, 2011, 04:59:41 AM »
I've emailed the updated mkrepo script to Archie. :)     

Thanks, Neal. I'm too embarrassed to ask Travis for another link. ;)
     
I'm always happy to help. :) :) :)     

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Question about BuildArch and rpmrc on 64-bit
« Reply #29 on: November 15, 2011, 09:21:06 PM »
Here is a link for updated pkgutils RPMs (including thunar and kde addons) and a unified SRPM:

http://minus.com/me7TylqRY#1l

Please test well and report back!

@Archie..      ..its not dropbox or google docs this time!    :P

EDIT:

Changelog:
Code: [Select]
%changelog
* Tue Nov 15 2011 travisn000 <forumUserName at gmail dot com> 0.1.6-1
- spec set as noarch
- updated mkrepo script:
+ ..will configure for either 32 or 64 bit build automatically
- added additional context menu items (and scripts) to -kde package
+ ...feature parity with thunar version
+ ..'install rpm/srpm' options now support URLs.. right click to install from net in konqueror!
+ ..build, build/log, compress to xz/tar, and recompress_to_tarxz all support batch operations in KDE4
 
« Last Edit: November 15, 2011, 09:54:36 PM by travisn000 »