Skip to content

Commit

Permalink
Merge pull request #61 from tsirakisn/add-quilt-cfg
Browse files Browse the repository at this point in the history
[docker] Add quilt configuration files to container
  • Loading branch information
crogers1 authored Oct 5, 2021
2 parents d9c52e1 + 85e8fe0 commit 8f196e7
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfiles/openxt-buster-oe64
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ RUN ln -s /lib64/ld-linux-x86-64.so.2 /lib/

RUN useradd -Ums /bin/bash -l -p '""' -u $UID $UNAME

# Add quilt config files
ADD root/home/build/.quiltrc /home/build/.quiltrc
ADD root/home/build/oxt-patch.header /home/build/oxt-patch.header

RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen
ENV LANG en_US.utf8
Expand Down
4 changes: 4 additions & 0 deletions Dockerfiles/openxt-oe64
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ RUN ln -s /lib64/ld-linux-x86-64.so.2 /lib/

RUN useradd -Ums /bin/bash -l -p '""' -G sudo -u $UID $UNAME

# Add quilt config files
ADD root/home/build/.quiltrc /home/build/.quiltrc
ADD root/home/build/oxt-patch.header /home/build/oxt-patch.header

RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen
ENV LANG en_US.utf8
Expand Down
21 changes: 21 additions & 0 deletions Dockerfiles/root/home/build/.quiltrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Options passed to GNU diff when generating patches
QUILT_DIFF_OPTS="--show-c-function"

# Options passed to GNU patch when applying patches.
QUILT_PATCH_OPTS="--unified"

# Do not include index lines
QUILT_NO_DIFF_INDEX=1
# Do not include timestamps
QUILT_NO_DIFF_TIMESTAMPS=1

# Options to pass to commands (QUILT_${COMMAND}_ARGS)
# Generate a/ b/ patches to cut down on churn
#QUILT_DIFF_ARGS="--no-timestamps --color=auto -p ab"
#QUILT_REFRESH_ARGS="--no-timestamps --backup -p ab"
QUILT_DIFF_ARGS="--color=auto -p ab"
QUILT_REFRESH_ARGS="--backup -p ab"
QUILT_PUSH_ARGS="--color=auto"
QUILT_SERIES_ARGS="--color=auto"
QUILT_PATCHES_ARGS="--color=auto"
QUILT_NEW_ARGS="-p ab"
39 changes: 39 additions & 0 deletions Dockerfiles/root/home/build/oxt-patch.header
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
################################################################################
SHORT DESCRIPTION:
################################################################################
One or two lines...

################################################################################
LONG DESCRIPTION:
################################################################################
As many lines as it takes for describe the patch. If this patch is really just
a port from somewhere else, you can just reference the original patches
information.

################################################################################
CHANGELOG
################################################################################
Original: John Doe, [email protected]
Ported: Jane Doe, [email protected], 8/27/2015
etc...

################################################################################
REMOVAL
################################################################################
If there are conditions where it can be removed, explain them here. If not then
leave it blank.

################################################################################
UPSTREAM PLAN
################################################################################
If there is a plan to upstream it, explain it here. If there is none, leave it
blank.

################################################################################
INTERNAL DEPENDENCIES
################################################################################
Does this patch have dependencies on other patches etc. If not, leave it blank.

################################################################################
PATCHES
################################################################################

0 comments on commit 8f196e7

Please sign in to comment.