View previous topic :: View next topic |
Author |
Message |
manuels Advocate
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
Posted: Fri Feb 27, 2009 6:22 pm Post subject: ebuild für offlinefs basteln |
|
|
Hallo,
ich bastel gerade an einem Ebuild für das offlinefs.
Leider läuft aber die Installation schief:
Code: | [...]make[1]: Leaving directory `/var/tmp/portage/sys-fs/offlinefs-9999/work/offlinefs-9999'
>>> Completed installing offlinefs-9999 into /var/tmp/portage/sys-fs/offlinefs-9999/image/
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
var/tmp/portage/sys-fs/offlinefs-9999/image/sbin/ofs
var/tmp/portage/sys-fs/offlinefs-9999/image/sbin/mount.ofs
usr/lib64/libofshash.so.0.0.0
usr/lib64/libofs.so.0.0.0
usr/lib64/libofs.a
usr/lib64/libofshash.a
usr/lib64/libofsconf.a
x86_64-pc-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/sys-fs/offlinefs-9999/image/usr/lib64/libofsconf.a(libofs.la)'
* QA Notice: // installed in ${D}/${D}
* QA Notice: //sbin installed in ${D}/${D}
* QA Notice: //sbin/ofs installed in ${D}/${D}
* QA Notice: //sbin/mount.ofs installed in ${D}/${D}
*
* ERROR: sys-fs/offlinefs-9999 failed.
|
Das ebuild sieht so aus: Code: | DESCRIPTION="A FUSE-based offline filesystem"
HOMEPAGE="http://offlinefs.sourceforge.net"
inherit subversion autotools
ESVN_REPO_URI="http://offlinefs.svn.sourceforge.net/svnroot/offlinefs/ofs/trunk"
ESVN_PROJECT="offlinefs"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="=sys-fs/fuse-2*
>=dev-libs/confuse-2.6"
RDEPEND="${DEPEND}"
src_compile(){
cd "${S}"
eautoreconf
econf
emake || die
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed"
}
| Kann mir jemand von euch sagen was ich falsch mache? _________________ Build your own live cd with catalyst 2.0! |
|
Back to top |
|
|
Mr. Anderson l33t
Joined: 22 Apr 2004 Posts: 762
|
Posted: Sat Feb 28, 2009 5:19 pm Post subject: |
|
|
die Makefiles machen seltsame Dinge:
Code: | ...
myexecpdir = $(DESTDIR)/sbin
...
test -z "$(myexecpdir)" || $(MKDIR_P) "$(DESTDIR)$(myexecpdir)"
... |
Als workaround würde ich versuchen vor autoreconf die src/Makefile.am und mounthelper/Makefile.am zu ändern; nämlich:
Code: | myexecpdir = $(DESTDIR)@OFS_SBIN@ |
ändern zu
Code: | myexecpdir = @OFS_SBIN@ |
Außerdem noch ein paar andere Dinge, so dass am Ende das ebuild so aussieht:
Code: | DESCRIPTION="A FUSE-based offline filesystem"
HOMEPAGE="http://offlinefs.sourceforge.net"
inherit subversion autotools
ESVN_REPO_URI="http://offlinefs.svn.sourceforge.net/svnroot/offlinefs/ofs/trunk"
ESVN_PROJECT="offlinefs"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="=sys-fs/fuse-2*
>=dev-libs/confuse-2.6"
RDEPEND="${DEPEND}"
src_unpack() {
subversion_src_unpack
cd "${S}"
sed -i s/"\(myexecpdir= \)\$(DESTDIR)"/"\1"/g src/Makefile.am \
|| die "patching src/Makefile.am failed"
sed -i s/"\(myexecpdir = \)\$(DESTDIR)"/"\1"/g mounthelper/Makefile.am \
|| die "patching mounthelper/Makefile.am failed"
eautoreconf
econf
}
src_compile() {
emake || die
}
src_install() {
dodir sbin
emake DESTDIR="${D}" install || die "Install failed"
}
|
Ich bin Amateur was ebuilds angeht. Gut möglich, dass da auch einige Dinge nicht ideal sind.
Was noch ziemlich stört:
Code: | strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment
usr/lib64/libofshash.so.0.0.0
usr/lib64/libofs.so.0.0.0
sbin/ofs
sbin/mount.ofs
usr/lib64/libofsconf.a
x86_64-pc-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/sys-fs/offlinefs-9999/image/usr/lib64/libofsconf.a(libofs.la)'
usr/lib64/libofshash.a
usr/lib64/libofs.a
|
Code: | $ ar -xv usr/lib64/libofsconf.a libofs.la
x - libofs.la
$ cat libofs.la
# libofs.la - a libtool library file
# Generated by ltmain.sh (GNU libtool) 2.2.4
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='libofs.so.0'
# Names of this library.
library_names='libofs.so.0.0.0 libofs.so.0 libofs.so'
# The name of the static archive.
old_library='libofs.a'
# Linker flags that can not go in dependency_libs.
inherited_linker_flags=''
# Libraries that this one depends upon.
dependency_libs=''
# Names of additional weak libraries provided by this library
weak_library_names=''
# Version information for libofs.
current=0
age=0
revision=0
# Is this an already installed library?
installed=no
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/usr/lib64' |
Ob das wirklich so sein soll? |
|
Back to top |
|
|
manuels Advocate
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
|
Back to top |
|
|
|