Skip to contentSkip to conversation

gstreamer1: use a relative symlink to gstconfig.h

PATCH New Phil Eichinger 4 participants 6 messages Jan 28, 2016 – Jan 31, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gstreamer1: use a relative symlink to gstconfig.h

---
 package/gstreamer1/gstreamer1/gstreamer1.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/gstreamer1/gstreamer1/gstreamer1.mk +1 -1
index 4548773..0eb46e8 100644
@@ -41,7 +41,7 @@ GSTREAMER1_DEPENDENCIES = libglib2 host-pkgconf host-bison host-flex
 # updated to look in the correct location.
 # Add a symlink to the legacy location
 define GSTREAMER1_LEGACY_CGSTCONFIG_H
-	ln -sf $(STAGING_DIR)/usr/lib/gstreamer-1.0/include/gst/gstconfig.h \
+	ln -srf $(STAGING_DIR)/usr/lib/gstreamer-1.0/include/gst/gstconfig.h \
 	       $(STAGING_DIR)/usr/include/gstreamer-1.0/gst/gstconfig.h
 endef
 GSTREAMER1_POST_INSTALL_STAGING_HOOKS += GSTREAMER1_LEGACY_CGSTCONFIG_H
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 gstreamer1: use a relative symlink to gstconfig.h

Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Phil" == Phil Eichinger <[email protected]> writes:

Why? Does that fix anything or is it just "prettier"? I get it that we would need it for a relocatable host dir, but we're not there yet.

A bit more detailed commit message would be good.

Quoted 24 lines
---
 package/gstreamer1/gstreamer1/gstreamer1.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/gstreamer1/gstreamer1/gstreamer1.mk +1 -1
index 4548773..0eb46e8 100644
@@ -41,7 +41,7 @@ GSTREAMER1_DEPENDENCIES = libglib2 host-pkgconf host-bison host-flex
 # updated to look in the correct location.
 # Add a symlink to the legacy location
 define GSTREAMER1_LEGACY_CGSTCONFIG_H
-	ln -sf $(STAGING_DIR)/usr/lib/gstreamer-1.0/include/gst/gstconfig.h \
+	ln -srf $(STAGING_DIR)/usr/lib/gstreamer-1.0/include/gst/gstconfig.h \
 	       $(STAGING_DIR)/usr/include/gstreamer-1.0/gst/gstconfig.h
 endef
 GSTREAMER1_POST_INSTALL_STAGING_HOOKS += GSTREAMER1_LEGACY_CGSTCONFIG_H
Signature · 6 lines
2.1.4

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 gstreamer1: use a relative symlink to gstconfig.h

Quoted 9 lines · Peter Korsgaard
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Phil" == Phil Eichinger <[email protected]> writes:

Why? Does that fix anything or is it just "prettier"? I get it that we would need it for a relocatable host dir, but we're not there yet.

A bit more detailed commit message would be good.

Yes, it is for relocation, sorry for not being more elaborate on that, will do better in the future.

I actually relocate the host dir with some tricks, that aren't upstreamable
yet because they are not generally usable for buildroot.
This patch just eases the relocation and I didn't see any harm in using a relative symlink instead of an absolute one.
So it actually fixes something, it's not just "prettier"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160129/d1e910ae/attachment.html>

#3 lore raw

PATCH 1/1 gstreamer1: use a relative symlink to gstconfig.h

Hi Phil,

Quoted 12 lines · Phil Eichinger
Quoted 9 lines · Peter Korsgaard
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"Phil" == Phil Eichinger <[email protected]> writes:

Why? Does that fix anything or is it just "prettier"? I get it that we would need it for a relocatable host dir, but we're not there yet.

A bit more detailed commit message would be good.

Quoted 8 lines

Yes, it is for relocation, sorry for not being more elaborate on that, will do better in the future.

I actually relocate the host dir with some tricks, that aren't upstreamable yet because they are not generally usable for buildroot.
This patch just eases the relocation and I didn't see any harm in using a relative symlink instead of an absolute one.
So it actually fixes something, it's not just "prettier"

Could you share the tricks you are doing so far?

I'm working on making the SDK (host dir. and staging dir.) relocatable. You can check the current state of my branch [1].
I hope to submit a first step before the 2016.02 RC month, but this is not yet ready :-/

Anyway, I'm really interested in gathering all that have to be done for the relocatable SDK. ;-)

[1] https://github.com/tSed/buildroot/tree/sma/host-pkg-rpath/wip

Regards,

Signature · 1 line
Samuel
#4 lore raw

PATCH 1/1 gstreamer1: use a relative symlink to gstconfig.h

Hello Samuel,

Quoted 7 lines · Samuel Martin

I'm working on making the SDK (host dir. and staging dir.) relocatable. You can check the current state of my branch [1].
I hope to submit a first step before the 2016.02 RC month, but this is not yet ready :-/

Anyway, I'm really interested in gathering all that have to be done for the relocatable SDK. ;-)

Glad to hear you are working on making the SDK relocatable !

However, if I may have a suggestion, I believe you shouldn't submit all the changes needed in one big patch series.

Instead, what I would suggest is that you:

1/ Write up a web-page or Wiki-page with a list of things that need to
be fixed.

2/ Send one patch series for each thing that needs to be fixed. And
maybe not send all patch series at the same time: handle one or two topics at a time.

3/ Keep your Wiki page updated with the things that have been merged,
and things that remain to be merged, that remain to be submitted, etc.

Moving to a relocatable SDK is a big change that requires lots of smaller changes. We have to handle it progressively, otherwise it will never be merged due to the amount of required changes.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com