From Fedora Project Wiki

m (→‎Till Maas: fix blog URL)
(notoc, <code> -> <pre>)
Line 1: Line 1:
__NOTOC__
= Till Maas =
= Till Maas =


Line 43: Line 44:
== Code ==
== Code ==
* rerun autofoo
* rerun autofoo
<code>
<pre>
libtoolize --automake --copy --force
libtoolize --automake --copy --force
aclocal-1.9
aclocal-1.9
Line 49: Line 50:
automake-1.9 --add-missing --force-missing --copy
automake-1.9 --add-missing --force-missing --copy
autoconf
autoconf
</code>
</pre>
* make configure not to reconfigure itself: In configure.in (or configure.ac) add after AM_INIT_AUTOMAKE
* make configure not to reconfigure itself: In configure.in (or configure.ac) add after AM_INIT_AUTOMAKE
<code>
<code>AM_MAINTAINER_MODE</code>
AM_MAINTAINER_MODE
</code>


* pm-utils debugging
* pm-utils debugging
Line 62: Line 61:
== Package DB Hacking ==
== Package DB Hacking ==
From: https://www.redhat.com/archives/fedora-devel-list/2007-October/msg01439.html
From: https://www.redhat.com/archives/fedora-devel-list/2007-October/msg01439.html
<code>
<pre>
There are also a few features related to filtering of results that have  
There are also a few features related to filtering of results that have  
been enabled.  There isn't a UI element for them yet but power users who  
been enabled.  There isn't a UI element for them yet but power users who  
Line 80: Line 79:
The acls that you can list in the acls field are:
The acls that you can list in the acls field are:
owner,commit,approveacls,watchbugzilla,watchcommits
owner,commit,approveacls,watchbugzilla,watchcommits
</code>
</pre>


== other important stuff ==
== other important stuff ==
Line 90: Line 89:
== Xinf aliases hwdata ==
== Xinf aliases hwdata ==
* https://www.redhat.com/archives/fedora-devel-list/2007-October/msg02562.html
* https://www.redhat.com/archives/fedora-devel-list/2007-October/msg02562.html
<code>
<pre>
alias pcivideo:v00008086d00007121sv*sd*bc*sc*i* intel  # i810
alias pcivideo:v00008086d00007121sv*sd*bc*sc*i* intel  # i810


Line 105: Line 104:
possible, last match wins, but it's best if you don't have to rely on
possible, last match wins, but it's best if you don't have to rely on
that accidental feature.
that accidental feature.
</code>
</pre>


== SELinux ==
== SELinux ==
Line 114: Line 113:


== Debuginfo Packages ==
== Debuginfo Packages ==
* {{{%define debug_package %{nil} }}}
* <code>%global debug_package %{nil}</code>
* [[Packaging/Debuginfo]]
* [[Packaging/Debuginfo]]


Line 122: Line 121:


== Subpackage Requires ==
== Subpackage Requires ==
* {{{rpm -ql foo-devel | grep /usr/include | xargs grep -h 'include ' | sort | uniq}}}
* <code>rpm -ql foo-devel | grep /usr/include | xargs grep -h 'include ' | sort | uniq</code>
* {{{rpm -ql foo-python | grep python | xargs grep -h 'import ' | sort | uniq}}}
* <code>rpm -ql foo-python | grep python | xargs grep -h 'import ' | sort | uniq</code>


== MoinMoin Quicklinks ==
== MoinMoin Quicklinks ==

Revision as of 12:58, 27 May 2009

Till Maas

I use this wiki page mainly to collect information about Fedora that I find useful in a chaotic way, so please don't be offended by the following chaos:

Code

  • rerun autofoo
libtoolize --automake --copy --force
aclocal-1.9
autoheader
automake-1.9 --add-missing --force-missing --copy
autoconf
  • make configure not to reconfigure itself: In configure.in (or configure.ac) add after AM_INIT_AUTOMAKE

AM_MAINTAINER_MODE

  • pm-utils debugging

http://people.freedesktop.org/~hughsient/quirk/quirk-suspend-index.html

lshal | egrep "(system.hardware.(product|vendor|version)|system.firmware.version|power_management.quirk)"

Package DB Hacking

From: https://www.redhat.com/archives/fedora-devel-list/2007-October/msg01439.html

There are also a few features related to filtering of results that have 
been enabled.  There isn't a UI element for them yet but power users who 
  are willing to edit their URLs can limit what is displayed on the 
package page according to the release by doing something like this:

https://admin.fedoraproject.org/pkgdb/packages/name/yum/Fedora%20EPEL/
https://admin.fedoraproject.org/pkgdb/packages/name/yum/Fedora
https://admin.fedoraproject.org/pkgdb/packages/name/yum/Fedora/devel

You can also limit what is displayed on the user overview of packages 
like so:

https://admin.fedoraproject.org/pkgdb/users/packages/toshio?acls=owner
https://admin.fedoraproject.org/pkgdb/users/packages/toshio?acls=owner,commit

The acls that you can list in the acls field are:
owner,commit,approveacls,watchbugzilla,watchcommits

other important stuff


Xinf aliases hwdata

alias pcivideo:v00008086d00007121sv*sd*bc*sc*i* intel   # i810

pcivideo is a tag understood by kudzu to mean that this line describes
an X driver.  The lowercase letters (v, d, sv, sd, bc, sc, i) are the
various PCI ID fields: vendor, device, subvendor, subdevice, base class,
subclass, and ASIC revision.  Normally you only need to use the first
two.  Then the third word is the driver name you want for that chip.
Comments are optional but are greatly appreciated.

The * wildcards are like shell, not like regex.  Numeric values _must_
be in uppercase hexadecimal; don't try to specify nvidia hardware with
000010de or you will be sadly disappointed.  Multiple matches are
possible, last match wins, but it's best if you don't have to rely on
that accidental feature.

SELinux

  • restorecon relabels files with type file_t (which means the file has no label)
  • mount -o context=system_u:object_r:tmp_t:s0 /dev/mapper/tmp /tmp - correct context for /tmp filesystem


Debuginfo Packages

RPM Comment/Macro Weirdness

Subpackage Requires

  • rpm -ql foo-devel | grep /usr/include | xargs grep -h 'include ' | sort | uniq
  • rpm -ql foo-python | grep python | xargs grep -h 'import ' | sort | uniq

MoinMoin Quicklinks

PackageMaintainers Packaging/Guidelines Tools/RPM PackageUserCreation Infrastructure/UpdatesSystem/Bodhi-info-DRAFT PackageMaintainers/UnassignedReviewRequests PackageMaintainers/AssignedReviewRequests PackageMaintainers/InProgressReviewRequests PackageMaintainers/CVSAdminProcedure PackageReviewProcess PackageMaintainers/UnassignedReviewRequests/NoSponsorNeeded Packaging/LicensingGuidelines Packaging/ReviewGuidelines Packaging/SourceURL ScreenCasting PackageMaintainers/NewPackageProcess PackageMaintainers/UsefulScripts

MoinMoin Watchlist

TillMaas.* WikiEditing Packaging/.* Infrastructure/WikiMigration ScreenCasting LukeMacken/SecurityLiveCD EPEL/WishList PackageMaintainers/.* FedoraMyths de_DE/.* Vacation WishList Infrastructure/AccountSystem2 BugZappers BugZappers/TriagingGuidelines FedoraEvents/FOSDEM/FOSDEM2008 JohnPoelstra/ImprovingBugzillaF9 Releases/FeatureEncryptedFilesystems Releases/9/Alpha/ReleaseNotes SIGs/Perl/Wishlist MattDomsch/FTBFS LiveCD