Thread: corrections v1.2 rc2: rpm 4 madrake 10.1
Hi, I have had to change the src.rpm spec file and the configure file to be able to generate a rpm for Mandrake 10.1. Changes: 1. Mandrake 10.1 makes available the wxGTK2.5-2.5.3 and related packages. Only the dynamic versions of the library are created, so the specs must not use the static configuration flag. 2. Mandrake 10.1 makes available the wxGTK2.5-2.5.3 and related packages but these install to the "/usr" directory and not the "/usr/local" so the spec file must also have the configuration flag altered. 3. The library names of the wxGTK package are: - wx_gtk2_xrc-2.5 - wx_gtk2_html-2.5 - wx_gtk2_adv-2.5 - wx_gtk2_core-2.5-lwx_base_xml-2.5 - wx_base_net-2.5 -lwx_base-2.5 Because of this the configure script must add a new entry in the case switch to search for and use substring "gtk2_" and not "gtk2-". I have altered the rc2 src.rpm package and used that to generate a new src.rpm that can build binary packages for MDK 10.1. I can make this available if anyone wants, just tell me were to upload it. Please note that this package has a set of minimum changes and does not comply to Mandrake standards (doesn't check for package dependencies for example). Regards, Hugo Ferreira. Spec file line changed: ----------------------------%configure --with-wx-config=%{withwxconfig} --with-wx=/usr configure diff: ------------------ 5201a5202,5205 > *wx_gtk2_*) > LIBS="$LIBS -lwx_gtk2_stc-${WX_VERSION}" > LIBS="$LIBS $WX_NEW_LDFLAGS" > ;; 5206c5210 < --- >
> -----Original Message----- > From: pgadmin-support-owner@postgresql.org > [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of > Hugo Ferreira > Sent: 01 December 2004 10:10 > To: pgadmin-support@postgresql.org > Subject: [pgadmin-support] corrections v1.2 rc2: rpm 4 madrake 10.1 > > Hi, Hello, > I have had to change the src.rpm spec file and the configure > file to be able to generate a rpm for Mandrake 10.1. Changes: > > 1. Mandrake 10.1 makes available the wxGTK2.5-2.5.3 and > related packages. Only the dynamic versions of the library > are created, so the specs must not use the static configuration flag. OK. > 2. Mandrake 10.1 makes available the wxGTK2.5-2.5.3 and > related packages but these install to the "/usr" directory > and not the "/usr/local" so the spec file must also have the > configuration flag altered. OK. > 3. The library names of the wxGTK package are: > - wx_gtk2_xrc-2.5 > - wx_gtk2_html-2.5 > - wx_gtk2_adv-2.5 > - wx_gtk2_core-2.5 -lwx_base_xml-2.5 > - wx_base_net-2.5 -lwx_base-2.5 > Because of this the configure script must add a new entry in > the case switch to search for and use substring "gtk2_" and > not "gtk2-". OK. > I have altered the rc2 src.rpm package and used that to > generate a new src.rpm that can build binary packages for MDK > 10.1. I can make this available if anyone wants, just tell me > were to upload it. Please note that this package has a set of > minimum changes and does not comply to Mandrake standards > (doesn't check for package dependencies for example). Can someone else comment on whether that is likely to cause problems? I'm not well versed in the ways of the RPM! > > Spec file line changed: > ---------------------------- > %configure --with-wx-config=%{withwxconfig} --with-wx=/usr That's no problem - we have a couple of variations of the spec files for different Oss already so another one can be added. That said, it would be good to get one all-knowing all-purpose spec file. Does anyone know if that's do-able? Perhaps it could be autogenerated as part of the build process? > configure diff: > ------------------ > > 5201a5202,5205 > > *wx_gtk2_*) > > LIBS="$LIBS -lwx_gtk2_stc-${WX_VERSION}" > > LIBS="$LIBS $WX_NEW_LDFLAGS" > > ;; > 5206c5210 > < > --- > > No problem there either. Can I get some additional opinions thouogh before I apply these changes? Regards, Dave.
Dave, >snip... > > > Spec file line changed: > > ---------------------------- > > %configure --with-wx-config=%{withwxconfig} --with-wx=/usr > > That's no problem - we have a couple of variations of the spec files for > different Oss already so another one can be added. > > That said, it would be good to get one all-knowing all-purpose spec > file. Does anyone know if that's do-able? Perhaps it could be > autogenerated as part of the build process? I not an experienced at generating rpms but I do know it is possible to test for the various OSs. You can see more on this at www.rpm.org in the docs section. > > configure diff: > > ------------------ > > > > 5201a5202,5205 > > > > > *wx_gtk2_*) > > > LIBS="$LIBS -lwx_gtk2_stc-${WX_VERSION}" > > > LIBS="$LIBS $WX_NEW_LDFLAGS" > > > ;; > > > > 5206c5210 > > < > > --- > > No problem there either. Can I get some additional opinions thouogh > before I apply these changes? > Ofcourse. Just wanted to contribute this so others may also use pgadmin. Thanks for the feedback, Hugo Ferreira. On Thursday 02 Dec 2004 09:35, Dave Page wrote: > > -----Original Message----- > > From: pgadmin-support-owner@postgresql.org > > [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of > > Hugo Ferreira > > Sent: 01 December 2004 10:10 > > To: pgadmin-support@postgresql.org > > Subject: [pgadmin-support] corrections v1.2 rc2: rpm 4 madrake 10.1 > > > > Hi, > > Hello, > > > I have had to change the src.rpm spec file and the configure > > file to be able to generate a rpm for Mandrake 10.1. Changes: > > > > 1. Mandrake 10.1 makes available the wxGTK2.5-2.5.3 and > > related packages. Only the dynamic versions of the library > > are created, so the specs must not use the static configuration flag. > > OK. > > > 2. Mandrake 10.1 makes available the wxGTK2.5-2.5.3 and > > related packages but these install to the "/usr" directory > > and not the "/usr/local" so the spec file must also have the > > configuration flag altered. > > OK. > > > 3. The library names of the wxGTK package are: > > - wx_gtk2_xrc-2.5 > > - wx_gtk2_html-2.5 > > - wx_gtk2_adv-2.5 > > - wx_gtk2_core-2.5 -lwx_base_xml-2.5 > > - wx_base_net-2.5 -lwx_base-2.5 > > Because of this the configure script must add a new entry in > > the case switch to search for and use substring "gtk2_" and > > not "gtk2-". > > OK. > > > I have altered the rc2 src.rpm package and used that to > > generate a new src.rpm that can build binary packages for MDK > > 10.1. I can make this available if anyone wants, just tell me > > were to upload it. Please note that this package has a set of > > minimum changes and does not comply to Mandrake standards > > (doesn't check for package dependencies for example). > > Can someone else comment on whether that is likely to cause problems? > I'm not well versed in the ways of the RPM! > > > Spec file line changed: > > ---------------------------- > > %configure --with-wx-config=%{withwxconfig} --with-wx=/usr > > That's no problem - we have a couple of variations of the spec files for > different Oss already so another one can be added. > > That said, it would be good to get one all-knowing all-purpose spec > file. Does anyone know if that's do-able? Perhaps it could be > autogenerated as part of the build process? > > > configure diff: > > ------------------ > > > > 5201a5202,5205 > > > > > *wx_gtk2_*) > > > LIBS="$LIBS -lwx_gtk2_stc-${WX_VERSION}" > > > LIBS="$LIBS $WX_NEW_LDFLAGS" > > > ;; > > > > 5206c5210 > > < > > --- > > No problem there either. Can I get some additional opinions thouogh > before I apply these changes? > > Regards, Dave.
Thanks Hugo, updates applied. I've simply created a mandrake specific spec file for now in pkg/mandrake. Regards, Dave. > -----Original Message----- > From: pgadmin-support-owner@postgresql.org > [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of > Hugo Ferreira > Sent: 01 December 2004 10:10 > To: pgadmin-support@postgresql.org > Subject: [pgadmin-support] corrections v1.2 rc2: rpm 4 madrake 10.1 > > Hi, > > I have had to change the src.rpm spec file and the configure > file to be able to generate a rpm for Mandrake 10.1. Changes: > > 1. Mandrake 10.1 makes available the wxGTK2.5-2.5.3 and > related packages. Only the dynamic versions of the library > are created, so the specs must not use the static configuration flag. > > 2. Mandrake 10.1 makes available the wxGTK2.5-2.5.3 and > related packages but these install to the "/usr" directory > and not the "/usr/local" so the spec file must also have the > configuration flag altered. > > 3. The library names of the wxGTK package are: > - wx_gtk2_xrc-2.5 > - wx_gtk2_html-2.5 > - wx_gtk2_adv-2.5 > - wx_gtk2_core-2.5 -lwx_base_xml-2.5 > - wx_base_net-2.5 -lwx_base-2.5 > Because of this the configure script must add a new entry in > the case switch to search for and use substring "gtk2_" and > not "gtk2-". > > I have altered the rc2 src.rpm package and used that to > generate a new src.rpm that can build binary packages for MDK > 10.1. I can make this available if anyone wants, just tell me > were to upload it. Please note that this package has a set of > minimum changes and does not comply to Mandrake standards > (doesn't check for package dependencies for example). > > Regards, > Hugo Ferreira. > > Spec file line changed: > ---------------------------- > %configure --with-wx-config=%{withwxconfig} --with-wx=/usr > > configure diff: > ------------------ > > 5201a5202,5205 > > *wx_gtk2_*) > > LIBS="$LIBS -lwx_gtk2_stc-${WX_VERSION}" > > LIBS="$LIBS $WX_NEW_LDFLAGS" > > ;; > 5206c5210 > < > --- > > > > > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index > scan if your > joining column's datatypes do not match >