Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Nico Kadel-Garcia
On Wed, Jun 12, 2013 at 2:47 PM, Matthew Miller
 wrote:
> On Wed, Jun 12, 2013 at 08:44:45AM -0400, Martin Langhoff wrote:
>> To test / bench / verify old behaviour of PHP4, I need to install FC6
>> in a chroot.
>
> Have you considered RHEL 4? It's in its "Extended Life Phase", but is still
> actually supported, and features ye olde PHP 4.

Or, if you're cheap, you could try CentOS  4 or Scientific Linux 4
from their archives repository, and build hte chroot cage using
"mock".
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Matthew Miller
On Wed, Jun 12, 2013 at 08:44:45AM -0400, Martin Langhoff wrote:
> To test / bench / verify old behaviour of PHP4, I need to install FC6
> in a chroot.

Have you considered RHEL 4? It's in its "Extended Life Phase", but is still
actually supported, and features ye olde PHP 4.

-- 
Matthew Miller  ☁☁☁  Fedora Cloud Architect  ☁☁☁  
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Martin Langhoff
On Wed, Jun 12, 2013 at 11:45 AM, Przemek Klosowski
 wrote:
> My approach for non-standard versions is to pull the relevant source RPM and
> just build it in the existing/convenient environment.

That doesn't always work so well. Try building an old openldap src rpm
(say, 2.4.x) in a current Fedora/RHEL environment for fun.

Modern rpm has deprecated stuff, and barfs at your (builddepends), it
has gotten tighter wrt patch application (so patches that applied with
fuzz now barf), and dependencies have moved and mutated in various
ways.

enjoy :-)


m
--
 martin.langh...@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Przemek Klosowski

On 06/12/2013 08:44 AM, Martin Langhoff wrote:

To test / bench / verify old behaviour of PHP4, I need to install FC6
in a chroot.


My approach for non-standard versions is to pull the relevant source RPM 
and just build it in the existing/convenient environment. If RPMs are 
not your bread-and-butter, I wrote a tutorial that will get you started 
in no time at all:


http://fedoraproject.org/wiki/How_to_create_a_GNU_Hello_RPM_package
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Don Dutile

On 06/12/2013 08:56 AM, Björn Esser wrote:

Am Mittwoch, den 12.06.2013, 08:44 -0400 schrieb Martin Langhoff:

To test / bench / verify old behaviour of PHP4, I need to install FC6
in a chroot.

Mock doesn't seem to work, given a reasoanble config file pointing to
the archive repo. Are there any good / recommended alternatives? Or is
mock expected to work?

cheers,



m
--
  martin.langh...@gmail.com
  -  ask interesting questions
  - don't get distracted with shiny stuff  - working code first
  ~ http://docs.moodle.org/en/User:Martin_Langhoff


Hello Martin!

If there was yum in fc6 (I don't know) you can setup a

yum was in fc6 b/c it was the basis for rhel5, and rhel5
inherited its yum from fc6.


yum.repos.d-config for fc6 and do something:

   yum --disablerepo=* --enablerepo=fc6 --installroot="$chroot_dir" \
   --nogpgcheck -y install yum

mount all needed:

   mount -t proc foo $chroot_dir/proc
   mount -t sysfs foo $chrrot_dir/sys
   chroot $chroot_dir /bin/bash --login

remove rpm-database and related stuff afterwards and reinit:

   cd /var/lib/rpm&&  rm -rf *&&  rpm --initdb

re-populate rpmdb with installed pkgs:

   yum install yum

Afterwards you can setup everything else.

Hope this helps.

Cheers,
   Björn





--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Martin Langhoff
On Wed, Jun 12, 2013 at 9:06 AM, Paul Howarth  wrote:
> I have working local mock configs for F-6 and a variety of other ancient
> releases. In what way does yours not work?

Great to know it works! I was worried changes in yum/rpm meant it wouldn't.

> The main local changes I have are that I have:
>
> config_opts['chroot_setup_cmd'] = 'install buildsys-build'
> config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s -d
> %(home)s -n %(user)s'

That's probably what I was missing. I sorted a couple of initial
issues and got stuck at 'Could not find useradd in chroot'.

> where the "buildsys-build" package is in a local repo and can be found here:
> http://www.city-fan.org/ftp/contrib/buildsys/

Will try with that - thanks!



m
--
 martin.langh...@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Martin Langhoff
On Wed, Jun 12, 2013 at 8:54 AM, Remi Collet  wrote:
> Le 12/06/2013 14:44, Martin Langhoff a écrit :
>> To test / bench / verify old behaviour of PHP4, I need to install FC6
>> in a chroot.
>
> Perhaps http://3v4l.org/ could help you ?

It does for a quick check, thanks! I will take Dan's idea and use a VM
-- I'm so used to setting up chroots that I didn't think of that.
Silly.

thanks!,



m
--
 martin.langh...@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Paul Howarth

On 12/06/13 13:44, Martin Langhoff wrote:

To test / bench / verify old behaviour of PHP4, I need to install FC6
in a chroot.

Mock doesn't seem to work, given a reasoanble config file pointing to
the archive repo. Are there any good / recommended alternatives? Or is
mock expected to work?


I have working local mock configs for F-6 and a variety of other ancient 
releases. In what way does yours not work?


The main local changes I have are that I have:

config_opts['chroot_setup_cmd'] = 'install buildsys-build'
config_opts['useradd'] = '/usr/sbin/useradd -m -u %(uid)s -g %(gid)s -d 
%(home)s -n %(user)s'


where the "buildsys-build" package is in a local repo and can be found 
here: http://www.city-fan.org/ftp/contrib/buildsys/


Paul.
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Björn Esser
Am Mittwoch, den 12.06.2013, 14:56 +0200 schrieb Björn Esser:
> Am Mittwoch, den 12.06.2013, 08:44 -0400 schrieb Martin Langhoff:
> > To test / bench / verify old behaviour of PHP4, I need to install FC6
> > in a chroot.
> > 
> > Mock doesn't seem to work, given a reasoanble config file pointing to
> > the archive repo. Are there any good / recommended alternatives? Or is
> > mock expected to work?
> > 
> > cheers,
> > 
> > 
> > 
> > m
> > --
> >  martin.langh...@gmail.com
> >  -  ask interesting questions
> >  - don't get distracted with shiny stuff  - working code first
> >  ~ http://docs.moodle.org/en/User:Martin_Langhoff
> 
> Hello Martin!
> 
> If there was yum in fc6 (I don't know) you can setup a
> yum.repos.d-config for fc6 and do something:
> 
>   yum --disablerepo=* --enablerepo=fc6 --installroot="$chroot_dir" \
>   --nogpgcheck -y install yum
> 
> mount all needed:
> 
>   mount -t proc foo $chroot_dir/proc
>   mount -t sysfs foo $chrrot_dir/sys
>   chroot $chroot_dir /bin/bash --login
> 
> remove rpm-database and related stuff afterwards and reinit:
> 
>   cd /var/lib/rpm && rm -rf * && rpm --initdb
> 
> re-populate rpmdb with installed pkgs:
> 
>   yum install yum
> 
> Afterwards you can setup everything else.
> 
> Hope this helps.
> 
> Cheers,
>   Björn

You may try CentOS4 as well. This had PHP4 for sure.


signature.asc
Description: This is a digitally signed message part
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Björn Esser
Am Mittwoch, den 12.06.2013, 08:44 -0400 schrieb Martin Langhoff:
> To test / bench / verify old behaviour of PHP4, I need to install FC6
> in a chroot.
> 
> Mock doesn't seem to work, given a reasoanble config file pointing to
> the archive repo. Are there any good / recommended alternatives? Or is
> mock expected to work?
> 
> cheers,
> 
> 
> 
> m
> --
>  martin.langh...@gmail.com
>  -  ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  ~ http://docs.moodle.org/en/User:Martin_Langhoff

Hello Martin!

If there was yum in fc6 (I don't know) you can setup a
yum.repos.d-config for fc6 and do something:

  yum --disablerepo=* --enablerepo=fc6 --installroot="$chroot_dir" \
  --nogpgcheck -y install yum

mount all needed:

  mount -t proc foo $chroot_dir/proc
  mount -t sysfs foo $chrrot_dir/sys
  chroot $chroot_dir /bin/bash --login

remove rpm-database and related stuff afterwards and reinit:

  cd /var/lib/rpm && rm -rf * && rpm --initdb

re-populate rpmdb with installed pkgs:

  yum install yum

Afterwards you can setup everything else.

Hope this helps.

Cheers,
  Björn


signature.asc
Description: This is a digitally signed message part
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Panu Matilainen

On 06/12/2013 03:44 PM, Martin Langhoff wrote:

To test / bench / verify old behaviour of PHP4, I need to install FC6
in a chroot.

Mock doesn't seem to work, given a reasoanble config file pointing to
the archive repo. Are there any good / recommended alternatives? Or is
mock expected to work?


FC6 is such ancient history its impossible to remember everything that 
might've changed since then... how exactly is mock failing to work?


- Panu -

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Remi Collet
Le 12/06/2013 14:44, Martin Langhoff a écrit :
> To test / bench / verify old behaviour of PHP4, I need to install FC6
> in a chroot.

FC6 have php 5.1.6.


> 
> Mock doesn't seem to work, given a reasoanble config file pointing to
> the archive repo. Are there any good / recommended alternatives? Or is
> mock expected to work?
> 
> cheers,
> 
> 
> 
> m
> --
>  martin.langh...@gmail.com
>  -  ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  ~ http://docs.moodle.org/en/User:Martin_Langhoff
> 

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Remi Collet
Le 12/06/2013 14:44, Martin Langhoff a écrit :
> To test / bench / verify old behaviour of PHP4, I need to install FC6
> in a chroot.

Perhaps http://3v4l.org/ could help you ?

Remi.

> 
> Mock doesn't seem to work, given a reasoanble config file pointing to
> the archive repo. Are there any good / recommended alternatives? Or is
> mock expected to work?
> 
> cheers,
> 
> 
> 
> m
> --
>  martin.langh...@gmail.com
>  -  ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  ~ http://docs.moodle.org/en/User:Martin_Langhoff
> 

-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Re: Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Dan Fruehauf
Perhaps try in some sort of VM, like Virtualbox?


On Wed, Jun 12, 2013 at 10:44 PM, Martin Langhoff  wrote:

> To test / bench / verify old behaviour of PHP4, I need to install FC6
> in a chroot.
>
> Mock doesn't seem to work, given a reasoanble config file pointing to
> the archive repo. Are there any good / recommended alternatives? Or is
> mock expected to work?
>
> cheers,
>
>
>
> m
> --
>  martin.langh...@gmail.com
>  -  ask interesting questions
>  - don't get distracted with shiny stuff  - working code first
>  ~ http://docs.moodle.org/en/User:Martin_Langhoff
> --
> devel mailing list
> devel@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Installing a very old Fedora (FC6) in a chroot?

2013-06-12 Thread Martin Langhoff
To test / bench / verify old behaviour of PHP4, I need to install FC6
in a chroot.

Mock doesn't seem to work, given a reasoanble config file pointing to
the archive repo. Are there any good / recommended alternatives? Or is
mock expected to work?

cheers,



m
--
 martin.langh...@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel