All of lore.kernel.org
 help / color / mirror / Atom feed
From: GNUtoo <GNUtoo@no-log.org>
To: openembedded-devel@lists.openembedded.org
Subject: Emacs updated recipe (was: [patch](or sort of): emacs didn't compile[second part: qemu recipe])
Date: Sat, 23 May 2009 15:06:27 +0200	[thread overview]
Message-ID: <1243083987.14502.0.camel@port4> (raw)
In-Reply-To: <1242679257.9986.8.camel@port4>

[-- Attachment #1: Type: text/plain, Size: 982 bytes --]

On Mon, 2009-05-18 at 22:40 +0200, GNUtoo wrote:
> On Fri, 2009-02-27 at 23:50 +0100, GNUtoo wrote:
> > > On 27-02-09 16:43, GNUtoo wrote:
> > >
> > >> +EXTRA_OECONF += "--target-list=arm-linux-user"
> > >
> > > NACK, OE handles more than ARM
> > >
> > >
> > > _______________________________________________
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> > >
> > yes I know...the qemu recipe is very problematic...that's why I asked what
> > to do
> > I'd like to integrate the necessary arm patches that permit the build of
> > emacs...but I don't know which ones of the patches I should integrate...
> > Denis.
> I've news:
> I've tried the last qemu: qemu-native-0.10.3
> and it worked...
> but it need a modified emacs[-x11] recipe that is attached...
> Comments are welcome
> 
> Denis
Ping
I'll re-attach the same diff.

Denis.

[-- Attachment #2: emacs.diff --]
[-- Type: text/x-patch, Size: 4661 bytes --]

diff --git a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs-22.3/use-qemu.patch b/emacs/emacs-22.3/use-qemu.patch
diff --git a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs-x11_20060801.bb b/emacs/emacs-x11_20060801.bb
diff --git a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs-x11_22.3.bb b/emacs/emacs-x11_22.3.bb
index 03102bf..4475e08 100644
--- a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs-x11_22.3.bb
+++ b/emacs/emacs-x11_22.3.bb
@@ -1,12 +1,14 @@
 require emacs.inc
 
 # full X (non-diet) is needed for X support
-DEPENDS += "gtk+ libungif"
+DEPENDS += "gtk+ libungif libxpm"
 
-EXTRA_OECONF = "--without-sound --with-x-toolkit=gtk"
+EXTRA_OECONF = "--without-sound --with-x-toolkit=gtk --with-xpm"
 
 RREPLACES = "emacs"
 
+PR="r1"
+
 FILESPATH = "${FILE_DIRNAME}/emacs-${PV}:${FILE_DIRNAME}/files"
 SRC_URI = "${GNU_MIRROR}/emacs/emacs-${PV}.tar.gz \
 	   file://use-qemu.patch;patch=1 \
diff --git a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs-x11_cvs.bb b/emacs/emacs-x11_cvs.bb
diff --git a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs.inc b/emacs/emacs.inc
index 05acd82..0464a26 100644
--- a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs.inc
+++ b/emacs/emacs.inc
@@ -5,6 +5,8 @@ SECTION = "editor"
 # and it needs to run some generated binaries..
 DEPENDS += "qemu-native"
 
+DEPENDS +=" liblockfile"
+
 inherit autotools
 
 PACKAGES =+ "${PN}-el"
@@ -16,8 +18,12 @@ FILES_${PN} += "${datadir}/emacs"
 
 FILES_${PN}-dbg += "${libexecdir}/emacs/*/*/.debug ${datadir}/emacs/*/*/.debug"
 
+TREEDIR = "${WORKDIR}/qemu-treedir"
+
 # Large stack is required at least on x86_64 host, otherwise random segfaults appear:
-QEMU = "qemu-${TARGET_ARCH} ${QEMU_OPTIONS} -s 1048576 -L ${STAGING_DIR_TARGET}"
+QEMU = "qemu-${TARGET_ARCH} ${QEMU_OPTIONS} -s 1048576 -L ${TREEDIR}"
+
+export LOGNAME = "$(whoami)"
 
 do_compile_prepend() {
 	sed -i ':1;s:\(START.* \|LIB_STANDARD.* \|LIBES.* \)/usr/lib:\1${STAGING_LIBDIR}:;t1' ${S}/src/s/gnu-linux.h `find "${S}" -name Makefile`
@@ -26,6 +32,19 @@ do_compile_prepend() {
 	ln -sf ../src/emacs lisp/emacs
 	ln -sf ../src/emacs lib-src/emacs
 	ln -sf ../src/emacs leim/emacs
+#copy STAGING_DIR_TARGET and libgcc_s.so* to WORKDIR/qemu-treedir #copied code from glibc-package.bbclass
+	treedir=${TREEDIR}
+	if [ -e $treedir ];then
+		rm -rf $treedir
+	fi
+	mkdir $treedir
+	cp -pPR ${STAGING_DIR_TARGET}/* $treedir
+	if [ -f ${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.so ]; then
+                cp -pPR ${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.so $treedir/lib
+        fi
+        if [ -f ${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.so.* ]; then
+                cp -pPR ${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.so.* $treedir/lib
+        fi
 }
 
 EXTRA_OEMAKE += 'QEMU="${QEMU}"'
diff --git a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs_20060801.bb b/emacs/emacs_20060801.bb
diff --git a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs_22.3.bb b/emacs/emacs_22.3.bb
index da8de39..4eeff7b 100644
--- a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs_22.3.bb
+++ b/emacs/emacs_22.3.bb
@@ -1,5 +1,7 @@
 require emacs.inc
 
+PR="r1"
+
 EXTRA_OECONF = "--without-sound --without-x"
 
 SRC_URI = "${GNU_MIRROR}/emacs/emacs-${PV}.tar.gz \
diff --git a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs_cvs.bb b/emacs/emacs_cvs.bb
index 4a406d6..dca13b1 100644
--- a/home/embedded/oe/org.openembedded.dev/recipes/emacs/emacs_cvs.bb
+++ b/emacs/emacs_cvs.bb
@@ -6,6 +6,7 @@ SECTION = "editor"
 DEPENDS += "qemu-native"
 #NOTE: I have found that this only works with qemu-0.8.0. If I use 0.8.1 or 0.8.2
 # the build gets hung up on compiling certain .el files
+DEPENDS +="liblockfile"
 
 PV = "22.0.50+cvs${SRCDATE}" 
 PE = "1"
@@ -31,6 +32,8 @@ LDFLAGS += "-L${CROSS_DIR}/${TARGET_SYS}/lib"
 
 EXTRA_OECONF = "--without-sound --without-x"
 
+#export LOGNAME:-$USERNAME = "${LOGNAME:-$USERNAME}"
+
 do_bootstrap() {
     cp "${CROSS_DIR}/${TARGET_SYS}/lib/libgcc_s.so.1" "${S}"
     export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${S}"
@@ -50,3 +53,7 @@ do_compile_prepend() {
     export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${S}"
     export QEMU="${QEMU}"
 }
+
+#do_install_prepend(){
+#    export LOGNAME:-$USERNAME = "${LOGNAME:-$USERNAME}"
+#}
diff --git a/home/embedded/oe/org.openembedded.dev/recipes/emacs/files/nostdlib-unwind.patch b/emacs/files/nostdlib-unwind.patch
diff --git a/home/embedded/oe/org.openembedded.dev/recipes/emacs/files/use-qemu.patch b/emacs/files/use-qemu.patch

      reply	other threads:[~2009-05-23 13:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-27 15:43 [patch](or sort of): emacs didn't compile[second part: qemu recipe] GNUtoo
2009-02-27 21:33 ` Koen Kooi
2009-02-27 22:50   ` GNUtoo
2009-03-02 14:23     ` Stanislav Brabec
2009-05-18 20:40     ` GNUtoo
2009-05-23 13:06       ` GNUtoo [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1243083987.14502.0.camel@port4 \
    --to=gnutoo@no-log.org \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.