Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/nut/files: nut-16.5-int.patch nut-16.5-build-fixes.patch
Date: Wed, 19 Jan 2011 12:49:12
Message-Id: 20110119124854.CB80720057@flycatcher.gentoo.org
1 jlec 11/01/19 12:48:54
2
3 Modified: nut-16.5-build-fixes.patch
4 Added: nut-16.5-int.patch
5 Log:
6 X support included
7
8 (Portage version: 2.2.0_alpha17/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.2 app-misc/nut/files/nut-16.5-build-fixes.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/nut/files/nut-16.5-build-fixes.patch?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/nut/files/nut-16.5-build-fixes.patch?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/nut/files/nut-16.5-build-fixes.patch?r1=1.1&r2=1.2
16
17 Index: nut-16.5-build-fixes.patch
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/nut/files/nut-16.5-build-fixes.patch,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- nut-16.5-build-fixes.patch 13 Jan 2011 17:52:43 -0000 1.1
24 +++ nut-16.5-build-fixes.patch 19 Jan 2011 12:48:54 -0000 1.2
25 @@ -21,3 +21,30 @@
26
27
28 deps:
29 +diff --git a/fltk/Makefile b/fltk/Makefile
30 +index 6e5f9d7..29cf098 100644
31 +--- a/fltk/Makefile
32 ++++ b/fltk/Makefile
33 +@@ -1,18 +1,17 @@
34 + NUTDIR := \".nutdb\"
35 + FOODDIR := \"/usr/local/lib/nut\"
36 + EXECUTABLE := Nut
37 +-LIBS := `fltk-config --ldstaticflags`
38 ++LIBS := `fltk-config --ldflags`
39 +
40 +-CFLAGS := `fltk-config --optim --cflags` -O3 -fno-inline -DNUTDIR=$(NUTDIR) -DFOODDIR=$(FOODDIR) -ansi -pedantic
41 +-
42 +-CXXFLAGS := $(CFLAGS)
43 ++CXXFLAGS += `fltk-config --optim --cxxflags` -fno-inline -DNUTDIR=$(NUTDIR) -DFOODDIR=$(FOODDIR) -ansi -pedantic
44 ++CFLAGS += `fltk-config --optim --cflags` -fno-inline -DNUTDIR=$(NUTDIR) -DFOODDIR=$(FOODDIR) -ansi -pedantic
45 +
46 + SOURCE := $(wildcard *.c) $(wildcard *.cc)
47 + OBJS := $(patsubst %.c,%.o,$(patsubst %.cc,%.o,$(SOURCE)))
48 + CPPFLAGS :=
49 +
50 + nut: $(OBJS)
51 +- $(CXX) -s -o $(EXECUTABLE) $(OBJS) $(LIBS)
52 ++ $(CXX) $(LDFLAGS) -o $(EXECUTABLE) $(OBJS) $(LIBS)
53 +
54 +
55 + deps:
56
57
58
59 1.1 app-misc/nut/files/nut-16.5-int.patch
60
61 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/nut/files/nut-16.5-int.patch?rev=1.1&view=markup
62 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/nut/files/nut-16.5-int.patch?rev=1.1&content-type=text/plain
63
64 Index: nut-16.5-int.patch
65 ===================================================================
66 diff --git a/fltk/FoodRanking.cc b/fltk/FoodRanking.cc
67 index 8b78006..9b06e67 100644
68 --- a/fltk/FoodRanking.cc
69 +++ b/fltk/FoodRanking.cc
70 @@ -33,7 +33,7 @@ static FoodRanking *who_we_are;
71
72 static void the_cb(Fl_Widget *which, void *one)
73 {
74 -the_ranking = (int) one;
75 +the_ranking = *((int *) one);
76 food_group = -1;
77 minimize = -1;
78 who_we_are->initial_meal_add = 1;
79 diff --git a/fltk/MissMealWidget.cc b/fltk/MissMealWidget.cc
80 index fa6d879..be2b88a 100644
81 --- a/fltk/MissMealWidget.cc
82 +++ b/fltk/MissMealWidget.cc
83 @@ -31,7 +31,7 @@ static MealValueOutput *mvo;
84
85 static void missing_meal_cb(Fl_Widget *which, void *choice)
86 {
87 -int meal = (int) choice;
88 +int meal = *((int *) choice);
89 mvo->set_value(current_meal_date,meal);
90 }
91
92 diff --git a/fltk/PersonalOptions.cc b/fltk/PersonalOptions.cc
93 index 424044b..197b892 100644
94 --- a/fltk/PersonalOptions.cc
95 +++ b/fltk/PersonalOptions.cc
96 @@ -33,7 +33,7 @@ DVValueOutput *cvo, *ovo, *lvo, *mvo, *svo, *fvo, *nvo, *pvo;
97 static void lock_cb(Fl_Widget *w, void *data)
98 {
99 Fl_Light_Button *lb = (Fl_Light_Button *) w;
100 -int nut = (int) data;
101 +int nut = *((int *) data);
102 double value = lb->value();
103 options.locknuts[nut] = value;
104 if (nut == ENERC_KCAL) options.autocal = 0;
105 diff --git a/fltk/RecordMeals.cc b/fltk/RecordMeals.cc
106 index d44b9b6..31f368a 100644
107 --- a/fltk/RecordMeals.cc
108 +++ b/fltk/RecordMeals.cc
109 @@ -35,7 +35,7 @@ static bool user_has_spoken;
110
111 static void meals_per_day_cb(Fl_Widget *which, void *choice)
112 {
113 -int meals_per_day = (int) choice;
114 +int meals_per_day = *((int *) choice);
115 delete_meals(0);
116 write_meal_db();
117 options.mealsperday = meals_per_day;
118 diff --git a/fltk/ServingMenuButton.cc b/fltk/ServingMenuButton.cc
119 index 1ca0c5a..a1cca3e 100644
120 --- a/fltk/ServingMenuButton.cc
121 +++ b/fltk/ServingMenuButton.cc
122 @@ -37,7 +37,7 @@ static struct food *current_foodptr;
123
124 void menu_callback(Fl_Widget *which, void *n)
125 {
126 -int num = (int) n;
127 +int num = *((int *) n);
128 if (num > 0)
129 {
130 big_label = result[3*num-2];
131 diff --git a/fltk/TheStory.cc b/fltk/TheStory.cc
132 index 1db27f5..90c3c3f 100644
133 --- a/fltk/TheStory.cc
134 +++ b/fltk/TheStory.cc
135 @@ -30,7 +30,7 @@ static TheStory *who_we_are;
136
137 void food_group_selector(Fl_Widget *which, void *what)
138 {
139 -who_we_are->set_food_group((int) what);
140 +who_we_are->set_food_group(*((int *) what));
141 }
142
143 TheStory::TheStory (int x, int y, int w, int h, Fl_Color widgetcolor) : Fl_Wizard (x, y, w, h)
144 diff --git a/fltk/TheUsualMenuButton.cc b/fltk/TheUsualMenuButton.cc
145 index 84d77fc..0f59009 100644
146 --- a/fltk/TheUsualMenuButton.cc
147 +++ b/fltk/TheUsualMenuButton.cc
148 @@ -33,7 +33,7 @@ static struct meal *theusual_ptrs[101];
149
150 void add_to_meal_cb(Fl_Widget* whomever, void* whatever)
151 {
152 -int choice = (int) whatever;
153 +int choice = *((int *) whatever);
154 rm->add_theusual(theusual_ptrs[choice]);
155 }
156
157 @@ -44,7 +44,7 @@ rm->new_customary_meal_phase_one();
158
159 void delete_cb(Fl_Widget* whomever, void* whatever)
160 {
161 -int choice = (int) whatever;
162 +int choice = *((int *) whatever);
163 theusualobj[theusualobjcount-1]->delete_it(theusual_ptrs[choice]);
164 }