Eureka :-)
Now I remember having fixed this on my ubuntu-12.10 long ago.
The solution was:
cd /tftpboot/oscar/debian-6-x86_64/dist/squeeze/
ln -s binary-amd64 binary-i386
And it worked (I admit it's an ugly hack) :)
Unfortunately, my deb knowledge is poor, so if a skilled guy is listenning,
that would be cool if he could provide us a better and cleaner solution.
I'll work on error reporting.
I've now a ubuntu-13.04 and et 12.04.2 VM, soon bootstrapped.
PS: in 3/, by something bad in your VM, I did not intend to say that you did
bad things, I was more intended to think a incompatibility at some point
(missing switch case in code or something like this missing link. In the end,
the "problem" (if it can be so called) was the missing link ;-)
PPS: my todolist is now: fix packman error message / fix loghost opkg / fix
jobmonarch opkg / fix jobmonarch upstream for ganglia user / fix grub in
systemimager upstream / migrate blcr to dkms (rpm) / reate a deb package to
setup repo...
Best regards,
--
Olivier LAHAYE
CEA DRT/LIST/DCSI/DIR
________________________________
De : DongInn Kim [di...@cs.indiana.edu]
Date d'envoi : vendredi 14 juin 2013 15:33
À : oscar-devel@lists.sourceforge.net
Objet : Re: [Oscar-devel] RE : RE : RE : RE : RE : Packaging build process on
the debian-base system
Hi Olivier,
Thanks for looking into this issue too.
I have been playing with this error and I found that it is because we do not
have the binary-i386 packages on our repository.
"apt-get update" just checks all the binary-amd64 and binary-i386 packages
regardlessly.
If there is an option to avoid checking binary-i386 on "apt-get update", I
think we can simply get over the missing binary-i386 error.
Otherwise, we may end up building our OSCAR packages on i386 machine and
posting them to the repository.
1/ bug in package installation error reporting.
I agree.
2/ verbose and debug not propagated to packman
Actually this is a correct behavior but this thing happens because we have not
passed the verbose argument to packman.
3/ someting bad in your VM that upset apt-get (either bad repo, bad config or
bad package)
No, I don't think that it is my VM's fault but the missing i386 packages.
Maybe apt-get on ubuntu 1210 is smart enough to ignore the missing i386
packages?
PS: I'll setup a ubuntu-12.04 vm and see if I can reproduce the situation.
Thanks a lot if you can do that.
I realized that supporting ubuntu12.04 is more important than ubuntu12.10
because 12.04 is based on LTS.
PPS: Aside that, I thing it would be cool to have a "oscar-release" equivalent
package for the deb side.
I totally agree.
Regards,
--
- DongInn
On Jun 14, 2013, at 4:04 AM, LAHAYE Olivier
<olivier.lah...@cea.fr<mailto:olivier.lah...@cea.fr>> wrote:
Hi DongInn,
Now, you message show that you're using your new repos ("command to execute
....").
oscar-packager will always want to install all deps (build.cfg) without taking
care if it's already installed or not. It relies on the fact that the packaging
system will handle that without failing.
1/ The error message is double erroneous. It should state "ERROR: Fail to
execute".
2/ PackMan.pm fails line 656 when there is a problem in installation (failed
dependencies, package not found, ....). This is a bug I must fix,
unfortunately, this part of the code is object oriented, and it's difficult for
me to clearly understand what's going on. This was not my priority because in
normal situation, there is no dep problem or missing package.
Though, it looks like fixing this bug will reduce significantly the users help
requests in the user-ml. I'll try to look at this today.
3/ Second problem, the debug and verbose flags seems not propagated:
"1>/dev/null 2>/dev/null"
In the meantime, the best way would be to track what's going on on your system
by tracing packman with perl debugger.
perl -d /usr/bin/rapt --repo file:/tftpboot/oscar/debian-6-x86_64 --repo
http://svn.oscar.openclustergroup.org/repos/unstable/debian-6-x86_64/+squeeze+/
--repohttp://us.archive.ubuntu.com/ubuntu/+precise-updates+main+universe+multiverse
--repohttp://us.archive.ubuntu.com/ubuntu/+precise+main+universe+multiverse
--distro ubuntu-1204-x86_64 -y install debhelper --allow-unauthenticated
At some point, it will call an apt-get with some arguments in $cmd. then
running by hand this command will show where and why it fails.
In the end, we have 3 thigs to fix:
1/ bug in package installation error reporting.
2/ verbose and debug not propagated to packman
3/ someting bad in your VM that upset apt-get (either bad repo, bad config or
bad package)
Regards,
Olivier.
PS: I'll setup a ubuntu-12.04 vm and see if I can reproduce the situation.
PPS: Aside that, I thing it would be cool to have a "oscar-release" equivalent
package for the deb side.
--
Olivier LAHAYE
CEA DRT/LIST/DCSI/DIR
________________________________
De : DongInn Kim [di...@cs.indiana.edu<mailto:di...@cs.indiana.edu>]
Date d'envoi : jeudi 13 juin 2013 19:33
À : oscar-devel@lists.sourceforge.net<mailto:oscar-devel@lists.sourceforge.net>
Objet : Re: [Oscar-devel] RE : RE : RE : RE : Packaging build process on the
debian-base system
Well, I think I have already setup the repository with the new one properly.
Anyway, I tried to re-do the repository and re-ran oscar-config but I got the
same error.
root@dikim-virtual-machine:/tmp/oscar_build# dpkg -l | grep debhelper
ii debhelper 9.20120115ubuntu3
helper programs for debian/rules
ii dh-apparmor 2.7.102-0ubuntu3.7
AppArmor debhelper routines
root@dikim-virtual-machine:/tmp/oscar_build#
Even though debhelper is already installed, packman tries to install it and
fails.
Packages to install: [ debhelper ]
Array: 1 element(s)
Command to execute: /usr/bin/rapt --repo file:/tftpboot/oscar/debian-6-x86_64
--repo
http://svn.oscar.openclustergroup.org/repos/unstable/debian-6-x86_64/+squeeze+/
--repo
http://us.archive.ubuntu.com/ubuntu/+precise-updates+main+universe+multiverse
--repohttp://us.archive.ubuntu.com/ubuntu/+precise+main+universe+multiverse
--distro ubuntu-1204-x86_64 -y install debhelper --allow-unauthenticated
ERROR: Impossible to execute "/usr/bin/apt-get update 1>/dev/null 2>/dev/null"
(100, ) at /usr/bin/rapt line 1362.
Use of uninitialized value $output[0] in join or string at
/usr/share/perl5/OSCAR/PackMan.pm line 656.
ERROR: Impossible to install debhelper (
Adding the repositories: [ file:/tftpboot/distro/ubuntu-1204-x86_64 ]
Array: 1 element(s)
--> [WARN] /tftpboot/distro/ubuntu-1204-x86_64 does not exist
--> Skipping empty local repo (file:/tftpboot/distro/ubuntu-1204-x86_64)
--> [INFO] No repository to be added
--> Select online repo
http://us.archive.ubuntu.com/ubuntu/+precise+main+universe+multiverse
--> Select online repo
http://us.archive.ubuntu.com/ubuntu/+precise-updates+main+universe+multiverse
Adding the repositories: [ file:/tftpboot/oscar/debian-6-x86_64
file:/tftpboot/oscar/common-debs ]
Array: 2 element(s)
--> Adding valid local repo (file:/tftpboot/oscar/debian-6-x86_64)
--> Skipping empty local repo (file:/tftpboot/oscar/common-debs)
--> Adding file:/tftpboot/oscar/debian-6-x86_64 in
/tftpboot/oscar/debian-6-x86_64.url
--> Adding file:/tftpboot/oscar/debian-6-x86_64
to /tftpboot/oscar/debian-6-x86_64.url
--> Select online repo
http://svn.oscar.openclustergroup.org/repos/unstable/debian-6-x86_64/+squeeze+/
--> Select valid local repo file:/tftpboot/oscar/debian-6-x86_64
ERROR during RAPT execution) at /usr/bin/packman line 150.
ERROR: Failed to install requires: debhelper
ERROR: Impossible to install requirements at /usr/bin/oscar-packager line 378
ERROR: Impossible to build some binaries at /usr/bin/oscar-packager line 378
ERROR: Impossible to prepare the prereqs (/tmp/oscar-packager/apitest,
/tftpboot/oscar/debian-6-x86_64) at /usr/bin/oscar-packager line 378
ERROR: [create_package:prepare_prereqs] Impossible to manage prereqs for the
creation of the binary package
Preparing repository /tftpboot/oscar/debian-6-x86_64
Regards,
--
- DongInn
On Jun 13, 2013, at 11:04 AM, LAHAYE Olivier
<olivier.lah...@cea.fr<mailto:olivier.lah...@cea.fr>> wrote:
I have this error when a package is not found. Each time I had this error, it
was because of a miss-configured repo. I never had time to fix this error so it
can report something useful like package not found or something like that. My
perl knowledge is limited and I'm totally unfamiliar with perl-OO.
I think I4ve found the issue.
It looks like you're using the old debian-6-x86_64 repos instead of the new one
you've created. Maybe this have an impact.
Old repo: http://bison.csm.ornl.gov/repos/unstable/debian-6-x86_64/
New repo: http://svn.oscar.openclustergroup.org/repos/unstable/debian-6-x86_64/
You need to update /etc/oscar/supported_distros.txt and
/tftpboot/oscar/debian-6-x86_64.url (or run oscar-config --setup-distro
ubuntu-1204-x86_64 after having updated supported_distros.txt).
Olivier.
--
Olivier LAHAYE
CEA DRT/LIST/DCSI/DIR
________________________________
De : DongInn Kim [di...@cs.indiana.edu<mailto:di...@cs.indiana.edu>]
Date d'envoi : jeudi 13 juin 2013 16:46
À : oscar-devel@lists.sourceforge.net<mailto:oscar-devel@lists.sourceforge.net>
Objet : Re: [Oscar-devel] RE : RE : RE : Packaging build process on the
debian-base system
Yeah, yours works at the line that I cropped.
Mine has this error for this.
INFO: Executing commands based on the distro ubuntu-1204-x86_64
Packages to install: [ debhelper ]
Array: 1 element(s)
Command to execute: /usr/bin/rapt --repo file:/tftpboot/oscar/debian-6-x86_64
--repo http://bison.csm.ornl.gov/repos/unstable/debian-6-x86_64/+squeeze+/
--repo
http://us.archive.ubuntu.com/ubuntu/+precise-updates+main+universe+multiverse
ERROR: Impossible to execute "/usr/bin/apt-get update 1>/dev/null 2>/dev/null"
(100, ) at /usr/bin/rapt line 1362.
Use of uninitialized value $output[0] in join or string at
/usr/share/perl5/OSCAR/PackMan.pm line 656.
ERROR: Impossible to install debhelper (
Regards,
--
- DongInn
On Jun 13, 2013, at 10:40 AM, LAHAYE Olivier
<olivier.lah...@cea.fr<mailto:olivier.lah...@cea.fr>> wrote:
Command to execute: /usr/bin/rapt --repo file:/tftpboot/oscar/debian-7-x86_64
--repo
http://svn.oscar.openclustergroup.or/repos/unstable/debian-7-x86_64/+wheezy+/
--repo
http://us.archive.ubuntu.com/ubuntu/+quantal-updates+main+universe+multiverse
--repohttp://us.archive.ubuntu.com/ubuntu/+quantal+main+universe+multiverse
--distro ubuntu-1210-x86_64 -y install debhelper --allow-unauthenticated
--> [INFO] --> Requirements installed
------------------------------------------------------------------------------
This SF.net<http://SF.net> email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net<mailto:Oscar-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/oscar-devel
------------------------------------------------------------------------------
This SF.net<http://SF.net> email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net<mailto:Oscar-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/oscar-devel
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel