View previous topic :: View next topic |
Author |
Message |
Lysander
Joined: 13 Sep 2011 Posts: 5
|
Posted: Tue Jun 12, 2012 12:07 pm Post subject: FreeBSD GNUmakefile |
|
|
PC-BSD 9.0
i386
with gmake everything builds fine.
but with "gmake install"
I get an error on installing headers
Something like...
tar can not open /dev/sa0
Apparently /dev/sa0 is the default file if no name is given.
I installed everything manually and everything seems fine.
So this is just a little feedback hope I'm not wasting your time. |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Jun 12, 2012 1:18 pm Post subject: |
|
|
The make file is probably using tar options that are not available in the BSD version. I'll see what i can do about it. |
|
Back to top |
|
|
Lysander
Joined: 13 Sep 2011 Posts: 5
|
Posted: Tue Jun 19, 2012 12:43 pm Post subject: |
|
|
Simple fix
So much to learn and so little time (and brains)
If no archive is specified and there is no default device Gnu tar falls back to standard in/out.
In such a case Bsdtar returns an error.
So I made an embarrassingly simple patch below.
Or the TAPE environment could be set to '-'
Or install gnu tar on bsd (gtar freebsd ports)
Or recompile bsdtar to use standard in/out
Or install headers manually
Code: |
Index: GNUmakefile
===================================================================
--- GNUmakefile (revision 952)
+++ GNUmakefile (working copy)
@@ -253,19 +253,19 @@
install-headers-gtkd:
install -d $(DESTDIR)$(prefix)/include/d
- (cd src; echo $(SOURCES_GTKD) | sed -e s,src/,,g | xargs tar c) | (cd $(DESTDIR)$(prefix)/include/d; tar xv)
+ (cd src; echo $(SOURCES_GTKD) | sed -e s,src/,,g | xargs tar cf -) | (cd $(DESTDIR)$(prefix)/include/d; tar xvf -)
install-headers-gtkdgl:
- (cd srcgl; echo $(SOURCES_GTKDGL) | sed -e s,srcgl/,,g | xargs tar c) | (cd $(DESTDIR)$(prefix)/include/d; tar xv)
+ (cd srcgl; echo $(SOURCES_GTKDGL) | sed -e s,srcgl/,,g | xargs tar cf -) | (cd $(DESTDIR)$(prefix)/include/d; tar xvf -)
install-headers-gtkdsv:
- (cd srcsv; echo $(SOURCES_GTKDSV) | sed -e s,srcsv/,,g | xargs tar c) | (cd $(DESTDIR)$(prefix)/include/d; tar xv)
+ (cd srcsv; echo $(SOURCES_GTKDSV) | sed -e s,srcsv/,,g | xargs tar cf -) | (cd $(DESTDIR)$(prefix)/include/d; tar xvf -)
install-headers-gda:
- (cd srcgda; echo $(SOURCES_GTKDGDA) | sed -e s,srcgda/,,g | xargs tar c) | (cd $(DESTDIR)$(prefix)/include/d; tar xv)
+ (cd srcgda; echo $(SOURCES_GTKDGDA) | sed -e s,srcgda/,,g | xargs tar cf -) | (cd $(DESTDIR)$(prefix)/include/d; tar xvf -)
install-headers-gstreamer:
- (cd srcgstreamer; echo $(SOURCES_GSTREAMERD) | sed -e s,srcgstreamer/,,g | xargs tar c) | (cd $(DESTDIR)$(prefix)/include/d; tar xv)
+ (cd srcgstreamer; echo $(SOURCES_GSTREAMERD) | sed -e s,srcgstreamer/,,g | xargs tar cf -) | (cd $(DESTDIR)$(prefix)/include/d; tar xvf -)
uninstall: uninstall-gtkdgl uninstall-gtkdsv uninstall-gda uninstall-gstreamer
$(foreach dir,$(shell ls src) , rm -rf $(DESTDIR)$(prefix)/include/d/$(dir))
|
|
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Thu Jun 21, 2012 3:11 pm Post subject: |
|
|
Thanks, i hadn't gotten around to it yet.
Changed in git commit e803ec3ec2. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|