Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: flameeyes@... (Diego 'Flameeyes' Pettenò)
Subject: Please avoid absolute paths in patched filenames
Date: Mon, 17 Nov 2008 20:24:37 +0100
I ask it here as a favour, please avoid using absolute paths in the
filenames of patched files. This mean avoid having stuff like

--- foobar/foo.c
+++ /tmp/foobar/foobar.c

This tends to break from time to time, and I had to fix at least three
packages since I started my treewide build for these problems. I already
asked Zac about adding such a check on repoman, but in the mean time I'd
like to ask here for people to verify their packages.

I actually am culprit of doing this some time ago but I learnt my lesson
the hard way :P My suggestion for everybody else is to use quilt when
you need to write patches.

And if you have patches with the filenames like I shown above, you can
change it the git way so that it becomes:

--- a/foobar/foo.c
+++ b/foobar/foo.c

and the problem is usually solved.

Thanks,
-- 
Diego "Flameeyes" Pettenò
http://blog.flameeyes.eu/

Attachment:
pgp7EWrmtzzde.pgp (PGP signature)
Replies:
Re: Please avoid absolute paths in patched filenames
-- Mart Raudsepp
Re: Please avoid absolute paths in patched filenames
-- Serkan Kaba
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Package up for grabs
Next by thread:
Re: Please avoid absolute paths in patched filenames
Previous by date:
Re: Re: Please review: function epunt_la_files for eutils.eclass
Next by date:
Re: Please avoid absolute paths in patched filenames


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.