Bug 128384

Summary: new port x11/xorg-minimal
Product: Ports & Packages Reporter: Eitan Adler <eadler>
Component: Individual Port(s)Assignee: Stefan Walter <stefan>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
xorg-minimal.shar
none
xorg.shar
none
Makefile
none
pkg-descr none

Description Eitan Adler freebsd_committer freebsd_triage 2008-10-26 02:50:01 UTC
# New ports collection makefile for:    xorg-lite
# Date created:		19 Jun 2008
# Whom:			Eitan Adler
#
# $FreeBSD$
#

PORTNAME=	xorg
PORTVERSION=	7.3
CATEGORIES=		x11 x11-servers
MASTER_SITES=	# none
PKGNAMESUFFIX=	-lite
DISTFILES=		# none
EXTRACT_ONLY=	# none

MAINTAINER=	EitanAdlerList@gmail.com
COMMENT=X.Org minimal distribution metaport

NO_BUILD=	yes

RUN_DEPENDS+=	${LOCALBASE}/bin/Xorg:${PORTSDIR}/x11-servers/xorg-server \
			xf86-video-vesa:${PORTSDIR}/x11-drivers/xf86-video-vesa \
			xf86-video-vesa:${PORTSDIR}/x11-drivers/xf86-input-mouse \
			xf86-video-vesa:${PORTSDIR}/x11-drivers/xf86-input-keyboard \
			xf86-video-vesa:${PORTSDIR}/x11/xinit \
			xf86-video-vesa:${PORTSDIR}/x11/xauth \
			xf86-video-vesa:${PORTSDIR}/x11-fonts/font-alias \
			xf86-video-vesa:${PORTSDIR}/x11-fonts/font-cursor-misc \
			xf86-video-vesa:${PORTSDIR}/x11-fonts/font-misc-misc
do-install:	# empty

pre-everything::
	@${ECHO_MSG} "This is a meta-port, meaning that it just depends on its subparts of the port."
	@${ECHO_MSG} "It won't build and install all the parts until you have typed make install"
	@${ECHO_MSG} "This port does not ensure things are upgraded; use portmaster if you want to"
	@${ECHO_MSG} "upgrade X.Org."

.include <bsd.port.pre.mk>
.include <bsd.port.post.mk>

How-To-Repeat: discussed @ http://docs.freebsd.org/cgi/getmsg.cgi?fetch=148946+0+archive/2008/freebsd-ports/20081019.freebsd-ports
Comment 1 Stefan Walter freebsd_committer freebsd_triage 2008-12-21 13:51:23 UTC
Hi Eitan,

you submitted a Makefile only. Could you please send a followup to this PR
with a complete shar file of the new port attached? (See [1] for details.)

Thanks and regards,
Stefan

[1]: http://www.de.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-submitting.html
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2008-12-21 15:17:12 UTC
The shar file is attached. It includes pkg-plist, pkg-descr, and
Makefile. Do I need anything else?
-- 
Eitan Adler
GNU Key fingerprint: 2E13 BC16 5F54 0FBD 62ED 42B6 B65F 24AB E9C2 CCD1
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2008-12-21 15:41:56 UTC
I found a minor mistake:
Change
This is a metaport for least amount of X.Org needed to run a xorg server.
to
This is a metaport for least amount of ports needed to run a X.Org server.

-- 
Eitan Adler
GNU Key fingerprint: 2E13 BC16 5F54 0FBD 62ED 42B6 B65F 24AB E9C2 CCD1
Comment 4 Stefan Walter freebsd_committer freebsd_triage 2008-12-21 21:20:59 UTC
Eitan Adler, 21.12.08, 16:17h CET:

> The shar file is attached. It includes pkg-plist, pkg-descr, and
> Makefile. Do I need anything else?

No. Actually, just Makefile and pkg-descr, since pkg-plist is empty,
anyway. However, all your RUN_DEPENDS are looking for the same executable
(xf86-video-vesa). Please correct those and send me an updated shar file.

Regards,
Stefan
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2008-12-22 04:07:21 UTC
Stefan Walter wrote:
<snip> However, all your RUN_DEPENDS are looking for the same executable
> (xf86-video-vesa). Please correct those and send me an updated shar file.
I completely forgot about that.
Attached is updated shar file.

-- 
Eitan Adler
GNU Key fingerprint: 2E13 BC16 5F54 0FBD 62ED 42B6 B65F 24AB E9C2 CCD1
Comment 6 Stefan Walter freebsd_committer freebsd_triage 2008-12-22 11:33:43 UTC
Responsible Changed
From-To: freebsd-ports-bugs->stefan

Take.
Comment 7 Stefan Walter freebsd_committer freebsd_triage 2008-12-22 13:06:47 UTC
Hi Eitan,

Eitan Adler, 22.12.08, 05:07h CET:

> Stefan Walter wrote:
> <snip> However, all your RUN_DEPENDS are looking for the same executable
> > (xf86-video-vesa). Please correct those and send me an updated shar file.
> I completely forgot about that.
> Attached is updated shar file.

Hm...it doesn't quite work the way you did it. There are still a few
issues with the RUN_DEPENDS - suggestions:

- xf86-video-vesa: Look for
  "${LOCALBASE}/lib/xorg/modules/drivers/vesa_drv.so", not
  "xf86-video-vesa".
- xf86-input-mouse and xf86-input-keyboard: Prefix the path with
  "${LOCALBASE}".
- With the fonts packages:
  - ${FONTSDIR} is not defined. Use "${LOCALBASE}/lib/X11/fonts".
  - Instead of ${NONEXISTENT}, please use a path to a file installed by
    the port.

Furthermore:

- I don't think CONFLICTS is needed here at all. CONFLICTS is used when
  two ports can't be installed at the same time because they both install
  files with the same name in the same place. With xorg-minimal, it
  probably wouldn't make much sense to install it along with the normal
  xorg port, but it's possible and I see no reason to forbid it.
- When assigning variable values, please use a tab after the '=', not
  spaces.

Also, please test your new port before submitting it. That way you should
be able to catch most issues earlier. (In this case, at least the ones
with the RUN_DEPENDS.)

Regards,
Stefan
Comment 8 Eitan Adler freebsd_committer freebsd_triage 2008-12-23 02:20:40 UTC
> Also, please test your new port before submitting it.
How?
I tested with make install and make index and portlint.  None of these
turned up any errors.
Regarding the font-misc-misc I chose a file at random as none of them
seem to be a primary file in the port.
Attached is new Makefile (index is being tested again right now).
> Regards,
> Stefan
Thanks

-- 
Eitan Adler
GNU Key fingerprint: 2E13 BC16 5F54 0FBD 62ED 42B6 B65F 24AB E9C2 CCD1
Comment 9 dfilter service freebsd_committer freebsd_triage 2008-12-27 13:11:49 UTC
stefan      2008-12-27 13:11:29 UTC

  FreeBSD ports repository

  Modified files:
    x11                  Makefile 
  Added files:
    x11/xorg-minimal     Makefile pkg-descr 
  Log:
  Add xorg-minimal, a meta-port for installing only the necessary part of the
  X.Org distribution.
  
  PR:             128384
  Submitted by:   Eitan Adler <EitanAdlerList@gmail.com>
  
  Revision  Changes    Path
  1.698     +1 -0      ports/x11/Makefile
  1.1       +39 -0     ports/x11/xorg-minimal/Makefile (new)
  1.1       +6 -0      ports/x11/xorg-minimal/pkg-descr (new)
_______________________________________________
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"
Comment 10 Stefan Walter freebsd_committer freebsd_triage 2008-12-27 13:23:11 UTC
Hi,

Eitan Adler, 23.12.08, 03:20h CET:

> > Also, please test your new port before submitting it.
> How?
> I tested with make install and make index and portlint.  None of these
> turned up any errors.

The recommended testing procedure is described at [1], and using portlint
is fine.

Hm...I don't have the logs any more, but 'make install' didn't work with
the version you initially submitted since the RUN_DEPENDS were wrong. The
dependencies were never satisfied, so the installation was aborted.

> Regarding the font-misc-misc I chose a file at random as none of them
> seem to be a primary file in the port.

Looks good.

> Attached is new Makefile (index is being tested again right now).

Thanks! I just committed the new port with a couple of minor/cosmetic
changes:

- Indentation of the RUN_DEPENDS.
- I changed PKGNAMESUFFIX from '-lite' to '-minimal'; I assumed that it
  should be the latter since it's in the directory's name, too.

Thanks for your contribution!

Regards,
Stefan

[1]: http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-testing.html
Comment 11 Stefan Walter freebsd_committer freebsd_triage 2008-12-27 13:42:14 UTC
State Changed
From-To: open->closed

New port committed, thanks!