Bug#355278: dpatch dose not work in CPP mode correctly on non-linux archs

2011-08-13 Thread Gergely Nagy
retitle 355278 dpatch does not work in CPP mode correctly on non-linux archs
tag 355278 + pending
thanks

Retitling, because adding features to dpatch is not really on my agenda,
and since the bug report is very old, packages that still use dpatch,
are probably already fixed, and new packages should not use it.

On the other hand, the CPP mode would be a viable alternative to the
00list.${DEB_BUILD_ARCH_CPU}, if it only worked.

Therefore, in my git repo, I changed the CPP mode to replace - with
underscores when setting the appropriate CPP macro. That should cover
all currently supported Debian ports to the best of my knowledge.

-- 
|8]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#355278: dpatch dose not work in CPP mode correctly on non-linux archs

2006-05-26 Thread Petr Salinger
Hi.

 Using dpatch 'CPP' mode where 00lists is processed through CPP,
 and other similar methods would probably be a more useful workaround.

Neither 'CPP' is usable, because dpatch calls

cpp -P -DDEB_BUILD_ARCH_kfreebsd-i386=1 -DDEB_BUILD_ARCH=kfreebsd-i386 
or
cpp -P -DDEB_BUILD_ARCH_kfreebsd-amd64=1 -DDEB_BUILD_ARCH=kfreebsd-amd64 
or
cpp -P -DDEB_BUILD_ARCH_hurd-i386=1 -DDEB_BUILD_ARCH=hurd-i386 

which triggers warning 
command line:1:24: warning: missing whitespace after the macro name  
and is equal to 
#define DEB_BUILD_ARCH_kfreebsd -i386 1
#define DEB_BUILD_ARCH kfreebsd-i386
or 
#define DEB_BUILD_ARCH_kfreebsd -amd64 1
#define DEB_BUILD_ARCH kfreebsd-amd64
or
#define DEB_BUILD_ARCH_hurd -i386 1
#define DEB_BUILD_ARCH hurd-i386

Please, could you add OS and CPU variants 
as a workaround for this into CPP mode.
IMHO, HOST would be better, i.e

DEB_HOST_ARCH_OS=kfreebsd
DEB_HOST_ARCH_CPU=i386

Thanks for considering


Petr




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]