* Re: [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and
2007-11-17 11:16 [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and other Hans de Goede
@ 2007-11-18 17:12 ` Jean Delvare
2007-11-21 18:28 ` Jean Delvare
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Jean Delvare @ 2007-11-18 17:12 UTC (permalink / raw)
To: lm-sensors
Hi Hans,
On Sat, 17 Nov 2007 12:16:32 +0100, Hans de Goede wrote:
> Hi All,
>
> I just build 3.0.0-rc3 for Fedora's devel branch and it needs the attached
> patch to compile on powerpc.
>
> I've not committed this to svn as I'm not sure this is the best way todo this.
Good catch, thanks. I'd rather address the problem in the top Makefile:
there's no point in including prog/dump in the list of source
directories if we won't build anything there. So I'd suggest something
like:
ifneq (,$(findstring $(MACHINE), i386 i486 i586 i686 x86_64))
SRCDIRS += prog/dump
endif
in the top Makefile. Then you can even remove the architecture tests
in prog/dump/Module.mk, as they will be redundant, and clean up that
file a bit.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and
2007-11-17 11:16 [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and other Hans de Goede
2007-11-18 17:12 ` [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and Jean Delvare
@ 2007-11-21 18:28 ` Jean Delvare
2007-11-21 18:53 ` Hans de Goede
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Jean Delvare @ 2007-11-21 18:28 UTC (permalink / raw)
To: lm-sensors
On Sun, 18 Nov 2007 18:12:02 +0100, Jean Delvare wrote:
> On Sat, 17 Nov 2007 12:16:32 +0100, Hans de Goede wrote:
> > Hi All,
> >
> > I just build 3.0.0-rc3 for Fedora's devel branch and it needs the attached
> > patch to compile on powerpc.
> >
> > I've not committed this to svn as I'm not sure this is the best way todo this.
>
> Good catch, thanks. I'd rather address the problem in the top Makefile:
> there's no point in including prog/dump in the list of source
> directories if we won't build anything there. So I'd suggest something
> like:
>
> ifneq (,$(findstring $(MACHINE), i386 i486 i586 i686 x86_64))
> SRCDIRS += prog/dump
> endif
>
> in the top Makefile. Then you can even remove the architecture tests
> in prog/dump/Module.mk, as they will be redundant, and clean up that
> file a bit.
Hans, if you are OK with my proposal, can you please give it a try on
Fedora and then commit the fix to SVN? That's the only missing piece
before I can release lm-sensors 3.0.0.
Thanks,
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and
2007-11-17 11:16 [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and other Hans de Goede
2007-11-18 17:12 ` [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and Jean Delvare
2007-11-21 18:28 ` Jean Delvare
@ 2007-11-21 18:53 ` Hans de Goede
2007-11-21 20:46 ` Hans de Goede
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Hans de Goede @ 2007-11-21 18:53 UTC (permalink / raw)
To: lm-sensors
Jean Delvare wrote:
> On Sun, 18 Nov 2007 18:12:02 +0100, Jean Delvare wrote:
>> On Sat, 17 Nov 2007 12:16:32 +0100, Hans de Goede wrote:
>>> Hi All,
>>>
>>> I just build 3.0.0-rc3 for Fedora's devel branch and it needs the attached
>>> patch to compile on powerpc.
>>>
>>> I've not committed this to svn as I'm not sure this is the best way todo this.
>> Good catch, thanks. I'd rather address the problem in the top Makefile:
>> there's no point in including prog/dump in the list of source
>> directories if we won't build anything there. So I'd suggest something
>> like:
>>
>> ifneq (,$(findstring $(MACHINE), i386 i486 i586 i686 x86_64))
>> SRCDIRS += prog/dump
>> endif
>>
>> in the top Makefile. Then you can even remove the architecture tests
>> in prog/dump/Module.mk, as they will be redundant, and clean up that
>> file a bit.
>
> Hans, if you are OK with my proposal, can you please give it a try on
> Fedora and then commit the fix to SVN? That's the only missing piece
> before I can release lm-sensors 3.0.0.
>
This was on my todo, I'm rather busy with all kinds a stuff atm. However I've
put it on the top of my todo now, a scratch build is building on the fedora
buildsys now (I don't have any ppc machines at home), once that has completed
successfully I'll commit the patch in the form you suggested to svn, if it
fails for some reason I'll report back here.
Regards,
Hans
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and
2007-11-17 11:16 [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and other Hans de Goede
` (2 preceding siblings ...)
2007-11-21 18:53 ` Hans de Goede
@ 2007-11-21 20:46 ` Hans de Goede
2007-11-22 20:09 ` Jean Delvare
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Hans de Goede @ 2007-11-21 20:46 UTC (permalink / raw)
To: lm-sensors
[-- Attachment #1: Type: text/plain, Size: 1577 bytes --]
Jean Delvare wrote:
> Hi Hans,
>
> On Sat, 17 Nov 2007 12:16:32 +0100, Hans de Goede wrote:
>> Hi All,
>>
>> I just build 3.0.0-rc3 for Fedora's devel branch and it needs the attached
>> patch to compile on powerpc.
>>
>> I've not committed this to svn as I'm not sure this is the best way todo this.
>
> Good catch, thanks. I'd rather address the problem in the top Makefile:
> there's no point in including prog/dump in the list of source
> directories if we won't build anything there. So I'd suggest something
> like:
>
> ifneq (,$(findstring $(MACHINE), i386 i486 i586 i686 x86_64))
> SRCDIRS += prog/dump
> endif
>
> in the top Makefile. Then you can even remove the architecture tests
> in prog/dump/Module.mk, as they will be redundant, and clean up that
> file a bit.
>
mm, so I came up with the attached patch, but for some reason that does not
work as MODULE_DIR gets set to prog/dump when executing install-etc on
platforms which do include isadump like x86_64:
mkdir -p /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/etc
if [ ! -e
/var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/etc/sensors3.conf ] ; then \
install -m 644 etc/sensors.conf.eg
/var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/etc/sensors3.conf; \
fi
mkdir -p /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/usr/bin
install -m 755 prog/dump/sensors-conf-convert
/var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/usr/bin
install: cannot stat `prog/dump/sensors-conf-convert': No such file or directory
make: *** [install-etc] Error 1
Regards,
Hans
[-- Attachment #2: lm_sensors-3.0.0-rc3-ppc-build.patch --]
[-- Type: text/x-patch, Size: 2135 bytes --]
diff -up lm_sensors-3.0.0-rc3/Makefile~ lm_sensors-3.0.0-rc3/Makefile
--- lm_sensors-3.0.0-rc3/Makefile~ 2007-11-21 19:48:16.000000000 +0100
+++ lm_sensors-3.0.0-rc3/Makefile 2007-11-21 19:48:16.000000000 +0100
@@ -99,9 +99,12 @@ MACHINE := $(shell uname -m)
# to do this.
# The subdirectories we need to build things in
-SRCDIRS :=
-SRCDIRS += lib prog/detect prog/dump prog/pwm \
+SRCDIRS := lib prog/detect prog/pwm \
prog/sensors ${PROG_EXTRA:%=prog/%} etc
+# Only build isadump and isaset on x86 machines.
+ifneq (,$(findstring $(MACHINE), i386 i486 i586 i686 x86_64))
+SRCDIRS += prog/dump
+endif
SRCDIRS += lib/test
# Some often-used commands with default options
diff -up lm_sensors-3.0.0-rc3/prog/dump/Module.mk~ lm_sensors-3.0.0-rc3/prog/dump/Module.mk
--- lm_sensors-3.0.0-rc3/prog/dump/Module.mk~ 2007-11-21 19:47:28.000000000 +0100
+++ lm_sensors-3.0.0-rc3/prog/dump/Module.mk 2007-11-21 19:47:28.000000000 +0100
@@ -22,22 +22,14 @@ MODULE_DIR := prog/dump
PROGDUMPDIR := $(MODULE_DIR)
PROGDUMPMAN8DIR := $(MANDIR)/man8
-PROGDUMPMAN8FILES :=
+PROGDUMPMAN8FILES := $(MODULE_DIR)/isadump.8 $(MODULE_DIR)/isaset.8
# Regrettably, even 'simply expanded variables' will not put their currently
# defined value verbatim into the command-list of rules...
-PROGDUMPTARGETS :=
-PROGDUMPSOURCES := $(MODULE_DIR)/util.c
-PROGDUMPBININSTALL :=
-
-# Only build isadump and isaset on x86 machines.
-ifneq (,$(findstring $(MACHINE), i386 i486 i586 i686 x86_64))
-PROGDUMPMAN8FILES += $(MODULE_DIR)/isadump.8 $(MODULE_DIR)/isaset.8
-PROGDUMPTARGETS += $(MODULE_DIR)/isadump $(MODULE_DIR)/isaset
-PROGDUMPSOURCES += $(MODULE_DIR)/isadump.c $(MODULE_DIR)/isaset.c \
- $(MODULE_DIR)/superio.c
-PROGDUMPBININSTALL += $(MODULE_DIR)/isadump $(MODULE_DIR)/isaset
-endif
+PROGDUMPTARGETS := $(MODULE_DIR)/isadump $(MODULE_DIR)/isaset
+PROGDUMPSOURCES := $(MODULE_DIR)/util.c $(MODULE_DIR)/isadump.c \
+ $(MODULE_DIR)/isaset.c $(MODULE_DIR)/superio.c
+PROGDUMPBININSTALL := $(MODULE_DIR)/isadump $(MODULE_DIR)/isaset
# Include all dependency files. We use '.rd' to indicate this will create
# executables.
[-- Attachment #3: Type: text/plain, Size: 153 bytes --]
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and
2007-11-17 11:16 [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and other Hans de Goede
` (3 preceding siblings ...)
2007-11-21 20:46 ` Hans de Goede
@ 2007-11-22 20:09 ` Jean Delvare
2007-11-23 19:52 ` Hans de Goede
2007-11-24 9:31 ` Jean Delvare
6 siblings, 0 replies; 8+ messages in thread
From: Jean Delvare @ 2007-11-22 20:09 UTC (permalink / raw)
To: lm-sensors
Hi Hans,
On Wed, 21 Nov 2007 21:46:43 +0100, Hans de Goede wrote:
> Jean Delvare wrote:
> > Good catch, thanks. I'd rather address the problem in the top Makefile:
> > there's no point in including prog/dump in the list of source
> > directories if we won't build anything there. So I'd suggest something
> > like:
> >
> > ifneq (,$(findstring $(MACHINE), i386 i486 i586 i686 x86_64))
> > SRCDIRS += prog/dump
> > endif
> >
> > in the top Makefile. Then you can even remove the architecture tests
> > in prog/dump/Module.mk, as they will be redundant, and clean up that
> > file a bit.
> >
>
> mm, so I came up with the attached patch, but for some reason that does not
> work as MODULE_DIR gets set to prog/dump when executing install-etc on
> platforms which do include isadump like x86_64:
>
> mkdir -p /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/etc
> if [ ! -e
> /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/etc/sensors3.conf ] ; then \
> install -m 644 etc/sensors.conf.eg
> /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/etc/sensors3.conf; \
> fi
> mkdir -p /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/usr/bin
> install -m 755 prog/dump/sensors-conf-convert
> /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/usr/bin
> install: cannot stat `prog/dump/sensors-conf-convert': No such file or directory
> make: *** [install-etc] Error 1
There was an unrelated bug in etc/Module.mk, which your changes
uncovered. Sorry about that. It is fixed in SVN now, please give it a
try again. Your patch looks OK to me, so if no other problem arises,
please commit it to SVN.
Thanks,
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and
2007-11-17 11:16 [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and other Hans de Goede
` (4 preceding siblings ...)
2007-11-22 20:09 ` Jean Delvare
@ 2007-11-23 19:52 ` Hans de Goede
2007-11-24 9:31 ` Jean Delvare
6 siblings, 0 replies; 8+ messages in thread
From: Hans de Goede @ 2007-11-23 19:52 UTC (permalink / raw)
To: lm-sensors
Jean Delvare wrote:
> Hi Hans,
>
> On Wed, 21 Nov 2007 21:46:43 +0100, Hans de Goede wrote:
>> Jean Delvare wrote:
>>> Good catch, thanks. I'd rather address the problem in the top Makefile:
>>> there's no point in including prog/dump in the list of source
>>> directories if we won't build anything there. So I'd suggest something
>>> like:
>>>
>>> ifneq (,$(findstring $(MACHINE), i386 i486 i586 i686 x86_64))
>>> SRCDIRS += prog/dump
>>> endif
>>>
>>> in the top Makefile. Then you can even remove the architecture tests
>>> in prog/dump/Module.mk, as they will be redundant, and clean up that
>>> file a bit.
>>>
>> mm, so I came up with the attached patch, but for some reason that does not
>> work as MODULE_DIR gets set to prog/dump when executing install-etc on
>> platforms which do include isadump like x86_64:
>>
>> mkdir -p /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/etc
>> if [ ! -e
>> /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/etc/sensors3.conf ] ; then \
>> install -m 644 etc/sensors.conf.eg
>> /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/etc/sensors3.conf; \
>> fi
>> mkdir -p /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/usr/bin
>> install -m 755 prog/dump/sensors-conf-convert
>> /var/tmp/lm_sensors-3.0.0-0.1.rc3.fc9-root-kojibuilder/usr/bin
>> install: cannot stat `prog/dump/sensors-conf-convert': No such file or directory
>> make: *** [install-etc] Error 1
>
> There was an unrelated bug in etc/Module.mk, which your changes
> uncovered. Sorry about that. It is fixed in SVN now, please give it a
> try again. Your patch looks OK to me, so if no other problem arises,
> please commit it to SVN.
>
Ah yes, your latest SVN commit makes my patch work and makes things compile
fine on i386, x86_64, ppc and pcc64, I've just commited my patch to svn.
Regards,
Hans
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and
2007-11-17 11:16 [lm-sensors] PATCH: fix building of 3.0.0-rc3 on powerpc and other Hans de Goede
` (5 preceding siblings ...)
2007-11-23 19:52 ` Hans de Goede
@ 2007-11-24 9:31 ` Jean Delvare
6 siblings, 0 replies; 8+ messages in thread
From: Jean Delvare @ 2007-11-24 9:31 UTC (permalink / raw)
To: lm-sensors
On Fri, 23 Nov 2007 20:52:20 +0100, Hans de Goede wrote:
> Jean Delvare wrote:
> > There was an unrelated bug in etc/Module.mk, which your changes
> > uncovered. Sorry about that. It is fixed in SVN now, please give it a
> > try again. Your patch looks OK to me, so if no other problem arises,
> > please commit it to SVN.
>
> Ah yes, your latest SVN commit makes my patch work and makes things compile
> fine on i386, x86_64, ppc and pcc64, I've just commited my patch to svn.
Excellent, thank you. I'll release lm-sensors 3.0.0 later today after a
last round of testing on my machines!
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 8+ messages in thread