| Summary: | net-libs/farstream-0.2.2 patch | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | augury <Jacob.McCandless> |
| Component: | [OLD] GNOME | Assignee: | voip herd (OBSOLETE) <voip+disabled> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | normal | CC: | gnome, tomwij |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | adds to the sed command in Makefile.in and Makefile.am ... could use cleaning | ||
edit should be "patch -p0 < files/farstream_makefiles.patch" dunno epatch "${FILESDIR}"/farstream_makefiles.patch
I made the patch in the work directory. Importance is to be set by the maintainer, this certainly isn't a blocker for everyone. You forgot to mention what this patch does. As far as I can deduce, it removes some dollar signs somewhere? Why? With my upstream hat on.. what is this for? It is to fix the sed command so that the marshal.list file is readable by glib-genmarshal. The dollar part is because gnu makefiles are really weird about dollar signs and I need one. dollar :=$$ defines dollar as $. Then you can $(dolloar) and voila one $ right where you need it. See the sed command leaves , on the end it is very sloppy. This happens in another package as well. Only that package actually picks up extra characters. I just went through 760 some packages so I'm assuming glib-genmarshal accepted the sloppy files at one point. They are kind of simple like headers and really should have been pre-generated. The glib-genmarshal of these files generates an actual header type file which is it obvious merit. What version of dev-libs/glib are you using? Can you attach the actual error that you saw without the patch? I kind of just chuck the dollar:=$$ patch in there anywhere on all the makefile.am/in because I don't want to go through each one and place it because I don't know what up stream would really want to do with it. I'm not a sed genius and my makefile organization is a little rusty. I can tell you I got the same error in net-voip/telepathy-gabble-0.16.4
Only this time it left some stuff after a space as well as the comma.
If you don't like patching and could sed the stuff in I would see no problem with that.
* dev-libs/glib
Latest version available: 2.34.3
Latest version installed: 2.34.3
Size of files: 6,573 kB
Homepage: http://www.gtk.org/
Description: The GLib library of C routines
License: LGPL-2+
It didn't like the trailing comma
make -j1 make all-recursive make[1]: Entering directory `/VAR_OLD/tmp/portage/net-libs/farstream-0.2.2/work/farstream-0.2.2' Making all in farstream make[2]: Entering directory `/VAR_OLD/tmp/portage/net-libs/farstream-0.2.2/work/farstream-0.2.2/farstream' ( cd . && \ sed -n -e 's/.*_fs_marshal_\([[:upper:][:digit:]]*__[[:upper:][:digit:]_]*\).*/\1/p' \ fs-candidate.c fs-codec.c fs-participant.c fs-session.c fs-stream.c fs-conference.c fs-transmitter.c fs-stream-transmitter.c fs-plugin.c fs-element-added-notifier.c fs-utils.c fs-rtp.c fs-private.h ) \ | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > fs-marshal.list.tmp echo "#include \"fs-marshal.h\"" >> fs-marshal.c.tmp && \ glib-genmarshal --body --prefix=_fs_marshal fs-marshal.list >> fs-marshal.c.tmp && \ mv fs-marshal.c.tmp fs-marshal.c fs-marshal.list:2: error: unexpected character `\12', expected type name make[2]: *** [fs-marshal.c] Error 1 make[2]: Leaving directory `/VAR_OLD/tmp/portage/net-libs/farstream-0.2.2/work/farstream-0.2.2/farstream' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/VAR_OLD/tmp/portage/net-libs/farstream-0.2.2/work/farstream-0.2.2' make: *** [all] Error 2 * ERROR: net-libs/farstream-0.2.2 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-libs/farstream-0.2.2'`, * the complete build log and the output of `emerge -pqv '=net-libs/farstream-0.2.2'`. * The complete build log is located at '/tmp/net-libs:farstream-0.2.2:20130204-174520.log'. * For convenience, a symlink to the build log is located at '/VAR_OLD/tmp/portage/net-libs/farstream-0.2.2/temp/build.log'. * The ebuild environment file is located at '/VAR_OLD/tmp/portage/net-libs/farstream-0.2.2/temp/environment'. * Working directory: '/VAR_OLD/tmp/portage/net-libs/farstream-0.2.2/work/farstream-0.2.2' * S: '/VAR_OLD/tmp/portage/net-libs/farstream-0.2.2/work/farstream-0.2.2' >>> Failed to emerge net-libs/farstream-0.2.2, Log file: >>> '/tmp/net-libs:farstream-0.2.2:20130204-174520.log' * Messages for package net-libs/farstream-0.2.2: see the output into the file looks like this OBJECT:UINT, VOID:BOXED,BOXED, VOID:ENUM,STRING, VOID:OBJECT,ENUM,STRING, VOID:OBJECT,OBJECT, VOID:UINT,ENUM, VOID:UINT,POINTER, it should look like this OBJECT:UINT VOID:BOXED,BOXED VOID:ENUM,STRING VOID:OBJECT,ENUM,STRING VOID:OBJECT,OBJECT VOID:UINT,ENUM VOID:UINT,POINTER you can try your glib-genmarshal on both but mine, somewhat understandably, only works with the second version. glib-genmarshal --header or glib-genmarshal --body are some of the good functions of glib-genmarshal That is sort of lost in the self-cleaning jungling act of the makefiles. Thanks. as for the case of net-voip/telepathy-gabble-0.16.4 the generated text is a legitimate coding element. The *sed work* entirely does not account for this coding. Everything following a " " should be removed. This is very easy to do. It might be best for this package to contain that language with the *sed work* now rather than wait for this coding to come up and have a problem again. Note that the dollar line in the makefile must be defined :=$$ exactly no spaces. echo $$ I get a diffent number everytime. different number in different terminals anyways. same terminal same number. Which is make the error of $ in a makefile that much easier to track. I personally would leave all coding, including scripts (grep '&&') out of the makefiles. The interfacing isn't there. Of course then you have a few scripts lying around or you have a scripts directory. On my systems I have a separate scripts directory that I can copy and maintain and remove easily. See the whole thing has nothing to do with Makefile. Makefile is only to function as a compiling tool. I'll just make farstream use the generic marshaller and we can eliminate the issue entirely. I have no qualms. What is the generic marshaller? Looking at the patch I don't know if I got enough space out of the dollar:=$$. SO it may not work. Makefiles are so 19847. - | sed -e 's/__/:/' -e 'y/_/,/' | sort -u > $@.tmp
+ | sed -e 's/__/:/' -e 'y/_/,/' -e 's/,${dollar}//g' | sort -u > $@.tmp
That's the meat and potatoes.
I'm not sure if that is semantically correct. sed isn't operating on a file so the ///g is irrelevant. what y/// does that s/// didn't do I'm not sure. I tried \n. This is not so good. |
Created attachment 337740 [details] adds to the sed command in Makefile.in and Makefile.am ... could use cleaning I have a patch for /usr/portage/net-libs/farstream/farstream-0.2.2.ebuild one file and "patch -p0 <farstream_makefiles.patch" to the ebuild.