[opensuse] How to Fix webpin to work with 11.0
![](https://seccdn.libravatar.org/avatar/27aacf61a13c66fcc083fcf8a84823bc.jpg?s=120&d=mm&r=g)
Listmates: webpin doesn't like 11.0. It looks like a simple version number needs to be added so it will recognize and work with 11.0. Neither the BuildService rpm or rebuilding from the .src.rpm work. The error is: root@zion:/usr/src/packages/SRPMS # rpm -Uvh ../RPMS/i586/webpin-0.9.0-1.5.i586.rpm Preparing... ########################################### [100%] 1:webpin ########################################### [100%] root@zion:/usr/src/packages/SRPMS # webpin scout ERROR: invalid or unsupported value for distribution version: "11.0" Valid values are: 10.1, 10.3, 10.2, Factory, factory, latest Can we just tell webpin that latest=11.0 -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/27aacf61a13c66fcc083fcf8a84823bc.jpg?s=120&d=mm&r=g)
David C. Rankin wrote:
Listmates:
webpin doesn't like 11.0. It looks like a simple version number needs to be added so it will recognize and work with 11.0. Neither the BuildService rpm or rebuilding from the .src.rpm work. The error is:
root@zion:/usr/src/packages/SRPMS # rpm -Uvh ../RPMS/i586/webpin-0.9.0-1.5.i586.rpm Preparing... ########################################### [100%] 1:webpin ########################################### [100%] root@zion:/usr/src/packages/SRPMS # webpin scout ERROR: invalid or unsupported value for distribution version: "11.0" Valid values are: 10.1, 10.3, 10.2, Factory, factory, latest
Can we just tell webpin that latest=11.0
OK, here is a work-around. Download webpin-0.9.0-1.5.i586.src.rpm, install it, extract the source to your favorite location, make the following changes. (the first is optional), distVersionMap is the critical one. build/lib/webpin/const.py defaultSuseVersion = '11.0' webpin/const.py distVersionMap = { '11.0': 'openSUSE_110', '10.3': 'openSUSE_103', '10.2': 'openSUSE_102', '10.1': 'SUSE_Linux_101', 'latest': latestSuseVersion, 'factory': 'SUSE_Factory', 'Factory': 'SUSE_Factory' } After making the changes, .tar.bzip2 the source and move/copy it to /usr/src/packages/SOURCES to replace the original source package. Then, as root: rpmbuild -bb SPECS/webpin.spec && rpm -Uvh /usr/src/packages/RPMS/i586/webpin-0.9.0-1.5.i586.rpm It will now work on 11.0. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/b4047644c59f2d63b88e9464c02743fd.jpg?s=120&d=mm&r=g)
On Sun, Jun 22, 2008 at 8:13 PM, David C. Rankin
David C. Rankin wrote:
Listmates:
webpin doesn't like 11.0. It looks like a simple version number needs to be added so it will recognize and work with 11.0. Neither the BuildService rpm or rebuilding from the .src.rpm work. The error is:
root@zion:/usr/src/packages/SRPMS # rpm -Uvh ../RPMS/i586/webpin-0.9.0-1.5.i586.rpm Preparing... ########################################### [100%] 1:webpin ########################################### [100%] root@zion:/usr/src/packages/SRPMS # webpin scout ERROR: invalid or unsupported value for distribution version: "11.0" Valid values are: 10.1, 10.3, 10.2, Factory, factory, latest
Can we just tell webpin that latest=11.0
OK, here is a work-around. Download webpin-0.9.0-1.5.i586.src.rpm, install it, extract the source to your favorite location, make the following changes. (the first is optional), distVersionMap is the critical one.
build/lib/webpin/const.py
defaultSuseVersion = '11.0'
webpin/const.py
distVersionMap = { '11.0': 'openSUSE_110', '10.3': 'openSUSE_103', '10.2': 'openSUSE_102', '10.1': 'SUSE_Linux_101', 'latest': latestSuseVersion, 'factory': 'SUSE_Factory', 'Factory': 'SUSE_Factory' }
After making the changes, .tar.bzip2 the source and move/copy it to /usr/src/packages/SOURCES to replace the original source package. Then, as root:
rpmbuild -bb SPECS/webpin.spec && rpm -Uvh /usr/src/packages/RPMS/i586/webpin-0.9.0-1.5.i586.rpm
It will now work on 11.0.
Should this not be an bugzilla report David? -- ----------JSA--------- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/27aacf61a13c66fcc083fcf8a84823bc.jpg?s=120&d=mm&r=g)
John Andersen wrote:
On Sun, Jun 22, 2008 at 8:13 PM, David C. Rankin
wrote: David C. Rankin wrote:
Listmates:
webpin doesn't like 11.0. It looks like a simple version number needs to be added so it will recognize and work with 11.0. Neither the BuildService rpm or rebuilding from the .src.rpm work. The error is:
root@zion:/usr/src/packages/SRPMS # rpm -Uvh ../RPMS/i586/webpin-0.9.0-1.5.i586.rpm Preparing... ########################################### [100%] 1:webpin ########################################### [100%] root@zion:/usr/src/packages/SRPMS # webpin scout ERROR: invalid or unsupported value for distribution version: "11.0" Valid values are: 10.1, 10.3, 10.2, Factory, factory, latest
Can we just tell webpin that latest=11.0
OK, here is a work-around. Download webpin-0.9.0-1.5.i586.src.rpm, install it, extract the source to your favorite location, make the following changes. (the first is optional), distVersionMap is the critical one.
build/lib/webpin/const.py
defaultSuseVersion = '11.0'
webpin/const.py
distVersionMap = { '11.0': 'openSUSE_110', '10.3': 'openSUSE_103', '10.2': 'openSUSE_102', '10.1': 'SUSE_Linux_101', 'latest': latestSuseVersion, 'factory': 'SUSE_Factory', 'Factory': 'SUSE_Factory' }
After making the changes, .tar.bzip2 the source and move/copy it to /usr/src/packages/SOURCES to replace the original source package. Then, as root:
rpmbuild -bb SPECS/webpin.spec && rpm -Uvh /usr/src/packages/RPMS/i586/webpin-0.9.0-1.5.i586.rpm
It will now work on 11.0.
Should this not be an bugzilla report David?
Oh, Sorry John, it already was: https://bugzilla.novell.com/show_bug.cgi?id=402614 -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
David C. Rankin
-
John Andersen