After default installation of net/skype a normal user can not run the skype binary: ----- h30% skype /usr/local/bin/skype: /usr/local/share/skype/skype: Permission denied h30% ls -ld /usr/local/share/skype drwx------ 6 root wheel 512 11 May 23:32 /usr/local/share/skype ----- Fix: Fix the directory permissions. WBR -- bsam
Responsible Changed From-To: freebsd-ports-bugs->beech Over to maintainer (via the GNATS Auto Assign Tool)
State Changed From-To: open->feedback something is wrong with your local system. I can't confirm that.
Hm, I have: ----- h30# uname -a FreeBSD h30.sp.ipt.ru 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Sun May 3 12:28:52 MSD 2009 root@h30.sp.ipt.ru:/usr/obj/usr/src/sys/GENERIC i386 h30# pwd /usr/ports/net/skype h30# make clean ===> Cleaning for skype-2.0.0.72,1 h30# make clean extract ===> Cleaning for skype-2.0.0.72,1 ===> Vulnerability check disabled, database not found * * * * * * * * * * * * * * * * * * * * * * * * * * * * ATTENTION! Skype requires at least linux_base-fc6 which is NOT default at this time. If you don't have that version or above installed, hit 'control c' now! Please read /usr/ports/UPDATING 20080318 for update and install instructions. * * * * * * * * * * * * * * * * * * * * * * * * * * * * ===> Extracting for skype-2.0.0.72,1 => MD5 Checksum OK for skype_static-2.0.0.72-oss.tar.bz2. => SHA256 Checksum OK for skype_static-2.0.0.72-oss.tar.bz2. h30# ls -ld /usr/local/share/skype/ ls: /usr/local/share/skype/: No such file or directory h30# cd work/skype_static-2.0.0.72-oss/ h30# find -d avatars icons lang sounds | cpio -dumpl /usr/local/share/skype 0 blocks h30# ls -ld /usr/local/share/skype/ drwx------ 6 root wheel 512 12 май 00:30 /usr/local/share/skype/ ----- So "find ... | cpio ..." produces that directory. I'm not sure where to investigate further. All other directories at /usr/local/share are fine. WBR -- bsam
I reproduced it at another 7.x machine: ----- % uname -a FreeBSD ns.bsam.ru 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #1: Tue May 5 11:41:59 MSD 2009 root@ns.bsam.ru:/usr/obj/usr/src/sys/GENERIC i386 % ls -ld /usr/local/share/skype drwx------ 6 root wheel 512 12 май 12:20 /usr/local/share/skype ----- That seems to be a problem with gnu cpio which is used at 7.x and below. At 8-current I can't reproduce this error (it uses BSD cpio). The following patch helps here (just create ${PREFIX}/${SKYPEDIR} before doing ${COPYTREE_SHARE}): ----- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net/skype/Makefile,v retrieving revision 1.50 diff -u -r1.50 Makefile --- Makefile 11 May 2009 20:45:23 -0000 1.50 +++ Makefile 12 May 2009 08:31:22 -0000 @@ -61,7 +61,7 @@ @${INSTALL} -d ${PREFIX}/share/applications @${INSTALL_DATA} ${WRKSRC}/skype.desktop ${PREFIX}/share/applications/ @${INSTALL_DATA} ${WRKSRC}/icons/SkypeBlue_48x48.png ${PREFIX}/share/pixmaps/skype.png - @cd ${WRKSRC}/&&${COPYTREE_SHARE} "avatars icons sounds lang" ${PREFIX}/${SKYPEDIR}/ + @cd ${WRKSRC}/ && {MKDIR} ${PREFIX}/${SKYPEDIR} && ${COPYTREE_SHARE} "avatars icons sounds lang" ${PREFIX}/${SKYPEDIR}/ # The binary main program @${INSTALL_PROGRAM} ${WRKSRC}/skype ${PREFIX}/${SKYPEDIR}/ ----- BTW, the package is not affected, no need to bump PORTREVISION. WBR -- bsam
bsam 2009-05-14 04:51:34 UTC FreeBSD ports repository Modified files: net/skype Makefile Log: Create ${PREFIX}/${SKYPEDIR} before doing ${COPYTREE_SHARE}. Without this step installing the port at 7.x has the effect: ----- % ls -ld /usr/local/share/skype drwx------ 6 root wheel 512 12 May 12:20 /usr/local/share/skype % skype /usr/local/bin/skype: /usr/local/share/skype/skype: Permission denied ----- FreeBSD 8.x is not affected since it uses BSD cpio (at ${COPYTREE_SHARE}) which behaves as expected. Note: packages are not affected, no PORTREVISION bump. PR: ports/134471 Submitted by: bsam (me) Approved by: miwi (co-maintainer, by e-mail) Revision Changes Path 1.51 +1 -1 ports/net/skype/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: feedback->closed Committed, thanks! ;-)