Your message dated Mon, 25 Sep 2006 18:47:35 +0200 with message-id <[EMAIL PROTECTED]> and subject line Bug#31795: cross-compiling patches for joe has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---Package: joe Version: 2.8-12 Hi Dale, I have added rudimentary cross compilation support to joe. You can control the gcc on the buildmachine with $BUILD_CC and the include directory to search in with make variable includeprefix="path". The second is very suboptimal :(, but it is better than to hardcode the include path. Ideally, this programm should get autoconf support, maybe someone which autoconf knowledge reads this and wants to help? (To fix the first, you can also rewrite the conf.c program in shell or perl, which should be very easy.) If nobody wants to fix this, I may try to do so on a lazy evening, but don't hold your breath. In the meantime, please apply the following patches to Makefile and conf.c, and consider sending them upstream. BTW, if neither environment variable is set, the default behaviour is the old behaviour, so nothing should keep you from adding these patches (beside implementing a better solution, of course :) Thanks, Marcus --- Makefile.prior Wed Jan 13 00:46:40 1999 +++ Makefile Wed Jan 13 00:45:19 1999 @@ -37,6 +37,10 @@ CC = gcc +# Cross compilation support +BUILD_CC = $(CC) +includeprefix = \"/usr\" + # You may have to include some extra libraries # for some systems # @@ -78,7 +82,7 @@ # How to make config.h config.h: - $(CC) conf.c -o conf + $(BUILD_CC) conf.c -o conf -DINCLUDEPREFIX=$(includeprefix) ./conf $(WHERERC) $(TERMINFO) # How to make termidx --- conf.c~ Wed Jan 13 00:30:49 1999 +++ conf.c Wed Jan 13 00:40:12 1999 @@ -1,5 +1,9 @@ #include <stdio.h> +#ifndef INCLUDEPREFIX +#define INCLUDEPREFIX "/usr" +#endif + main(argc,argv) char *argv[]; { @@ -32,7 +36,7 @@ fprintf(f,"\n"); /* Figure out what type of tty we have */ - if(g=fopen("/usr/include/termios.h","r")) + if(g=fopen(INCLUDEPREFIX"/include/termios.h","r")) { fprintf(f,"/* Uncomment the tty type. Leave all uncommented for BSD */\n"); fprintf(f,"#define TTYPOSIX 1\n"); @@ -41,7 +45,7 @@ fprintf(f,"/* #define SYSSV 1 */\n"); fclose(g); } - else if(g=fopen("/usr/include/sys/termios.h","r")) + else if(g=fopen(INCLUDEPREFIX"/include/sys/termios.h","r")) { fprintf(f,"/* Uncomment the tty type. Leave all uncommented for BSD */\n"); fprintf(f,"#define TTYPOSIX 1\n"); @@ -50,7 +54,7 @@ fprintf(f,"/* #define SYSSV 1 */\n"); fclose(g); } - else if(g=fopen("/usr/include/termio.h","r")) + else if(g=fopen(INCLUDEPREFIX"/include/termio.h","r")) { fprintf(f,"/* Uncomment the tty type. Leave both uncommented for BSD */\n"); fprintf(f,"/* #define TTYPOSIX 1 */\n"); @@ -59,7 +63,7 @@ fprintf(f,"/* #define SYSSV 1 */\n"); fclose(g); } - else if(g=fopen("/usr/include/sys/termio.h","r")) + else if(g=fopen(INCLUDEPREFIX"/include/sys/termio.h","r")) { fprintf(f,"/* Uncomment the tty type. Leave all uncommented for BSD */\n"); fprintf(f,"/* #define TTYPOSIX 1 */\n"); @@ -81,7 +85,7 @@ fprintf(f,"\n"); /* Figure out what type of directory access we have */ - if(g=fopen("/usr/include/dirent.h","r")) + if(g=fopen(INCLUDEPREFIX"/include/dirent.h","r")) { fprintf(f,"/* Uncomment the directory access type. Leave all commented for none */\n"); fprintf(f,"#define DIRENT 1\n"); @@ -90,7 +94,7 @@ fprintf(f,"/* #define BSDSYSDIR 1 */\n"); fclose(g); } - else if(g=fopen("/usr/include/sys/dirent.h","r")) + else if(g=fopen(INCLUDEPREFIX"/include/sys/dirent.h","r")) { fprintf(f,"/* Uncomment the directory access type. Leave all commented for none */\n"); fprintf(f,"/* #define DIRENT 1 */\n"); @@ -99,7 +103,7 @@ fprintf(f,"/* #define BSDSYSDIR 1 */\n"); fclose(g); } - else if(g=fopen("/usr/include/sys/dir.h","r")) + else if(g=fopen(INCLUDEPREFIX"/include/sys/dir.h","r")) { fprintf(f,"/* Uncomment the directory access type. Leave all commented for none */\n"); fprintf(f,"/* #define DIRENT 1 */\n"); @@ -108,7 +112,7 @@ fprintf(f,"/* #define BSDSYSDIR 1 */\n"); fclose(g); } - else if(g=fopen("/usr/include/bsd/sys/dir.h","r")) + else if(g=fopen(INCLUDEPREFIX"/include/bsd/sys/dir.h","r")) { fprintf(f,"/* Uncomment the directory access type. Leave all commented for none */\n"); fprintf(f,"/* #define DIRENT 1 */\n"); @@ -121,14 +125,14 @@ fprintf(f,"\n"); /* Check if we have utime.h */ - if(g=fopen("/usr/include/utime.h","r")) + if(g=fopen(INCLUDEPREFIX"/include/utime.h","r")) { fprintf(f,"/* Uncomment if we have utime.h */\n"); fprintf(f,"#define UTIME 1\n"); fprintf(f,"/* #define SYSUTIME 1 */\n"); fclose(g); } - else if(g=fopen("/usr/include/sys/utime.h","r")) + else if(g=fopen(INCLUDEPREFIX"/include/sys/utime.h","r")) { fprintf(f,"/* Uncomment if we have utime.h */\n"); fprintf(f,"/* #define UTIME 1 */\n"); -- System Information Debian Release: 2.1 Kernel Version: Linux flora 2.0.32 #1 Mit Jul 22 22:52:29 CEST 1998 i586 unknown Versions of the packages joe depends on: ii libc6 2.0.7v-1 The GNU C library version 2 (run-time files) ii libncurses4 4.2-3 Shared libraries for terminal handling
--- End Message ---
--- Begin Message ---On Thu, Sep 14, 2000 at 01:22:03PM +0200, Josip Rodin wrote: > > > Are those patches for cross-compiling joe still relevant? > > > > What do you mean with relevant? If you want to know if the problem > > persists, then yes, it was never fixed. If you just want to know if it is > > important to fix it, then no, I don't need to cross compile it. > > OK. > > > However, the build system of joe is screwed beyond hope anyway. > > It should use autoconf. > > I'll implement autoconf instead, then. The upstream authors actually beat me to it, and joe is fully auto*-screwed-in right now. I'll close the bug report; if you actually notice cross-compilation-related bugs in the new build system, please report them separately. And after seven years and eight months, another one bites the dust :) -- 2. That which causes joy or happiness.
--- End Message ---

