PATCH: fix building of 3.0.0-rc3 on powerpc and other non-intel archs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lm_sensors-3.0.0-rc3-ppc-build.patch
Type: text/x-patch
Size: 2135 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20071121/2a7d892b/attachment.bin 


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux