Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problemy z komilację pakietów z lokalnego overlaya
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
RA6
n00b
n00b


Joined: 13 Mar 2007
Posts: 48
Location: Polonia - Vladislavia

PostPosted: Sat May 11, 2013 2:25 pm    Post subject: Problemy z komilację pakietów z lokalnego overlaya Reply with quote

Problem wygląda następująco:

Na komputerze z systemem 64 bitowym nadaje pakietom uprawnienia katalogom 700 i plikom 600 na maszynach 32 bitowych nie ma takich problemów.

Próby kompilacji czegoś z poza drzewa np :

Quote:
emerge -vt libreoffice-bin

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild N ] app-office/libreoffice-bin-3.6.4.3::x-portage USE="cups java (-aqua) -debug -gnome -kde" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB


>>> Verifying ebuild manifests
>>> Running pre-merge checks for app-office/libreoffice-bin-3.6.4.3

>>> Emerging (1 of 1) app-office/libreoffice-bin-3.6.4.3 from x-portage
* amd64-bin-libreoffice-base-java-3.6.4.3.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking amd64-bin-libreoffice-base-java-3.6.4.3.tar.xz to /var/tmp/portage/app-office/libreoffice-bin-3.6.4.3/work
>>> Source unpacked in /var/tmp/portage/app-office/libreoffice-bin-3.6.4.3/work
>>> Preparing source in /var/tmp/portage/app-office/libreoffice-bin-3.6.4.3/work ...
cp: cannot stat ‘/usr/local/portage/app-office/libreoffice-bin/files/50-libreoffice-bin’: No such file or directory
* Adjusting to prefix /
* ERROR: app-office/libreoffice-bin-3.6.4.3 failed (prepare phase):
* /var/tmp/portage/app-office/libreoffice-bin-3.6.4.3/temp/50-libreoffice-bin does not exist
*
* Call stack:
* ebuild.sh, line 93: Called src_prepare
* environment, line 5440: Called eprefixify '/var/tmp/portage/app-office/libreoffice-bin-3.6.4.3/temp/50-libreoffice-bin'
* environment, line 2002: Called die
* The specific snippet of code:
* die "${x} does not exist";
*
* If you need support, post the output of `emerge --info '=app-office/libreoffice-bin-3.6.4.3'`,
* the complete build log and the output of `emerge -pqv '=app-office/libreoffice-bin-3.6.4.3'`.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
!!! When you file a bug report, please include the following information:
GENTOO_VM= CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =libreoffice-bin-3.6.4.3
* The complete build log is located at '/var/log/portage/app-office:libreoffice-bin-3.6.4.3:20130511-140039.log'.
* For convenience, a symlink to the build log is located at '/var/tmp/portage/app-office/libreoffice-bin-3.6.4.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-office/libreoffice-bin-3.6.4.3/temp/environment'.
* Working directory: '/var/tmp/portage/app-office/libreoffice-bin-3.6.4.3/work'
* S: '/var/tmp/portage/app-office/libreoffice-bin-3.6.4.3/work'

>>> Failed to emerge app-office/libreoffice-bin-3.6.4.3, Log file:

>>> '/var/log/portage/app-office:libreoffice-bin-3.6.4.3:20130511-140039.log'


Quote:
emerge draftsight
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-gfx/draftsight-1.2.205 from x-portage
* draftSight.rpm SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking draftSight.rpm to /var/tmp/portage/media-gfx/draftsight-1.2.205/work
>>> Source unpacked in /var/tmp/portage/media-gfx/draftsight-1.2.205/work
>>> Preparing source in /var/tmp/portage/media-gfx/draftsight-1.2.205/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/draftsight-1.2.205/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-gfx/draftsight-1.2.205/work ...
>>> Source compiled.
>>> Test phase [not enabled]: media-gfx/draftsight-1.2.205

>>> Install draftsight-1.2.205 into /var/tmp/portage/media-gfx/draftsight-1.2.205/image/ category media-gfx
install: omitting directory ‘/usr/local/portage/media-gfx/draftsight/files/draftsight’
* ERROR: media-gfx/draftsight-1.2.205 failed (install phase):
* dobin failed
*
* If you need support, post the output of `emerge --info '=media-gfx/draftsight-1.2.205'`,
* the complete build log and the output of `emerge -pqv '=media-gfx/draftsight-1.2.205'`.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* The complete build log is located at '/var/log/portage/media-gfx:draftsight-1.2.205:20130511-142315.log'.
* For convenience, a symlink to the build log is located at '/var/tmp/portage/media-gfx/draftsight-1.2.205/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-gfx/draftsight-1.2.205/temp/environment'.
* Working directory: '/var/tmp/portage/media-gfx/draftsight-1.2.205/work'
* S: '/var/tmp/portage/media-gfx/draftsight-1.2.205/work'

>>> Failed to emerge media-gfx/draftsight-1.2.205, Log file:

>>> '/var/log/portage/media-gfx:draftsight-1.2.205:20130511-142315.log'

* Messages for package media-gfx/draftsight-1.2.205:

* ERROR: media-gfx/draftsight-1.2.205 failed (install phase):
* dobin failed
*
* If you need support, post the output of `emerge --info '=media-gfx/draftsight-1.2.205'`,
* the complete build log and the output of `emerge -pqv '=media-gfx/draftsight-1.2.205'`.
* This ebuild is from an overlay named 'x-portage': '/usr/local/portage/'
* The complete build log is located at '/var/log/portage/media-gfx:draftsight-1.2.205:20130511-142315.log'.
* For convenience, a symlink to the build log is located at '/var/tmp/portage/media-gfx/draftsight-1.2.205/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/media-gfx/draftsight-1.2.205/temp/environment'.
* Working directory: '/var/tmp/portage/media-gfx/draftsight-1.2.205/work'
* S: '/var/tmp/portage/media-gfx/draftsight-1.2.205/work'



Quote:
emerge --info
Portage 2.1.11.63 (default/linux/amd64/13.0, gcc-4.7.2, glibc-2.17, 3.9.0-gentoo x86_64)
=================================================================
System uname: Linux-3.9.0-gentoo-x86_64-Intel-R-_Xeon-TM-_CPU_3.20GHz-with-gentoo-2.2
KiB Mem: 8166788 total, 101352 free
KiB Swap: 522108 total, 522108 free
Timestamp of tree: Sat, 11 May 2013 05:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash: 4.2_p45
dev-java/java-config: 2.2.0
dev-lang/python: 2.7.4, 3.2.4
dev-util/cmake: 2.8.10.2-r2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.11.6, 1.13.1
sys-devel/binutils: 2.23.1
sys-devel/gcc: 4.7.2-r1
sys-devel/gcc-config: 1.8
sys-devel/libtool: 2.4.2
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc: 2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=nocona -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.po.opole.pl ftp://gentoo.po.opole.pl"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X acl alsa amd64 bash-completion berkdb bzip2 cdr cjk cli cracklib crypt cxx dri dvd dvdr encode fbcon fortran gdbm gpm gtk iconv icu ipv6 mmx mmx2 modules mp4 mudflap multilib nas ncurses nls nptl nvidia opengl openmp pam pcre qt4 readline samba sdl session slang spell sse sse2 sse3 ssl symlink tcpd threads truetype type1 unicode vdpau vim-syntax xv zlib" ABI_X86="64 32" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="plustek net" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

_________________
Desktop: [COMPAQ EVO W6000] [2xP4 Xeon 2GHz][GF6200LE 128DDR2] [2.6.29-gentoo-sources]
Desktop: [Fujitsu Siemens CELSIUS R630] [2xP4 Xeon 3,2GHz][Quadro FX 380] [2.9.0-gentoo-sources]
Back to top
View user's profile Send private message
lazy_bum
l33t
l33t


Joined: 16 Feb 2005
Posts: 690

PostPosted: Sat May 11, 2013 7:13 pm    Post subject: Reply with quote

Quote:
>>> Install draftsight-1.2.205 into /var/tmp/portage/media-gfx/draftsight-1.2.205/image/ category media-gfx
install: omitting directory ‘/usr/local/portage/media-gfx/draftsight/files/draftsight’
* ERROR: media-gfx/draftsight-1.2.205 failed (install phase):

Pokaż ebuild.
_________________
roslin uberlay | grubelek
Back to top
View user's profile Send private message
RA6
n00b
n00b


Joined: 13 Mar 2007
Posts: 48
Location: Polonia - Vladislavia

PostPosted: Mon May 13, 2013 3:56 am    Post subject: Reply with quote

draftsight-1.2.205.ebuild

Quote:
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit eutils rpm

DOWNLOAD_URL="http://www.draftsight.com/download-linux-fedora"
MY_PN="draftSight"

DESCRIPTION="Professional-grade 2D CAD application"
HOMEPAGE="http://www.3ds.com/products/draftsight/overview/"
SRC_URI="${MY_PN}.rpm"

LICENSE="DraftSight"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RESTRICT="fetch strip"

DEPEND=""
RDEPEND=">=media-libs/nas-1.9.2"

S=${WORKDIR}

pkg_nofetch() {
einfo "Please download ${A} from"
einfo "${DOWNLOAD_URL}"
einfo "(agree to the license) and place it in ${DISTDIR}"
}

src_install() {
cp -pPR "${S}/opt" "${ED}/"

# Preserve directories in /var/opt for something
keepdir /var/opt/dassault-systemes/draftsight/license
keepdir /var/opt/dassault-systemes/draftsight/settings

dobin "${FILESDIR}/${PN}"
}


draftsight-1.2.1.ebuild

Quote:
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Professional-grade 2D CAD application"
DOWNLOAD_URL="http://www.draftsight.com/download-linux-ubuntu"
DEB_FILE_NAME="DraftSight.deb"
SRC_URI="${DEB_FILE_NAME}"
HOMEPAGE="http://www.3ds.com/products/draftsight/free-cad-software/"
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="3ds"
IUSE=""

# Use dependency list as specified in DEB file for Ubuntu
DEPEND="app-arch/deb2targz"
RDEPEND=">=media-libs/nas-1.9.2"
RESTRICT="fetch"

TGZ_FILE_NAME="$(expr substr ${DEB_FILE_NAME} 1 \( length ${DEB_FILE_NAME} - 4 \)).tar.gz"

DEB_FILE="${DISTDIR}/${DEB_FILE_NAME}"
TGZ_FILE="${DISTDIR}/${TGZ_FILE_NAME}"

pkg_nofetch() {

einfo "Please navigate your browser to"
einfo "${DOWNLOAD_URL}"
einfo "Click \"Download DraftSight\" in the top menu."
einfo "Scroll down to \"Download DraftSight for Ubuntu® (Beta 2)\""
einfo "and download ${DEB_FILE_NAME} after accepting the license."
einfo "Put this file to ${DISTDIR} and resume the installation."

}

src_unpack() {

if [[ ! -r ${DEB_FILE} ]]; then

eerror "cannot read ${A}. Please check the permission and try again."
die

fi

#extract DEB package
ebegin "Unpacking ${DEB_FILE_NAME}"
deb2targz "${DEB_FILE}"
tar -xzf "${TGZ_FILE}" >/dev/null || die
eend $?

}

src_install() {

cp -R "${WORKDIR}/opt" "${D}"

}

pkg_postinst() {

xdg-mime install --novendor --mode system "/opt/dassault-systemes/draftsight/mime/dassault-systemes"_"draftsight-dwg.xml"
xdg-mime default "dassault-systemes"_"draftsight.desktop" "application/vnd.dassault-systemes.draftsight-dwg"
xdg-mime install --novendor --mode system "/opt/dassault-systemes/draftsight/mime/dassault-systemes"_"draftsight-dxf.xml"
xdg-mime default "dassault-systemes"_"draftsight.desktop" "application/vnd.dassault-systemes.draftsight-dxf"
xdg-mime install --novendor --mode system "/opt/dassault-systemes/draftsight/mime/dassault-systemes"_"draftsight-dwt.xml"
xdg-mime default "dassault-systemes"_"draftsight.desktop" "application/vnd.dassault-systemes.draftsight-dwt"

xdg-icon-resource install --noupdate --novendor --context apps --mode system --size 16 "/opt/dassault-systemes/draftsight/mime/pixmaps/16x16/dassault-systemes_draftsight.png" "dassault-systemes.draftsight"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 16 "/opt/dassault-systemes/draftsight/mime/pixmaps/16x16/dassault-systemes_draftsight-dwg.png" "application-vnd.dassault-systemes.draftsight-dwg"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 16 "/opt/dassault-systemes/draftsight/mime/pixmaps/16x16/dassault-systemes_draftsight-dxf.png" "application-vnd.dassault-systemes.draftsight-dxf"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 16 "/opt/dassault-systemes/draftsight/mime/pixmaps/16x16/dassault-systemes_draftsight-dwt.png" "application-vnd.dassault-systemes.draftsight-dwt"
xdg-icon-resource install --noupdate --novendor --context apps --mode system --size 32 "/opt/dassault-systemes/draftsight/mime/pixmaps/32x32/dassault-systemes_draftsight.png" "dassault-systemes.draftsight"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 32 "/opt/dassault-systemes/draftsight/mime/pixmaps/32x32/dassault-systemes_draftsight-dwg.png" "application-vnd.dassault-systemes.draftsight-dwg"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 32 "/opt/dassault-systemes/draftsight/mime/pixmaps/32x32/dassault-systemes_draftsight-dxf.png" "application-vnd.dassault-systemes.draftsight-dxf"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 32 "/opt/dassault-systemes/draftsight/mime/pixmaps/32x32/dassault-systemes_draftsight-dwt.png" "application-vnd.dassault-systemes.draftsight-dwt"
xdg-icon-resource install --noupdate --novendor --context apps --mode system --size 48 "/opt/dassault-systemes/draftsight/mime/pixmaps/48x48/dassault-systemes_draftsight.png" "dassault-systemes.draftsight"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 48 "/opt/dassault-systemes/draftsight/mime/pixmaps/48x48/dassault-systemes_draftsight-dwg.png" "application-vnd.dassault-systemes.draftsight-dwg"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 48 "/opt/dassault-systemes/draftsight/mime/pixmaps/48x48/dassault-systemes_draftsight-dxf.png" "application-vnd.dassault-systemes.draftsight-dxf"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 48 "/opt/dassault-systemes/draftsight/mime/pixmaps/48x48/dassault-systemes_draftsight-dwt.png" "application-vnd.dassault-systemes.draftsight-dwt"
xdg-icon-resource install --noupdate --novendor --context apps --mode system --size 64 "/opt/dassault-systemes/draftsight/mime/pixmaps/64x64/dassault-systemes_draftsight.png" "dassault-systemes.draftsight"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 64 "/opt/dassault-systemes/draftsight/mime/pixmaps/64x64/dassault-systemes_draftsight-dwg.png" "application-vnd.dassault-systemes.draftsight-dwg"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 64 "/opt/dassault-systemes/draftsight/mime/pixmaps/64x64/dassault-systemes_draftsight-dxf.png" "application-vnd.dassault-systemes.draftsight-dxf"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 64 "/opt/dassault-systemes/draftsight/mime/pixmaps/64x64/dassault-systemes_draftsight-dwt.png" "application-vnd.dassault-systemes.draftsight-dwt"
xdg-icon-resource install --noupdate --novendor --context apps --mode system --size 128 "/opt/dassault-systemes/draftsight/mime/pixmaps/128x128/dassault-systemes_draftsight.png" "dassault-systemes.draftsight"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 128 "/opt/dassault-systemes/draftsight/mime/pixmaps/128x128/dassault-systemes_draftsight-dwg.png" "application-vnd.dassault-systemes.draftsight-dwg"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 128 "/opt/dassault-systemes/draftsight/mime/pixmaps/128x128/dassault-systemes_draftsight-dxf.png" "application-vnd.dassault-systemes.draftsight-dxf"
xdg-icon-resource install --noupdate --novendor --context mimetypes --mode system --size 128 "/opt/dassault-systemes/draftsight/mime/pixmaps/128x128/dassault-systemes_draftsight-dwt.png" "application-vnd.dassault-systemes.draftsight-dwt"

xdg-icon-resource forceupdate

xdg-desktop-menu install --novendor --mode system "/opt/dassault-systemes/draftsight/mime/dassault-systemes"_"draftsight.desktop"

}

pkg_prerm() {

xdg-mime uninstall --novendor --mode system "/opt/dassault-systemes/draftsight/mime/dassault-systemes"_"draftsight-dwg.xml"
xdg-mime uninstall --novendor --mode system "/opt/dassault-systemes/draftsight/mime/dassault-systemes"_"draftsight-dxf.xml"
xdg-mime uninstall --novendor --mode system "/opt/dassault-systemes/draftsight/mime/dassault-systemes"_"draftsight-dwt.xml"

xdg-icon-resource uninstall --noupdate --context apps --mode system --size 16 "dassault-systemes.draftsight"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 16 "application-vnd.dassault-systemes.draftsight-dwg"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 16 "application-vnd.dassault-systemes.draftsight-dxf"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 16 "application-vnd.dassault-systemes.draftsight-dwt"
xdg-icon-resource uninstall --noupdate --context apps --mode system --size 32 "dassault-systemes.draftsight"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 32 "application-vnd.dassault-systemes.draftsight-dwg"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 32 "application-vnd.dassault-systemes.draftsight-dxf"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 32 "application-vnd.dassault-systemes.draftsight-dwt"
xdg-icon-resource uninstall --noupdate --context apps --mode system --size 48 "dassault-systemes.draftsight"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 48 "application-vnd.dassault-systemes.draftsight-dwg"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 48 "application-vnd.dassault-systemes.draftsight-dxf"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 48 "application-vnd.dassault-systemes.draftsight-dwt"
xdg-icon-resource uninstall --noupdate --context apps --mode system --size 64 "dassault-systemes.draftsight"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 64 "application-vnd.dassault-systemes.draftsight-dwg"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 64 "application-vnd.dassault-systemes.draftsight-dxf"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 64 "application-vnd.dassault-systemes.draftsight-dwt"
xdg-icon-resource uninstall --noupdate --context apps --mode system --size 128 "dassault-systemes.draftsight"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 128 "application-vnd.dassault-systemes.draftsight-dwg"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 128 "application-vnd.dassault-systemes.draftsight-dxf"
xdg-icon-resource uninstall --noupdate --context mimetypes --mode system --size 128 "application-vnd.dassault-systemes.draftsight-dwt"

xdg-icon-resource forceupdate

xdg-desktop-menu uninstall --novendor --mode system "/opt/dassault-systemes/draftsight/mime/dassault-systemes"_"draftsight.desktop"

}


app-office/libreoffice-bin z funtoo

Quote:
# Distributed under the terms of the GNU General Public License v2

EAPI=5

KDE_REQUIRED="optional"
CMAKE_REQUIRED="never"
BASE_AMD64_URI="http://ftp.osuosl.org/pub/funtoo/distfiles/amd64-bin-"
BASE_X86_URI="http://ftp.osuosl.org/pub/funtoo/distfiles/x86-bin-"

inherit kde4-base java-pkg-opt-2 pax-utils prefix versionator

DESCRIPTION="LibreOffice, a full office productivity suite. Binary package."
HOMEPAGE="http://www.libreoffice.org"
SRC_URI_AMD64="
kde? (
!java? ( ${BASE_AMD64_URI}${PN/-bin}-kde-${PVR}.tar.xz )
java? ( ${BASE_AMD64_URI}${PN/-bin}-kde-java-${PVR}.tar.xz )
)
gnome? (
!java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-${PVR}.tar.xz )
java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-java-${PVR}.tar.xz )
)
!kde? ( !gnome? (
!java? ( ${BASE_AMD64_URI}${PN/-bin}-base-${PVR}.tar.xz )
java? ( ${BASE_AMD64_URI}${PN/-bin}-base-java-${PVR}.tar.xz )
) )
"
SRC_URI_X86="
kde? (
!java? ( ${BASE_X86_URI}${PN/-bin}-kde-${PVR}.tar.xz )
java? ( ${BASE_X86_URI}${PN/-bin}-kde-java-${PVR}.tar.xz )
)
gnome? (
!java? ( ${BASE_X86_URI}${PN/-bin}-gnome-${PVR}.tar.xz )
java? ( ${BASE_X86_URI}${PN/-bin}-gnome-java-${PVR}.tar.xz )
)
!kde? ( !gnome? (
!java? ( ${BASE_X86_URI}${PN/-bin}-base-${PVR}.tar.xz )
java? ( ${BASE_X86_URI}${PN/-bin}-base-java-${PVR}.tar.xz )
) )
"

SRC_URI="
amd64? ( ${SRC_URI_AMD64} )
x86? ( ${SRC_URI_X86} )
"

IUSE="+cups debug gnome java kde"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="-* amd64 x86"

BIN_COMMON_DEPEND="
=app-text/libexttextcat-3.3*
=dev-cpp/libcmis-0.2*
=dev-libs/icu-51.1*
=media-gfx/graphite2-1.2*
>=sys-libs/glibc-2.15-r3
kde? ( >=kde-base/kdelibs-4.9.3:4 >=dev-qt/qtcore-4.8.2:4 )
"

COMMON_DEPEND="
${BIN_COMMON_DEPEND}
app-arch/zip
app-arch/unzip
>=app-text/hunspell-1.3.2-r3
app-text/mythes
>=app-text/libexttextcat-3.2
app-text/libwpd:0.9[tools]
app-text/libwpg:0.2
>=app-text/libwps-0.2.2
>=dev-cpp/clucene-2.3.3.4-r2
>=dev-cpp/libcmis-0.2:0.2
dev-db/unixODBC
dev-libs/expat
>=dev-libs/glib-2.28
>=dev-libs/hyphen-2.7.1
>=dev-libs/icu-4.8.1.1
>=dev-libs/nspr-4.8.8
>=dev-libs/nss-3.12.9
>=dev-lang/perl-5.0
>=dev-libs/openssl-1.0.0d
>=dev-libs/redland-1.0.14[ssl]
gnome-base/librsvg
media-gfx/graphite2
>=media-libs/fontconfig-2.8.0
media-libs/freetype:2
media-libs/lcms:2
=media-libs/libpng-1.5*
>=media-libs/libcdr-0.0.5
media-libs/libvisio
>=net-misc/curl-7.21.4
sci-mathematics/lpsolve
>=sys-libs/db-4.8
virtual/jpeg
>=x11-libs/cairo-1.10.0[X]
x11-libs/libXinerama
x11-libs/libXrandr
x11-libs/libXrender
cups? ( net-print/cups )
>=dev-libs/dbus-glib-0.92
gnome? ( gnome-extra/evolution-data-server )
gnome? ( gnome-base/gconf:2 )
x11-libs/gdk-pixbuf[X]
>=x11-libs/gtk+-2.24:2
>=media-libs/gstreamer-0.10:0.10
>=media-libs/gst-plugins-base-0.10:0.10
net-libs/neon
"

RDEPEND="${COMMON_DEPEND}
!app-office/libreoffice
!=virtual/jre-1.6 )
"

PDEPEND="
=app-office/libreoffice-l10n-3.6*
"

DEPEND=""

# only one flavor at a time
REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"

RESTRICT="test strip mirror"

S="${WORKDIR}"

PYTHON_UPDATER_IGNORE="1"

pkg_pretend() {
[[ $(gcc-major-version) -lt 4 ]] || \
( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
&& die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
}

pkg_setup() {
kde4-base_pkg_setup
}

src_unpack() {
default
}

src_prepare() {
cp "${FILESDIR}"/50-${PN} "${T}"
eprefixify "${T}"/50-${PN}
}

src_configure() { :; }

src_compile() { :; }

src_install() {
dodir /usr
cp -aR "${S}"/usr/* "${ED}"/usr/

# prevent revdep-rebuild from attempting to rebuild all the time
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
}

pkg_preinst() {
# Cache updates - all handled by kde eclass for all environments
kde4-base_pkg_preinst
}

pkg_postinst() {
kde4-base_pkg_postinst

pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin

use cups && ! has_version net-print/cups || \
ewarn 'You will need net-print/cups to be able to print and export to PDF with libreoffice.'

use java || \
ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
}

pkg_postrm() {
kde4-base_pkg_postrm
}



Pomimo prób nie udało mi się tego skompilować.
_________________
Desktop: [COMPAQ EVO W6000] [2xP4 Xeon 2GHz][GF6200LE 128DDR2] [2.6.29-gentoo-sources]
Desktop: [Fujitsu Siemens CELSIUS R630] [2xP4 Xeon 3,2GHz][Quadro FX 380] [2.9.0-gentoo-sources]
Back to top
View user's profile Send private message
Jacekalex
Guru
Guru


Joined: 17 Sep 2009
Posts: 490

PostPosted: Mon May 13, 2013 6:35 am    Post subject: Reply with quote

Quote:
Na komputerze z systemem 64 bitowym nadaje pakietom uprawnienia katalogom 700 i plikom 600 na maszynach 32 bitowych nie ma takich problemów.

Jak nadajesz te uprawnienia? z palca?
Bo zazwyczaj w systemie ustawia się wartość umask w /etc/profile.
Uprawnienia ebuildów i folderów w overlayach i głównym drzewku ustala portage, i w lokalnym overlayu powinieneś ustawić takie same, jak w tych z portage.

Wydaje mi się, że coś przekombinowałeś.
Nie masz tam jakiegoś ACL typu Selinux czy GrACL, względnie ten lokalny overlay nie jest na innej partycji z jakimiś dziwnymi opcjami montowania, lub np systemem plików fat czy ntfs?

Tutaj:
http://forums.gentoo.org/viewtopic-p-7304984.html#7304984
są uprawnienia do ebuilda libreoffice-bin.
Zainstalował się bez problemu poleceniem ebuild.
Poza tym radziłbym w tym lokalnym overlayu dać 644 na pliki i 755 na foldery.
A potem wejść na konto uzytkownika portage, i sprawdzić, czy można dostać się do ebuilda w lokalnym overalyu z / przez
Code:
ls /gdze/jest/overlay/app-office/libreaoffice-bin


Pozdrawiam
8)
Back to top
View user's profile Send private message
RA6
n00b
n00b


Joined: 13 Mar 2007
Posts: 48
Location: Polonia - Vladislavia

PostPosted: Sun May 19, 2013 5:13 am    Post subject: Reply with quote

Problemy z kompilacją LibreOffice i DraftSight rozwiązane.
Przyczyną było pobieranie katalogów przez wget z overlay, który zapisał patche jak strony html bez rozszerzenia zamiast plików z kodem.

Tak wygląda
/etc/profile

Quote:
# /etc/profile: login shell setup
#
# That this file is used by any Bourne-shell derivative to setup the
# environment for login shells.
#

# Load environment settings from profile.env, which is created by
# env-update from the files in /etc/env.d
if [ -e /etc/profile.env ] ; then
. /etc/profile.env
fi

# You should override these in your ~/.bashrc (or equivalent) for per-user
# settings. For system defaults, you can add a new file in /etc/profile.d/.
export EDITOR=${EDITOR:-/bin/nano}
export PAGER=${PAGER:-/usr/bin/less}

# 077 would be more secure, but 022 is generally quite realistic
umask 022

# Set up PATH depending on whether we're root or a normal user.
# There's no real reason to exclude sbin paths from the normal user,
# but it can make tab-completion easier when they aren't in the
# user's PATH to pollute the executable namespace.
#
# It is intentional in the following line to use || instead of -o.
# This way the evaluation can be short-circuited and calling whoami is
# avoided.
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}"
else
PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"
fi
export PATH
unset ROOTPATH

if [ -n "${BASH_VERSION}" ] ; then
# Newer bash ebuilds include /etc/bash/bashrc which will setup PS1
# including color. We leave out color here because not all
# terminals support it.
if [ -f /etc/bash/bashrc ] ; then
# Bash login shells run only /etc/profile
# Bash non-login shells run only /etc/bash/bashrc
# Since we want to run /etc/bash/bashrc regardless, we source it
# from here. It is unfortunate that there is no way to do
# this *after* the user's .bash_profile runs (without putting
# it in the user's dot-files), but it shouldn't make any
# difference.
. /etc/bash/bashrc
else
PS1='\u@\h \w \$ '
fi
else
# Setup a bland default prompt. Since this prompt should be useable
# on color and non-color terminals, as well as shells that don't
# understand sequences such as \h, don't put anything special in it.
PS1="${USER:-$(whoami 2>/dev/null)}@$(uname -n 2>/dev/null) \$ "
fi

for sh in /etc/profile.d/*.sh ; do
[ -r "$sh" ] && . "$sh"
done
unset sh


gdzie ustawić by pliki kopiowane i przenoszone np. do /usr/local/portage, /usr/portage/distfiles,
/var/tmp/portage miały prawa domyślne 644 dla plików a 755 dla katalogów.
_________________
Desktop: [COMPAQ EVO W6000] [2xP4 Xeon 2GHz][GF6200LE 128DDR2] [2.6.29-gentoo-sources]
Desktop: [Fujitsu Siemens CELSIUS R630] [2xP4 Xeon 3,2GHz][Quadro FX 380] [2.9.0-gentoo-sources]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
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